All Classes |Grouped Classes |Index

Class CL_GraphicContext_SWRender

SWRender Graphic Context. More...

Derived from:

public CL_GraphicContext

Derived by:

None

Group:

Display (SWRender)

#include <ClanLib/swrender.h>

Class Members:

Attributes:

get_texture

Returns the currently selected texture for the specified index.

get_textures

Returns the currently selected textures.

get_blend_mode

Returns the blending mode description.

get_buffer_control

Returns the buffer control description.

get_polygon_rasterizer

Returns the polygon rasterizer setup.

get_write_frame_buffer

Returns the currently selected write frame buffer.

get_read_frame_buffer

Returns the currently selected read frame buffer.

get_pen

Returns the currently selected pen.

get_width

Returns the current width of the context.

get_height

Returns the current height of the context.

get_size

Returns the current size of the context.

get_cliprect

Returns the current clipping rectangle used on the graphic context.

get_modelview

Returns the current effective modelview matrix.

get_max_texture_size

Returns the maximum size of a texture this graphic context supports.

get_provider

Returns the provider for this graphic context.


Operations:

get_pixeldata

Return the content of the read buffer into a pixel buffer.

set_frame_buffer

Sets the current frame buffer.

reset_frame_buffer

Resets the current frame buffer to be the initial frame buffer.

set_texture

Select texture into index.

set_textures

Select textures.

reset_texture

Remove texture from index.

reset_textures

Remove all selected textures.

set_program_object

Set active program object to the standard program specified.

reset_program_object

Remove active program object.

set_blend_mode

Set blending modes.

reset_blend_mode

Reset blending to the default.

set_buffer_control

Set buffer control states.

reset_buffer_control

Set default buffer control states.

set_pen

Select pen.

reset_pen

Reset pen settings to defaults.

set_polygon_rasterizer

Set polygon rasterizer settings.

reset_polygon_rasterizer

Reset polygon rasterizer settings to defaults.

draw_primitives

Draw primitives on gc.

set_primitives_array

Set the primitives array on the gc.

draw_primitives_array

Draws primitives from the current assigned primitives array.

draw_primitives_array_instanced

Draw primitives array instanced.

draw_primitives_elements

Draw primitives elements.

draw_primitives_elements_instanced

Draw primitives elements instanced.

reset_primitives_array

Reset the primitives arrays.

draw_pixels

Draw pixel buffer on gc.

clear

Clears the whole context using the specified color.

clear_stencil

Clear the stencil buffer.

clear_depth

Clear the depth buffer.

set_cliprect

Set the current clipping rectangle.

push_cliprect

Push current clipping rectangle to stack.

pop_cliprect

Pop current clipping rectangle from the stack.

reset_cliprect

Removes the set clipping rectangle and empties the cliprect stack.

set_map_mode

Set the projection mapping mode.

set_viewport

Set the viewport to be used in user projection map mode.

set_projection

Set the projection matrix to be used in user projection map mode.

set_modelview

Sets the model view matrix to a new matrix.

mult_modelview

Multiplies the passed matrix onto the model view matrix.

push_modelview

Pushes current model view matrix onto the model view stack.

set_translate

Sets a translate offset matrix, ignoring any earlier model view settings.

mult_translate

Adds the translate offset.

push_translate

Push translation offset onto model view stack.

set_rotate

Sets a rotation matrix, ignoring any earlier model view settings.

mult_rotate

Adds a rotation matrix to existing model view.

push_rotate

Pushes a rotation matrix onto model view stack.

set_scale

Sets a scale matrix, ignoring any earlier model view settings.

mult_scale

Adds a scale matrix to existing model view.

push_scale

Pushes a scale matrix onto model view stack.

pop_modelview

Pops last pushed model view matrix off the stack and makes it the active one.

flush_batcher

Flushes the render batcher currently active.

set_batcher

Specifies which render batcher is to be currently active.


Events:

sig_gc_destruction_imminent

Called when the last GC in the thread is about to be destroyed.

CL_GraphicContext_SWRender

Construction.

draw_pixels_bicubic

Operations.

get_pipeline

Returns the pixel pipeline class needed to allocated CL_PixelCommand objects.

is_null

Attributes.

queue_command

throw_if_null

Throw an exception if this object is invalid.