eduEngine 1.0
Course framework for DA376B
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
Texture2D Class Reference

Public Member Functions

void set_filter_mode (const texture_filter_mode_t &filter_mode)
 
void set_address_mode (const texture_address_mode_t &address_mode)
 
void load_from_file (const std::string &filename, const std::string &file)
 
void load_from_memory (const std::string &name, const unsigned char *image, int len)
 
void load_image (const std::string &name, const unsigned char *image, int w, int h, int channels)
 
GLuint getHandle ()
 
void bind (GLenum p_texture_slot) const
 
void unbind () const
 
void free ()
 

Public Attributes

GLuint m_handle = 0
 
unsigned m_width = 0
 
unsigned m_height = 0
 
unsigned m_channels = 0
 
std::string m_name = ""
 
std::string m_fullpath = ""
 
texture_filter_mode_t m_filter_mode = { GL_LINEAR_MIPMAP_LINEAR, GL_LINEAR }
 
texture_address_mode_t m_address_mode { GL_REPEAT, GL_REPEAT }
 

Friends

std::ostream & operator<< (std::ostream &os, const Texture2D &t)
 

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