change shader properties to be vg_msg based
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / blit_transition.h
1 #pragma once
2 #include "vg/vg_engine.h"
3 extern struct vg_shader _shader_blit_transition;
4 extern GLuint _uniform_blit_transition_uInverseRatio;
5 extern GLuint _uniform_blit_transition_uT;
6 static inline void shader_blit_transition_uInverseRatio(v2f v)
7 {
8 glUniform2fv(_uniform_blit_transition_uInverseRatio,1,v);
9 }
10 static inline void shader_blit_transition_uT(f32 f)
11 {
12 glUniform1f(_uniform_blit_transition_uT,f);
13 }
14 static inline void shader_blit_transition_use(void);
15 static inline void shader_blit_transition_use(void)
16 {
17 glUseProgram(_shader_blit_transition.id);
18 }