Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
OpenGLVariable.hpp
1/*
2Copyright (C) 2025,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16#ifndef AEONGAMES_OPENGLVARIABLE_HPP
17#define AEONGAMES_OPENGLVARIABLE_HPP
18
19#include <cstdint>
20#include "OpenGLFunctions.hpp"
21
22namespace AeonGames
23{
26 {
27 uint32_t name;
28 union
29 {
30 GLint binding;
31 GLint location;
32 GLint offset;
33 };
34 GLint size;
35 GLenum type;
36 };
37
40 {
41 uint32_t name{};
42 GLint location{};
43 };
44}
45#endif
<- This is here just for the literals
Definition AABB.hpp:31
Maps a sampler name hash to its OpenGL uniform location.
GLint location
Uniform location of the sampler.
uint32_t name
Name hash identifier of the sampler.
Describes an OpenGL shader variable with its location and type.
GLint size
Element count of the variable.
GLenum type
OpenGL type enumeration value.
uint32_t name
Name hash identifier of the variable.