under opengl, when you open a screen with a lower resolution than the window resolution, the display occupies the same portion of the screen as a window.
Code:
InitEngine3D()
InitSprite()
InitKeyboard()
OpenScreen(800,600,32,"Exemple OpenScreen")
CreateTexture(0,256,256)
StartDrawing(TextureOutput(0))
Box(0,0,256,256,$ffffff)
DrawText(50,120," Press Esc to quit ",$ffffff,$0000ff)
StopDrawing()
CreateMaterial(0,TextureID(0))
CreateCube(0,1)
CreateEntity(0,MeshID(0),MaterialID(0))
CreateCamera(0,0,0,100,100):MoveCamera(0,0,0,-3):CameraLookAt(0,0,0,0)
CreateLight(0,$ffffff,0,10,0)
Repeat
ExamineKeyboard()
RotateEntity(0,0.1,0.2,0.3,#PB_Relative)
RenderWorld()
FlipBuffers()
Until KeyboardPushed(#PB_Key_Escape)