fork(1) download
  1. void Mesh::Draw()
  2. {
  3. glPushMatrix();
  4. glEnableClientState(GL_NORMAL_ARRAY);
  5. glEnableClientState(GL_TEXTURE_COORD_ARRAY);
  6. glEnableClientState(GL_COLOR_ARRAY);
  7. glEnableClientState(GL_VERTEX_ARRAY);
  8.  
  9.  
  10. glNormalPointer(GL_FLOAT, 0, vArray->normal);//glNormalPointer(GL_FLOAT,0,normalArray);
  11. glColorPointer(3, GL_FLOAT, 0, vArray->colour);//glColorPointer(3, GL_FLOAT, 0, colourArray);
  12. glTexCoordPointer(2, GL_FLOAT, 0, vArray->uv);//glTexCoordPointer(2,GL_FLOAT,0,uvArray);
  13. glVertexPointer(3,GL_FLOAT,0,vArray->pos);//glVertexPointer(3,GL_FLOAT,0,vertexArray);
  14.  
  15. glActiveTexture(GL_TEXTURE0);
  16. glBindTexture(GL_TEXTURE_2D, m_Texture[0]);
  17. glDrawArrays(GL_TRIANGLES,0,numVerts);
  18.  
  19. glDisableClientState(GL_NORMAL_ARRAY);
  20. glDisableClientState(GL_TEXTURE_COORD_ARRAY);
  21. glDisableClientState(GL_COLOR_ARRAY);
  22. glDisableClientState(GL_VERTEX_ARRAY);
  23. glPopMatrix();
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:6: error: 'Mesh' has not been declared
 void Mesh::Draw()
      ^
prog.cpp: In function 'void Draw()':
prog.cpp:3:15: error: 'glPushMatrix' was not declared in this scope
  glPushMatrix();
               ^
prog.cpp:4:23: error: 'GL_NORMAL_ARRAY' was not declared in this scope
   glEnableClientState(GL_NORMAL_ARRAY);
                       ^
prog.cpp:4:38: error: 'glEnableClientState' was not declared in this scope
   glEnableClientState(GL_NORMAL_ARRAY);
                                      ^
prog.cpp:5:23: error: 'GL_TEXTURE_COORD_ARRAY' was not declared in this scope
   glEnableClientState(GL_TEXTURE_COORD_ARRAY);
                       ^
prog.cpp:6:23: error: 'GL_COLOR_ARRAY' was not declared in this scope
   glEnableClientState(GL_COLOR_ARRAY);
                       ^
prog.cpp:7:23: error: 'GL_VERTEX_ARRAY' was not declared in this scope
   glEnableClientState(GL_VERTEX_ARRAY);
                       ^
prog.cpp:10:19: error: 'GL_FLOAT' was not declared in this scope
   glNormalPointer(GL_FLOAT, 0, vArray->normal);
                   ^
prog.cpp:10:32: error: 'vArray' was not declared in this scope
   glNormalPointer(GL_FLOAT, 0, vArray->normal);
                                ^
prog.cpp:10:46: error: 'glNormalPointer' was not declared in this scope
   glNormalPointer(GL_FLOAT, 0, vArray->normal);
                                              ^
prog.cpp:11:48: error: 'glColorPointer' was not declared in this scope
   glColorPointer(3, GL_FLOAT, 0, vArray->colour);
                                                ^
prog.cpp:12:47: error: 'glTexCoordPointer' was not declared in this scope
   glTexCoordPointer(2, GL_FLOAT, 0, vArray->uv);
                                               ^
prog.cpp:13:43: error: 'glVertexPointer' was not declared in this scope
   glVertexPointer(3,GL_FLOAT,0,vArray->pos);
                                           ^
prog.cpp:15:19: error: 'GL_TEXTURE0' was not declared in this scope
   glActiveTexture(GL_TEXTURE0);
                   ^
prog.cpp:15:30: error: 'glActiveTexture' was not declared in this scope
   glActiveTexture(GL_TEXTURE0);
                              ^
prog.cpp:16:17: error: 'GL_TEXTURE_2D' was not declared in this scope
   glBindTexture(GL_TEXTURE_2D, m_Texture[0]);
                 ^
prog.cpp:16:32: error: 'm_Texture' was not declared in this scope
   glBindTexture(GL_TEXTURE_2D, m_Texture[0]);
                                ^
prog.cpp:16:44: error: 'glBindTexture' was not declared in this scope
   glBindTexture(GL_TEXTURE_2D, m_Texture[0]);
                                            ^
prog.cpp:17:16: error: 'GL_TRIANGLES' was not declared in this scope
   glDrawArrays(GL_TRIANGLES,0,numVerts);
                ^
prog.cpp:17:31: error: 'numVerts' was not declared in this scope
   glDrawArrays(GL_TRIANGLES,0,numVerts);
                               ^
prog.cpp:17:39: error: 'glDrawArrays' was not declared in this scope
   glDrawArrays(GL_TRIANGLES,0,numVerts);
                                       ^
prog.cpp:19:39: error: 'glDisableClientState' was not declared in this scope
   glDisableClientState(GL_NORMAL_ARRAY);
                                       ^
prog.cpp:23:14: error: 'glPopMatrix' was not declared in this scope
  glPopMatrix();
              ^
stdout
Standard output is empty