sphore 0.0.1
SPH openGL rendering engine

src/data-points.c File Reference

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

#include "data-points.h"
#include <GL/gl.h>
#include <stdlib.h>

Data Structures

struct  _data_points
 The internal storage for data to be rendered as points. More...

Functions

data_points_tdata_points_create (unsigned int n, float *x, float *y, float *z)
void data_points_destroy (data_points_t *data)
 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 point.


Function Documentation

data_points_t* data_points_create ( unsigned int  n,
float *  x,
float *  y,
float *  z 
)
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