I got it! :)
The textures have to be loaded after the graphics were initialized, which is after the first run of the Render Method. Also the graphics must be initialized once only.
Makes sense right?
The textures have to be loaded after the graphics were initialized, which is after the first run of the Render Method. Also the graphics must be initialized once only.
Field initialized_graphics:Int=False Method Render() If Not initialized_graphics Then TGlobal.GraphicsInit() EntityTexture cube,LoadTexture("path\to\texture.png") initialized_graphics=True End If Draw() Flip End Method
Makes sense right?