-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcontextsettings.hpp
More file actions
52 lines (48 loc) · 1.92 KB
/
contextsettings.hpp
File metadata and controls
52 lines (48 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
#include <fea/config.hpp>
#include <stdint.h>
namespace fea
{
struct FEA_API ContextSettings
{
explicit ContextSettings(uint32_t depthBits = 0, uint32_t stencilBits = 0, uint32_t antialiasingLevel = 0, uint32_t majorVersion = 2, uint32_t minorVersion = 2);
uint32_t mDepthBits;
uint32_t mStencilBits;
uint32_t mAntialiasingLevel;
uint32_t mMajorVersion;
uint32_t mMinorVersion;
};
/** @addtogroup UserInterface
*@{
* @struct ContextSettings
*@}
***
* @struct ContextSettings
* @brief Defines the settings of the OpenGL context attached to a window if OpenGL is used.
*
***
* @fn explicit ContextSettings::ContextSettings(uint32_t depthBits = 0, uint32_t stencilBits = 0, uint32_t antialiasingLevel = 0, uint32_t majorVersion = 2, uint32_t minorVersion = 2)
* @brief Default constructor.
*
* @param depthBits Number of bits per pixel of the depth buffer.
* @param stencilBits Number of bits per pixel of the stencil buffer.
* @param antialiasingLevel Antialiasing level.
* @param majorVersion Major version number of the OpenGL context.
* @param minorVersion Minor version number of the OpenGL context.
***
* @var ContextSettings::mDepthBits
* @brief The number of bits per pixel requested for the depth buffer.
***
* @var ContextSettings::mStencilBits
* @brief The number of bits per pixel requested for the stencil buffer.
***
* @var ContextSettings::mAntialiasingLevel
* @brief The number of multisampling levels requested for anti-aliasing.
***
* @var ContextSettings::mMajorVersion
* @brief The major version number of the OpenGL context to be created.
***
* @var ContextSettings::mMinorVersion
* @brief The minor version number of the OpenGL context to be created.
***/
}