wxGlCanvas inner workings Topic is solved

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
theWolf
Knows some wx things
Knows some wx things
Posts: 43
Joined: Wed May 18, 2005 12:27 am

wxGlCanvas inner workings

Post by theWolf »

Hello,

Is there a doc out there that explains how display lists are implimented in wxGLCanvas? :?

ie.
What is the role of:

m_gllist
glGenLists( )

when to use

glDeleteLists()

Can we re-generate a list and use the same index?


Thanks
______________
WxWidgets 2.6.1, .net 2003, Windows2000
Sometimes there's a lot of gravel around the gems. WxWidgets is a gem!
ssigala
Earned some good credits
Earned some good credits
Posts: 109
Joined: Fri Sep 03, 2004 9:30 am
Location: Brescia, Italy

Re: wxGlCanvas inner workings

Post by ssigala »

theWolf wrote:Is there a doc out there that explains how display lists are implimented in wxGLCanvas? :?
wxGLCanvas() does nothing magic. No standard OpenGL command is overloaded, so the same OpenGL rules apply.
Can we re-generate a list and use the same index?
This is OpenGL specific, not wx specific.

http://www.lighthouse3d.com/opengl/displaylists/
http://www.opengl.org/resources/faq/tec ... aylist.htm
Sandro Sigala - Kynosoft, Brescia
theWolf
Knows some wx things
Knows some wx things
Posts: 43
Joined: Wed May 18, 2005 12:27 am

The code is on your hard drive

Post by theWolf »

ssigala was kind.

I could have been reminded that:

"The source code is on your hard drive."

I printed out glcanvas.h and glcanvas.cpp

I found that the mysterious m_gllist was a member of an example class and not wxGLCanvas.

Another great thing about WxWidgets - we have the source code! :D
______________
WxWidgets 2.6.1, .net 2003, Windows2000
Sometimes there's a lot of gravel around the gems. WxWidgets is a gem!
Post Reply