mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Add love.graphics.getMode, thanks Boolsheet (issue #254)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user