JUCE
Public Member Functions | Public Attributes | List of all members
juce::OpenGLPixelFormat Class Reference

Represents the various properties of an OpenGL pixel format. More...

Public Member Functions

 OpenGLPixelFormat (int bitsPerRGBComponent=8, int alphaBits=8, int depthBufferBits=16, int stencilBufferBits=0) noexcept
 Creates an OpenGLPixelFormat. More...
 
bool operator== (const OpenGLPixelFormat &) const noexcept
 
bool operator!= (const OpenGLPixelFormat &) const noexcept
 

Public Attributes

int redBits
 The number of bits per pixel to use for the red channel. More...
 
int greenBits
 The number of bits per pixel to use for the green channel. More...
 
int blueBits
 The number of bits per pixel to use for the blue channel. More...
 
int alphaBits
 The number of bits per pixel to use for the alpha channel. More...
 
int depthBufferBits
 The number of bits per pixel to use for a depth buffer. More...
 
int stencilBufferBits
 The number of bits per pixel to use for a stencil buffer. More...
 
int accumulationBufferRedBits
 The number of bits per pixel to use for an accumulation buffer's red channel. More...
 
int accumulationBufferGreenBits
 The number of bits per pixel to use for an accumulation buffer's green channel. More...
 
int accumulationBufferBlueBits
 The number of bits per pixel to use for an accumulation buffer's blue channel. More...
 
int accumulationBufferAlphaBits
 The number of bits per pixel to use for an accumulation buffer's alpha channel. More...
 
uint8 multisamplingLevel
 The number of samples to use for full-scene multisampled anti-aliasing (if available). More...
 

Detailed Description

Represents the various properties of an OpenGL pixel format.

See also
OpenGLContext::setPixelFormat

Constructor & Destructor Documentation

◆ OpenGLPixelFormat()

juce::OpenGLPixelFormat::OpenGLPixelFormat ( int  bitsPerRGBComponent = 8,
int  alphaBits = 8,
int  depthBufferBits = 16,
int  stencilBufferBits = 0 
)
noexcept

Creates an OpenGLPixelFormat.

The default constructor just initialises the object as a simple 8-bit RGBA format.

Member Function Documentation

◆ operator==()

bool juce::OpenGLPixelFormat::operator== ( const OpenGLPixelFormat ) const
noexcept

◆ operator!=()

bool juce::OpenGLPixelFormat::operator!= ( const OpenGLPixelFormat ) const
noexcept

Member Data Documentation

◆ redBits

int juce::OpenGLPixelFormat::redBits

The number of bits per pixel to use for the red channel.

Referenced by juce::OpenGLContext::NativeContext::createAttribs(), and juce::OpenGLContext::NativeContext::NativeContext().

◆ greenBits

int juce::OpenGLPixelFormat::greenBits

The number of bits per pixel to use for the green channel.

Referenced by juce::OpenGLContext::NativeContext::createAttribs(), and juce::OpenGLContext::NativeContext::NativeContext().

◆ blueBits

int juce::OpenGLPixelFormat::blueBits

The number of bits per pixel to use for the blue channel.

Referenced by juce::OpenGLContext::NativeContext::createAttribs(), and juce::OpenGLContext::NativeContext::NativeContext().

◆ alphaBits

int juce::OpenGLPixelFormat::alphaBits

The number of bits per pixel to use for the alpha channel.

Referenced by juce::OpenGLContext::NativeContext::createAttribs(), and juce::OpenGLContext::NativeContext::NativeContext().

◆ depthBufferBits

int juce::OpenGLPixelFormat::depthBufferBits

The number of bits per pixel to use for a depth buffer.

Referenced by juce::OpenGLContext::NativeContext::createAttribs(), and juce::OpenGLContext::NativeContext::NativeContext().

◆ stencilBufferBits

int juce::OpenGLPixelFormat::stencilBufferBits

The number of bits per pixel to use for a stencil buffer.

Referenced by juce::OpenGLContext::NativeContext::createAttribs(), and juce::OpenGLContext::NativeContext::NativeContext().

◆ accumulationBufferRedBits

int juce::OpenGLPixelFormat::accumulationBufferRedBits

The number of bits per pixel to use for an accumulation buffer's red channel.

Referenced by juce::OpenGLContext::NativeContext::createAttribs(), and juce::OpenGLContext::NativeContext::NativeContext().

◆ accumulationBufferGreenBits

int juce::OpenGLPixelFormat::accumulationBufferGreenBits

The number of bits per pixel to use for an accumulation buffer's green channel.

Referenced by juce::OpenGLContext::NativeContext::createAttribs(), and juce::OpenGLContext::NativeContext::NativeContext().

◆ accumulationBufferBlueBits

int juce::OpenGLPixelFormat::accumulationBufferBlueBits

The number of bits per pixel to use for an accumulation buffer's blue channel.

Referenced by juce::OpenGLContext::NativeContext::createAttribs(), and juce::OpenGLContext::NativeContext::NativeContext().

◆ accumulationBufferAlphaBits

int juce::OpenGLPixelFormat::accumulationBufferAlphaBits

The number of bits per pixel to use for an accumulation buffer's alpha channel.

Referenced by juce::OpenGLContext::NativeContext::createAttribs(), and juce::OpenGLContext::NativeContext::NativeContext().

◆ multisamplingLevel

uint8 juce::OpenGLPixelFormat::multisamplingLevel

The number of samples to use for full-scene multisampled anti-aliasing (if available).

Referenced by juce::OpenGLContext::NativeContext::createAttribs().


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