mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 06:55:02 +01:00
33 lines
518 B
C++
33 lines
518 B
C++
#pragma once
|
|
|
|
#include <glad/glad.h>
|
|
|
|
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;
|
|
};
|
|
}
|