I made a post about this yesterday, but it is a fairly different question. Not sure if I should make a new question or just reply to the old one but here goes.
Basically I am setting up my vector array of structs as follows..
class Debugger : public Ogre::SimpleRenderable
{
struct DebugVertex
{
Ogre::Vector3 v;
unsigned int color;
};
typedef std::vector<DebugVertex> Buffer;
protected:
Buffer mLineBuffer;
The problem is occuring in the code for example...
mLineBuffer.reserve(128); reports it is not a member of Debugger::DebugVertex. This holds true with all vector operations such as reserve, empty, ptr, size, etc. They all exist but it is looking for them in the struct. How am I supposed to access these?