Opengl noob
BlitzMax Forums/OpenGL Module/Opengl noob
| ||
I want to be able to render 3d opengl objects in a maxgui canvas. Is there anyway to do that? |
| ||
There's a OpenGL canvas example in the samples that come with Max. |
| ||
what!? man i must be oblivious to not have seen it. |
| ||
Doh.. Clutzman Strikes again!!! |
| ||
See CanvasGraphics() etc |
| ||
Am i missing something here? Mine doesn't work, tells me the Identifier TGadget wasnt found... Help anyone? |
| ||
This message sounds like you don't own MaxGUI or haven't compiled the mods after syncing...try rebuilding all mods. |
| ||
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. |