Base Framework
Public Member Functions | List of all members
OpenGLPixmapContext Class Reference

OpenGL pixmap rendering context. More...

#include <base/opengl/OpenGLPixmapContext.h>

Inherits OpenGLContextImpl.

Public Member Functions

 OpenGLPixmapContext (const Dimension &dimension, unsigned int flags)
 
 ~OpenGLPixmapContext () noexcept
 
- Public Member Functions inherited from OpenGLContextImpl
 OpenGLContextImpl ()
 
String getGLClientVendor () const
 
String getGLClientRelease () const
 
String getGLClientExtensions () const
 
String getGLServerVendor () const
 
String getGLServerRelease () const
 
String getGLServerExtensions () const
 
unsigned int getNumberOfOverlayPlanes () const
 
unsigned int getNumberOfUnderlayPlanes () const
 
bool isDoubleBuffered () const noexcept
 
bool isColorIndexed () const noexcept
 
bool isStereoscopic () const noexcept
 
bool isDirect () const noexcept
 
bool isGeneric () const noexcept
 
bool isMultiSampled () const noexcept
 
bool isSwapLayers () const noexcept
 
bool hasAlphaBuffer () const noexcept
 
unsigned int getNumberOfColorBits () const noexcept
 
unsigned int getNumberOfRedBits () const noexcept
 
unsigned int getNumberOfGreenBits () const noexcept
 
unsigned int getNumberOfBlueBits () const noexcept
 
unsigned int getNumberOfAlphaBits () const noexcept
 
bool hasAccumulatorBuffer () const noexcept
 
unsigned int getNumberOfAcculumatorBits () const noexcept
 
unsigned int getNumberOfAcculumatorRedBits () const noexcept
 
unsigned int getNumberOfAcculumatorGreenBits () const noexcept
 
unsigned int getNumberOfAcculumatorBlueBits () const noexcept
 
unsigned int getNumberOfAcculumatorAlphaBits () const noexcept
 
bool hasDepthBuffer () const noexcept
 
unsigned int getNumberOfDepthBits () const noexcept
 
bool hasStencilBuffer () const noexcept
 
bool getNumberOfStencilBits () const noexcept
 
bool hasAuxBuffers () const noexcept
 
unsigned int getNumberOfAuxBuffers () const noexcept
 
bool hasCurrent () const
 
bool isCurrent () const
 
void makeCurrent ()
 
void deselect () noexcept
 
void swap ()
 
void swap (int plane)
 

Additional Inherited Members

- Public Types inherited from OpenGLContextImpl
enum  Flag {
  COLOR_INDEXED = 1, DOUBLE_BUFFERED = COLOR_INDEXED << 1, ACCUMULATOR = DOUBLE_BUFFERED << 1, ALPHA = ACCUMULATOR << 1,
  DEPTH = ALPHA << 1, STENCIL = DEPTH << 1, AUX = STENCIL << 1, MULTI_SAMPLE = AUX << 1,
  STEREO = MULTI_SAMPLE << 1, LUMINANCE = STEREO << 1, RGB = LUMINANCE << 1, OVERLAY = RGB << 1,
  UNDERLAY = OVERLAY << 1, SWAP_LAYER, DIRECT = UNDERLAY << 1, GENERIC = DIRECT << 1
}
 
- Static Protected Member Functions inherited from OpenGLContextImpl
static void loadModule ()
 
- Protected Attributes inherited from OpenGLContextImpl
void * graphicsContextHandle = nullptr
 
void * renderingContextHandle = nullptr
 
unsigned int flags = 0
 
uint8 colorBits = 0
 
uint8 redBits = 0
 
uint8 redShift = 0
 
uint8 greenBits = 0
 
uint8 greenShift = 0
 
uint8 blueBits = 0
 
uint8 blueShift = 0
 
uint8 alphaBits = 0
 
uint8 alphaShift = 0
 
uint8 accumulatorBits = 0
 
uint8 accumulatorRedBits = 0
 
uint8 accumulatorGreenBits = 0
 
uint8 accumulatorBlueBits = 0
 
uint8 accumulatorAlphaBits = 0
 
uint8 depthBits = 0
 
uint8 stencilBits = 0
 
uint8 auxBuffers = 0
 
unsigned int numberOfOverlayPlanes = 0
 
unsigned int numberOfUnderlayPlanes = 0
 
- Protected Attributes inherited from Drawable
void * drawableHandle = nullptr
 

Detailed Description

OpenGL pixmap rendering context.

OpenGL pixmap rendering context.

Version
1.0

Constructor & Destructor Documentation

◆ OpenGLPixmapContext()

OpenGLPixmapContext::OpenGLPixmapContext ( const Dimension dimension,
unsigned int  flags 
)

Initializes an OpenGL pixmap rendering context.

Parameters
dimensionThe dimension of the pixmap.
flagsThe format flags.

◆ ~OpenGLPixmapContext()

OpenGLPixmapContext::~OpenGLPixmapContext ( )
noexcept

Destroys the OpenGL pixmap rendering context.