Hello,
this is the sample that comes with luagl for using it with wxlua.
From the docs it seems that should be called:
wx.wxGLCanvas(frame, wx.wxID_ANY, {},wx.wxDefaultPosition, wx.wxDefaultSize,
wx.wxEXPAND)
instead of:
wx.wxGLCanvas(frame, wx.wxID_ANY,wx.wxDefaultPosition, wx.wxDefaultSize,
()
canvas:SwapBuffers()
dc:delete()
end
- Original Message -
From: Victor Bombi son...@telefonica.net
To: wxlua-users@lists.sourceforge.net
Sent: Friday, August 16, 2013 3:29 PM
Subject: [wxlua-users] wxGLCanvas
Hello,
this is the sample that comes with luagl for using it with wxlua.
From the docs
Hello, thanks for the feedback. I discovered something as part of going
through the example, notably that I was forgetting to setup the viewport in
GL before trying to display. I took the following lines from the cube demo
and tried to use them:
const wxSize ClientSize = GetClientSize();
Hmmm...
I've tried both explicitly sending the initial size in any of the following
ways:
1) widget.gl = wx.wxGLCanvas(widgets.test, wx.wxID_ANY,
wx.wxDefaultPosition, wx.wxSize(200, 200), wx.wxFULL_REPAINT_ON_RESIZE)
2) widget.gl = wx.wxGLCanvas(widgets.test, wx.wxID_ANY,
wx.wxDefaultPosition,
Hello guys, I'm sorry if this has been asked before, but I'm having a heck
of a time, probably putting 16 hours of trying on this, and Google and the
archive have been no help so far.
I'm using wxLua on OSX10.5 and attempting to get a Hello world type
program working on wxGLCanvas().
Basic