ld33_umonster

diff src/shadow.h @ 0:4a6683050e29

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 22 Aug 2015 07:15:00 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/shadow.h	Sat Aug 22 07:15:00 2015 +0300
     1.3 @@ -0,0 +1,17 @@
     1.4 +#ifndef SHADOW_H_
     1.5 +#define SHADOW_H_
     1.6 +
     1.7 +#include "vmath/vmath.h"
     1.8 +
     1.9 +extern bool shadow_pass;
    1.10 +
    1.11 +bool init_shadow(int sz);
    1.12 +void destroy_shadow();
    1.13 +
    1.14 +void begin_shadow_pass(const Vector3 &lpos, const Vector3 &ltarg, float lfov);
    1.15 +void end_shadow_pass();
    1.16 +
    1.17 +Matrix4x4 get_shadow_matrix();
    1.18 +unsigned int get_shadow_tex();
    1.19 +
    1.20 +#endif	// SHADOW_H_