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,
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()
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