![]() |
Maria GDK 5.0.0.738
Documentation of native code in develop branch
|
#include <StkPerformanceGraphs.h>
Classes | |
class | Graph |
class | GraphTimer |
struct | TableRow |
Public Types | |
enum class | DisplayMode { FPS , Time , Fraction } |
Public Member Functions | |
PerformanceGraphs (const std::shared_ptr< STK::ShaderProgramManager > &shaderManager, const std::shared_ptr< STK::FontManager > &fontManager, const std::shared_ptr< STK::Screen > &screen, int x, int y, int width, int height) | |
void | addTextLabel (const std::string &text, const STK::Color4f &color, const STK::Vector2f &pos, TextHAlignment h_anchor=TextHAlignment::Left, TextVAlignment v_anchor=TextVAlignment::Bottom) |
void | setMode (DisplayMode mode, double maxValue, bool autoAdjust) |
DisplayMode | getMode () const |
void | initialize () |
std::shared_ptr< Graph > | addGraph (const std::string &name, const STK::Color4f &color) |
std::shared_ptr< Graph > | getGraph (const std::string &name) const |
void | addValue (const std::string &name, double value) |
Add time value (in ms) | |
void | setGraphEnabled (const std::string &label, bool enabled) |
bool | getGraphEnabled (const std::string &label) |
float | getMargin () const |
float | getXMin () const |
float | getXMax () const |
float | getYMin () const |
float | getYMax () const |
float | getHeight () const |
float | getWidth () const |
double | getMaxValue () const |
void | setMaxValue (double maxValue) |
std::vector< std::string > | getGraphLabels () const |
void | redraw (const STK::Viewport &vp) |
GraphRenderer - Short description