Home | All Classes | Grouped Classes | Index | Search
Graphic rendering target. More...
Derived from:
none
Derived by:
none
Group: Display (Display 2D)
#include <ClanLib/display.h>
Construction:
Constructs a graphic context. |
Attributes:
Returns the current width of the context. | |
Returns the current height of the context. | |
Returns the current clipping rectangle used on the graphic context. | |
Returns the current effective modelview matrix. | |
Returns a pixel value at specified coordinates. | |
Return the content of buffer 'i' copyied into a CL_PixelBuffer | |
Returns the maximum size of a surface this graphic context supports. |
Operations:
Copy assignment operator. | |
Flushes current rendering batch. Deprecated | |
Draw a pixel at (x, y) using the specified color. | |
Draw a line from (x1, y1) to (x2, y2) using the specified color. | |
Draw a continuous chain of lines in 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 context 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 model view 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. | |
Clear the stencil buffer | |
Set stencil test function when writing to stencil, and operations to do when a test passes or fails | |
Enables writing to the stencil buffer | |
Enables stencil buffer testing |
Implementation:
Detailed description:
!group=Display/Display 2D! !header=display.h!A graphic context is something that ClanLib can render onto.