NRE::Graphics::ContextAttributes Class Reference

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
 
ContextAttributesoperator= (ContextAttributes const &attr)=default
 
ContextAttributesoperator= (ContextAttributes &&attr)=default
 

Detailed Description

Regroup all attributes needed in a GL context, should be modified before creation.

Constructor & Destructor Documentation

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

Parameters
listthe attributes list
NRE::Graphics::ContextAttributes::ContextAttributes ( ContextAttributes const &  attr)
default

Copy attr into this

Parameters
attrthe context attributes to copy
NRE::Graphics::ContextAttributes::ContextAttributes ( ContextAttributes &&  attr)
default

Move attr into this

Parameters
attrthe context attributes to move
NRE::Graphics::ContextAttributes::~ContextAttributes ( )
default

ContextAttributes Deconstructor

Member Function Documentation

ContextAttributes& NRE::Graphics::ContextAttributes::operator= ( ContextAttributes const &  attr)
default

Copy assignment of attr into this

Parameters
attrthe context attributes to copy into this
Returns
the reference of himself
ContextAttributes& NRE::Graphics::ContextAttributes::operator= ( ContextAttributes &&  attr)
default

Move assignment of attr into this, leaving o empty

Parameters
attrthe context attributes to move into this
Returns
the reference of himself
int& NRE::Graphics::ContextAttributes::operator[] ( GLAttributes  index)

Access a particular attribute without bound checking

Parameters
indexthe attribute index
Returns
the corresponding attribute
int const& NRE::Graphics::ContextAttributes::operator[] ( GLAttributes  index) const

Access a particular attribute without bound checking

Parameters
indexthe attribute index
Returns
the corresponding attribute

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