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 typedef struct {
9  int nbvertex;
10 
12 } surf3d;
13 
14 typedef struct {
16 
17  int defx;
18  int sizex;
19  int defz;
20  int sizez;
21  int mode;
22 } grid3d;
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
int defz
Definition: surf3d.h:19
v3d center
Definition: surf3d.h:11
void surf3d_translate(surf3d *s)
Definition: surf3d.c:92
static float * vals
Definition: tentacle3d.c:16
v3d * vertex
Definition: surf3d.h:7
void surf3d_draw(surf3d *s, int color, int dist, int *buf, int *back, int W, int H)
Definition: surf3d.c:46
Definition: surf3d.h:14
surf3d surf
Definition: surf3d.h:15
int nbvertex
Definition: surf3d.h:9
int mode
Definition: surf3d.h:21
grid3d * grid3d_new(int sizex, int defx, int sizez, int defz, v3d center)
Definition: surf3d.c:14
void surf3d_rotate(surf3d *s, float angle)
Definition: surf3d.c:83
void grid3d_draw(grid3d *g, int color, int colorlow, int dist, int *buf, int *back, int W, int H)
Definition: surf3d.c:62
Definition: surf3d.h:6
void grid3d_free(grid3d **grid)
Definition: surf3d.c:6
int sizez
Definition: surf3d.h:20
void grid3d_update(grid3d *g, float angle, const float *vals, float dist)
Definition: surf3d.c:98
Definition: v3d.h:10
v3d * svertex
Definition: surf3d.h:8
int sizex
Definition: surf3d.h:18
static guint32 * back
Definition: goom_core.c:34
int defx
Definition: surf3d.h:17