Gl Graph
Gl Graph Source of glcanvas.h
#ifndef GL_CANVAS_H
#define GL_CANVAS_H
#include "glversion.h"
#include "glcamera.h"
class GlCanvas {
private:
int textcursorx;
int textcursory;
GlCamera * camera;
int width;
int height;
void setRasterPos();
public:
GlCanvas();
GlCanvas(GlCamera *c);
void drawString(const char *str);
void newLine();
void resetLine();
void setColor(float r,float g, float b);
friend GlCanvas& operator<<(GlCanvas& c, int value);
friend GlCanvas& operator<<(GlCanvas& c, float value);
friend GlCanvas& operator<<(GlCanvas& c, double value);
friend GlCanvas& operator<<(GlCanvas& c, const char * value);
friend GlCanvas& operator<<(GlCanvas& c, std::string value);
friend GlCanvas& operator<<(GlCanvas& c, GlVersion & version);
};
#endif