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_lines | data_lines_t |
The public interface to data_lines. | |
Functions | |
data_lines_t * | data_lines_create (unsigned int n, float *x, float *y, float *z, float *colour) |
Creates a new data object. | |
void | data_lines_destroy (data_lines_t *ds) |
Frees the memory associated with the given data_lines. | |
void | data_lines_render (data_lines_t *data) |
void | data_lines_set_colour (data_lines_t *ds, float *colour) |
Code for managing data that is to be rendered as points.
typedef struct _data_lines data_lines_t |
The public interface to data_lines.
data_lines_t* data_lines_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 control 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_lines_destroy | ( | data_lines_t * | ds | ) |
Frees the memory associated with the given data_lines.
[in] | ds | the data to be destroyed. |
void data_lines_render | ( | data_lines_t * | data | ) |
Renders the give lines.
void data_lines_set_colour | ( | data_lines_t * | ds, |
float * | colour | ||
) |
Sets the colour of the given data lines.