mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-18 00:59:18 +02:00
39 lines
568 B
C++
39 lines
568 B
C++
module;
|
|
#include <glad/glad.h>
|
|
|
|
export module eu07.gl.object;
|
|
|
|
export {
|
|
|
|
|
|
namespace gl
|
|
{
|
|
class object
|
|
{
|
|
private:
|
|
GLuint id = 0;
|
|
|
|
public:
|
|
inline operator GLuint() const
|
|
{
|
|
return id;
|
|
}
|
|
|
|
inline operator GLuint* const()
|
|
{
|
|
return &id;
|
|
}
|
|
|
|
inline operator const GLuint* const() const
|
|
{
|
|
return &id;
|
|
}
|
|
|
|
object() = default;
|
|
object(const object&) = delete;
|
|
object& operator=(const object&) = delete;
|
|
};
|
|
}
|
|
|
|
} // export
|