2D Overhead scrolling maze

BlitzMax Forums/BlitzMax Beginners Area/2D Overhead scrolling maze

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.

Did you see this function? This is exactly what I need it to do, just not sure where or how to implement it properly:

Rem
bbdoc: Set the rotation of the viewport
about: SetViewRotation allows you to rotate the entire viewport, so that all
drawing is rotated according to the @angle parameter.
endrem
Function SetViewRotation(angle:Float)

Global o_angle:Float

glMatrixMode GL_PROJECTION
glRotatef angle-o_angle,0,0,1
o_angle=angle

glMatrixMode GL_MODELVIEW
glLoadIdentity

End Function