MythTV  master
Functions
surf3d.cpp File Reference
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "surf3d.h"
#include "drawmethods.h"
Include dependency graph for surf3d.cpp:

Go to the source code of this file.

Functions

void grid3d_free (grid3d **grid)
 
grid3dgrid3d_new (int sizex, int defx, int sizez, int defz, v3d center)
 
void surf3d_draw (surf3d *s, int color, int dist, int *buf, int *back, int W, int H)
 
void grid3d_draw (grid3d *g, int color, int colorlow, int dist, int *buf, int *back, int W, int H)
 
void surf3d_rotate (surf3d *s, float angle)
 
void surf3d_translate (surf3d *s)
 
void grid3d_update (grid3d *g, float angle, const float *vals, float dist)
 

Function Documentation

◆ grid3d_free()

void grid3d_free ( grid3d **  grid)

Definition at line 8 of file surf3d.cpp.

Referenced by tentacle_free().

◆ grid3d_new()

grid3d* grid3d_new ( int  sizex,
int  defx,
int  sizez,
int  defz,
v3d  center 
)

Definition at line 16 of file surf3d.cpp.

Referenced by tentacle_new().

◆ surf3d_draw()

void surf3d_draw ( surf3d s,
int  color,
int  dist,
int *  buf,
int *  back,
int  W,
int  H 
)

Definition at line 48 of file surf3d.cpp.

◆ grid3d_draw()

void grid3d_draw ( grid3d g,
int  color,
int  colorlow,
int  dist,
int *  buf,
int *  back,
int  W,
int  H 
)

Definition at line 61 of file surf3d.cpp.

Referenced by tentacle_update().

◆ surf3d_rotate()

void surf3d_rotate ( surf3d s,
float  angle 
)

Definition at line 82 of file surf3d.cpp.

◆ surf3d_translate()

void surf3d_translate ( surf3d s)

Definition at line 91 of file surf3d.cpp.

◆ grid3d_update()

void grid3d_update ( grid3d g,
float  angle,
const float *  vals,
float  dist 
)

Definition at line 97 of file surf3d.cpp.

Referenced by tentacle_update().