MythTV  master
Functions
surf3d.c File Reference
#include "surf3d.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "drawmethods.h"
Include dependency graph for surf3d.c:

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 6 of file surf3d.c.

Referenced by tentacle_free().

◆ grid3d_new()

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

Definition at line 14 of file surf3d.c.

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 46 of file surf3d.c.

◆ grid3d_draw()

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

Definition at line 63 of file surf3d.c.

Referenced by tentacle_update().

◆ surf3d_rotate()

void surf3d_rotate ( surf3d s,
float  angle 
)

Definition at line 87 of file surf3d.c.

◆ surf3d_translate()

void surf3d_translate ( surf3d s)

Definition at line 97 of file surf3d.c.

◆ grid3d_update()

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

Definition at line 104 of file surf3d.c.

Referenced by tentacle_update().