ReTo  0.3.7
reto::Texture3D Class Reference

Class to manage 3D textures. More...

#include <TextureManager.h>

+ Inheritance diagram for reto::Texture3D:
+ Collaboration diagram for reto::Texture3D:

Public Member Functions

 Texture3D (const TextureConfig &options, void *data, unsigned int width, unsigned int height, unsigned int depth)
 
void update (int w, int h, int d, void *data)
 Method to update texture content. More...
 
- Public Member Functions inherited from reto::Texture
void bind (int slot=-1)
 Method to bind this texture. More...
 
void unbind (void)
 Method to unbind this texture.
 
unsigned int handler (void) const
 Method to get texture raw id. More...
 
unsigned int target (void) const
 Method to get texture target. More...
 
bool isLoaded (void) const
 Method to check if texture was loaded. More...
 
virtual void resize (int w, int h)
 Method to resize texture. More...
 
virtual void resize (int w, int h, void *data)
 Method to resize texture. More...
 

Protected Member Functions

virtual void load (void)
 
- Protected Member Functions inherited from reto::Texture
 Texture (const TextureConfig &options, unsigned int type)
 

Additional Inherited Members

- Protected Attributes inherited from reto::Texture
bool _loaded = false
 
unsigned int _target
 
unsigned int _handler
 
unsigned int _internalFormat
 
unsigned int _format
 
unsigned int _border
 
unsigned int _minFilter
 
unsigned int _magFilter
 
unsigned int _type
 
unsigned int _level
 
unsigned int _wrapS
 
unsigned int _wrapT
 
unsigned int _wrapR
 
unsigned int _packAlignment
 
unsigned int _unpackAlignment
 

Detailed Description

Class to manage 3D textures.

Definition at line 220 of file TextureManager.h.

Member Function Documentation

void reto::Texture3D::update ( int  w,
int  h,
int  d,
void *  data 
)

Method to update texture content.

Parameters
wNew width
hNew height
dNew depth
dataNew texture data

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