bullet3/examples/RenderingExamples/TimeSeriesCanvas.h
erwin coumans 29f3afe2a4 don't use GL_LINEAR_MIPMAP_LINEAR for shadow maps
optimize gpu upload (use glBufferSubData instead of glMapBuffer
Avoid checking char array against zero.
2016-10-14 15:06:09 -07:00

25 lines
879 B
C++

#ifndef TIME_SERIES_CANVAS_H
#define TIME_SERIES_CANVAS_H
class TimeSeriesCanvas
{
protected:
struct TimeSeriesInternalData* m_internalData;
void shift1PixelToLeft();
public:
TimeSeriesCanvas(struct Common2dCanvasInterface* canvasInterface, int width, int height, const char* windowTitle);
virtual ~TimeSeriesCanvas();
void setupTimeSeries(float yScale, int ticksPerSecond, int startTime, bool clearCanvas=true);
void addDataSource(const char* dataSourceLabel, unsigned char red,unsigned char green,unsigned char blue);
void insertDataAtCurrentTime(float value, int dataSourceIndex, bool connectToPrevious);
float getCurrentTime() const;
void grapicalPrintf(const char* str, void* fontData, int rasterposx,int rasterposy,unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha);
virtual void nextTick();
};
#endif//TIME_SERIES_CANVAS_H