|
sphore 0.0.1
SPH openGL rendering engine
|
Code for managing data that is to be rendered with column integration. More...
Data Structures | |
| struct | _data_column_int |
| The internal storage for data to be rendered with column integration. More... | |
Defines | |
| #define | ROOT_3 1.73205f |
| #define | ROOT_3_ON_2 0.866025404f |
Functions | |
| data_column_int_t * | data_column_int_create (unsigned int n, float *x, float *y, float *z, float *h, float *weight, float *data, float data_min, float data_max) |
| Creates a new data object. | |
| void | data_column_int_destroy (data_column_int_t *data) |
| Frees the memory associated with the given data_column_int_t. | |
| void | data_column_int_render (data_column_int_t *ds) |
| Renders the given particles. | |
Code for managing data that is to be rendered with column integration.
Uses disply lists. Vertex buffer objects may be faster.
| #define ROOT_3 1.73205f |
| #define ROOT_3_ON_2 0.866025404f |
| data_column_int_t* data_column_int_create | ( | unsigned int | n, |
| float * | x, | ||
| float * | y, | ||
| float * | z, | ||
| float * | h, | ||
| float * | weight, | ||
| float * | data, | ||
| float | data_min, | ||
| float | data_max | ||
| ) |
Creates a new data object.
| [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. |
| [in] | h | The smoothing length of the particles. |
| [in] | weight | The weight of each particle. |
| [in] | data | The value of the quantity being integrated at each particle. |
| [in] | data_min | The value of data that will be assigned to the lowest colour in the table. |
| [in] | data_max | The value of data that will be assigned to the highest colour in the table. |
| void data_column_int_destroy | ( | data_column_int_t * | ds | ) |
Frees the memory associated with the given data_column_int_t.
| [in] | ds | the data to be destroyed. |
| void data_column_int_render | ( | data_column_int_t * | ds | ) |
Renders the given particles.