The Nebula Device 3: CoreGraphics::DisplayMode Class Reference

The Nebula Device 3

CoreGraphics::DisplayMode Class Reference

#include <displaymode.h>


Detailed Description

Describe a fullscreen display mode or window dimensions.

(C) 2006 Radon Labs GmbH

Public Member Functions

 DisplayMode ()
 default constructor
 DisplayMode (uint x, uint y, uint w, uint h)
 windowed mode constructor
 DisplayMode (uint w, uint h, PixelFormat::Code p)
 fullscreen constructor
 DisplayMode (uint x, uint y, uint w, uint h, PixelFormat::Code p)
 generic constructor
bool operator== (const DisplayMode &rhs) const
 equality operator
bool operator!= (const DisplayMode &rhs) const
 inequality operator
void SetXPos (uint x)
 set x position
uint GetXPos () const
 get x position
void SetYPos (uint y)
 set y position
uint GetYPos () const
 get y position
void SetWidth (uint w)
 set width
uint GetWidth () const
 get width
void SetHeight (uint h)
 set height
uint GetHeight () const
 get height
void SetPixelFormat (PixelFormat::Code p)
 set pixel format
PixelFormat::Code GetPixelFormat () const
 get pixel format
float GetAspectRatio () const
 get aspect ratio, this is simply width / height

Constructor & Destructor Documentation

CoreGraphics::DisplayMode::DisplayMode ( uint  x,
uint  y,
uint  w,
uint  h 
) [inline]

windowed mode constructor

This constructor is suitable for windowed modes.

CoreGraphics::DisplayMode::DisplayMode ( uint  w,
uint  h,
PixelFormat::Code  p 
) [inline]

fullscreen constructor

This constructor is suitable for fullscreen modes.