Add love.graphics.getMode, thanks Boolsheet (issue #254)

This commit is contained in:
Bart van Strien
2011-07-11 17:14:52 +02:00
parent 1f50a932dc
commit cc4f0e2661
4 changed files with 43 additions and 2 deletions
+10
View File
@@ -151,6 +151,16 @@ namespace opengl
**/
bool setMode(int width, int height, bool fullscreen, bool vsync, int fsaa);
/**
* Gets the current display mode.
* @param width Pointer to an integer for the window width.
* @param height Pointer to an integer for the window height.
* @param fullscreen Pointer to a boolean for the fullscreen status.
* @param vsync Pointer to a boolean for the vsync status.
* @param fsaa Pointer to an integer for the current number of full scene anti-aliasing buffers.
**/
void getMode(int * width, int * height, bool * fullscreen, bool * vsync, int * fsaa);
/**
* Toggles fullscreen. Note that this also needs to reload the
* entire OpenGL context.