dungeon_crawler
diff prototype/src/sdr.c @ 23:fa8f89d06f6f
progress with light rendering
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 23 Aug 2012 00:10:10 +0300 |
parents | d98240a13793 |
children |
line diff
1.1 --- a/prototype/src/sdr.c Tue Aug 21 06:34:14 2012 +0300 1.2 +++ b/prototype/src/sdr.c Thu Aug 23 00:10:10 2012 +0300 1.3 @@ -273,6 +273,14 @@ 1.4 END_UNIFORM_CODE; 1.5 } 1.6 1.7 +int set_uniform_float2(unsigned int prog, const char *name, float x, float y) 1.8 +{ 1.9 + BEGIN_UNIFORM_CODE { 1.10 + glUniform2f(loc, x, y); 1.11 + } 1.12 + END_UNIFORM_CODE; 1.13 +} 1.14 + 1.15 int set_uniform_float3(unsigned int prog, const char *name, float x, float y, float z) 1.16 { 1.17 BEGIN_UNIFORM_CODE {