TeaPacket v0.0.1
Multiplatform Game Engine
Loading...
Searching...
No Matches
ShaderVariable.hpp
Go to the documentation of this file.
1#pragma once
2
3
5{
6
7 class Texture;
8
17
19 {
20 float f;
21 signed int i;
22 unsigned int ui;
24 };
25
27
45
54}
Definition Texture.hpp:30
Functionality relating to drawing graphics to the screen.
Definition Display.hpp:9
ShaderVariableBaseType
Type for Vertex Attributes.
Definition ShaderVariable.hpp:11
@ SHADER_VAR_TYPE_FLOAT
Single-precision float.
Definition ShaderVariable.hpp:12
@ SHADER_VAR_TYPE_TEXTURE
Texture/Sampler.
Definition ShaderVariable.hpp:15
@ SHADER_VAR_TYPE_INT
Signed Integer.
Definition ShaderVariable.hpp:13
@ SHADER_VAR_TYPE_UINT
Unsigned Integer.
Definition ShaderVariable.hpp:14
Represents a variable within a shader.
Definition ShaderVariable.hpp:36
constexpr ShaderVariableType(ShaderVariableBaseType type, unsigned char amount)
Definition ShaderVariable.hpp:43
unsigned char amount
The size of the attribute. A singular value is 1, while vectors are 2+.
Definition ShaderVariable.hpp:40
ShaderVariableBaseType type
The type of the attribute (float, int, etc.)
Definition ShaderVariable.hpp:38
constexpr ShaderVariableType()
Definition ShaderVariable.hpp:42
ShaderVariable()
Definition ShaderVariable.hpp:51
ShaderVariableType type
Definition ShaderVariable.hpp:48
ShaderVariable(ShaderVariableBaseType type, unsigned char amount)
Definition ShaderVariable.hpp:52
ShaderVariableValue value
Definition ShaderVariable.hpp:49
Definition ShaderVariable.hpp:19
Texture * tex
Definition ShaderVariable.hpp:23
float f
Definition ShaderVariable.hpp:20
unsigned int ui
Definition ShaderVariable.hpp:22
signed int i
Definition ShaderVariable.hpp:21