7#include <glbinding/gl/types.h>
9#include <globjects/globjects_api.h>
20template <
typename Sub
class>
24 template <
typename... Args>
25 static std::unique_ptr<Subclass>
create(Args && ... args);
27 template <
typename... Args>
28 static std::unique_ptr<Subclass>
fromId(gl::GLuint
id, Args && ... args);
35#include <globjects/base/Instantiator.inl>
CRTP for creating objects similar to std::make_unique.
Definition: Instantiator.h:22
static std::unique_ptr< Subclass > create(Args &&... args)
static std::unique_ptr< Subclass > fromId(gl::GLuint id, Args &&... args)
Contains all the classes that wrap OpenGL functionality.