VSGL2 - Very Simple Graphic Library 2
2.0
|
Functions | |
void | init () |
Use this function to initiate the library, must be called first. More... | |
void | close () |
Close and free all the resources, must be called last. More... | |
void | set_window (int w, int h, string title, int fullscreen=0) |
Use this function to create a window with the specified dimensions and a title, optionally in full screen. More... | |
void | set_background_color (const Color &bg) |
Use this function to change the background color. More... | |
int | get_window_width () |
Use this function to get the width of the current window. More... | |
int | get_window_height () |
Use this function to get the height of the current window. More... | |
Variables | |
const int | FULLSCREEN = SDL_WINDOW_FULLSCREEN |
void close | ( | ) |
Close and free all the resources, must be called last.
int get_window_height | ( | ) |
Use this function to get the height of the current window.
int get_window_width | ( | ) |
Use this function to get the width of the current window.
void init | ( | ) |
Use this function to initiate the library, must be called first.
void set_background_color | ( | const Color & | bg | ) |
Use this function to change the background color.
bg | The new background color |
void set_window | ( | int | w, |
int | h, | ||
string | title, | ||
int | fullscreen = 0 |
||
) |
Use this function to create a window with the specified dimensions and a title, optionally in full screen.
w | the width of the window, in screen coordinates |
h | the height of the window, in screen coordinates |
title | the title of the window |
fullscreen | Flag to set the application to fullscreen mode (fullscreen = 1) or windowed (fullscreen = 0) |
const int FULLSCREEN = SDL_WINDOW_FULLSCREEN |