34 const unsigned pNBins,
const fg_dtype pDataType);
63 const float pRed,
const float pGreen,
64 const float pBlue,
const float pAlpha);
201 const float pBlue,
const float pAlpha);
FGAPI fg_err fg_create_histogram(fg_histogram *pHistogram, const unsigned pNBins, const fg_dtype pDataType)
Creates a Histogram object.
FGAPI fg_err fg_get_histogram_vertex_buffer(unsigned *pOut, const fg_histogram pHistogram)
Get the resource identifier for vertices buffer.
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)
FGAPI fg_err fg_get_histogram_color_buffer_size(unsigned *pOut, const fg_histogram pHistogram)
Get the colors buffer size in bytes.
FGAPI unsigned colorsSize() const
Get the colors buffer size in bytes.
fg_color
Definition: defines.h:139
FGAPI Histogram(const unsigned pNBins, const dtype pDataType)
Creates a Histogram object.
FGAPI fg_err fg_get_histogram_vertex_buffer_size(unsigned *pOut, const fg_histogram pHistogram)
Get the vertices buffer size in bytes.
FGAPI unsigned vertices() const
Get the buffer identifier for vertices.
FGAPI fg_err fg_get_histogram_alpha_buffer(unsigned *pOut, const fg_histogram pHistogram)
Get the resource identifier for alpha values buffer.
FGAPI void setLegend(const char *pLegend)
Set legend for histogram plot.
dtype
Definition: defines.h:189
FGAPI unsigned colors() const
Get the buffer identifier for color values per vertex.
#define FGAPI
Definition: defines.h:28
FGAPI unsigned verticesSize() const
Get the vertex buffer size in bytes.
FGAPI ~Histogram()
Histogram Destructor.
FGAPI fg_err fg_destroy_histogram(fg_histogram pHistogram)
Destroy Histogram object.
FGAPI unsigned alphas() const
Get the buffer identifier for alpha values per vertex.
FGAPI unsigned alphasSize() const
Get the alpha values buffer size in bytes.
FGAPI fg_err fg_set_histogram_legend(fg_histogram pHistogram, const char *pLegend)
Set legend for histogram plot.
fg_err
Definition: defines.h:49
FGAPI void setColor(const Color pColor)
Set the color of bar in the bar graph(histogram)
FGAPI fg_err fg_get_histogram_alpha_buffer_size(unsigned *pOut, const fg_histogram pHistogram)
Get the alpha values buffer size in bytes.
void * fg_histogram
Definition: defines.h:44
fg_dtype
Definition: defines.h:150
FGAPI fg_err fg_get_histogram_color_buffer(unsigned *pOut, const fg_histogram pHistogram)
Get the resource identifier for colors buffer.
Histogram is a bar graph to display data frequencey.
Definition: histogram.h:153