Doxybook2 Example
Public Member Functions | List of all members
Engine::Graphics::Texture3D Class Reference

Some deprecated class. More...

#include <Texture3D.hpp>

Inheritance diagram for Engine::Graphics::Texture3D:
Engine::Graphics::Texture Engine::Graphics::Handle

Public Member Functions

 Texture3D (int width, int height, int depth, uint8_t *data, Texture::Type type=Texture::Type::RGBA8)
 
virtual ~Texture3D ()
 
int getWidth () const override
 Returns the width of the texture in pixels. More...
 
int getHeight () const override
 Returns the height of the texture in pixels. More...
 
int getDepth () const override
 Returns the depth of the texture in pixels. More...
 
- Public Member Functions inherited from Engine::Graphics::Texture
 Texture (Type type)
 
virtual ~Texture ()=default
 
bool isLoaded () const
 

Additional Inherited Members

- Public Types inherited from Engine::Graphics::Texture
enum  Type {
  Type::UNKNOWN = 0, Type::RGBA_8, Type::RGB_8, Type::RGBA_16,
  Type::RGB_16, Type::RGBA_32, Type::RGB_32
}
 
- Protected Member Functions inherited from Engine::Graphics::Handle
 Handle ()=default
 
virtual ~Handle ()=default
 
int getHandle () const
 
- Protected Attributes inherited from Engine::Graphics::Texture
bool loaded {false}
 
Type type
 
- Protected Attributes inherited from Engine::Graphics::Handle
int handle
 

Detailed Description

Some deprecated class.

Deprecated:
Don't use this texture type

Constructor & Destructor Documentation

◆ Texture3D()

Engine::Graphics::Texture3D::Texture3D ( int  width,
int  height,
int  depth,
uint8_t *  data,
Texture::Type  type = Texture::Type::RGBA8 
)

◆ ~Texture3D()

virtual Engine::Graphics::Texture3D::~Texture3D ( )
virtual

Member Function Documentation

◆ getDepth()

int Engine::Graphics::Texture3D::getDepth ( ) const
overridevirtual

Returns the depth of the texture in pixels.

Note
If this texture is 2D the depth is always 1 pixels
Returns
Depth in pixels

Implements Engine::Graphics::Texture.

◆ getHeight()

int Engine::Graphics::Texture3D::getHeight ( ) const
overridevirtual

Returns the height of the texture in pixels.

Returns
Height in pixels

Implements Engine::Graphics::Texture.

◆ getWidth()

int Engine::Graphics::Texture3D::getWidth ( ) const
overridevirtual

Returns the width of the texture in pixels.

Returns
Width in pixels

Implements Engine::Graphics::Texture.


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