sige.datatypes
Datatypes used by SIGE and funktions to conviniently create themvoid sigeErr(char[] s,...);
void sigeOut(char[] s,...);
Standardised way of printing errors and logging messages currently using
standard out and standard err
Examples:
char[] s | Format string. Currently uses the same format as writef |
alias string;
Convinient alias
voidC sigeFpNull(uint i);
Used as null for the callback funktions
struct font_data;
holds a font specification
font_data C newFontData(char* font, float size);
Creates a new font_data structure
struct SigeFunction;
wraper struct for callback funktion pointers
SigeFunction C newSigeFunction(void(C * f)(uint mode));
create a new SigeFunction
struct SigeTextBuffer;
Buffer for storing multiple lines of posibly changing text
SigeTextBuffer C newSigeTextBuffer(uint numrows, uint length);
Creates a new SigeTextBuffer
struct SigePoint2D;
struct SigePoint3D;
Represents a point by using its coordinates
SigePoint2D C newSigePoint2D(float x, float y);
SigePoint3D C newSigePoint3D(float x, float y, float z);
Creates a new point
struct SigePolygon;
A polygon consisting of vertex and texture coordinates
NOTICE The polygon must be convex
struct SigeQuadButton;
A rectangular button consisting of text and callback
SigePolygon C newSigePolygonQuad(float width, float height);
Creates a rectangular polygon with dimensions width × height
SigePolygon C newSigePolygon(SigePoint2D [] v, SigePoint2D [] t);
Creates a polygon from arrays of texture and vertex coordinates
SigeQuadButton C newSigeQuadButton(char[] t, void(C * c)(uint mode), uint id);
Creates a SigeQuadButton from the string t and callback c