Archived

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

Wrapper Class for glVertex??() calls?

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

Does this sound like a reasonable idea? I want to support programmable vertex shaders in my application and be able to emulate them in CPU if an ATI or Nvidia card is not present. Here is my plan. Create a base class called glShader. Make functions which are copies of glTexture, glVertex, glNormal. then... Make one class BypassShader, simply maps all the calls to their OGL versions. Make one class CpuShader, and have it use ASM driven versions of the shader code. Make one class for ATIShader, and one for NvidiaShader hardware T&L support. Sound like a plan? Ranger

Share this post


Link to post
Share on other sites
Well, the nVidia drivers do software vertexprograms if it isn''t supported in hardware... Which sorta makes your idea completely useless ( if ATI also does this )...

Death of one is a tragedy, death of a million is just a statistic.

Share this post


Link to post
Share on other sites

if Nvidia does this emulation for us... how about ATI? (I use a Radeon 8500 <.<)

I guess if ATI doesn''t I still will need to make an emulator- and besides I would like the program to work on voodoo, etc.

Ranger

Share this post


Link to post
Share on other sites