mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-30 02:50:05 +00:00
64 lines
2.7 KiB
C++
64 lines
2.7 KiB
C++
/*
|
|
==============================================================================
|
|
|
|
This file is part of the JUCE 6 technical preview.
|
|
Copyright (c) 2017 - ROLI Ltd.
|
|
|
|
You may use this code under the terms of the GPL v3
|
|
(see www.gnu.org/licenses).
|
|
|
|
For this technical preview, this file is not subject to commercial licensing.
|
|
|
|
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
|
|
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
|
|
DISCLAIMED.
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
namespace juce
|
|
{
|
|
|
|
//==============================================================================
|
|
/**
|
|
Represents the various properties of an OpenGL pixel format.
|
|
|
|
@see OpenGLContext::setPixelFormat
|
|
|
|
@tags{OpenGL}
|
|
*/
|
|
class JUCE_API OpenGLPixelFormat
|
|
{
|
|
public:
|
|
//==============================================================================
|
|
/** Creates an OpenGLPixelFormat.
|
|
|
|
The default constructor just initialises the object as a simple 8-bit
|
|
RGBA format.
|
|
*/
|
|
OpenGLPixelFormat (int bitsPerRGBComponent = 8,
|
|
int alphaBits = 8,
|
|
int depthBufferBits = 16,
|
|
int stencilBufferBits = 0) noexcept;
|
|
|
|
bool operator== (const OpenGLPixelFormat&) const noexcept;
|
|
bool operator!= (const OpenGLPixelFormat&) const noexcept;
|
|
|
|
//==============================================================================
|
|
int redBits; /**< The number of bits per pixel to use for the red channel. */
|
|
int greenBits; /**< The number of bits per pixel to use for the green channel. */
|
|
int blueBits; /**< The number of bits per pixel to use for the blue channel. */
|
|
int alphaBits; /**< The number of bits per pixel to use for the alpha channel. */
|
|
|
|
int depthBufferBits; /**< The number of bits per pixel to use for a depth buffer. */
|
|
int stencilBufferBits; /**< The number of bits per pixel to use for a stencil buffer. */
|
|
|
|
int accumulationBufferRedBits; /**< The number of bits per pixel to use for an accumulation buffer's red channel. */
|
|
int accumulationBufferGreenBits; /**< The number of bits per pixel to use for an accumulation buffer's green channel. */
|
|
int accumulationBufferBlueBits; /**< The number of bits per pixel to use for an accumulation buffer's blue channel. */
|
|
int accumulationBufferAlphaBits; /**< The number of bits per pixel to use for an accumulation buffer's alpha channel. */
|
|
|
|
uint8 multisamplingLevel; /**< The number of samples to use for full-scene multisampled anti-aliasing (if available). */
|
|
};
|
|
|
|
} // namespace juce
|