sio2WindowEnterLandscape2D

View previous topic View next topic Go down

sio2WindowEnterLandscape2D

Post  FlagellumDei on Thu May 21, 2009 10:18 am

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?

FlagellumDei

Posts : 5
Join date : 2009-03-14

View user profile

Back to top Go down

Re: sio2WindowEnterLandscape2D

Post  oioioi on Thu May 21, 2009 10:39 am

glTranslatef(sio2->_SIO2window->scl->x, 0, 0) maybe

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

View user profile

Back to top Go down

Re: sio2WindowEnterLandscape2D

Post  sio2interactive on Thu May 21, 2009 4:26 pm

This not DirectX but OpenGL... but if you really want to go so simply rotate the modelview matrix and offset the viewport...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: sio2WindowEnterLandscape2D

Post  oioioi on Fri May 22, 2009 3:59 am

sio2interactive wrote:This not DirectX but OpenGL...
Is there any thing directX in this thread? My code is openGL

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

View user profile

Back to top Go down

Re: sio2WindowEnterLandscape2D

Post  sio2interactive on Fri May 22, 2009 4:02 am

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 Wink

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: sio2WindowEnterLandscape2D

Post  oioioi on Fri May 22, 2009 4:03 am

oh

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

View user profile

Back to top Go down

Re: sio2WindowEnterLandscape2D

Post  FlagellumDei on Mon May 25, 2009 9:48 am

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

View user profile

Back to top Go down

Re: sio2WindowEnterLandscape2D

Post  sio2interactive on Mon May 25, 2009 5:14 pm

If I was you I would follow the OpenGL standard...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: sio2WindowEnterLandscape2D

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum