↧
Answer by Holt for C++ Using an enum from another class properly
If you want to default initialize member, you need to use either braces {} or =:Non-static data members may be initialized in one of two ways: 2) Through a default member initializer, which is simply a...
View ArticleAnswer by Chris for C++ Using an enum from another class properly
An enum does not create a scope in C++. The type of the enum is FE::GL::BufferType but for using it you just type GL::Buffer vbo(GL::ARRAY);If you want a scoped enum (using C++11) use an enum class
View ArticleC++ Using an enum from another class properly
I'm currently implementing some code using OpenGL and I've created wrappers for various OpenGL classes. In particular, I have a buffer class that can represent either a vertex array buffer or an...
View Article