lua-users home
lua-l archive

RE: About LuaGL function call

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


  Hi,

  PIXELFORMATDESCRIPTOR is not used by LuaGL. You need it to initialiaze the OpenGL in Windows, which is usually done at the GUI toolkit you are using to create the Window where you are going to draw.

  For instance, in IUP this is done by the IupGLCanvas control.

Best Regards,

Antonio Scuri

From: lua-bounces@bazar2.conectiva.com.br [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of azrael goblin
Sent: terça-feira, 14 de abril de 2009 13:24
To: lua@bazar2.conectiva.com.br
Subject: About LuaGL function call

Hi everybody,

I wanted to fill a PIXELFORMATDESCRIPTOR struct in order to call a LuaGl function , i have to calculate this struct's bytes.I can use sizeof() in C,but i cant find a function to complete the same task in pure Lua.Does anybody know how to solution it ?
Thanks your help.


AltStyle によって変換されたページ (->オリジナル) /