globjects  2.0.0.4363356ae2ef
Strict OpenGL objects wrapper.
Loading...
Searching...
No Matches
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

◆ create()

template<typename Subclass >
template<typename... Args>
static std::unique_ptr< Subclass > globjects::Instantiator< Subclass >::create ( Args &&...  args)
static

◆ fromId()

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: