Archived

This topic is now archived and is closed to further replies.

Vertex programs

This topic is 5175 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

I want to start using vertex programs in OpenGL. I was wondering what the difference is between using GL_VERTEX_STATE_PROGRAM_NV and GL_VERTEX_PROGRAM_NV in glLoadProgram(......). And is there a way to query the maximum instructions, parameters, etc.. when using _NV extensions. ARB has GL_MAX_INSTRUCTIONS_ARB, etc... There doesn''t seem to be an execute program function for the ARB version so how do you execute a program using ARB extensions.

Share this post


Link to post
Share on other sites
quote:
Original post by MessageBox
Yeah, I''m after doing a bit more reading up and it seems ARB is the way to go.
What''s the equivalent of the glExectureProgramNV()
function with the ARB


There is none. The ARB version doesn''t let you manually invoke vertex program. Actually, the whole concept of vertex state programs was removed (because it was basically useless). Just as in the NV version, your vertex program will be automatically invoked by the hardware by a write on attribute register 0.

Share this post


Link to post
Share on other sites