globjects  2.0.0.690708773bba
Strict OpenGL objects wrapper.
globjects::Instantiator< Subclass > Class Template Reference

CRTP for creating objects similar to std::make_unique. More...

#include <globjects/include/globjects/base/Instantiator.h>

Static Public Member Functions

template<typename... Args>
static std::unique_ptr< Subclass > create (Args &&...args)
 
template<typename... Args>
static std::unique_ptr< Subclass > fromId (gl::GLuint id, Args &&...args)
 

Detailed Description

template<typename Subclass>
class globjects::Instantiator< Subclass >

CRTP for creating objects similar to std::make_unique.

Member Function Documentation

template<typename Subclass>
template<typename... Args>
static std::unique_ptr<Subclass> globjects::Instantiator< Subclass >::create ( Args &&...  args)
static
template<typename Subclass>
template<typename... Args>
static std::unique_ptr<Subclass> globjects::Instantiator< Subclass >::fromId ( gl::GLuint  id,
Args &&...  args 
)
static

The documentation for this class was generated from the following file: