Tramway SDK v0.1.1
shader.h
Go to the documentation of this file.
1// Tramway Drifting and Dungeon Exploration Simulator SDK Runtime
2
3#ifndef TRAM_SDK_RENDER_OPENGL_SHADER_H
4#define TRAM_SDK_RENDER_OPENGL_SHADER_H
5
6#include <render/render.h>
7#include <render/renderer.h>
8
9namespace tram::Render::API {
10
11typedef uint32_t shaderflags_t;
12
17};
18
19void CompileShaders();
20
21uint32_t FindShader(vertexformat_t format, materialtype_t type, shaderflags_t mask);
22uint32_t GetAnyShader(shaderflags_t mask);
23void RegisterShader(vertexformat_t format, materialtype_t type, const char* vertex_shader, const char* fragment_shader);
24
25void BindUniformBlock (const char* name, uint32_t binding);
26
27}
28
29#endif // TRAM_SDK_RENDER_OPENGL_SHADER_H
Rendering backend API.
ShaderFlag
Definition: shader.h:13
@ SHADER_LIGHTMAP
Definition: shader.h:16
@ SHADER_NONE
Definition: shader.h:14
@ SHADER_SPECULAR
Definition: shader.h:15
void CompileShaders()
Definition: shader.cpp:355
void BindUniformBlock(const char *name, uint32_t binding)
Definition: shader.cpp:339
uint32_t GetAnyShader(shaderflags_t mask)
Definition: shader.cpp:351
void RegisterShader(vertexformat_t format, materialtype_t type, const char *vertex_shader, const char *fragment_shader)
Definition: shader.cpp:343
uint32_t FindShader(vertexformat_t format, materialtype_t type, shaderflags_t mask)
Definition: shader.cpp:347
uint32_t shaderflags_t
Definition: shader.h:11
uint32_t vertexformat_t
Definition: render.h:19
uint32_t materialtype_t
Definition: render.h:20