Go to the documentation of this file.
38 const unsigned pXPoints,
const unsigned pYPoints,
74 const float pRed,
const float pGreen,
75 const float pBlue,
const float pAlpha);
220 const float pBlue,
const float pAlpha);
FGAPI unsigned vertices() const
Get the buffer identifier for vertices.
@ FG_MARKER_NONE
No marker.
Definition: defines.h:167
dtype
Definition: defines.h:188
FGAPI fg_err fg_set_surface_color(fg_surface pSurface, const float pRed, const float pGreen, const float pBlue, const float pAlpha)
Set the color of surface.
fg_err
Definition: defines.h:49
FGAPI void setLegend(const char *pLegend)
Set surface legend.
FGAPI fg_err fg_release_surface(fg_surface pSurface)
Destroy surface object.
FGAPI void setColor(const forge::Color pColor)
Set the color of line graph(surface)
FGAPI Surface(const Surface &pOther)
Copy constructor for surface.
FGAPI unsigned colorsSize() const
Get the colors buffer size in bytes.
FGAPI fg_surface get() const
Get the handle to internal implementation of surface.
FGAPI unsigned alphas() const
Get the buffer identifier for alpha values per vertex.
@ FG_PLOT_SURFACE
Surface plot.
Definition: defines.h:163
FGAPI unsigned alphasSize() const
Get the alpha values buffer size in bytes.
FGAPI fg_err fg_create_surface(fg_surface *pSurface, const unsigned pXPoints, const unsigned pYPoints, const fg_dtype pType, const fg_plot_type pPlotType, const fg_marker_type pMarkerType)
Create a Surface object.
fg_dtype
Definition: defines.h:150
FGAPI fg_err fg_get_surface_vertex_buffer_size(unsigned *pOut, const fg_surface pSurface)
Get the vertices buffer size in bytes.
FGAPI fg_err fg_get_surface_color_buffer(unsigned *pOut, const fg_surface pSurface)
Get the resource identifier for colors buffer.
FGAPI fg_err fg_get_surface_vertex_buffer(unsigned *pOut, const fg_surface pSurface)
Get the resource identifier for vertices buffer.
FGAPI fg_err fg_set_surface_legend(fg_surface pSurface, const char *pLegend)
Set surface legend.
fg_marker_type
Definition: defines.h:166
FGAPI fg_err fg_retain_surface(fg_surface *pOut, fg_surface pIn)
Increase reference count of the resource.
fg_color
Definition: defines.h:139
Surface is a graph to display three dimensional data.
Definition: surface.h:163
FGAPI Surface(const fg_surface pHandle)
Construct Surface ojbect from fg_surface resource handle.
FGAPI fg_err fg_get_surface_alpha_buffer(unsigned *pOut, const fg_surface pSurface)
Get the resource identifier for alpha values buffer.
fg_plot_type
Definition: defines.h:160
FGAPI ~Surface()
surface Destructor
FGAPI unsigned verticesSize() const
Get the vertex buffer size in bytes.
FGAPI Surface(const unsigned pNumXPoints, const unsigned pNumYPoints, const dtype pDataType, const PlotType pPlotType=FG_PLOT_SURFACE, const MarkerType pMarkerType=FG_MARKER_NONE)
Creates a Surface object.
FGAPI unsigned colors() const
Get the buffer identifier for color values per vertex.
FGAPI void setColor(const float pRed, const float pGreen, const float pBlue, const float pAlpha)
Set the color of line graph(surface)
void * fg_surface
Definition: defines.h:46
#define FGAPI
Definition: defines.h:28
FGAPI fg_err fg_get_surface_color_buffer_size(unsigned *pOut, const fg_surface pSurface)
Get the colors buffer size in bytes.
FGAPI fg_err fg_get_surface_alpha_buffer_size(unsigned *pOut, const fg_surface pSurface)
Get the alpha values buffer size in bytes.