Engine::Graphics::Texture3D
Module: An example game engine / Graphical related classes
Some deprecated class. More...
#include <Texture3D.hpp>
Inherits from Engine::Graphics::Texture, Engine::Graphics::Handle
Public Functions
Name | |
---|---|
Texture3D(int width, int height, int depth, uint8_t * data, Texture::Type type =Texture::Type::RGBA8) | |
virtual | ~Texture3D() |
virtual int | getWidth() const override Returns the width of the texture in pixels. |
virtual int | getHeight() const override Returns the height of the texture in pixels. |
virtual int | getDepth() const override Returns the depth of the texture in pixels. |
Additional inherited members
Public Types inherited from Engine::Graphics::Texture
Name | |
---|---|
enum class | Type { UNKNOWN, RGBA_8, RGB_8, RGBA_16, RGB_16, RGBA_32, RGB_32} |
Public Functions inherited from Engine::Graphics::Texture
Name | |
---|---|
Texture(Type type) | |
virtual | ~Texture() =default |
bool | isLoaded() const |
Protected Attributes inherited from Engine::Graphics::Texture
Name | |
---|---|
bool | loaded |
Type | type |
Public Functions inherited from Engine::Graphics::Handle
Name | |
---|---|
Handle() =default | |
virtual | ~Handle() =default |
int | getHandle() const |
Protected Attributes inherited from Engine::Graphics::Handle
Name | |
---|---|
int | handle |
Detailed Description
class Engine::Graphics::Texture3D;
Some deprecated class.
Deprecated:
Don't use this texture type
Public Functions Documentation
function Texture3D
Texture3D(
int width,
int height,
int depth,
uint8_t * data,
Texture::Type type =Texture::Type::RGBA8
)
function ~Texture3D
virtual ~Texture3D()
function getWidth
virtual int getWidth() const override
Returns the width of the texture in pixels.
Return: Width in pixels
Reimplements: Engine::Graphics::Texture::getWidth
function getHeight
virtual int getHeight() const override
Returns the height of the texture in pixels.
Return: Height in pixels
Reimplements: Engine::Graphics::Texture::getHeight
function getDepth
virtual int getDepth() const override
Returns the depth of the texture in pixels.
Return: Depth in pixels
Note: If this texture is 2D the depth is always 1 pixels
Reimplements: Engine::Graphics::Texture::getDepth
Updated on 2022-10-19 at 22:22:04 +0000