commit 6e434b962edf76c4f5dce0b3d9a6176dfa8fda4e
parent 3e9f66df4fb36a32eba35da53d64be5d4e0b2b15
Author: Brian Swetland <swetland@frotz.net>
Date: Tue, 10 Sep 2013 04:55:38 -0700
shared: track text grid configuration (one ivec4) in scene ubo
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/common/shared.h b/common/shared.h
@@ -30,6 +30,7 @@
struct ubScene {
mat4 Ortho; /* 1:1 2D mapping */
vec4 OrthoSize; /* x,y = width,height */
+ ivec4 TextGrid; /* cellwidth, cellheight, width, height */
vec4 LightColor;
vec4 LightPosition;
};
@@ -55,6 +56,7 @@ static const char *shader_globals =
"layout(std140) uniform block0 {\n"
" mat4 uOrtho;\n"
" vec4 uOrthoSize;\n"
+" ivec4 uTextGrid;\n"
" vec4 uLightColor;\n"
" vec4 uLightPosition;\n"
"};\n"