sphore 0.0.1
SPH openGL rendering engine

src/data-points.h File Reference

Code for managing data that is to be rendered as points. More...

Go to the source code of this file.

Typedefs

typedef struct _data_points data_points_t
 The public interface to data_points.

Functions

data_points_tdata_points_create (unsigned int n, float *x, float *y, float *z, float *colour)
 Creates a new data object.
void data_points_destroy (data_points_t *ds)
 Frees the memory associated with the given data_points.
void data_points_render (data_points_t *data)
void data_points_set_colour (data_points_t *ds, float *colour)

Detailed Description

Code for managing data that is to be rendered as points.


Typedef Documentation

typedef struct _data_points data_points_t

The public interface to data_points.


Function Documentation

data_points_t* data_points_create ( unsigned int  n,
float *  x,
float *  y,
float *  z,
float *  colour 
)

Creates a new data object.

Makes a copy of the data to the video card, so your original copy can be destroyed.

Parameters:
[in]nthe number of points.
[in]xthe x coordinantes of the points.
[in]ythe y coordinantes of the points.
[in]zthe z coordinantes of the points.
Returns:
A pointer to the new data object.
void data_points_destroy ( data_points_t ds)

Frees the memory associated with the given data_points.

Parameters:
[in]dsthe data to be destroyed.
void data_points_render ( data_points_t data)

Renders the give points.

void data_points_set_colour ( data_points_t ds,
float *  colour 
)

Sets the colour of the given data points.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines