<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_Display - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>Class CL_Display</h1> <p> Top level display class. <a href="#description">More...</a></p> <p>Derived from: <i>none</i> <br> Derived by: <i>none</i> <br>Group: Display (Display 2D)</p> <p> #include <ClanLib/display.h> <p> <table border=0 width=100%> </table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_Display__get_current_window.html">get_current_window</a></p></td><td valign=top><p> Returns the currently selected window.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__get_width.html">get_width</a></p></td><td valign=top><p> Returns the current width of the window.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__get_height.html">get_height</a></p></td><td valign=top><p> Returns the current height of the window.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__is_fullscreen.html">is_fullscreen</a></p></td><td valign=top><p> Returns true if window is currently running fullscreen.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__has_focus.html">has_focus</a></p></td><td valign=top><p> Returns true if window has focus.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__get_buffer.html">get_buffer</a></p></td><td valign=top><p> Returns the pixel buffer for the specified flipping buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__get_buffer_count.html">get_buffer_count</a></p></td><td valign=top><p> Returns the amount of flipping buffers being used.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__get_front_buffer.html">get_front_buffer</a></p></td><td valign=top><p> Returns the current flipping buffer being used as the front buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__get_back_buffer.html">get_back_buffer</a></p></td><td valign=top><p> Returns the current flipping buffer being used as the back buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__get_cliprect.html">get_cliprect</a></p></td><td valign=top><p> Returns the current clipping rectangle used on the graphic context.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__get_modelview.html">get_modelview</a></p></td><td valign=top><p> Returns the current effective modelview.</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_Display__set_current_window.html">set_current_window</a></p></td><td valign=top><p> Sets the currently selected window.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__set_fullscreen.html">set_fullscreen</a></p></td><td valign=top><p> Change window to running fullscreen mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__set_windowed.html">set_windowed</a></p></td><td valign=top><p> Change window to running windowed mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__set_title.html">set_title</a></p></td><td valign=top><p> Change window title.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__set_position.html">set_position</a></p></td><td valign=top><p> Set window position and size.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__set_size.html">set_size</a></p></td><td valign=top><p> Resize window.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__set_buffer_count.html">set_buffer_count</a></p></td><td valign=top><p> Changes the amount of surface buffers used in the flipping system. (2 = double buffer, 3 = triple buffer)</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__update.html">update</a></p></td><td valign=top><p> Copy the specified rectangle area from back buffer to front buffer.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__flip.html">flip</a></p></td><td valign=top><p> Flip back buffer to front, making changes visible on screen.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__flush.html">flush</a></p></td><td valign=top><p> Flushes current rendering batch.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__draw_pixel.html">draw_pixel</a></p></td><td valign=top><p> Draw a pixel at (x, y) using the specified color.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__draw_line.html">draw_line</a></p></td><td valign=top><p> Draw a line from (x1, y1) to (x2, y2) using the specified color.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__draw_lines.html">draw_lines</a></p></td><td valign=top><p> Draw multiple lines using the specified color.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__draw_rect.html">draw_rect</a></p></td><td valign=top><p> Draw a rectangle using the specified color.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__fill_rect.html">fill_rect</a></p></td><td valign=top><p> Draw a gradient rectangle using the specified gradient.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__draw_quad.html">draw_quad</a></p></td><td valign=top><p> Draw a quad using the specified color.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__fill_quad.html">fill_quad</a></p></td><td valign=top><p> Draw a gradient quad using the specified gradient.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__draw_triangle.html">draw_triangle</a></p></td><td valign=top><p> Draw a triangle using the specified color.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__fill_triangle.html">fill_triangle</a></p></td><td valign=top><p> Draw a gradient filled triangle.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__draw_triangles.html">draw_triangles</a></p></td><td valign=top><p> Draw triangles with color array (optionally textured).</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__draw_trianglesd.html">draw_trianglesd</a></p></td><td valign=top><p> Draw triangle array with color array (optionally textured).</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__clear.html">clear</a></p></td><td valign=top><p> Clears the whole window using the specified color.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__set_cliprect.html">set_cliprect</a></p></td><td valign=top><p> Set the current clipping rectangle.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__push_cliprect.html">push_cliprect</a></p></td><td valign=top><p> Push current clipping rectangle to stack.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__pop_cliprect.html">pop_cliprect</a></p></td><td valign=top><p> Pop current clipping rectangle from the stack.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__set_modelview.html">set_modelview</a></p></td><td valign=top><p> Sets the model view matrix to a new matrix.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__add_modelview.html">add_modelview</a></p></td><td valign=top><p> Multiplies the passed matrix onto the model view matrix.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__push_modelview.html">push_modelview</a></p></td><td valign=top><p> Pushes current model view matrix onto the model view stack.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__set_translate.html">set_translate</a></p></td><td valign=top><p> Sets a translate offset matrix, ignoring any earlier modelview settings.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__add_translate.html">add_translate</a></p></td><td valign=top><p> Adds the translate offset.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__push_translate.html">push_translate</a></p></td><td valign=top><p> Push translation offset onto model view stack.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__set_rotate.html">set_rotate</a></p></td><td valign=top><p> Sets a rotation matrix, ignoring any earlier model view settings.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__add_rotate.html">add_rotate</a></p></td><td valign=top><p> Adds a rotation matrix to existing model view.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__push_rotate.html">push_rotate</a></p></td><td valign=top><p> Pushes a rotation matrix onto model view stack.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__set_scale.html">set_scale</a></p></td><td valign=top><p> Sets a scale matrix, ignoring any earlier model view settings.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__add_scale.html">add_scale</a></p></td><td valign=top><p> Adds a scale matrix to existing model view.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__push_scale.html">push_scale</a></p></td><td valign=top><p> Pushes a scale matrix onto model view stack.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__pop_modelview.html">pop_modelview</a></p></td><td valign=top><p> Pops last pushed model view matrix off the stack and makes it the active one.</p></td></tr></table> <p><b>Signals:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_Display__sig_resize.html">sig_resize</a></p></td><td valign=top><p> Signal emitted when window is resized.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__sig_paint.html">sig_paint</a></p></td><td valign=top><p> Signal emitted when an area of the window is invalidated.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__sig_lost_focus.html">sig_lost_focus</a></p></td><td valign=top><p> Signal emitted when window lost focus.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__sig_got_focus.html">sig_got_focus</a></p></td><td valign=top><p> Signal emitted when window gain focus.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Display__sig_window_close.html">sig_window_close</a></p></td><td valign=top><p> Signal emitted when window is closed.</p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=Display/Display 2D! !header=display.h! <p>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.</p> <p>The entire point of this is to allow applications with only one window to not pass around a pointer to the display window.</p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->