hi all
how can i get height and width of screen resolution ?
thanks
Nevarim
get width and height of screen
- nevarim
- Gnoll
- Posts: 675
- Joined: Mon Jul 05, 2010 6:16 pm
- Location: Pavia Italy
- x 4
- Contact:
get width and height of screen
i'm a noob until proven otherwise
used in my project and thanks to everyone
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
used in my project and thanks to everyone
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
- alexdbkim
- Greenskin
- Posts: 130
- Joined: Sat Oct 18, 2008 7:50 am
- Location: Sydney, Australia / Seoul, Korea
- Contact:
Re: get width and height of screen
Hi Nevarim,nevarim wrote:hi all
how can i get height and width of screen resolution ?
thanks
Nevarim
your question is little bit vague. =) Are you want to know the screen resolution of your monitor? or your application? If it was your application then I guess you are referring to the viewport of your application.
http://www.ogre3d.org/docs/api/html/cla ... wport.html
There are a number of useful methods in the class allow you to get the viewport size values.
Regards,
Alex Kim
Alexander Dong Back Kim - ê¹€ë
-
- Halfling
- Posts: 98
- Joined: Wed Jun 16, 2010 11:44 pm
- Location: Freiburg, Germany
- Contact:
Re: get width and height of screen
The vertical resolution of your application window is returned by the function getActualHeight in the Ogre::Viewport class.
The horizontal resolution of your application window is returned by the function getActualWidth in the Ogre::Viewport class.
The horizontal resolution of your application window is returned by the function getActualWidth in the Ogre::Viewport class.
- nevarim
- Gnoll
- Posts: 675
- Joined: Mon Jul 05, 2010 6:16 pm
- Location: Pavia Italy
- x 4
- Contact:
Re: get width and height of screen
is this thanks
i'm a noob until proven otherwise
used in my project and thanks to everyone
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
used in my project and thanks to everyone
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
-
- Bronze Sponsor
- Posts: 53
- Joined: Wed Mar 25, 2015 10:01 pm
Re: get width and height of screen
I find that this doesnt work when using 1280x1024.
The width is correct but for some bizarre reason the height is returned as 993..... anyone else experiencing this?
The width is correct but for some bizarre reason the height is returned as 993..... anyone else experiencing this?