creating graphics to handle different resolutions.

BlitzMax Forums/BlitzMax Beginners Area/creating graphics to handle different resolutions.

You could try something like:

Graphics 640,480,0

Local width = 1024
Local height = 768

glMatrixMode GL_PROJECTION
glLoadIdentity
glOrtho 0,width,height,0,-1,1
		
glMatrixMode GL_MODELVIEW
glLoadIdentity
SetViewport(0,0,width,height)


Use Max2D commands as though it was a 1024x768 screen and it should scale it up or down to the actual screen size. I don't know how robust this method is though, and the results might look rubbish. Fonts, especially.