|
Public Member Functions |
|
| | CL_Texture () |
| | Constructs a texture.
|
| | CL_Texture (CL_GraphicContext &context, CL_TextureDimensions texture_dimensions) |
| | Constructs a Texture.
|
| | CL_Texture (CL_GraphicContext &context, int width, int height, CL_TextureFormat internal_format=cl_rgba) |
| | Constructs a Texture.
|
| | CL_Texture (CL_GraphicContext &context, const CL_Size &size, CL_TextureFormat internal_format=cl_rgba) |
| | Constructs a Texture.
|
| | CL_Texture (CL_GraphicContext &context, const CL_StringRef &fullname) |
| | CL_Texture (CL_GraphicContext &context, const CL_StringRef &filename, const CL_VirtualDirectory &directory) |
| | CL_Texture (CL_GraphicContext &context, CL_IODevice &file, const CL_String &image_type) |
| | CL_Texture (const CL_StringRef &resource_id, CL_ResourceManager *resources, CL_GraphicContext &gc) |
| | CL_Texture (CL_SharedPtr< CL_Texture_Impl > &impl) |
| | Constructs a texture from an implementation.
|
| virtual | ~CL_Texture () |
|
| bool | operator== (const CL_Texture &other) const |
| | Equality operator.
|
| bool | operator!= (const CL_Texture &other) const |
| | Inequality operator.
|
| bool | operator< (const CL_Texture &other) const |
| | Less than operator.
|
|
| bool | is_null () const |
| | Returns true if this is a null texture.
|
| int | get_width (int level=0) const |
| | Get the texture width.
|
| int | get_height (int level=0) const |
| | Get the texture height.
|
| CL_Size | get_size () const |
| | Get the texture size.
|
| int | get_depth () const |
| | Get the texture depth.
|
| CL_PixelBuffer | get_pixeldata (int level=0) const |
| | Retrieve image data from texture.
|
| CL_PixelBuffer | get_pixeldata (CL_PixelFormat &format, int level=0) const |
| | Get pixeldata.
|
| float | get_min_lod () const |
| | Get the minimum level of detail.
|
| float | get_max_lod () const |
| | Get the maximum level of detail.
|
| float | get_lod_bias () const |
| | Get the level of detail bias constant.
|
| int | get_base_level () const |
| | Get the texture base level.
|
| int | get_max_level () const |
| | Get the texture max level.
|
| bool | get_generate_mipmap () const |
| | Get if automatic mipmap generation is enabled.
|
| CL_TextureWrapMode | get_wrap_mode_s () const |
| | Get the texture wrap mode for the s coordinate.
|
| CL_TextureWrapMode | get_wrap_mode_t () const |
| | Get the texture wrap mode for the t coordinate.
|
| CL_TextureWrapMode | get_wrap_mode_r () const |
| | Get the texture wrap mode for the r coordinate.
|
| CL_TextureFilter | get_min_filter () const |
| | Get the texture minification filter.
|
| CL_TextureFilter | get_mag_filter () const |
| | Get the texture magnification filter.
|
| bool | is_resident () const |
| | Returns true if texture is resident in texture memory.
|
| CL_TextureDepthMode | get_depth_mode () const |
| | Get the texture depth mode.
|
| CL_TextureCompareMode | get_compare_mode () const |
| | Get the texture compare mode.
|
| CL_CompareFunction | get_compare_function () const |
| | Get the texture compare function.
|
| CL_TextureProvider * | get_provider () const |
| | Get Provider.
|
| CL_WeakPtr< CL_Texture_Impl > | get_impl () const |
| | Get the implementation weakptr.
|
|
| void | set_image (CL_PixelBuffer &image, int level=0, CL_TextureFormat internal_format=cl_rgba) |
| | Upload image to texture.
|
| void | set_cube_map (CL_PixelBuffer &cube_map_positive_x, CL_PixelBuffer &cube_map_negative_x, CL_PixelBuffer &cube_map_positive_y, CL_PixelBuffer &cube_map_negative_y, CL_PixelBuffer &cube_map_positive_z, CL_PixelBuffer &cube_map_negative_z, int level=0, CL_TextureFormat internal_format=cl_rgba) |
| | Upload cube map.
|
| void | set_compressed_image (int level, CL_TextureFormat internal_format, int width, int height, CL_DataBuffer &image) |
| void | set_subimage (int x, int y, const CL_PixelBufferRef &image, int level=0) |
| | Upload image to sub texture.
|
| void | set_subimage (const CL_Point &point, const CL_PixelBufferRef &image, int level=0) |
| void | copy_image_from (CL_GraphicContext &context, int level, CL_TextureFormat internal_format=cl_rgba) |
| | Copy image data from a graphic context.
|
| void | copy_image_from (CL_GraphicContext &context, int x, int y, int width, int height, int level=0, CL_TextureFormat internal_format=cl_rgba) |
| void | copy_image_from (CL_GraphicContext &context, const CL_Rect &pos, int level=0, CL_TextureFormat internal_format=cl_rgba) |
| void | copy_subimage_from (CL_GraphicContext &context, int offset_x, int offset_y, int x, int y, int width, int height, int level=0) |
| | Copy sub image data from a graphic context.
|
| void | copy_subimage_from (CL_GraphicContext &context, const CL_Point &offset, const CL_Rect &pos, int level=0) |
| void | set_min_lod (float min_lod) |
| | Set the minimum level of detail texture parameter.
|
| void | set_max_lod (float max_lod) |
| | Set the maximum level of detail texture parameter.
|
| void | set_lod_bias (float lod_bias) |
| | Sets the level of detail bias constant.
|
| void | set_base_level (int base_level) |
| | Sets the texture base level texture parameter.
|
| void | set_max_level (int max_level) |
| | Sets the texture max level texture parameter.
|
| void | set_generate_mipmap (bool generate_mipmap=true) |
| | Enables or disables automatic mipmap generation when uploading image data.
|
| void | set_wrap_mode (CL_TextureWrapMode wrap_s, CL_TextureWrapMode wrap_t, CL_TextureWrapMode wrap_r) |
| | Set the texture wrapping mode.
|
| void | set_wrap_mode (CL_TextureWrapMode wrap_s, CL_TextureWrapMode wrap_t) |
| void | set_wrap_mode (CL_TextureWrapMode wrap_s) |
| void | set_min_filter (CL_TextureFilter filter) |
| | Set the minification filter.
|
| void | set_mag_filter (CL_TextureFilter filter) |
| | Set the magnification filter.
|
| void | set_max_anisotropy (float max_anisotropy) |
| | Set the maximum degree of anisotropy.
|
| void | set_depth_mode (CL_TextureDepthMode depth_mode) |
| | Set the depth texture mode parameter.
|
| void | set_texture_compare (CL_TextureCompareMode mode, CL_CompareFunction func) |
| | Sets the texture compare mode and compare function texture parameters.
|