Best practices with Vertices in Open GL
- by Darestium
What is the best practice in regards to storing vertex data in Open GL? I.e:
struct VertexColored {
public:
GLfloat position[];
GLfloat normal[];
byte colours[];
}
class Terrian {
private:
GLuint vbo_vertices;
GLuint vbo_normals;
GLuint vbo_colors;
GLuint ibo_elements;
…