Crazy Canvas-Module...
BlitzMax Forums/BlitzMax Programming/Crazy Canvas-Module...
| ||
Simple Q.: what modules should i import, so that my window with canvas work??? If i comment out GL/DX-module, my application CRASH If i do not comment out - my application do not crash - but here is NO canvas-object and no error-message! what should i do to run this code correct Strict Framework BRL.Blitz Import BRL.Max2D Import BRL.GLGraphics Import BRL.DXGraphics Import BRL.Win32MaxGUI Global window : TGadget = CreateWindow ("Window", 0, 0, 800, 600, 0, WINDOW_TITLEBAR|WINDOW_RESIZABLE|WINDOW_MENU) Global canvas : TGadget = CreateCanvas (10,10,400,300,window) Global canvas_graphics : TGraphics = CanvasGraphics (canvas) SetGraphics canvas_graphics Repeat WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE Exit End Select Forever |
| ||
brl.glmax2d or brl.d3d7max2d |
| ||
thx |