NRE::Graphics::Context Class Reference

Describe an OpenGL Context with a set of attributes. More...

#include <NRE_Context.hpp>

Public Member Functions

 Context (InternalWindow &window, ContextAttributes const &attr)
 
 Context (Context const &ctx)=delete
 
 Context (Context &&ctx)=delete
 
 ~Context ()
 
void release ()
 
Contextoperator= (Context const &ctx)=delete
 
Contextoperator= (Context &&ctx)=delete
 

Detailed Description

Describe an OpenGL Context with a set of attributes.

Constructor & Destructor Documentation

NRE::Graphics::Context::Context ( InternalWindow window,
ContextAttributes const &  attr 
)

Construct the context using the target window and desired attributes

Parameters
windowthe window to create the context
attrthe context attributes
NRE::Graphics::Context::Context ( Context const &  ctx)
delete

Copy forbidden

Parameters
ctxthe context to copy
NRE::Graphics::Context::Context ( Context &&  ctx)
delete

Move forbidden

Parameters
ctxthe context to move
NRE::Graphics::Context::~Context ( )

Context Deconstructor

Member Function Documentation

Context& NRE::Graphics::Context::operator= ( Context const &  ctx)
delete

Copy forbidden

Parameters
ctxthe object to copy into this
Returns
the reference of himself
Context& NRE::Graphics::Context::operator= ( Context &&  ctx)
delete

Move forbidden

Parameters
ctxthe object to move into this
Returns
the reference of himself
void NRE::Graphics::Context::release ( )

Release the context


The documentation for this class was generated from the following files:
  • /mnt/c/Users/abell/Documents/GitHub/NRE-System/src/System/Graphics/Driver/Context/NRE_Context.hpp
  • /mnt/c/Users/abell/Documents/GitHub/NRE-System/src/OS/Linux/Graphics/Driver/Context/NRE_LinuxContext.cpp
  • /mnt/c/Users/abell/Documents/GitHub/NRE-System/src/OS/Windows/Graphics/Driver/Context/NRE_WindowsContext.cpp