My Project
Loading...
Searching...
No Matches
gl-types.h
Go to the documentation of this file.
1
// Copyright (c) 2025 Milton McDonald
2
// This source code is licensed under the MIT License. See LICENSE file in the
3
// project root for details.
4
5
#ifndef ENGINE_LIB_GL_TYPES_H_
6
#define ENGINE_LIB_GL_TYPES_H_
7
8
#include <cstdint>
9
10
namespace
graphics_engine::gl_types
{
11
12
enum class
GLBufferTarget
: std::uint8_t {
13
kArray
,
14
kCopyRead
,
15
kCopyWrite
,
16
kElementArray
,
17
kPixelPack
,
18
kPixelUnpack
,
19
kTexture
,
20
kTransformFeedback
,
21
kUniform
22
};
23
24
enum class
GLClearBit
: std::uint8_t {
kColor
,
kDepth
,
kStencil
,
kNumBits
};
25
26
enum class
GLDataType
: std::uint8_t {
27
kByte
,
28
kUnsignedByte
,
29
kShort
,
30
kUnsignedShort
,
31
kInt
,
32
kUnsignedInt
,
33
kHalfFloat
,
34
kFloat
,
35
kDouble
,
36
kInt_2_10_10_10_Rev
,
37
kUnsignedInt_2_10_10_10_Rev
38
};
39
40
enum class
GLDataUsagePattern
: std::uint8_t {
41
kStreamDraw
,
42
kStreamRead
,
43
kStreamCopy
,
44
kStaticDraw
,
45
kStaticRead
,
46
kStaticCopy
,
47
kDynamicDraw
,
48
kDynamicRead
,
49
kDynamicCopy
50
};
51
52
enum class
GLDrawMode
: std::uint8_t {
53
kPoints
,
54
kLineStrip
,
55
kLineLoop
,
56
kLines
,
57
kLineStripAdjacency
,
58
kLinesAdjacency
,
59
kTriangleStrip
,
60
kTriangleFan
,
61
kTriangles
,
62
kTriangleStripAdjacency
,
63
kTrianglesAdjacency
64
};
65
66
enum class
GLShaderObjectParameter
: std::uint8_t {
67
kShaderType
,
68
kDeleteStatus
,
69
kCompileStatus
,
70
kInfoLogLength
,
71
kShaderSourceLength
72
};
73
74
enum class
GLShaderType
: std::uint8_t {
kFragment
,
kGeometry
,
kVertex
};
75
76
}
// namespace graphics_engine::gl_types
77
78
#endif
// ENGINE_LIB_GL_TYPES_H_
graphics_engine::gl_types
Definition
gl-types.h:10
graphics_engine::gl_types::GLDataType
GLDataType
Definition
gl-types.h:26
graphics_engine::gl_types::GLDataType::kByte
@ kByte
graphics_engine::gl_types::GLDataType::kShort
@ kShort
graphics_engine::gl_types::GLDataType::kInt
@ kInt
graphics_engine::gl_types::GLDataType::kHalfFloat
@ kHalfFloat
graphics_engine::gl_types::GLDataType::kUnsignedByte
@ kUnsignedByte
graphics_engine::gl_types::GLDataType::kDouble
@ kDouble
graphics_engine::gl_types::GLDataType::kFloat
@ kFloat
graphics_engine::gl_types::GLDataType::kUnsignedShort
@ kUnsignedShort
graphics_engine::gl_types::GLDataType::kInt_2_10_10_10_Rev
@ kInt_2_10_10_10_Rev
graphics_engine::gl_types::GLDataType::kUnsignedInt_2_10_10_10_Rev
@ kUnsignedInt_2_10_10_10_Rev
graphics_engine::gl_types::GLDataType::kUnsignedInt
@ kUnsignedInt
graphics_engine::gl_types::GLClearBit
GLClearBit
Definition
gl-types.h:24
graphics_engine::gl_types::GLClearBit::kStencil
@ kStencil
graphics_engine::gl_types::GLClearBit::kDepth
@ kDepth
graphics_engine::gl_types::GLClearBit::kNumBits
@ kNumBits
graphics_engine::gl_types::GLClearBit::kColor
@ kColor
graphics_engine::gl_types::GLDrawMode
GLDrawMode
Definition
gl-types.h:52
graphics_engine::gl_types::GLDrawMode::kLinesAdjacency
@ kLinesAdjacency
graphics_engine::gl_types::GLDrawMode::kTriangleFan
@ kTriangleFan
graphics_engine::gl_types::GLDrawMode::kLines
@ kLines
graphics_engine::gl_types::GLDrawMode::kLineStrip
@ kLineStrip
graphics_engine::gl_types::GLDrawMode::kTriangleStrip
@ kTriangleStrip
graphics_engine::gl_types::GLDrawMode::kLineLoop
@ kLineLoop
graphics_engine::gl_types::GLDrawMode::kPoints
@ kPoints
graphics_engine::gl_types::GLDrawMode::kTriangles
@ kTriangles
graphics_engine::gl_types::GLDrawMode::kLineStripAdjacency
@ kLineStripAdjacency
graphics_engine::gl_types::GLDrawMode::kTrianglesAdjacency
@ kTrianglesAdjacency
graphics_engine::gl_types::GLDrawMode::kTriangleStripAdjacency
@ kTriangleStripAdjacency
graphics_engine::gl_types::GLBufferTarget
GLBufferTarget
Definition
gl-types.h:12
graphics_engine::gl_types::GLBufferTarget::kTransformFeedback
@ kTransformFeedback
graphics_engine::gl_types::GLBufferTarget::kCopyRead
@ kCopyRead
graphics_engine::gl_types::GLBufferTarget::kTexture
@ kTexture
graphics_engine::gl_types::GLBufferTarget::kPixelPack
@ kPixelPack
graphics_engine::gl_types::GLBufferTarget::kUniform
@ kUniform
graphics_engine::gl_types::GLBufferTarget::kElementArray
@ kElementArray
graphics_engine::gl_types::GLBufferTarget::kArray
@ kArray
graphics_engine::gl_types::GLBufferTarget::kPixelUnpack
@ kPixelUnpack
graphics_engine::gl_types::GLBufferTarget::kCopyWrite
@ kCopyWrite
graphics_engine::gl_types::GLDataUsagePattern
GLDataUsagePattern
Definition
gl-types.h:40
graphics_engine::gl_types::GLDataUsagePattern::kDynamicRead
@ kDynamicRead
graphics_engine::gl_types::GLDataUsagePattern::kStreamRead
@ kStreamRead
graphics_engine::gl_types::GLDataUsagePattern::kDynamicDraw
@ kDynamicDraw
graphics_engine::gl_types::GLDataUsagePattern::kStreamDraw
@ kStreamDraw
graphics_engine::gl_types::GLDataUsagePattern::kStaticDraw
@ kStaticDraw
graphics_engine::gl_types::GLDataUsagePattern::kDynamicCopy
@ kDynamicCopy
graphics_engine::gl_types::GLDataUsagePattern::kStreamCopy
@ kStreamCopy
graphics_engine::gl_types::GLDataUsagePattern::kStaticRead
@ kStaticRead
graphics_engine::gl_types::GLDataUsagePattern::kStaticCopy
@ kStaticCopy
graphics_engine::gl_types::GLShaderObjectParameter
GLShaderObjectParameter
Definition
gl-types.h:66
graphics_engine::gl_types::GLShaderObjectParameter::kDeleteStatus
@ kDeleteStatus
graphics_engine::gl_types::GLShaderObjectParameter::kShaderType
@ kShaderType
graphics_engine::gl_types::GLShaderObjectParameter::kCompileStatus
@ kCompileStatus
graphics_engine::gl_types::GLShaderObjectParameter::kShaderSourceLength
@ kShaderSourceLength
graphics_engine::gl_types::GLShaderObjectParameter::kInfoLogLength
@ kInfoLogLength
graphics_engine::gl_types::GLShaderType
GLShaderType
Definition
gl-types.h:74
graphics_engine::gl_types::GLShaderType::kFragment
@ kFragment
graphics_engine::gl_types::GLShaderType::kVertex
@ kVertex
graphics_engine::gl_types::GLShaderType::kGeometry
@ kGeometry
engine-lib
include
graphics-engine
gl-types.h
Generated by
1.9.8