LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: elias4444 on March 25, 2005, 20:01:56

Title: Are GLU objects accelerated?
Post by: elias4444 on March 25, 2005, 20:01:56
Just curious... are the GLU objects (sphere, disk, etc.) accelerated via display lists, or as vertex buffer objects, or anything? I've been using them in several cases, but was wondering if I'm suffering for it or not.

Thanks.
Title: Are GLU objects accelerated?
Post by: BatKid on March 25, 2005, 21:07:19
Very good question, I am curious myself.  What I have been doing is putting the GLU objects in a display list myself, as follows:



           GL11.glNewList(GL_ENEMY, GL11.GL_COMPILE);
           sphere.setTextureFlag(true);
           sphere.draw(radius, 8,8);
           GL11.glEndList();



This will for sure put the objects in video memory.
Title: Are GLU objects accelerated?
Post by: elias4444 on March 25, 2005, 21:09:01
Yeah, I've been wondering if I needed to do the same thing or not.
Title: Are GLU objects accelerated?
Post by: tomb on March 25, 2005, 21:14:42
GLU is implemented in java and is part of the source that you can download. Looked at it for 2 secs and it seems it uses glVertex, glNormal etc. So it is dog slow :) Puting it in a display list is defenetly a good idee  :D