Vivid
Loading...
Searching...
No Matches
Vivid::Texture Class Reference

A class for the Texture. More...

#include <Texture.h>

Public Member Functions

 Texture (const std::string &path)
 
void Bind (unsigned int slot=0) const
 
void Unbind () const
 
unsigned int GetRendererID () const
 
int GetWidth () const
 
int GetHeight () const
 
String GetFilePath () const
 
String GetName () const
 
void SetName (const String &name)
 

Detailed Description

A class for the Texture.

Texture is a class that contains the texture. It can load all formats supported by stb_image library. The raw data of the texture is stored in the m_LocalBuffer variable.

Definition at line 13 of file Texture.h.

Constructor & Destructor Documentation

◆ Texture() [1/2]

Vivid::Texture::Texture ( )

Definition at line 37 of file Texture.cpp.

◆ Texture() [2/2]

Vivid::Texture::Texture ( const std::string &  path)

Definition at line 5 of file Texture.cpp.

◆ ~Texture()

Vivid::Texture::~Texture ( )

Definition at line 57 of file Texture.cpp.

Member Function Documentation

◆ Bind()

void Vivid::Texture::Bind ( unsigned int  slot = 0) const

Definition at line 62 of file Texture.cpp.

◆ GetFilePath()

String Vivid::Texture::GetFilePath ( ) const
inline

Definition at line 33 of file Texture.h.

◆ GetHeight()

int Vivid::Texture::GetHeight ( ) const
inline

Definition at line 32 of file Texture.h.

◆ GetName()

String Vivid::Texture::GetName ( ) const
inline

Definition at line 34 of file Texture.h.

◆ GetRendererID()

unsigned int Vivid::Texture::GetRendererID ( ) const
inline

Definition at line 30 of file Texture.h.

◆ GetWidth()

int Vivid::Texture::GetWidth ( ) const
inline

Definition at line 31 of file Texture.h.

◆ SetName()

void Vivid::Texture::SetName ( const String &  name)
inline

Definition at line 36 of file Texture.h.

◆ Unbind()

void Vivid::Texture::Unbind ( ) const

Definition at line 68 of file Texture.cpp.


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