It is currently Sun Oct 25, 2020 3:23 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Ogre3D - OpenGL - OpenScreen
PostPosted: Wed Oct 14, 2020 6:48 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Jul 09, 2015 9:07 am
Posts: 117
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)


Top
 Profile  
Reply with quote  
 Post subject: Re: Ogre3D - OpenGL - OpenScreen
PostPosted: Sat Oct 17, 2020 10:02 am 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2011 10:06 am
Posts: 870
Location: Denmark
Confirmed.
Edit: Just tried it on 5.46.
Amazing that none of us discover this issue before now. :-D

_________________
“Tell me and I forget. Teach me and I remember. Involve me and I learn.”
— Benjamin Franklin
Current configurations: Windows 10, Intel 6800K, GeForce Gtx 1060, 32 gb ram.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye