Switching back from canvas to GraphicsMode?
BlitzMax Forums/BlitzMax Programming/Switching back from canvas to GraphicsMode?
| ||
Hey, I'm having an app that is using a DirectX GraphicMode and a Window with a canvas. Now I use SetGraphics(CanvasGraphics(MyCanvas)) to draw things to my window, but how can I jump back to the DirectX-GraphicMode? Is there a global graphic object I can use with SetGraphics, somethig like SetGraphics(MyGraphicObject)??? I tried to set a handle to it, but the following code doesn't work: Global MyGraphics:TGraphics = Graphics(640,480,0,60) |
| ||
What happens when it doesn't work? This seems OK |
| ||
okay, wenn I use the Graphics-Command with brakets it does work. Thanks! |