sio2WindowEnterLandscape2D
3 posters
sio2WindowEnterLandscape2D
The sio2WindowEnterLandscape2D() sets the viewport with the 0,0 at the bottom-left corner of the screen.
How to setup a 2D landscape mode with the 0,0 at the top-left corner of the screen?
How to setup a 2D landscape mode with the 0,0 at the top-left corner of the screen?
FlagellumDei- Posts : 5
Join date : 2009-03-14
Re: sio2WindowEnterLandscape2D
glTranslatef(sio2->_SIO2window->scl->x, 0, 0) maybe
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: sio2WindowEnterLandscape2D
This not DirectX but OpenGL... but if you really want to go so simply rotate the modelview matrix and offset the viewport...
Re: sio2WindowEnterLandscape2D
Is there any thing directX in this thread? My code is openGLsio2interactive wrote:This not DirectX but OpenGL...
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: sio2WindowEnterLandscape2D
How to setup a 2D landscape mode with the 0,0 at the top-left corner of the screen?
>> Sounds to me like a M$ DirectX user, that for him top left is 0,0
>> Sounds to me like a M$ DirectX user, that for him top left is 0,0
Re: sio2WindowEnterLandscape2D
I'm not a DirectX user, it's just more convenient to draw text (or any 2D graphics) with 0,0 at the top-left.
FlagellumDei- Posts : 5
Join date : 2009-03-14
Permissions in this forum:
You cannot reply to topics in this forum
|
|