CL_TextureProvider Class Reference
[clanDisplay Display]

Interface for implementing a CL_Texture target. More...

#include <texture_provider.h>

List of all members.

Public Member Functions

Construction

virtual ~CL_TextureProvider ()
Operations

virtual void destroy ()=0
 Destroys the texture provider.
virtual void create (int width, int height, CL_TextureFormat internal_format, int depth)=0
 Create texture.
virtual CL_PixelBuffer get_pixeldata (CL_TextureFormat sized_format, int level) const =0
 Retrieve image data from texture.
virtual void generate_mipmap ()=0
 Generate the mipmap.
virtual void set_image (CL_PixelBuffer &image, int level)=0
 Upload image to texture.
virtual 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
 Upload cube map.
virtual void set_compressed_image (int level, CL_TextureFormat internal_format, int width, int height, CL_DataBuffer &image)=0
virtual void set_subimage (int x, int y, const CL_PixelBuffer &image, const CL_Rect &src_rect, int level)=0
 Upload image to sub texture.
virtual void copy_image_from (int x, int y, int width, int height, int level, CL_TextureFormat internal_format, CL_GraphicContextProvider *gc)=0
 Copy image data from a graphic context.
virtual void copy_subimage_from (int offset_x, int offset_y, int x, int y, int width, int height, int level, CL_GraphicContextProvider *gc)=0
 Copy sub image data from a graphic context.
virtual void set_min_lod (double min_lod)=0
 Set the minimum level of detail texture parameter.
virtual void set_max_lod (double max_lod)=0
 Set the maximum level of detail texture parameter.
virtual void set_lod_bias (double lod_bias)=0
 Sets the level of detail bias constant.
virtual void set_base_level (int base_level)=0
 Sets the texture base level texture parameter.
virtual void set_max_level (int max_level)=0
 Sets the texture max level texture parameter.
virtual void set_wrap_mode (CL_TextureWrapMode wrap_s, CL_TextureWrapMode wrap_t, CL_TextureWrapMode wrap_r)=0
 Set the texture wrapping mode.
virtual void set_wrap_mode (CL_TextureWrapMode wrap_s, CL_TextureWrapMode wrap_t)=0
virtual void set_wrap_mode (CL_TextureWrapMode wrap_s)=0
virtual void set_min_filter (CL_TextureFilter filter)=0
 Set the minification filter.
virtual void set_mag_filter (CL_TextureFilter filter)=0
 Set the magnification filter.
virtual void set_max_anisotropy (float v)=0
 Set the maximum degree of anisotropy.
virtual void set_texture_compare (CL_TextureCompareMode mode, CL_CompareFunction func)=0
 Sets the texture compare mode and compare function texture parameters.

Detailed Description

Interface for implementing a CL_Texture target.


Constructor & Destructor Documentation

virtual CL_TextureProvider::~CL_TextureProvider (  )  [inline, virtual]

Member Function Documentation

virtual void CL_TextureProvider::copy_image_from ( int  x,
int  y,
int  width,
int  height,
int  level,
CL_TextureFormat  internal_format,
CL_GraphicContextProvider gc 
) [pure virtual]

Copy image data from a graphic context.

virtual void CL_TextureProvider::copy_subimage_from ( int  offset_x,
int  offset_y,
int  x,
int  y,
int  width,
int  height,
int  level,
CL_GraphicContextProvider gc 
) [pure virtual]

Copy sub image data from a graphic context.

virtual void CL_TextureProvider::create ( int  width,
int  height,
CL_TextureFormat  internal_format,
int  depth 
) [pure virtual]

Create texture.

virtual void CL_TextureProvider::destroy (  )  [pure virtual]

Destroys the texture provider.

virtual void CL_TextureProvider::generate_mipmap (  )  [pure virtual]

Generate the mipmap.

virtual CL_PixelBuffer CL_TextureProvider::get_pixeldata ( CL_TextureFormat  sized_format,
int  level 
) const [pure virtual]

Retrieve image data from texture.

virtual void CL_TextureProvider::set_base_level ( int  base_level  )  [pure virtual]

Sets the texture base level texture parameter.

virtual void CL_TextureProvider::set_compressed_image ( int  level,
CL_TextureFormat  internal_format,
int  width,
int  height,
CL_DataBuffer image 
) [pure virtual]
virtual void CL_TextureProvider::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 
) [pure virtual]

Upload cube map.

virtual void CL_TextureProvider::set_image ( CL_PixelBuffer image,
int  level 
) [pure virtual]

Upload image to texture.

virtual void CL_TextureProvider::set_lod_bias ( double  lod_bias  )  [pure virtual]

Sets the level of detail bias constant.

virtual void CL_TextureProvider::set_mag_filter ( CL_TextureFilter  filter  )  [pure virtual]

Set the magnification filter.

virtual void CL_TextureProvider::set_max_anisotropy ( float  v  )  [pure virtual]

Set the maximum degree of anisotropy.

virtual void CL_TextureProvider::set_max_level ( int  max_level  )  [pure virtual]

Sets the texture max level texture parameter.

virtual void CL_TextureProvider::set_max_lod ( double  max_lod  )  [pure virtual]

Set the maximum level of detail texture parameter.

virtual void CL_TextureProvider::set_min_filter ( CL_TextureFilter  filter  )  [pure virtual]

Set the minification filter.

virtual void CL_TextureProvider::set_min_lod ( double  min_lod  )  [pure virtual]

Set the minimum level of detail texture parameter.

virtual void CL_TextureProvider::set_subimage ( int  x,
int  y,
const CL_PixelBuffer image,
const CL_Rect src_rect,
int  level 
) [pure virtual]

Upload image to sub texture.

virtual void CL_TextureProvider::set_texture_compare ( CL_TextureCompareMode  mode,
CL_CompareFunction  func 
) [pure virtual]

Sets the texture compare mode and compare function texture parameters.

virtual void CL_TextureProvider::set_wrap_mode ( CL_TextureWrapMode  wrap_s,
CL_TextureWrapMode  wrap_t,
CL_TextureWrapMode  wrap_r 
) [pure virtual]

Set the texture wrapping mode.

virtual void CL_TextureProvider::set_wrap_mode ( CL_TextureWrapMode  wrap_s  )  [pure virtual]
virtual void CL_TextureProvider::set_wrap_mode ( CL_TextureWrapMode  wrap_s,
CL_TextureWrapMode  wrap_t 
) [pure virtual]

The documentation for this class was generated from the following file: