Go to the documentation of this file.
34 const unsigned pNBins,
const fg_dtype pDataType);
73 const float pRed,
const float pGreen,
74 const float pBlue,
const float pAlpha);
221 const float pBlue,
const float pAlpha);
FGAPI fg_err fg_release_histogram(fg_histogram pHistogram)
Destroy Histogram object.
dtype
Definition: defines.h:188
FGAPI fg_err fg_set_histogram_legend(fg_histogram pHistogram, const char *pLegend)
Set legend for histogram plot.
FGAPI unsigned colorsSize() const
Get the colors buffer size in bytes.
FGAPI fg_err fg_get_histogram_color_buffer_size(unsigned *pOut, const fg_histogram pHistogram)
Get the colors buffer size in bytes.
fg_err
Definition: defines.h:49
FGAPI Histogram(const unsigned pNBins, const dtype pDataType)
Creates a Histogram object.
FGAPI fg_err fg_create_histogram(fg_histogram *pHistogram, const unsigned pNBins, const fg_dtype pDataType)
Creates a Histogram object.
FGAPI unsigned vertices() const
Get the buffer identifier for vertices.
FGAPI fg_err fg_get_histogram_vertex_buffer(unsigned *pOut, const fg_histogram pHistogram)
Get the resource identifier for vertices buffer.
void * fg_histogram
Definition: defines.h:44
FGAPI void setLegend(const char *pLegend)
Set legend for histogram plot.
FGAPI fg_err fg_retain_histogram(fg_histogram *pOut, fg_histogram pIn)
Increase reference count of the resource.
FGAPI fg_histogram get() const
Get the handle to internal implementation of Histogram.
FGAPI fg_err fg_get_histogram_vertex_buffer_size(unsigned *pOut, const fg_histogram pHistogram)
Get the vertices buffer size in bytes.
FGAPI unsigned colors() const
Get the buffer identifier for color values per vertex.
FGAPI unsigned verticesSize() const
Get the vertex buffer size in bytes.
FGAPI ~Histogram()
Histogram Destructor.
fg_dtype
Definition: defines.h:150
FGAPI unsigned alphasSize() const
Get the alpha values buffer size in bytes.
FGAPI unsigned alphas() const
Get the buffer identifier for alpha values per vertex.
fg_color
Definition: defines.h:139
FGAPI void setColor(const Color pColor)
Set the color of bar in the bar graph(histogram)
FGAPI fg_err fg_get_histogram_alpha_buffer(unsigned *pOut, const fg_histogram pHistogram)
Get the resource identifier for alpha values buffer.
FGAPI fg_err fg_get_histogram_alpha_buffer_size(unsigned *pOut, const fg_histogram pHistogram)
Get the alpha values buffer size in bytes.
FGAPI fg_err fg_set_histogram_color(fg_histogram pHistogram, const float pRed, const float pGreen, const float pBlue, const float pAlpha)
Set the color of bar in the bar graph(histogram)
#define FGAPI
Definition: defines.h:28
Histogram is a bar graph to display data frequencey.
Definition: histogram.h:163
FGAPI fg_err fg_get_histogram_color_buffer(unsigned *pOut, const fg_histogram pHistogram)
Get the resource identifier for colors buffer.