Difference between revisions of "Talk:Tutorial1: Rendering shapes with glDrawRangeElements, VAO, VBO, shaders (C++ / freeGLUT)"

From OpenGL Wiki
Jump to: navigation, search
(Created page with "Great tutorial! I ran the code, went smooth except for this part: //Second VAO setup ******************* //This is for the triangle . . . glVertexAttribP...")
 
Line 4: Line 4:
  
 
//Second VAO setup *******************
 
//Second VAO setup *******************
//This is for the triangle
+
.
+
        //This is for the triangle
        .
 
        .
 
 
 
 
 
 
glVertexAttribPointer(2, 2, GL_FLOAT, GL_FALSE, sizeof(TVertex_VNT), BUFFER_OFFSET(sizeof(float)*6));
 
glVertexAttribPointer(2, 2, GL_FLOAT, GL_FALSE, sizeof(TVertex_VNT), BUFFER_OFFSET(sizeof(float)*6));
  
 
There is no "InTexCoord0" input to the vertex shader Shader2.vert? Can you confirm this please?
 
There is no "InTexCoord0" input to the vertex shader Shader2.vert? Can you confirm this please?

Revision as of 13:49, 12 December 2011

Great tutorial!

I ran the code, went smooth except for this part:

//Second VAO setup *******************

       //This is for the triangle

glVertexAttribPointer(2, 2, GL_FLOAT, GL_FALSE, sizeof(TVertex_VNT), BUFFER_OFFSET(sizeof(float)*6));

There is no "InTexCoord0" input to the vertex shader Shader2.vert? Can you confirm this please?