Sign in to follow this  
EvilNando

glm::vec4 to VBO

Recommended Posts

EvilNando    96
Im trying to use a vec4 type for my vertex data, currently nothing shows on screen so i assume my copy method is erroneous...

can anyone please verify this?

[code]#define VERTEX_SIZE sizeof(GLfloat) * 4 * 4
glBufferData(GL_ARRAY_BUFFER, VERTEX_SIZE, glm::value_ptr(vertex_data[0]), GL_DYNAMIC_DRAW);[/code]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this