Blame src/drawing.h

3f9996
#ifndef HELI_DRAWING_H
3f9996
#define HELI_DRAWING_H
3f9996
3f9996
3f9996
#include "common.h"
3f9996
3c0f7f
3c0f7f
typedef struct _Font *Font;
3c0f7f
3c0f7f
8535a3
typedef enum _HAlign {
3f9996
	HALIGN_LEFT,
3f9996
	HALIGN_CENTER,
3f9996
	HALIGN_RIGHT
8535a3
} HAlign;
3f9996
8535a3
typedef enum _VAlign {
3f9996
	VALIGN_TOP,
3f9996
	VALIGN_CENTER,
3f9996
	VALIGN_BOTTOM
8535a3
} VAlign;
3f9996
3f9996
8535a3
void background(const char *color);
8535a3
void fill(const char *color);
3f9996
void noFill();
8535a3
void stroke(const char *color);
3f9996
void noStroke();
3f9996
void strokeWeight(double weight);
546e3a
const char* rgb(double r, double g, double b);
546e3a
const char* rgba(double r, double g, double b, double a);
3f9996
void rect(double x, double y, double width, double height);
3f9996
void ellipse(double x, double y, double width, double height);
3f9996
void arc(double x, double y, double w, double h, double start, double stop);
07b70f
void arcPath(double x, double y, double w, double h, double start, double stop);
07b70f
void line(double x1, double y1, double x2, double y2);
3f9996
void point(double x, double y);
3f9996
void regularPolygon(double x, double y, int sides, double size);
07b70f
3f9996
void moveTo(double x, double y);
3f9996
void lineTo(double x, double y);
07b70f
void resetPath();
07b70f
void closePath();
07b70f
void strokePath();
3f9996
3c0f7f
void text(const char *text, double x, double y);
3c0f7f
void textAlign(HAlign hor, VAlign vert);
3c0f7f
void textFontFamily(const char *family);
3c0f7f
void textFontDefault();
3c0f7f
void textSize(double size);
3c0f7f
3c0f7f
Font createFont(const char *path);
3c0f7f
void fontDestroy(Font font);
3c0f7f
void textFont(Font font);
3c0f7f
3f9996
3f9996
#endif
3f9996