|
void | createWindow (int width, int height, std::string title) |
void | setWindowBackground (Brush style) |
void | destroyWindow () |
void | startMessageLoop () |
void | stopMessageLoop () |
void | setCanvasSize (float w, float h) |
void | setCanvasScaleMode (scale_mode_t sm) |
void | setFullScreen (bool fs) |
float | windowToCanvasX (float x, bool clamped=true) |
float | windowToCanvasY (float y, bool clamped=true) |
void | setUserData (const void *user_data) |
void * | getUserData () |
void | setDrawFunction (std::function< void()> draw) |
void | setPreDrawFunction (std::function< void()> predraw) |
void | setPostDrawFunction (std::function< void()> postdraw) |
void | setUpdateFunction (std::function< void(float)> update) |
void | setResizeFunction (std::function< void(int, int)> resize) |
void | getMouseState (MouseState &ms) |
bool | getKeyState (scancode_t key) |
float | getDeltaTime () |
float | getGlobalTime () |
void | drawRect (float center_x, float center_y, float width, float height, const Brush &brush) |
void | drawBezier (float *ep1, float *cp1, float *cp2, float *ep2, const Brush &brush) |
void | drawLine (float x1, float y1, float x2, float y2, const Brush &brush) |
void | drawDisk (float cx, float cy, float radius, const Brush &brush) |
void | drawSector (float cx, float cy, float radius1, float radius2, float start_angle, float end_angle, const Brush &brush) |
bool | setFont (std::string fontname) |
void | drawText (float pos_x, float pos_y, float size, const std::string &text, const Brush &brush) |
void | setOrientation (float angle) |
void | setScale (float sx, float sy) |
void | resetPose () |
std::vector< std::string > | preloadBitmaps (const std::string &dir) |
bool | getBitmapData (const std::string &bitmap_name, unsigned char **buffer, unsigned int *width, unsigned int *height) |
bool | updateBitmapData (const std::string &bitmap_name, const unsigned char *buffer) |
void | playSound (std::string soundfile, float volume, bool looping=false) |
void | playMusic (std::string soundfile, float volume, bool looping=true, int fade_time=0) |
void | stopMusic (int fade_time=0) |
This is the *only* library header file that is required to be included by your application. It contains the declaration of all SGG library functions and data structures.