MiniB3D and wxMax

BlitzMax Modules Forums/MiniB3D/MiniB3D and wxMax

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.

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?