Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 554fa56029a60daf7aab25253fdab3d8 > files > 64

clanlib0.6-docs-0.6.5-28mdv2008.1.x86_64.rpm


<html>
<head><title>ClanLib Reference: CL_DisplayCard</title></head>
<body text=black link=blue vlink=#800080 bgcolor=white topmargin=0 leftmargin=0>
<table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td><img border=0 src="../images/eyeheader-main-purple-a.gif" alt="ClanSoft logo" width=525 height=96></td></tr>
<tr bgcolor=#dadada><td align=left valign=top><img border=0 src="../images/eyeheader-main-purple-b.gif" alt="ClanSoft logo" width=190 height=14></td><td align=right valign=top><img border=0 src="../images/clanlib_light.gif" width=42 height=14></td></tr></table>
<table align=center border=0 cellspacing=10> <tr>
<td><a href="entire_class_index.html">Entire Class Index</a></td>
<td><a href="class_index.html">Main Class Index</a></td>
<td><a href="cross_index.html">Cross Index</a></td>
<td><a href="global_index.html">Global Index</a></td>
</table><h1 align=center>Class CL_DisplayCard</h1><p>
<b>  The display card class.</b><br>
Contained in: <a href="global_index.html">global</a><br>
Derived from:
<i>none</i>
<br>
Derived by:
<i>none</i>
<br>Group: Display (Display 2D)
<p>
#include &lt;ClanLib/display.h&gt;
<p>
<hr noshade>
<table border=0>
<tr><td colspan=3><h3>public function member index:</h3></td>
<tr valign=top><td align=left><h3>Construction:</h3></td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="CL_DisplayCard.html#2524"><tt><font color=blue><b>~CL_DisplayCard</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=left><h3>Operations (Display Functions):</h3></td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2525"><tt><font color=blue><b>flip_display</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>sync</font></tt>=false)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2526"><tt><font color=blue><b>put_display</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>class</font></tt> <tt><font color=blue>CL_Rect</font></tt>& <tt><font color=blue>rect</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2527"><tt><font color=blue><b>sync_buffers</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2528"><tt><font color=blue><b>clear_display</b></font></tt></a></td><td><tt>(<tt><font color=purple>float</font></tt> <tt><font color=blue>red</font></tt>=0, <tt><font color=purple>float</font></tt> <tt><font color=blue>green</font></tt>=0, <tt><font color=purple>float</font></tt> <tt><font color=blue>blue</font></tt>=0, <tt><font color=purple>float</font></tt> <tt><font color=blue>alpha</font></tt>=1)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2529"><tt><font color=blue><b>set_palette</b></font></tt></a></td><td><tt>(<a href="CL_Palette.html"><tt><font color=navy><b>CL_Palette</b></font></tt></a>* <tt><font color=blue>palette</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <a href="CL_Palette.html"><tt><font color=navy><b>CL_Palette</b></font></tt></a>*</tt> </td><td align=right><a href="CL_DisplayCard.html#2530"><tt><font color=blue><b>get_palette</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2531"><tt><font color=blue><b>set_videomode</b></font></tt></a></td><td><tt>(<a href="CL_VidMode.html"><tt><font color=navy><b>CL_VidMode</b></font></tt></a>* <tt><font color=blue>mode</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2532"><tt><font color=blue><b>set_videomode</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>width</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>height</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>bpp</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>fullscreen</font></tt> = true, <tt><font color=purple>bool</font></tt> <tt><font color=blue>allow_resize</font></tt> = false, <tt><font color=purple>bool</font></tt> <tt><font color=blue>video_memory</font></tt> = true)</tt>;</td>
<tr valign=top><td align=left><h3>Attributes:</h3></td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt>const</tt> <tt><font color=navy>std::list</font></tt><<a href="CL_VidMode.html"><tt><font color=navy><b>CL_VidMode</b></font></tt></a>*>&</tt> </td><td align=right><a href="CL_DisplayCard.html#2533"><tt><font color=blue><b>get_videomodes</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=navy>std::string</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2534"><tt><font color=blue><b>get_name</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2535"><tt><font color=blue><b>get_total_memory</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2536"><tt><font color=blue><b>get_card_no</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2537"><tt><font color=blue><b>is_initialized</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <a href="CL_Target.html"><tt><font color=navy><b>CL_Target</b></font></tt></a>*</tt> </td><td align=right><a href="CL_DisplayCard.html#2538"><tt><font color=blue><b>get_target</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2539"><tt><font color=blue><b>get_width</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2540"><tt><font color=blue><b>get_height</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2541"><tt><font color=blue><b>get_bpp</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2542"><tt><font color=blue><b>push_clip_rect</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2543"><tt><font color=blue><b>push_clip_rect</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="CL_ClipRect.html"><tt><font color=navy><b>CL_ClipRect</b></font></tt></a>& <tt><font color=blue>rect</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <a href="CL_ClipRect.html"><tt><font color=navy><b>CL_ClipRect</b></font></tt></a></tt> </td><td align=right><a href="CL_DisplayCard.html#2544"><tt><font color=blue><b>get_clip_rect</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2545"><tt><font color=blue><b>set_clip_rect</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="CL_ClipRect.html"><tt><font color=navy><b>CL_ClipRect</b></font></tt></a>& <tt><font color=blue>rect</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2546"><tt><font color=blue><b>pop_clip_rect</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2547"><tt><font color=blue><b>push_translate_offset</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2548"><tt><font color=blue><b>push_translate_offset</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>x</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2549"><tt><font color=blue><b>get_translate_offset_x</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2550"><tt><font color=blue><b>get_translate_offset_y</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2551"><tt><font color=blue><b>set_translate_offset</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>x</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2552"><tt><font color=blue><b>pop_translate_offset</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=left><h3>Operations (Draw Functions):</h3></td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2553"><tt><font color=blue><b>fill_rect</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>x1</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y1</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>x2</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y2</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>r</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>g</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>b</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>a</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2554"><tt><font color=blue><b>draw_rect</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>x1</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y1</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>x2</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y2</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>r</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>g</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>b</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>a</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_DisplayCard.html#2555"><tt><font color=blue><b>draw_line</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>x1</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y1</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>x2</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y2</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>r</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>g</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>b</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>a</font></tt>)</tt>;</td>
<tr valign=top><td align=left><h3>Signals:</h3></td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=navy>CL_Signal_v2</font></tt><<tt><font color=purple>int</font></tt>, <tt><font color=purple>int</font></tt>>&</tt> </td><td align=right><a href="CL_DisplayCard.html#2556"><tt><font color=blue><b>sig_resized</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=navy>CL_Signal_v1</font></tt><<tt>const</tt> <a href="CL_Rect.html"><tt><font color=navy><b>CL_Rect</b></font></tt></a>& >&</tt> </td><td align=right><a href="CL_DisplayCard.html#2557"><tt><font color=blue><b>sig_paint</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
  This class represents a display card in ClanLib. It is mainly used to  set the videomode, flip the display and do simple graphics operations  such as filled rectangles or drawing lines.<br><br>  If you're always only using one display card at the time, you may want  to consider using the static functions in <a href="CL_Display.html">CL_Display</a> instead. They do  exactly the same, but operates on a selected display card instead  (default the primary card). This saves you from passing around a pointer  to the displaycard.<br><p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="2528"><font size=+1><b>CL_DisplayCard::clear_display</b></font></a> -   Clears backbuffer with the specified color.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2528"><tt><font color=blue><b>clear_display</b></font></tt></a><tt>(<tt><font color=purple>float</font></tt> <tt><font color=blue>red</font></tt>=0, <tt><font color=purple>float</font></tt> <tt><font color=blue>green</font></tt>=0, <tt><font color=purple>float</font></tt> <tt><font color=blue>blue</font></tt>=0, <tt><font color=purple>float</font></tt> <tt><font color=blue>alpha</font></tt>=1)</tt>;<br><blockquote>  red - red component of the color.<br>  green - green component of the color.<br>  blue - blue component of the color.<br>  alpha - alpha (transparency) component of the color.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2555"><font size=+1><b>CL_DisplayCard::draw_line</b></font></a> -   Draw a line from ('x1', 'y1') to ('x2', 'y2') using the color  ('r', 'g', 'b', 'a').<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2555"><tt><font color=blue><b>draw_line</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>x1</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y1</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>x2</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y2</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>r</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>g</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>b</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>a</font></tt>)</tt>;<br><blockquote>  x1 - Leftmost x-coordinate. //FIXME<br>  y1 - Upper y-coordinate.<br>  x2 - Rightmost x-coordinate.<br>  y2 - Lower y-coordinate.<br>  r - Red component of the filled color.<br>  g - Green component of the filled color.<br>  b - Blue component of the filled color.<br>  a - Alpha component of the filled color.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2554"><font size=+1><b>CL_DisplayCard::draw_rect</b></font></a> -   Draw a rectangle from ('x1', 'y1') to ('x2', 'y2') using the color  ('r', 'g', 'b', 'a').<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2554"><tt><font color=blue><b>draw_rect</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>x1</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y1</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>x2</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y2</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>r</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>g</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>b</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>a</font></tt>)</tt>;<br><blockquote>  x1 - Leftmost x-coordinate.<br>  y1 - Upper y-coordinate.<br>  x2 - Rightmost x-coordinate.<br>  y2 - Lower y-coordinate.<br>  r - Red component of the filled color.<br>  g - Green component of the filled color.<br>  b - Blue component of the filled color.<br>  a - Alpha component of the filled color.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2553"><font size=+1><b>CL_DisplayCard::fill_rect</b></font></a> -   Draw a filled rectangle from ('x1', 'y1') to ('x2', 'y2') using the color  ('r', 'g', 'b', 'a').<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2553"><tt><font color=blue><b>fill_rect</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>x1</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y1</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>x2</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y2</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>r</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>g</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>b</font></tt>, <tt><font color=purple>float</font></tt> <tt><font color=blue>a</font></tt>)</tt>;<br><blockquote>  x1 - Leftmost x-coordinate.<br>  y1 - Upper y-coordinate.<br>  x2 - Rightmost x-coordinate.<br>  y2 - Lower y-coordinate.<br>  r - Red component of the filled color.<br>  g - Green component of the filled color.<br>  b - Blue component of the filled color.<br>  a - Alpha component of the filled color.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2525"><font size=+1><b>CL_DisplayCard::flip_display</b></font></a> -   Flips the front and backbuffer. Everything is normally drawn to the   backbuffer, and flip_display() needs to be called before it can be seen   onto the screen.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2525"><tt><font color=blue><b>flip_display</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>sync</font></tt>=false)</tt>;<br><blockquote>  sync - VSync on/off</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2541"><font size=+1><b>CL_DisplayCard::get_bpp</b></font></a> -   Returns the depth of the current video mode.<br><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> <a href="CL_DisplayCard.html#2541"><tt><font color=blue><b>get_bpp</b></font></tt></a><tt>()</tt>;<br><blockquote>  Returns - Depth of video mode.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2536"><font size=+1><b>CL_DisplayCard::get_card_no</b></font></a> -   Get card number.<br><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> <a href="CL_DisplayCard.html#2536"><tt><font color=blue><b>get_card_no</b></font></tt></a><tt>()</tt>;<br><blockquote>  Returns - Card number.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2544"><font size=+1><b>CL_DisplayCard::get_clip_rect</b></font></a> -   Returns the current clipping rectangle.<br><tt><tt>virtual</tt> <a href="CL_ClipRect.html"><tt><font color=navy><b>CL_ClipRect</b></font></tt></a></tt> <a href="CL_DisplayCard.html#2544"><tt><font color=blue><b>get_clip_rect</b></font></tt></a><tt>()</tt>;<br><blockquote>  Returns - The current clipping rectangle.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2540"><font size=+1><b>CL_DisplayCard::get_height</b></font></a> -   Returns the height of the current video mode.<br><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> <a href="CL_DisplayCard.html#2540"><tt><font color=blue><b>get_height</b></font></tt></a><tt>()</tt>;<br><blockquote>  Returns - Height of video mode.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2534"><font size=+1><b>CL_DisplayCard::get_name</b></font></a> -   Get name of the card.<br><tt><tt>virtual</tt> <tt><font color=navy>std::string</font></tt></tt> <a href="CL_DisplayCard.html#2534"><tt><font color=blue><b>get_name</b></font></tt></a><tt>()</tt>;<br><blockquote>  Returns - Returns the card name.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2530"><font size=+1><b>CL_DisplayCard::get_palette</b></font></a> -   Return the current system palette on this card.<br><tt><tt>virtual</tt> <a href="CL_Palette.html"><tt><font color=navy><b>CL_Palette</b></font></tt></a>*</tt> <a href="CL_DisplayCard.html#2530"><tt><font color=blue><b>get_palette</b></font></tt></a><tt>()</tt>;<br><blockquote>  Returns - The system palette.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2538"><font size=+1><b>CL_DisplayCard::get_target</b></font></a> -   Return either NULL or the Target that is blitted to (aka Framebuffer)<br><tt><tt>virtual</tt> <a href="CL_Target.html"><tt><font color=navy><b>CL_Target</b></font></tt></a>*</tt> <a href="CL_DisplayCard.html#2538"><tt><font color=blue><b>get_target</b></font></tt></a><tt>()</tt>;<br><blockquote>  Returns - NULL if Framebuffer access is not possible, CL_Target if it is</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2535"><font size=+1><b>CL_DisplayCard::get_total_memory</b></font></a> -   Get videomemory available.<br><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> <a href="CL_DisplayCard.html#2535"><tt><font color=blue><b>get_total_memory</b></font></tt></a><tt>()</tt>;<br><blockquote>  Returns - Videomemory available, or -1 if unknown.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2549"><font size=+1><b>CL_DisplayCard::get_translate_offset_x</b></font></a> -   Returns the current effective x-axis translation offset.<br><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> <a href="CL_DisplayCard.html#2549"><tt><font color=blue><b>get_translate_offset_x</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2550"><font size=+1><b>CL_DisplayCard::get_translate_offset_y</b></font></a> -   Returns the current effective y-axis translation offset.<br><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> <a href="CL_DisplayCard.html#2550"><tt><font color=blue><b>get_translate_offset_y</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2533"><font size=+1><b>CL_DisplayCard::get_videomodes</b></font></a> -   Get list of videomodes available on this card.<br><tt><tt>virtual</tt> <tt>const</tt> <tt><font color=navy>std::list</font></tt><<a href="CL_VidMode.html"><tt><font color=navy><b>CL_VidMode</b></font></tt></a>*>&</tt> <a href="CL_DisplayCard.html#2533"><tt><font color=blue><b>get_videomodes</b></font></tt></a><tt>()</tt>;<br><blockquote>  Returns - Returns the list of videomodes.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2539"><font size=+1><b>CL_DisplayCard::get_width</b></font></a> -   Returns the width of the current video mode.<br><tt><tt>virtual</tt> <tt><font color=purple>int</font></tt></tt> <a href="CL_DisplayCard.html#2539"><tt><font color=blue><b>get_width</b></font></tt></a><tt>()</tt>;<br><blockquote>  Returns - Width of video mode.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2537"><font size=+1><b>CL_DisplayCard::is_initialized</b></font></a> -   Returns true if the display card is in a video mode.<br><tt><tt>virtual</tt> <tt><font color=purple>bool</font></tt></tt> <a href="CL_DisplayCard.html#2537"><tt><font color=blue><b>is_initialized</b></font></tt></a><tt>()</tt>;<br><blockquote>  Returns - true if initialized.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2546"><font size=+1><b>CL_DisplayCard::pop_clip_rect</b></font></a> -   Pop the clipping rectangle last pushed onto the stack.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2546"><tt><font color=blue><b>pop_clip_rect</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2552"><font size=+1><b>CL_DisplayCard::pop_translate_offset</b></font></a> -   Pops the last pushed translation offset from the translation offset  stack. If the stack is empty, nothing will happen, and if the last  translation offset is popped, the translation offset will be set to 0,0<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2552"><tt><font color=blue><b>pop_translate_offset</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2542"><font size=+1><b>CL_DisplayCard::push_clip_rect</b></font></a> -   Pushes the current clipping rectangle onto the cliprect stack.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2542"><tt><font color=blue><b>push_clip_rect</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2543"><font size=+1><b>CL_DisplayCard::push_clip_rect</b></font></a> -   Pushes the current clipping rectangle onto the cliprect stack. It then clips   the passed rectangle 'rect' with the current one, and uses the result as the   new clipping rect.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2543"><tt><font color=blue><b>push_clip_rect</b></font></tt></a><tt>(<tt>const</tt> <a href="CL_ClipRect.html"><tt><font color=navy><b>CL_ClipRect</b></font></tt></a>& <tt><font color=blue>rect</font></tt>)</tt>;<br><blockquote>  rect - The new clipping rectangle to be with the old one and then used.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2547"><font size=+1><b>CL_DisplayCard::push_translate_offset</b></font></a> -   Pushes the current translation rectangle onto the cliprect stack.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2547"><tt><font color=blue><b>push_translate_offset</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2548"><font size=+1><b>CL_DisplayCard::push_translate_offset</b></font></a> -   Push translation offset onto translation stack. This offset will  affect any subsequent display operations on the displaycard, by  translating the position of the display operation with the offset.  The offset will be offset by any previous offsets pushed onto the stack,  eg. it inherits the previous offset.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2548"><tt><font color=blue><b>push_translate_offset</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>x</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2526"><font size=+1><b>CL_DisplayCard::put_display</b></font></a> -   Copies the specified area of the backbuffer to the front buffer. This is  in particular useful if you only want to update a limited region, and not  do a full-blown flipping.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2526"><tt><font color=blue><b>put_display</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>class</font></tt> <tt><font color=blue>CL_Rect</font></tt>& <tt><font color=blue>rect</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2545"><font size=+1><b>CL_DisplayCard::set_clip_rect</b></font></a> -   Sets the current clipping rectangle. This is an absolute set, so it doesn't  get clipped with the previous one.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2545"><tt><font color=blue><b>set_clip_rect</b></font></tt></a><tt>(<tt>const</tt> <a href="CL_ClipRect.html"><tt><font color=navy><b>CL_ClipRect</b></font></tt></a>& <tt><font color=blue>rect</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2529"><font size=+1><b>CL_DisplayCard::set_palette</b></font></a> -   Set system palette on this card.<br>  <br>  If the display card is in a non-palettelized mode, this will be the palette   used when surfaceproviders doesn't specify a palette themself.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2529"><tt><font color=blue><b>set_palette</b></font></tt></a><tt>(<a href="CL_Palette.html"><tt><font color=navy><b>CL_Palette</b></font></tt></a>* <tt><font color=blue>palette</font></tt>)</tt>;<br><blockquote>  palette - Palette to use as new system palette.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2551"><font size=+1><b>CL_DisplayCard::set_translate_offset</b></font></a> -   Sets the translation offset as a new absolute translation offset.  The new offset will disregard any previous offset's, but will not  empty the translation stack. The new translation offset will affect  any subsequent display operations on the displaycard, by  translating the position of the display operation with the offset<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2551"><tt><font color=blue><b>set_translate_offset</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>x</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>y</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2531"><font size=+1><b>CL_DisplayCard::set_videomode</b></font></a> -   Change the display card's video mode.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2531"><tt><font color=blue><b>set_videomode</b></font></tt></a><tt>(<a href="CL_VidMode.html"><tt><font color=navy><b>CL_VidMode</b></font></tt></a>* <tt><font color=blue>mode</font></tt>)</tt>;<br><blockquote>  mode - videomode to be changed to.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2532"><font size=+1><b>CL_DisplayCard::set_videomode</b></font></a> -   Change the display card's video mode.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2532"><tt><font color=blue><b>set_videomode</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>width</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>height</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>bpp</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>fullscreen</font></tt> = true, <tt><font color=purple>bool</font></tt> <tt><font color=blue>allow_resize</font></tt> = false, <tt><font color=purple>bool</font></tt> <tt><font color=blue>video_memory</font></tt> = true)</tt>;<br><blockquote>  width - width in pixels of the new video mode.<br>  height - height in pixels of the new video mode.<br>  bpp - Bits per pixel. The depth of the new video mode. (8, 16, 24, 32)<br>  video_memory - Use video memory if possible. System memory may be faster if alpha blending is used a lot.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2557"><font size=+1><b>CL_DisplayCard::sig_paint</b></font></a> -   Returns the paint signal for the display card.<br>  Use this signal to listen for invalidated screen areas that need to be repainted.<br>  The parameter passed by the signal is the area that need a repaint.<br><tt><tt>virtual</tt> <tt><font color=navy>CL_Signal_v1</font></tt><<tt>const</tt> <a href="CL_Rect.html"><tt><font color=navy><b>CL_Rect</b></font></tt></a>& >&</tt> <a href="CL_DisplayCard.html#2557"><tt><font color=blue><b>sig_paint</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2556"><font size=+1><b>CL_DisplayCard::sig_resized</b></font></a> -   Returns the resize signal for the display card.<br>  You can use this signal to listen for window resize events.<br>  The parameters passed by the signal are the new width and height of the window.<br><tt><tt>virtual</tt> <tt><font color=navy>CL_Signal_v2</font></tt><<tt><font color=purple>int</font></tt>, <tt><font color=purple>int</font></tt>>&</tt> <a href="CL_DisplayCard.html#2556"><tt><font color=blue><b>sig_resized</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2527"><font size=+1><b>CL_DisplayCard::sync_buffers</b></font></a> -   Copies the contents of the frontbuffer to all other buffers (usually just  the backbuffer). This ensures that all buffers contain the same image.<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="CL_DisplayCard.html#2527"><tt><font color=blue><b>sync_buffers</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2524"><font size=+1><b>CL_DisplayCard::~CL_DisplayCard</b></font></a> -   Display Card Destructor<br><tt><tt>virtual</tt> </tt> <a href="CL_DisplayCard.html#2524"><tt><font color=blue><b>~CL_DisplayCard</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<hr noshade>
</body>
</html>