2 #include "vg/vg_engine.h"
3 extern struct vg_shader _shader_scene_font
;
4 extern GLuint _uniform_scene_font_uMdl
;
5 extern GLuint _uniform_scene_font_uPv
;
6 extern GLuint _uniform_scene_font_uPvmPrev
;
7 extern GLuint _uniform_scene_font_uOffset
;
8 extern GLuint _uniform_scene_font_uTexGarbage
;
9 extern GLuint _uniform_scene_font_uTexMain
;
10 extern GLuint _uniform_scene_font_uCamera
;
11 extern GLuint _uniform_scene_font_uTime
;
12 extern GLuint _uniform_scene_font_uOpacity
;
13 extern GLuint _uniform_scene_font_uColourize
;
14 extern GLuint _uniform_scene_font_g_world_depth
;
15 extern GLuint _uniform_scene_font_uLightsArray
;
16 extern GLuint _uniform_scene_font_uLightsIndex
;
17 static inline void shader_scene_font_uMdl(m4x3f m
)
19 glUniformMatrix4x3fv(_uniform_scene_font_uMdl
,1,GL_FALSE
,(f32
*)m
);
21 static inline void shader_scene_font_uPv(m4x4f m
)
23 glUniformMatrix4fv(_uniform_scene_font_uPv
,1,GL_FALSE
,(f32
*)m
);
25 static inline void shader_scene_font_uPvmPrev(m4x4f m
)
27 glUniformMatrix4fv(_uniform_scene_font_uPvmPrev
,1,GL_FALSE
,(f32
*)m
);
29 static inline void shader_scene_font_uOffset(v4f v
)
31 glUniform4fv(_uniform_scene_font_uOffset
,1,v
);
33 static inline void shader_scene_font_uTexGarbage(int i
)
35 glUniform1i(_uniform_scene_font_uTexGarbage
,i
);
37 static inline void shader_scene_font_uTexMain(int i
)
39 glUniform1i(_uniform_scene_font_uTexMain
,i
);
41 static inline void shader_scene_font_uCamera(v3f v
)
43 glUniform3fv(_uniform_scene_font_uCamera
,1,v
);
45 static inline void shader_scene_font_uTime(f32 f
)
47 glUniform1f(_uniform_scene_font_uTime
,f
);
49 static inline void shader_scene_font_uOpacity(f32 f
)
51 glUniform1f(_uniform_scene_font_uOpacity
,f
);
53 static inline void shader_scene_font_uColourize(f32 f
)
55 glUniform1f(_uniform_scene_font_uColourize
,f
);
57 static inline void shader_scene_font_g_world_depth(int i
)
59 glUniform1i(_uniform_scene_font_g_world_depth
,i
);
61 static inline void shader_scene_font_use(void);
62 static inline void shader_scene_font_use(void)
64 glUseProgram(_shader_scene_font
.id
);