Files
Z3D/source/opengl/handles/texture_handle.ipp
2025-03-23 21:11:22 +01:00

17 lines
318 B
C++

#ifndef INCLUDE_TEXTURE_INSTANCE_IMPLEMENTATION
#error Never include this file directly include 'texture_handle.hpp'
#endif
namespace zgl
{
inline void texture_handle::bind() const
{
glBindTexture(GL_TEXTURE_2D, m_id);
}
inline void texture_handle::unbind()
{
glBindTexture(GL_TEXTURE_2D, 0);
}
} // namespace zgl