sphore 0.0.1
SPH openGL rendering engine
|
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_t * | data_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) |
Code for managing data that is to be rendered as points.
typedef struct _data_points data_points_t |
The public interface to data_points.
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.
[in] | n | the number of points. |
[in] | x | the x coordinantes of the points. |
[in] | y | the y coordinantes of the points. |
[in] | z | the z coordinantes of the points. |
void data_points_destroy | ( | data_points_t * | ds | ) |
Frees the memory associated with the given data_points.
[in] | ds | the 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.