MythTV  master
surf3d.h
Go to the documentation of this file.
1 #ifndef SURF3D_H
2 #define SURF3D_H
3 
4 #include "v3d.h"
5 
6 struct surf3d {
9  int nbvertex;
10 
12 };
13 
14 struct grid3d {
16 
17  int defx;
18  int sizex;
19  int defz;
20  int sizez;
21  int mode;
22 };
23 
24 /* hi-level */
25 
26 /* works on grid3d */
27 grid3d *grid3d_new (int sizex, int defx, int sizez, int defz, v3d center);
28 void grid3d_free(grid3d **grid);
29 void grid3d_update (grid3d *g, float angle, const float *vals, float dist);
30 
31 /* low level */
32 void surf3d_draw (surf3d *s, int color, int dist, int *buf, int *back, int W,int H);
33 void grid3d_draw (grid3d *g, int color, int colorlow, int dist, int *buf, int *back, int W,int H);
34 void surf3d_rotate (surf3d *s, float angle);
35 void surf3d_translate (surf3d *s);
36 
37 #endif // SURF3D_H
v3d
Definition: v3d.h:10
grid3d::mode
int mode
Definition: surf3d.h:21
back
static guint32 * back
Definition: goom_core.cpp:25
grid3d::defz
int defz
Definition: surf3d.h:19
v3d.h
vals
static float * vals
Definition: tentacle3d.cpp:19
surf3d::center
v3d center
Definition: surf3d.h:11
grid3d_new
grid3d * grid3d_new(int sizex, int defx, int sizez, int defz, v3d center)
Definition: surf3d.cpp:16
surf3d_rotate
void surf3d_rotate(surf3d *s, float angle)
Definition: surf3d.cpp:82
grid3d::defx
int defx
Definition: surf3d.h:17
grid3d_free
void grid3d_free(grid3d **grid)
Definition: surf3d.cpp:8
surf3d_draw
void surf3d_draw(surf3d *s, int color, int dist, int *buf, int *back, int W, int H)
Definition: surf3d.cpp:48
grid3d_draw
void grid3d_draw(grid3d *g, int color, int colorlow, int dist, int *buf, int *back, int W, int H)
Definition: surf3d.cpp:61
grid3d_update
void grid3d_update(grid3d *g, float angle, const float *vals, float dist)
Definition: surf3d.cpp:97
surf3d
Definition: surf3d.h:6
grid3d::sizex
int sizex
Definition: surf3d.h:18
grid3d::surf
surf3d surf
Definition: surf3d.h:15
surf3d::nbvertex
int nbvertex
Definition: surf3d.h:9
surf3d_translate
void surf3d_translate(surf3d *s)
Definition: surf3d.cpp:91
surf3d::svertex
v3d * svertex
Definition: surf3d.h:8
surf3d::vertex
v3d * vertex
Definition: surf3d.h:7
grid3d
Definition: surf3d.h:14
grid3d::sizez
int sizez
Definition: surf3d.h:20