Jump to content
  • Advertisement
Sign in to follow this  
Pooya65

OpenGL vertex deceleration in OpenGL

This topic is 2576 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

can i create vertex deceleration in OpenGL (OGL 2 or 3)( like as d3dx) instead calling vertex attrib pointers in every draw call ?

Share this post


Link to post
Share on other sites
Advertisement

can i create vertex deceleration in OpenGL (OGL 2 or 3)( like as d3dx) instead calling vertex attrib pointers in every draw call ?


vertex "deceleration" is simple. Make sure you use unaligned and bloated vertex data in cache unfriendly order.

A "not as far as I know" to the question you probably meant to ask about vertex format declarations.

Share this post


Link to post
Share on other sites
Vertex Array Objects perform a similar function to vertex declarations (D3D10/D3D11) and Flexible Vertex Formats in D3D9.

It means when it comes to drawing, you bind a Vertex Array Object and your buffers and just call DrawElements.

Share this post


Link to post
Share on other sites
http://www.opengl.org/wiki/Vertex_Arrays
http://www.opengl.org/wiki/Vertex_Formats
http://www.opengl.org/wiki/Vertex_Array_Object
and so on

Example with VAO
http://www.opengl.org/wiki/Tutorial1:_Rendering_shapes_with_glDrawRangeElements,_VAO,_VBO,_shaders_%28C%2B%2B_/_freeGLUT%29

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!