uicore::TextureCube Class Referenceabstract

2D texture cube object class. More...

#include <texture_cube.h>

+ Inheritance diagram for uicore::TextureCube:

Public Member Functions

virtual int height () const =0
 Get the texture height. More...
 
virtual void set_image (const GraphicContextPtr &context, TextureCubeDirection cube_direction, const PixelBufferPtr &image, int level=0)=0
 Upload image to texture. More...
 
virtual void set_subimage (const GraphicContextPtr &context, TextureCubeDirection cube_direction, int x, int y, const PixelBufferPtr &image, const Rect &src_rect, int level=0)=0
 Upload image to sub texture. More...
 
void set_subimage (const GraphicContextPtr &context, TextureCubeDirection cube_direction, const Point &point, const PixelBufferPtr &image, const Rect &src_rect, int level=0)
 
Size size () const
 Get the texture size. More...
 
virtual int width () const =0
 Get the texture width. More...
 
- Public Member Functions inherited from uicore::Texture
virtual int base_level () const =0
 Get the texture base level. More...
 
virtual CompareFunction compare_function () const =0
 Get the texture compare function. More...
 
virtual TextureCompareMode compare_mode () const =0
 Get the texture compare mode. More...
 
virtual void generate_mipmap ()=0
 Generate mipmap textures. More...
 
virtual float lod_bias () const =0
 Get the level of detail bias constant. More...
 
virtual TextureFilter mag_filter () const =0
 Get the texture magnification filter. More...
 
virtual int max_level () const =0
 Get the texture max level. More...
 
virtual float max_lod () const =0
 Get the maximum level of detail. More...
 
virtual TextureFilter min_filter () const =0
 Get the texture minification filter. More...
 
virtual float min_lod () const =0
 Get the minimum level of detail. More...
 
virtual void set_base_level (int base_level)=0
 Sets the texture base level texture parameter. More...
 
virtual void set_lod_bias (float lod_bias)=0
 Sets the level of detail bias constant. More...
 
virtual void set_mag_filter (TextureFilter filter)=0
 Set the magnification filter. More...
 
virtual void set_max_anisotropy (float max_anisotropy)=0
 Set the maximum degree of anisotropy. More...
 
virtual void set_max_level (int max_level)=0
 Sets the texture max level texture parameter. More...
 
virtual void set_max_lod (float max_lod)=0
 Set the maximum level of detail texture parameter. More...
 
virtual void set_min_filter (TextureFilter filter)=0
 Set the minification filter. More...
 
virtual void set_min_lod (float min_lod)=0
 Set the minimum level of detail texture parameter. More...
 
virtual void set_texture_compare (TextureCompareMode mode, CompareFunction func)=0
 Sets the texture compare mode and compare function texture parameters. More...
 
virtual TextureObject * texture_object ()=0
 

Static Public Member Functions

static std::shared_ptr< TextureCubecreate (const GraphicContextPtr &context, int width, int height, TextureFormat texture_format=tf_rgba8, int levels=1)
 Constructs a cube texture. More...
 
static std::shared_ptr< TextureCubecreate (const GraphicContextPtr &context, const Size &size, TextureFormat texture_format=tf_rgba8, int levels=1)
 
- Static Public Member Functions inherited from uicore::Texture
static std::shared_ptr< Texturecreate (const GraphicContextPtr &gc, PixelBufferSetPtr pixelbuffer_set)
 Constructs a texture as described by a pixelbuffer set. More...
 

Detailed Description

2D texture cube object class.

Member Function Documentation

static std::shared_ptr<TextureCube> uicore::TextureCube::create ( const GraphicContextPtr context,
int  width,
int  height,
TextureFormat  texture_format = tf_rgba8,
int  levels = 1 
)
static

Constructs a cube texture.

If levels is set to zero it will create a texture containing all mipmap levels

static std::shared_ptr<TextureCube> uicore::TextureCube::create ( const GraphicContextPtr context,
const Size size,
TextureFormat  texture_format = tf_rgba8,
int  levels = 1 
)
static
virtual int uicore::TextureCube::height ( ) const
pure virtual

Get the texture height.

Referenced by size().

virtual void uicore::TextureCube::set_image ( const GraphicContextPtr context,
TextureCubeDirection  cube_direction,
const PixelBufferPtr image,
int  level = 0 
)
pure virtual

Upload image to texture.

Parameters
contextGraphic context to use for the request
imageImage to upload.
levelMipmap level-of-detail number.
virtual void uicore::TextureCube::set_subimage ( const GraphicContextPtr context,
TextureCubeDirection  cube_direction,
int  x,
int  y,
const PixelBufferPtr image,
const Rect src_rect,
int  level = 0 
)
pure virtual

Upload image to sub texture.

Parameters
contextGraphic context to use for the request
imageImage to upload.
levelMipmap level-of-detail number.

Referenced by set_subimage().

void uicore::TextureCube::set_subimage ( const GraphicContextPtr context,
TextureCubeDirection  cube_direction,
const Point point,
const PixelBufferPtr image,
const Rect src_rect,
int  level = 0 
)
inline
Size uicore::TextureCube::size ( ) const
inline

Get the texture size.

References height(), and width().

virtual int uicore::TextureCube::width ( ) const
pure virtual

Get the texture width.

Referenced by size().


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