Link Error

ABE Hiroshi habe36 at gmail.com
Tue Apr 8 19:04:21 PDT 2008


Dear wxWidgets Developers,

Eventually, I found my fault in my app.

I generated  glLists in several routines. The glList is created by  
glNewList - glEndList,  actually they are OpenGL objects such as, x-y- 
z axis and atoms.
I found that SetCurrent() must be called in the routines which  
generate glList.
MacOS X version and 2.6.x version seemed to be very easy for the  
context.

On 2008/04/07, at 21:51, crjjrc wrote:
>
>
> 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.


Regards,

ABE Hiroshi
  from Tokorozawa, JAPAN



More information about the wx-users mailing list