All Classes |Grouped Classes |Index

Class CL_GraphicContextProvider

Interface for implementing a CL_GraphicContext target. More...

Derived from:

None

Derived by:

None

Group:

Display Target Interface (Display)

#include <ClanLib/display.h>

Class Members:


Attributes:

get_max_attributes

Returns the maximum amount of attributes available.

get_max_texture_size

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

get_width

Returns the current width of the context.

get_height

Returns the current height of the context.


Operations:

destroy

Destroys graphic context provider.

get_pixeldata

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

alloc_texture

Allocate texture provider for this gc.

alloc_occlusion_query

Allocate occlusion query provider of this gc.

alloc_program_object

Allocate program object provider of this gc.

alloc_shader_object

Allocate shader object provider of this gc.

alloc_frame_buffer

Allocate frame buffer provider for this gc.

alloc_render_buffer

Allocate render buffer provider for this gc.

alloc_vertex_array_buffer

Allocate vertex array buffer provider for this gc.

alloc_element_array_buffer

Allocate element array buffer provider for this gc.

alloc_pixel_buffer

Allocate pixel buffer provider for this gc.

set_program_object

Set active program object to the standard program specified.

reset_program_object

Remove active program object.

set_texture

Select texture into unit.

reset_texture

Remove texture from unit.

set_frame_buffer

Set a frame buffer for off-screen rendering.

reset_frame_buffer

Set the rendering buffer back to the screen.

set_blend_mode

Set blending modes.

set_buffer_control

Set buffer control states.

set_pen

Select pen.

set_polygon_rasterizer

Set polygon rasterizer settings.

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

Draws instanced primitives from the current assigned primitives array.

draw_primitives_elements

Draw primitives elements.

draw_primitives_elements_instanced

Draw primitives elements instanced.

primitives_array_freed

Called when a primitives array is being recycled.

reset_primitives_array

Reset the primitives arrays.

draw_pixels

Draw pixel buffer on gc.

set_clip_rect

Set clip rect.

reset_clip_rect

Reset clip rect.

clear

Clears the whole context using the specified color.

clear_depth

Clear the depth buffer.

clear_stencil

Clear the stencil buffer.

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.