Aeon Engine
c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
OpenGLUniformBlock.hpp
1
/*
2
Copyright (C) 2025,2026 Rodrigo Jose Hernandez Cordoba
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
#ifndef AEONGAMES_OPENGLUNIFORMBLOCK_HPP
17
#define AEONGAMES_OPENGLUNIFORMBLOCK_HPP
18
19
#include <cstdint>
20
#include <vector>
21
#include "OpenGLFunctions.hpp"
22
#include "OpenGLVariable.hpp"
23
namespace
AeonGames
24
{
26
struct
OpenGLUniformBlock
27
{
28
uint32_t
name
;
29
GLint
size
;
30
GLint
binding
;
31
std::vector<OpenGLVariable>
uniforms
;
32
};
33
}
34
#endif
AeonGames
<- This is here just for the literals
Definition
AABB.hpp:31
AeonGames::OpenGLUniformBlock
Describes an OpenGL uniform block with its binding and member variables.
Definition
OpenGLUniformBlock.hpp:27
AeonGames::OpenGLUniformBlock::uniforms
std::vector< OpenGLVariable > uniforms
Member variables within the block.
Definition
OpenGLUniformBlock.hpp:31
AeonGames::OpenGLUniformBlock::size
GLint size
Total byte size of the uniform block.
Definition
OpenGLUniformBlock.hpp:29
AeonGames::OpenGLUniformBlock::name
uint32_t name
Name hash identifier of the uniform block.
Definition
OpenGLUniformBlock.hpp:28
AeonGames::OpenGLUniformBlock::binding
GLint binding
Binding point index.
Definition
OpenGLUniformBlock.hpp:30
engine
renderers
opengl
OpenGLUniformBlock.hpp
Generated by
1.16.1