goat3dgfx

view src/texgen.h @ 18:6f82b9b6d6c3

added the ability to render in fixed function with the mesh class
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 08 Dec 2013 01:35:30 +0200
parents 1873dfd13f2d
children
line source
1 #ifndef TEXGEN_H_
2 #define TEXGEN_H_
4 #include "image.h"
5 #include "vmath/vmath.h"
7 namespace goatgfx {
9 Image *texgen_solid(int xsz, int ysz, const Vector4 &color);
10 Image *texgen_chess(int xsz, int ysz, int usub, int vsub, const Vector4 &col1, const Vector4 &col2);
11 Image *texgen_fbm(int xsz, int ysz, float usize, float vsize, int octaves, const Vector4 &col1, const Vector4 &col2);
12 Image *texgen_fbm_abs(int xsz, int ysz, float usize, float vsize, int octaves, const Vector4 &col1, const Vector4 &col2);
14 Image *texgen(int xsz, int ysz, float usize, float vsize, Vector4 (*eval)(float, float, void*), void *cls);
16 } // namespace goatgfx
18 #endif // TEXGEN_H_