Re: Newbie question

"Stephen J Baker" <[email protected]>
Newsgroups gmane.games.devel.opengl
Organization Fat City Network Services, San Diego, California
Message-ID <[email protected]>
Ben Ward wrote:

> Can glInterleavedArrays() be translated/rotated using functions like glRotatef()?
> I can't seem to get that to work, but when I made display lists using glVertex() glColor() and glTexCoord() it worked fine.

glInterleavedArrays doesn't draw anything - it only sets some data arrays up so that
glDrawArrays/glDrawElements can actually draw them.

The objects drawn by glDrawArrays/glDrawElements most certainly *ARE* affected by the current
transform - which can be specified with glRotatef.

> Also is there much of a speed difference between glDrawElements() and glCallList()?

It varies from implementation to implementation.  I would expect glDrawElements to be
generally faster.

-----------------------------------------------------------------------
The second law of Frisbee throwing states: "Never precede any maneuver
by a comment more predictive than "Watch this!"...it turns out that
this also applies to writing Fragment Shaders.
-----------------------------------------------------------------------
Steve Baker                      (817)619-2657 (Vox/Vox-Mail)
L3Com/Link Simulation & Training (817)619-2466 (Fax)
Work: [email protected]           http://www.link.com
Home: [email protected]       http://www.sjbaker.org

----- 
FAQ and OpenGL Resources at:
  http://www.geocities.com/SiliconValley/Hills/9956/OpenGL

-- 
Author: Stephen J Baker
  INET: [email protected]

Fat City Hosting, San Diego, California -- http://www.fatcity.com
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [email protected] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.