Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > a2116f36018873d572acbcadddb8e994 > files > 1776

clanlib0.8-docs-0.8.1-22.mga7.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_GraphicContext - 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_GraphicContext</h1>
<p>  Graphic rendering target. <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 &lt;ClanLib/display.h&gt;
<p>
<table border=0 width=100%>
</table>
<p><b>Construction:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_GraphicContext__CL_GraphicContext.html">CL_GraphicContext</a></p></td><td valign=top><p>  Constructs a graphic context.</p></td></tr></table>
<p><b>Attributes:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_GraphicContext__get_width.html">get_width</a></p></td><td valign=top><p>  Returns the current width of the context.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__get_height.html">get_height</a></p></td><td valign=top><p>  Returns the current height of the context.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__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_GraphicContext__get_modelview.html">get_modelview</a></p></td><td valign=top><p>  Returns the current effective modelview matrix.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__get_pixel.html">get_pixel</a></p></td><td valign=top><p>  Returns a pixel value at specified coordinates.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__get_pixeldata.html">get_pixeldata</a></p></td><td valign=top><p>  Return the content of buffer 'i' copyied into a CL_PixelBuffer</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__get_max_surface_size.html">get_max_surface_size</a></p></td><td valign=top><p>  Returns the maximum size of a surface this graphic context supports.</p></td></tr></table>
<p><b>Operations:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_GraphicContext__operator =.html">operator =</a></p></td><td valign=top><p>  Copy assignment operator.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__flush.html">flush</a></p></td><td valign=top><p>  Flushes current rendering batch. <i>Deprecated</i></p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__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_GraphicContext__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_GraphicContext__draw_lines.html">draw_lines</a></p></td><td valign=top><p>  Draw a continuous chain of lines in the specified color.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__clear.html">clear</a></p></td><td valign=top><p>  Clears the whole context using the specified color.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__set_translate.html">set_translate</a></p></td><td valign=top><p>  Sets a translate offset matrix, ignoring any earlier model view settings.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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_GraphicContext__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><tr><td width=30% valign=top><p><a href="CL_GraphicContext__clear_stencil.html">clear_stencil</a></p></td><td valign=top><p>  Clear the stencil buffer</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__set_stencil_operation.html">set_stencil_operation</a></p></td><td valign=top><p>  Set stencil test function when writing to stencil, and operations to do when a test passes or fails</p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__enable_stencil_write.html">enable_stencil_write</a></p></td><td valign=top><p>  Enables writing to the stencil buffer </p></td></tr><tr><td width=30% valign=top><p><a href="CL_GraphicContext__enable_stencil_test.html">enable_stencil_test</a></p></td><td valign=top><p>  Enables stencil buffer testing</p></td></tr></table>
<p><b>Implementation:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_GraphicContext__impl.html">impl</a></p></td><td valign=top><p></p></td></tr></table>
<a name="#description"><p><b>Detailed description:</b></p>
  !group=Display/Display 2D!
  !header=display.h!
  <p>A graphic context is something that ClanLib can render onto.</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 -->