xine-lib: xine-lib-1.2.12/src/post/goom/surf3d.h Source File

xine-lib 1.2.12

surf3d.h
Go to the documentation of this file.
1#ifndef _SURF3D_H
2#define _SURF3D_H
3
4#include "v3d.h"
5#include "goom_graphic.h"
6#include "goom_typedefs.h"
7
8 typedef struct {
9 v3d *vertex;
10 v3d *svertex;
11 int nbvertex;
12
13 v3d center;
14} surf3d;
15
16 typedef struct {
17 surf3d surf;
18
19 int defx;
20 int sizex;
21 int defz;
22 int sizez;
23 int mode;
24} grid3d;
25
26/* hi-level */
27
28/* works on grid3d */
29 grid3d *grid3d_new (int sizex, int defx, int sizez, int defz, v3d center);
30void grid3d_free (grid3d *);
31void grid3d_update (grid3d *s, float angle, float *vals, float dist);
32
33/* low level */
34 void surf3d_draw (surf3d *s, int color, int dist, int *buf, int *back, int W,int H);
35void grid3d_draw (PluginInfo *plug, grid3d *g, int color, int colorlow, int dist, Pixel *buf, Pixel *back, int W,int H);
36void surf3d_rotate (surf3d *s, float angle);
37void surf3d_translate (surf3d *s);
38
39#endif
goom_graphic.h
goom_typedefs.h
_PLUGIN_INFO
Definition: goom_plugin_info.h:75
grid3d
Definition: surf3d.h:16
grid3d::mode
int mode
Definition: surf3d.h:23
grid3d::sizex
int sizex
Definition: surf3d.h:20
grid3d::surf
surf3d surf
Definition: surf3d.h:17
grid3d::defz
int defz
Definition: surf3d.h:21
grid3d::sizez
int sizez
Definition: surf3d.h:22
grid3d::defx
int defx
Definition: surf3d.h:19
surf3d
Definition: surf3d.h:8
surf3d::svertex
v3d * svertex
Definition: surf3d.h:10
surf3d::center
v3d center
Definition: surf3d.h:13
surf3d::nbvertex
int nbvertex
Definition: surf3d.h:11
surf3d::vertex
v3d * vertex
Definition: surf3d.h:9
v3d
Definition: v3d.h:10
grid3d_draw
void grid3d_draw(PluginInfo *plug, grid3d *g, int color, int colorlow, int dist, Pixel *buf, Pixel *back, int W, int H)
Definition: surf3d.c:46
grid3d_free
void grid3d_free(grid3d *)
Definition: surf3d.c:11
grid3d_new
grid3d * grid3d_new(int sizex, int defx, int sizez, int defz, v3d center)
Definition: surf3d.c:17
grid3d_update
void grid3d_update(grid3d *s, float angle, float *vals, float dist)
Definition: surf3d.c:90
surf3d_translate
void surf3d_translate(surf3d *s)
Definition: surf3d.c:83
surf3d_draw
void surf3d_draw(surf3d *s, int color, int dist, int *buf, int *back, int W, int H)
surf3d_rotate
void surf3d_rotate(surf3d *s, float angle)
Definition: surf3d.c:73
_PIXEL
Definition: goom_graphic.h:55
v3d.h