Code for managing plots.
More...
#include "sphore.h"
#include "viewport.h"
#include "plot.h"
#include "data.h"
#include "camera.h"
#include <stdlib.h>
Detailed Description
Function Documentation
Creates a new plot.
- Returns:
- A pointer to the new plot.
void plot_destroy |
( |
plot_t * |
plot | ) |
|
Frees the memory ascociated with a given plot.
- Parameters:
-
[in] | plot | The plot to clean up. |
const float* plot_get_clear_colour |
( |
plot_t * |
plot | ) |
|
Get the colour to be used where there is no data rendered.
- Parameters:
-
[in] | plot | The plot to query. |
- Returns:
- An array storing the clear colour. The array will have four values - red, green, blue and alpha. NULL will be returned if the given plot is invalid.
Get the data that a plot is rendering.
- Parameters:
-
[in] | plot | The plot to query. |
- Returns:
- A pointer to the data the given plot is rendering.
SRErenderMode plot_get_render_mode |
( |
plot_t * |
plot | ) |
|
Get the mode of rendering used by the plot.
- Parameters:
-
[in] | plot | The plot to query. |
- Returns:
- The rendering mode used by the given plot.
Get the viewport of the given plot.
- Parameters:
-
[in] | plot | The plot to query. |
- Returns:
- A pointer to the viewport of the given plot.
Sets the data that a plot will render.
- Parameters:
-
[in] | plot | The plot you wish to set the data for. |
[in] | data | The data the plot should render. |