6 m_RendererID(0), m_FilePath(path), m_LocalBuffer(nullptr), m_Width(0), m_Height(0), m_BPP(0)
9 stbi_set_flip_vertically_on_load(1);
13 std::cout << stbi_failure_reason();
19 GLCall(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR));
20 GLCall(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR));
21 GLCall(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE));
22 GLCall(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE));
24 GLCall(glBindTexture(GL_TEXTURE_2D, 0));
28 stbi_set_flip_vertically_on_load(0);
void Bind(unsigned int slot=0) const
Texture(const std::string &path)
void SetFilePath(const std::string &path)
unsigned int m_RendererID
unsigned char * m_LocalBuffer
unsigned int GetRendererID()