change shader properties to be vg_msg based
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / model_gate_unlinked.h
1 #pragma once
2 #include "vg/vg_engine.h"
3 extern struct vg_shader _shader_model_gate_unlinked;
4 extern GLuint _uniform_model_gate_unlinked_uMdl;
5 extern GLuint _uniform_model_gate_unlinked_uPv;
6 extern GLuint _uniform_model_gate_unlinked_uPvmPrev;
7 extern GLuint _uniform_model_gate_unlinked_uTime;
8 extern GLuint _uniform_model_gate_unlinked_uCam;
9 extern GLuint _uniform_model_gate_unlinked_uColour;
10 static inline void shader_model_gate_unlinked_uMdl(m4x3f m)
11 {
12 glUniformMatrix4x3fv(_uniform_model_gate_unlinked_uMdl,1,GL_FALSE,(f32*)m);
13 }
14 static inline void shader_model_gate_unlinked_uPv(m4x4f m)
15 {
16 glUniformMatrix4fv(_uniform_model_gate_unlinked_uPv,1,GL_FALSE,(f32*)m);
17 }
18 static inline void shader_model_gate_unlinked_uPvmPrev(m4x4f m)
19 {
20 glUniformMatrix4fv(_uniform_model_gate_unlinked_uPvmPrev,1,GL_FALSE,(f32*)m);
21 }
22 static inline void shader_model_gate_unlinked_uTime(f32 f)
23 {
24 glUniform1f(_uniform_model_gate_unlinked_uTime,f);
25 }
26 static inline void shader_model_gate_unlinked_uCam(v3f v)
27 {
28 glUniform3fv(_uniform_model_gate_unlinked_uCam,1,v);
29 }
30 static inline void shader_model_gate_unlinked_uColour(v4f v)
31 {
32 glUniform4fv(_uniform_model_gate_unlinked_uColour,1,v);
33 }
34 static inline void shader_model_gate_unlinked_use(void);
35 static inline void shader_model_gate_unlinked_use(void)
36 {
37 glUseProgram(_shader_model_gate_unlinked.id);
38 }