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