Please reply to this
hi,
i am by allot of hard work come at a point that now i draw a point without Begin/End and Vertex2f![]()
but i have some Question regarding to the following code:
I Declared
Code :GLuint Vertex; GLfloat TriVert[] = {0.0f,0.5f, 0.0f,0.0f, -0.5f,0.0f};
What i call for Display
Thsee are inside Push/Pop Matrix and MatrixMode with LoadIdentity
Code :glVertexPointer(2,GL_FLOAT,0,0); glBindBufferARB(GL_ARRAY_BUFFER_ARB,Vertex); glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_READ_WRITE_ARB); glEnableClientState(GL_VERTEX_ARRAY); glColor3f(1.0f,1.0f,1.0f); glDrawElements(GL_POINTS,1,GL_UNSIGNED_SHORT,&TriVert[0]); glDrawElements(GL_POINTS,1,GL_UNSIGNED_SHORT,&TriVert[2]); glDrawElements(GL_POINTS,1,GL_UNSIGNED_SHORT,&TriVert[4]); glDisableClientState(GL_VERTEX_ARRAY);
Here a GLEW help Me
My Question areCode :if(GLEW_ARB_vertex_buffer_object) { printf("Let's try some VBO and job on the almost AGP/VGA i915\n"); glGenBuffersARB(1,&Vertex); glBindBufferARB(GL_ARRAY_BUFFER_ARB,Vertex); glBufferDataARB(GL_ARRAY_BUFFER_ARB,sizeof(TriVert),0,GL_STREAM_DRAW_ARB); glBufferSubDataARB(GL_ARRAY_BUFFER_ARB, 0, sizeof(TriVert), TriVert); glGetBufferParameterivARB(GL_ARRAY_BUFFER_ARB, GL_BUFFER_SIZE_ARB, &bufferSize); fprintf(stdout,"Vertex size %i bytes\n",bufferSize); }
Q1.Is The job i do is in My VGA/AGP(anything that is) Memory
![]()
Q2.As for getting result i try POINTS instead of TRIANGLES but i got only one point in my screen at (0.0,0.5)
while there are 3 DrawElement Functions are Called
so what ido for 2 more so there is a triangle job
![]()
Please reply this and
Thanks for just reading my Topic post and also thanks for just thinking on My Questions
Thanks in advance



vivek 