[wxlua-users] wxGLCanvas

2013-08-16 Thread Victor Bombi
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,

Re: [wxlua-users] wxGLCanvas

2013-08-16 Thread Victor Bombi
solved replacing render: function render() local dc = wx.wxPaintDC(canvas) canvas:SetCurrent(context) gl.ClearColor(0, 0, 0, 0) gl.Clear(gl.COLOR_BUFFER_BIT) gl.Begin('TRIANGLES') gl.Vertex( 0, 0.75, 0) gl.Vertex(-0.75, -0.75, 0) gl.Vertex( 0.75, -0.75, 0) gl.End()

Re: [wxlua-users] Writing equations

2013-08-16 Thread Milind Gupta
Hi John, For the equation I am interested in rendering the equation on screen not on evaluating it. Somewhat like a browser renders MathML or these math packages like Mathematica, Maxima or just the equation writer of Microsoft Word. Do you have any pointers for that? Thanks, Milind On