18 lines
305 B
C++
18 lines
305 B
C++
#pragma once
|
|
|
|
#include "GL/glew.h"
|
|
|
|
namespace zgl {
|
|
struct texture_handle
|
|
{
|
|
inline void bind() const;
|
|
inline static void unbind();
|
|
|
|
GLuint texture_id{ 0 };
|
|
};
|
|
}
|
|
|
|
#define INCLUDE_TEXTURE_INSTANCE_IMPLEMENTATION
|
|
#include "opengl/handles/texture_handle.ipp"
|
|
#undef INCLUDE_TEXTURE_INSTANCE_IMPLEMENTATION
|