goat3dgfx
diff src/texgen.h @ 0:1873dfd13f2d
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 14 Nov 2013 05:27:09 +0200 |
parents | |
children | 7d6b667821cf |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/texgen.h Thu Nov 14 05:27:09 2013 +0200 1.3 @@ -0,0 +1,14 @@ 1.4 +#ifndef TEXGEN_H_ 1.5 +#define TEXGEN_H_ 1.6 + 1.7 +#include "image.h" 1.8 +#include "vmath/vmath.h" 1.9 + 1.10 +Image *texgen_solid(int xsz, int ysz, const Vector4 &color); 1.11 +Image *texgen_chess(int xsz, int ysz, int usub, int vsub, const Vector4 &col1, const Vector4 &col2); 1.12 +Image *texgen_fbm(int xsz, int ysz, float usize, float vsize, int octaves, const Vector4 &col1, const Vector4 &col2); 1.13 +Image *texgen_fbm_abs(int xsz, int ysz, float usize, float vsize, int octaves, const Vector4 &col1, const Vector4 &col2); 1.14 + 1.15 +Image *texgen(int xsz, int ysz, float usize, float vsize, Vector4 (*eval)(float, float, void*), void *cls); 1.16 + 1.17 +#endif // TEXGEN_H_