My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Texture Class Reference

#include <textures.hh>

Collaboration diagram for Texture:
Collaboration graph

Public Member Functions

 Texture (const std::string &file, const bool repeat=false)
 
 ~Texture ()
 
void bind (unsigned int slot=0) const
 
void unbind () const
 
int get_width () const
 
int get_height () const
 

Private Attributes

unsigned int t_render_id
 
std::string t_filepath
 
unsigned char * t_localbuffer
 
int t_width
 
int t_height
 
int t_bpp
 

Constructor & Destructor Documentation

◆ Texture()

Texture::Texture ( const std::string &  file,
const bool  repeat = false 
)
explicit

◆ ~Texture()

Texture::~Texture ( )

Member Function Documentation

◆ bind()

void Texture::bind ( unsigned int  slot = 0) const

◆ get_height()

int Texture::get_height ( ) const
inline

◆ get_width()

int Texture::get_width ( ) const
inline

◆ unbind()

void Texture::unbind ( ) const

Member Data Documentation

◆ t_bpp

int Texture::t_bpp
private

◆ t_filepath

std::string Texture::t_filepath
private

◆ t_height

int Texture::t_height
private

◆ t_localbuffer

unsigned char* Texture::t_localbuffer
private

◆ t_render_id

unsigned int Texture::t_render_id
private

◆ t_width

int Texture::t_width
private

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