initial commit
This commit is contained in:
16
source/opengl/handles/texture_handle.ipp
Normal file
16
source/opengl/handles/texture_handle.ipp
Normal file
@@ -0,0 +1,16 @@
|
||||
#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, texture_id);
|
||||
}
|
||||
|
||||
inline void texture_handle::unbind()
|
||||
{
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
}
|
||||
} // namespace zgl
|
||||
Reference in New Issue
Block a user