vrshoot

diff src/texgen.h @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/texgen.h	Sat Feb 01 19:58:19 2014 +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_