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
)
12 glUniformMatrix4x3fv(_uniform_model_gate_unlinked_uMdl
,1,GL_FALSE
,(f32
*)m
);
14 static inline void shader_model_gate_unlinked_uPv(m4x4f m
)
16 glUniformMatrix4fv(_uniform_model_gate_unlinked_uPv
,1,GL_FALSE
,(f32
*)m
);
18 static inline void shader_model_gate_unlinked_uPvmPrev(m4x4f m
)
20 glUniformMatrix4fv(_uniform_model_gate_unlinked_uPvmPrev
,1,GL_FALSE
,(f32
*)m
);
22 static inline void shader_model_gate_unlinked_uTime(f32 f
)
24 glUniform1f(_uniform_model_gate_unlinked_uTime
,f
);
26 static inline void shader_model_gate_unlinked_uCam(v3f v
)
28 glUniform3fv(_uniform_model_gate_unlinked_uCam
,1,v
);
30 static inline void shader_model_gate_unlinked_uColour(v4f v
)
32 glUniform4fv(_uniform_model_gate_unlinked_uColour
,1,v
);
34 static inline void shader_model_gate_unlinked_use(void);
35 static inline void shader_model_gate_unlinked_use(void)
37 glUseProgram(_shader_model_gate_unlinked
.id
);