Forum

ArrayElements emulation wrapper

Discuss programming topics that involve the OpenGL API.

Moderator: InsideQC Admins

ArrayElements emulation wrapper

Postby leileilol » Sun Nov 27, 2011 2:24 am

Could this be done?
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: ArrayElements emulation wrapper

Postby mh » Sun Nov 27, 2011 2:39 am

As in a wrapper for vertex arrays? Sure, Quake 3 has a simple enough one. The only real difficulty is when you get glDrawElements (GL_TRIANGLES, ... being used to concatenate multiple polygons (which is what most modern titles do) as you would end up with (numverts - 2) * 3 verts per polygon; if you're vertex-bound (which you're probably not) that would make things significantly worse. (Q3A does runtime strip finding in that case, which seems a mite hairy to me, although it obviously worked well enough back then.)

I don't see why you'd want to though as vertex arrays are standard since OpenGL 1.1 and will always work faster than immediate mode.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2289
Joined: Sat Jan 12, 2008 1:38 am

Re: ArrayElements emulation wrapper

Postby leileilol » Sun Nov 27, 2011 2:57 am

Some MiniGLs don't.....
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: ArrayElements emulation wrapper

Postby mh » Sun Nov 27, 2011 3:57 am

Should be only the original Voodoo 1 (and the mini GLs from 97 onwards should support them as Q2 used vertex arrays). Seems a lot of work for hardware that nobody really has any more.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2289
Joined: Sat Jan 12, 2008 1:38 am

Re: ArrayElements emulation wrapper

Postby leileilol » Sun Nov 27, 2011 10:56 pm

SGL MiniGL 1.0.x.x do not support it, and Rendition VeriteGL doesn't support it I think either


I did attempt to make one, but unfortunately all I ran into is opengl cheats like wallhacks/depthhacks which are irrelevant to my quest.
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am


Return to OpenGL Programming

Who is online

Users browsing this forum: No registered users and 1 guest