#include <graphic_context_provider.h>
Public Member Functions | |
Construction | |
| virtual | ~CL_GraphicContextProvider () |
Attributes | |
| virtual int | get_max_attributes ()=0 |
| Returns the maximum amount of attributes available. | |
| virtual CL_Size | get_max_texture_size () const =0 |
| Returns the maximum size of a texture this graphic context supports. | |
| virtual int | get_width () const =0 |
| Returns the current width of the context. | |
| virtual int | get_height () const =0 |
| Returns the current height of the context. | |
Operations | |
| virtual void | destroy ()=0 |
| Destroys graphic context provider. | |
| virtual CL_GraphicContext | create_worker_gc ()=0 |
| Creates a new additional graphic context for the window. | |
| virtual CL_PixelBuffer | get_pixeldata (const CL_Rect &rect) const =0 |
| Return the content of the draw buffer into a pixel buffer. | |
| virtual CL_TextureProvider * | alloc_texture (CL_TextureDimensions texture_dimensions)=0 |
| Allocate texture provider for this gc. | |
| virtual CL_OcclusionQueryProvider * | alloc_occlusion_query ()=0 |
| Allocate occlusion query provider of this gc. | |
| virtual CL_ProgramObjectProvider * | alloc_program_object ()=0 |
| Allocate program object provider of this gc. | |
| virtual CL_ShaderObjectProvider * | alloc_shader_object ()=0 |
| Allocate shader object provider of this gc. | |
| virtual CL_FrameBufferProvider * | alloc_frame_buffer ()=0 |
| Allocate frame buffer provider for this gc. | |
| virtual CL_RenderBufferProvider * | alloc_render_buffer ()=0 |
| Allocate render buffer provider for this gc. | |
| virtual CL_VertexArrayBufferProvider * | alloc_vertex_array_buffer ()=0 |
| Allocate vertex array buffer provider for this gc. | |
| virtual CL_ElementArrayBufferProvider * | alloc_element_array_buffer ()=0 |
| Allocate element array buffer provider for this gc. | |
| virtual void | set_program_object (CL_StandardProgram standard_program)=0 |
| Set active program object to the standard program specified. | |
| virtual void | set_program_object (const CL_ProgramObject &program)=0 |
| Set active program object. | |
| virtual void | reset_program_object ()=0 |
| Remove active program object. | |
| virtual void | set_texture (int unit_index, const CL_Texture &texture)=0 |
| Select texture into unit. | |
| virtual void | reset_texture (int unit_index)=0 |
| Remove texture from unit. | |
| virtual void | set_frame_buffer (const CL_FrameBuffer &buffer)=0 |
| Set a frame buffer for off-screen rendering. | |
| virtual void | reset_frame_buffer ()=0 |
| Set the rendering buffer back to the screen. | |
| virtual void | set_blend_mode (const CL_BlendMode &blendmode)=0 |
| Set blending modes. | |
| virtual void | set_buffer_control (const CL_BufferControl &buffer_control)=0 |
| Set buffer control states. | |
| virtual void | set_pen (const CL_Pen &pen)=0 |
| Select pen. | |
| virtual void | set_polygon_rasterizer (const CL_PolygonRasterizer &raster)=0 |
| Set polygon rasterizer settings. | |
| virtual void | draw_primitives (CL_PrimitivesType type, int num_vertices, const CL_PrimitivesArrayData *const prim_array)=0 |
| Draw primitives on gc. | |
| virtual void | set_primitives_array (const CL_PrimitivesArrayData *const prim_array)=0 |
| Set the primitives array on the gc. | |
| virtual void | draw_primitives_array (CL_PrimitivesType type, int offset, int num_vertices)=0 |
| Draws primitives from the current assigned primitives array. | |
| virtual void | draw_primitives_elements (CL_PrimitivesType type, int count, unsigned int *indices)=0 |
| Draw primitives elements. | |
| virtual void | draw_primitives_elements (CL_PrimitivesType type, int count, unsigned short *indices)=0 |
| Draw primitives elements. | |
| virtual void | draw_primitives_elements (CL_PrimitivesType type, int count, unsigned char *indices)=0 |
| Draw primitives elements. | |
| virtual void | draw_primitives_elements (CL_PrimitivesType type, int count, CL_ElementArrayBufferProvider *array_provider, CL_VertexAttributeDataType indices_type, void *offset)=0 |
| Draw primitives elements. | |
| virtual void | primitives_array_freed (const CL_PrimitivesArrayData *const prim_array)=0 |
| Called when a primitives array is being recycled. | |
| virtual void | reset_primitives_array ()=0 |
| Reset the primitives arrays. | |
| virtual void | draw_pixels (float x, float y, float zoom_x, float zoom_y, const CL_PixelBufferRef &pixel_buffer, const CL_Colorf &color)=0 |
| Draw pixel buffer on gc. | |
| virtual void | set_clip_rect (const CL_Rect &rect)=0 |
| Set clip rect. | |
| virtual void | reset_clip_rect ()=0 |
| Reset clip rect. | |
| virtual void | clear (const CL_Colorf &color)=0 |
| Clears the whole context using the specified color. | |
| virtual void | clear_depth (float value)=0 |
| Clear the depth buffer. | |
| virtual void | clear_stencil (int value)=0 |
| Clear the stencil buffer. | |
| virtual void | set_map_mode (CL_MapMode mode)=0 |
| Set the projection mapping mode. | |
| virtual void | set_viewport (const CL_Rectf &viewport)=0 |
| Set the viewport to be used in user projection map mode. | |
| virtual void | set_projection (const CL_Mat4f &matrix)=0 |
| Set the projection matrix to be used in user projection map mode. | |
| virtual void | set_modelview (const CL_Mat4f &matrix)=0 |
| Sets the model view matrix to a new matrix. | |
|
|
|
|
|
Allocate element array buffer provider for this gc.
|
|
|
Allocate frame buffer provider for this gc.
|
|
|
Allocate occlusion query provider of this gc.
|
|
|
Allocate program object provider of this gc.
|
|
|
Allocate render buffer provider for this gc.
|
|
|
Allocate shader object provider of this gc.
|
|
|
Allocate texture provider for this gc.
|
|
|
Allocate vertex array buffer provider for this gc.
|
|
|
Clears the whole context using the specified color.
|
|
|
Clear the depth buffer.
|
|
|
Clear the stencil buffer.
|
|
|
Creates a new additional graphic context for the window.
|
|
|
Destroys graphic context provider.
|
|
||||||||||||||||||||||||||||
|
Draw pixel buffer on gc.
|
|
||||||||||||||||
|
Draw primitives on gc.
|
|
||||||||||||||||
|
Draws primitives from the current assigned primitives array.
|
|
||||||||||||||||||||||||
|
Draw primitives elements.
|
|
||||||||||||||||
|
Draw primitives elements.
|
|
||||||||||||||||
|
Draw primitives elements.
|
|
||||||||||||||||
|
Draw primitives elements.
|
|
|
Returns the current height of the context.
|
|
|
Returns the maximum amount of attributes available.
|
|
|
Returns the maximum size of a texture this graphic context supports. It returns CL_Size(0,0) if there is no known limitation to the max texture size. |
|
|
Return the content of the draw buffer into a pixel buffer.
|
|
|
Returns the current width of the context.
|
|
|
Called when a primitives array is being recycled.
|
|
|
Reset clip rect.
|
|
|
Set the rendering buffer back to the screen.
|
|
|
Reset the primitives arrays.
|
|
|
Remove active program object.
|
|
|
Remove texture from unit.
|
|
|
Set blending modes.
|
|
|
Set buffer control states.
|
|
|
Set clip rect.
|
|
|
Set a frame buffer for off-screen rendering.
|
|
|
Set the projection mapping mode.
|
|
|
Sets the model view matrix to a new matrix.
|
|
|
Select pen.
|
|
|
Set polygon rasterizer settings.
|
|
|
Set the primitives array on the gc.
|
|
|
Set active program object.
|
|
|
Set active program object to the standard program specified.
|
|
|
Set the projection matrix to be used in user projection map mode.
|
|
||||||||||||
|
Select texture into unit.
|
|
|
Set the viewport to be used in user projection map mode.
|
1.4.6