rasdaman complete source
Classes | Typedefs | Functions
cube_render.h File Reference

Go to the source code of this file.

Classes

struct  vertex
 
struct  vertex_fp
 
struct  vertex_p
 
struct  rotation_desc
 
struct  graph_env
 
struct  tex_desc
 
struct  mdd_desc
 
struct  bounding_box
 
struct  face
 
struct  mesh_desc
 
struct  light_desc
 
struct  voxel_desc
 
struct  render_desc
 

Typedefs

typedef float real_t
 
typedef struct vertex vertex
 
typedef struct vertex_fp vertex_fp
 
typedef struct vertex_p vertex_p
 
typedef struct rotation_desc rotation_desc
 
typedef struct graph_env graph_env
 
typedef struct tex_desc tex_desc
 
typedef struct mdd_desc mdd_desc
 
typedef struct bounding_box bounding_box
 
typedef struct face face
 
typedef unsigned short zbuffer_t
 
typedef struct mesh_desc mesh_desc
 
typedef struct light_desc light_desc
 
typedef struct voxel_desc voxel_desc
 
typedef struct render_desc render_desc
 

Functions

void RenderCubeClipCube (const vertex_fp geomData[4], render_desc *renderDesc, int removeHidden)
 
render_descRenderCubeBuild (const vertex_fp geomData[4], const graph_env *graphEnv)
 
void RenderCubeFreeDesc (render_desc *renderDesc)
 
int RenderCubeGetPosition (int x_p, int y_p, vertex_fp *pos, render_desc *renderDesc)
 
void RenderCubeDetermineRotation (const vertex_fp *base, rotation_desc *rd)
 
int RenderCube (const vertex_fp geomData[4], const graph_env *graphEnv, const tex_desc *texDesc)
 
int RenderCubeSurf (const vertex_fp geomData[4], const graph_env *graphEnv, const tex_desc *texDesc)
 
int RenderCubeVoxel (const vertex_fp geomData[4], const graph_env *graphEnv, const tex_desc *texDesc, voxel_desc *voxDesc)
 
void Render3DLine (const vertex_fp *from, const vertex_fp *to, const render_desc *renderDesc, long colour)
 
void RenderLineSegment (const vertex_p *from, const vertex_p *to, const render_desc *renderDesc, long colour)
 
int RenderShadedPolygon (int numVert, const vertex_fp *vertices, const vertex_fp *normals, unsigned int colour, const graph_env *graphEnv, const light_desc *lightDesc, const vertex_fp *real_norm, zbuffer_t *zbuffer)
 
int RenderHeightField (mesh_desc *meshDesc, const vertex_fp *rotTrans, const graph_env *graphEnv, const mdd_desc *mddDesc, const light_desc *lightDesc)
 
void RenderHeightFreeMesh (mesh_desc *meshDesc)
 
int RenderHeightGetDomain (const mdd_desc *mddDesc, int *dimx, int *dimz, int *stepx, int *stepz)
 

Typedef Documentation

typedef struct bounding_box bounding_box
typedef struct face face
typedef struct graph_env graph_env
typedef struct light_desc light_desc
typedef struct mdd_desc mdd_desc
typedef struct mesh_desc mesh_desc
typedef float real_t
typedef struct render_desc render_desc
typedef struct rotation_desc rotation_desc
typedef struct tex_desc tex_desc
typedef struct vertex vertex
typedef struct vertex_fp vertex_fp
typedef struct vertex_p vertex_p
typedef struct voxel_desc voxel_desc
typedef unsigned short zbuffer_t

Function Documentation

void Render3DLine ( const vertex_fp from,
const vertex_fp to,
const render_desc renderDesc,
long  colour 
)
int RenderCube ( const vertex_fp  geomData[4],
const graph_env graphEnv,
const tex_desc texDesc 
)
render_desc* RenderCubeBuild ( const vertex_fp  geomData[4],
const graph_env graphEnv 
)
void RenderCubeClipCube ( const vertex_fp  geomData[4],
render_desc renderDesc,
int  removeHidden 
)
void RenderCubeDetermineRotation ( const vertex_fp base,
rotation_desc rd 
)
void RenderCubeFreeDesc ( render_desc renderDesc)
int RenderCubeGetPosition ( int  x_p,
int  y_p,
vertex_fp pos,
render_desc renderDesc 
)
int RenderCubeSurf ( const vertex_fp  geomData[4],
const graph_env graphEnv,
const tex_desc texDesc 
)
int RenderCubeVoxel ( const vertex_fp  geomData[4],
const graph_env graphEnv,
const tex_desc texDesc,
voxel_desc voxDesc 
)
int RenderHeightField ( mesh_desc meshDesc,
const vertex_fp rotTrans,
const graph_env graphEnv,
const mdd_desc mddDesc,
const light_desc lightDesc 
)
void RenderHeightFreeMesh ( mesh_desc meshDesc)
int RenderHeightGetDomain ( const mdd_desc mddDesc,
int *  dimx,
int *  dimz,
int *  stepx,
int *  stepz 
)
void RenderLineSegment ( const vertex_p from,
const vertex_p to,
const render_desc renderDesc,
long  colour 
)
int RenderShadedPolygon ( int  numVert,
const vertex_fp vertices,
const vertex_fp normals,
unsigned int  colour,
const graph_env graphEnv,
const light_desc lightDesc,
const vertex_fp real_norm,
zbuffer_t zbuffer 
)