sphore 0.0.1
SPH openGL rendering engine

src/volume.c File Reference

Code for managing the viewing volume. More...

#include "volume.h"
#include <stdlib.h>

Data Structures

struct  _volume
 Internal storage for a viewing volume. More...

Defines

#define DEFAULT_WIDTH   10.f
#define DEFAULT_HEIGHT   10.f
#define DEFAULT_DEPTH   1000.f

Functions

volume_tvolume_create (void)
void volume_destroy (volume_t *vol)
void volume_reset (volume_t *vol)
void volume_set (volume_t *vol, float width, float height, float depth)
void volume_get (volume_t *vol, float *width, float *height, float *depth)

Detailed Description

Code for managing the viewing volume.


Define Documentation

#define DEFAULT_DEPTH   1000.f
#define DEFAULT_HEIGHT   10.f
#define DEFAULT_WIDTH   10.f

Function Documentation

volume_t* volume_create ( void  )
void volume_destroy ( volume_t vol)
void volume_get ( volume_t vol,
float *  width,
float *  height,
float *  depth 
)
void volume_reset ( volume_t vol)
void volume_set ( volume_t vol,
float  width,
float  height,
float  depth 
)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines