FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

sio2WindowEnterLandscape2D

3 posters

Go down

sio2WindowEnterLandscape2D Empty sio2WindowEnterLandscape2D

Post  FlagellumDei 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

Back to top Go down

sio2WindowEnterLandscape2D Empty Re: sio2WindowEnterLandscape2D

Post  oioioi 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

Back to top Go down

sio2WindowEnterLandscape2D Empty Re: sio2WindowEnterLandscape2D

Post  sio2interactive 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...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

sio2WindowEnterLandscape2D Empty Re: sio2WindowEnterLandscape2D

Post  oioioi 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

Back to top Go down

sio2WindowEnterLandscape2D Empty Re: sio2WindowEnterLandscape2D

Post  sio2interactive 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
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

sio2WindowEnterLandscape2D Empty Re: sio2WindowEnterLandscape2D

Post  oioioi Fri May 22, 2009 4:03 am

oh

oioioi

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

Back to top Go down

sio2WindowEnterLandscape2D Empty Re: sio2WindowEnterLandscape2D

Post  FlagellumDei 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

Back to top Go down

sio2WindowEnterLandscape2D Empty Re: sio2WindowEnterLandscape2D

Post  sio2interactive Mon May 25, 2009 5:14 pm

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

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

http://sio2interactive.com

Back to top Go down

sio2WindowEnterLandscape2D Empty Re: sio2WindowEnterLandscape2D

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


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