Opengl noob

BlitzMax Forums/OpenGL Module/Opengl noob

Leon Drake(Posted 2006) [#1]
I want to be able to render 3d opengl objects in a maxgui canvas. Is there anyway to do that?


Oddball(Posted 2006) [#2]
There's a OpenGL canvas example in the samples that come with Max.


Leon Drake(Posted 2006) [#3]
what!? man i must be oblivious to not have seen it.


Leon Drake(Posted 2006) [#4]
Doh.. Clutzman Strikes again!!!


ImaginaryHuman(Posted 2006) [#5]
See CanvasGraphics() etc


ICECAP(Posted 2007) [#6]
Am i missing something here? Mine doesn't work, tells me the Identifier TGadget wasnt found...

Help anyone?


Henry75(Posted 2007) [#7]
This message sounds like you don't own MaxGUI or haven't compiled the mods after syncing...try rebuilding all mods.


ImaginaryHuman(Posted 2007) [#8]
You first open a window, then you open a canvas attached to the window, then you use canvasgraphics to get an opengl context from the canvas, then you SetGraphics() with the context. From there all you need do is draw and flip. You should also set your edges of the canvas object to align to the edges of the window.