mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 03:09:18 +02:00
further pruning of legacy render code, now runs on opengl 3.3 core
profile
This commit is contained in:
32
gl/object.h
Normal file
32
gl/object.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include <GL/glew.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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user