Link Error
crjjrc
crjjrc at gmail.com
Mon Apr 7 05:51:19 PDT 2008
On Apr 7, 7:42 am, ABE Hiroshi <hab... at gmail.com> wrote:
> The problem regarding wxGLCanvas is still remained on 2.8, which is
> that LIGHTING doesn't work. All the objects are in dark. And the
> transform/rotation of OpenGL models doesn't work. All my code is
> worked on 2.6. I will find the point of the problem. Maybe something
> is missing, in my app. or wxWidgets.
Are you sure that you glEnable(GL_LIGHTING) and glEnable(GL_LIGHT0)
when you have a valid wxGLContext? SetCurrent() doesn't work unless
the window is shown, i.e., it doesn't work in a canvas' constructor.
- Chris
More information about the wx-users
mailing list