Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
eng::Texture Class Reference

#include <Texture.h>

Public Member Functions

 Texture (int width, int height, int numChannels, unsigned char *data)
 
 ~Texture ()
 
GLuint GetID () const
 
void Init (int width, int height, int numChannels, unsigned char *data)
 

Static Public Member Functions

static std::shared_ptr< TextureLoad (const std::string &path)
 

Detailed Description

Definition at line 10 of file Texture.h.

Constructor & Destructor Documentation

◆ Texture()

eng::Texture::Texture ( int  width,
int  height,
int  numChannels,
unsigned char *  data 
)

Definition at line 9 of file Texture.cpp.

References Init().

◆ ~Texture()

eng::Texture::~Texture ( )

Definition at line 15 of file Texture.cpp.

Member Function Documentation

◆ GetID()

GLuint eng::Texture::GetID ( ) const

Definition at line 23 of file Texture.cpp.

Referenced by eng::ShaderProgram::SetTexture().

◆ Init()

void eng::Texture::Init ( int  width,
int  height,
int  numChannels,
unsigned char *  data 
)

Definition at line 28 of file Texture.cpp.

Referenced by Texture().

◆ Load()


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