Home | All Classes | Grouped Classes | Index | Search
Top level display class. More...
Derived from:
none
Derived by:
none
Group: Display (Display 2D)
#include <ClanLib/display.h>
Attributes:
Returns the currently selected window.  | |
Returns the current width of the window.  | |
Returns the current height of the window.  | |
Returns true if window is currently running fullscreen.  | |
Returns true if window has focus.  | |
Returns the pixel buffer for the specified flipping buffer.  | |
Returns the amount of flipping buffers being used.  | |
Returns the current flipping buffer being used as the front buffer.  | |
Returns the current flipping buffer being used as the back buffer.  | |
Returns the current clipping rectangle used on the graphic context.  | |
Returns the current effective modelview.  | 
Operations:
Sets the currently selected window.  | |
Change window to running fullscreen mode.  | |
Change window to running windowed mode.  | |
Change window title.  | |
Set window position and size.  | |
Resize window.  | |
Changes the amount of surface buffers used in the flipping system. (2 = double buffer, 3 = triple buffer)  | |
Copy the specified rectangle area from back buffer to front buffer.  | |
Flip back buffer to front, making changes visible on screen.  | |
Flushes current rendering batch.  | |
Draw a pixel at (x, y) using the specified color.  | |
Draw a line from (x1, y1) to (x2, y2) using the specified color.  | |
Draw multiple lines using the specified color.  | |
Draw a rectangle using the specified color.  | |
Draw a gradient rectangle using the specified gradient.  | |
Draw a quad using the specified color.  | |
Draw a gradient quad using the specified gradient.  | |
Draw a triangle using the specified color.  | |
Draw a gradient filled triangle.  | |
Draw triangles with color array (optionally textured).  | |
Draw triangle array with color array (optionally textured).  | |
Clears the whole window using the specified color.  | |
Set the current clipping rectangle.  | |
Push current clipping rectangle to stack.  | |
Pop current clipping rectangle from the stack.  | |
Sets the model view matrix to a new matrix.  | |
Multiplies the passed matrix onto the model view matrix.  | |
Pushes current model view matrix onto the model view stack.  | |
Sets a translate offset matrix, ignoring any earlier modelview settings.  | |
Adds the translate offset.  | |
Push translation offset onto model view stack.  | |
Sets a rotation matrix, ignoring any earlier model view settings.  | |
Adds a rotation matrix to existing model view.  | |
Pushes a rotation matrix onto model view stack.  | |
Sets a scale matrix, ignoring any earlier model view settings.  | |
Adds a scale matrix to existing model view.  | |
Pushes a scale matrix onto model view stack.  | |
Pops last pushed model view matrix off the stack and makes it the active one.  | 
Signals:
Signal emitted when window is resized.  | |
Signal emitted when an area of the window is invalidated.  | |
Signal emitted when window lost focus.  | |
Signal emitted when window gain focus.  | |
Signal emitted when window is closed.  | 
Detailed description:
!group=Display/Display 2D! !header=display.h!The display class provides a static function interface to CL_DisplayWindow and other clanDisplay classes. It uses a selected display window (by default the first created window) to call the equalent functions in CL_DisplayWindow, CL_GraphicContext and such.
The entire point of this is to allow applications with only one window to not pass around a pointer to the display window.