Regroup all attributes needed in a GL context, should be modified before creation. More...
#include <NRE_ContextAttributes.hpp>
Public Member Functions | |
ContextAttributes () | |
ContextAttributes (std::initializer_list< int > list) | |
ContextAttributes (ContextAttributes const &attr)=default | |
ContextAttributes (ContextAttributes &&attr)=default | |
~ContextAttributes ()=default | |
int & | operator[] (GLAttributes index) |
int const & | operator[] (GLAttributes index) const |
ContextAttributes & | operator= (ContextAttributes const &attr)=default |
ContextAttributes & | operator= (ContextAttributes &&attr)=default |
Regroup all attributes needed in a GL context, should be modified before creation.
NRE::Graphics::ContextAttributes::ContextAttributes | ( | ) |
Create a default context attributes
NRE::Graphics::ContextAttributes::ContextAttributes | ( | std::initializer_list< int > | list | ) |
Create a context attributes from an attributes list
list | the attributes list |
|
default |
Copy attr into this
attr | the context attributes to copy |
|
default |
Move attr into this
attr | the context attributes to move |
|
default |
ContextAttributes Deconstructor
|
default |
Copy assignment of attr into this
attr | the context attributes to copy into this |
|
default |
Move assignment of attr into this, leaving o empty
attr | the context attributes to move into this |
int& NRE::Graphics::ContextAttributes::operator[] | ( | GLAttributes | index | ) |
Access a particular attribute without bound checking
index | the attribute index |
int const& NRE::Graphics::ContextAttributes::operator[] | ( | GLAttributes | index | ) | const |
Access a particular attribute without bound checking
index | the attribute index |