Original Post
I have two questions reguarding my DirectX engine. 1. In my main engine class, I have a lot of variables. The user does not need to see all of them. Whether the variables are private, public, or protected, the user of the class can see all of them in the created instance of the class. What is the best way to hide variables in a class from the user (if any)? 2. When I create an array of, for example, vertex buffers, I do so like this: LPDIRECT3DVERTEXBUFFER9* VertexBuffer; VertexBuffer = new LPDIRECT3DVERTEXBUFFER9[size]; This requires having to know how many vertexbuffers I am going to need. Is there a way that I can do this without having to know the size, so the user can just create as many vertexbuffers as he wants? Any help is appreciated, -Dev578