I have a data structure like this:
typedef struct vertex_ {
float x;
float y;
float z;
float s;
float t;
}vertex;
Then I add to a list called: boost::ptr_vector<vector> vertices;
Is there a way to use vertices to provide the parameters for glBufferData
?
typedef struct X_ { ... } X;
in C++.struct X { ... };
works just fine. \$\endgroup\$ – bcrist Jul 24 '14 at 4:47