Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
Muto::Texture Class Referenceabstract

An abstraction for a texture. More...

#include <Texture.h>

Inheritance diagram for Muto::Texture:
Muto::Texture2D Muto::OpenGLTexture2D

Public Member Functions

virtual void Bind (uint32_t slot=0) const =0
 Binds the texture to the specified slot for use.
 
virtual uint32_t GetHeight () const =0
 Returns the height of the texture.
 
virtual std::string GetName () const =0
 
virtual uint32_t GetRendererID () const =0
 Returns the renderer ID of the texture.
 
virtual uint32_t GetWidth () const =0
 Returns the width of the texture.
 
virtual bool operator== (const Texture2D &other) const =0
 
virtual void SetData (void *data, uint32_t size)=0
 Sets the data of the texture.
 
virtual ~Texture ()=default
 

Detailed Description

An abstraction for a texture.

Constructor & Destructor Documentation

◆ ~Texture()

virtual Muto::Texture::~Texture ( )
virtualdefault

Member Function Documentation

◆ Bind()

virtual void Muto::Texture::Bind ( uint32_t  slot = 0) const
pure virtual

Binds the texture to the specified slot for use.

Implemented in Muto::OpenGLTexture2D.

◆ GetHeight()

virtual uint32_t Muto::Texture::GetHeight ( ) const
pure virtual

Returns the height of the texture.

Implemented in Muto::OpenGLTexture2D.

◆ GetName()

virtual std::string Muto::Texture::GetName ( ) const
pure virtual

Implemented in Muto::OpenGLTexture2D.

◆ GetRendererID()

virtual uint32_t Muto::Texture::GetRendererID ( ) const
pure virtual

Returns the renderer ID of the texture.

Implemented in Muto::OpenGLTexture2D.

◆ GetWidth()

virtual uint32_t Muto::Texture::GetWidth ( ) const
pure virtual

Returns the width of the texture.

Implemented in Muto::OpenGLTexture2D.

◆ operator==()

virtual bool Muto::Texture::operator== ( const Texture2D &  other) const
pure virtual

Implemented in Muto::OpenGLTexture2D.

◆ SetData()

virtual void Muto::Texture::SetData ( void *  data,
uint32_t  size 
)
pure virtual

Sets the data of the texture.

Parameters
dataPointer to the data to be set.
sizeSize of the data in bytes.

Implemented in Muto::OpenGLTexture2D.


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