Wrapper for ALLEGRO_DISPLAY More...
#include <DisplayPlus.h>
Public Member Functions | |
| DisplayPlus () | |
| Default constructor. | |
| DisplayPlus (const int w, const int h) | |
| Default constructor. | |
| ~DisplayPlus () | |
| Destructor. | |
| void | CreateDisplay (const int w, const int h) |
| Creates a display. | |
| bool | AcknowledgeResize () |
| Determines if we can acknowledge resize. | |
| ALLEGRO_BITMAP * | GetBackbuffer () const |
| Gets the backbuffer. | |
| int | GetFlags () const |
| Gets the flags. | |
| int | GetFormat () const |
| Gets the format. | |
| int | GetHeight () const |
| Gets the height. | |
| int | GetRefreshRate () const |
| Gets the refresh rate. | |
| int | GetWidth () const |
| Gets the width. | |
| void | GetWindowPosition (int &x, int &y) |
| Gets a window position. | |
| bool | ResizeDisplay (const int w, const int h) |
| Resize display. | |
| void | SetIcon (ALLEGRO_BITMAP *icon) |
| Sets an icon. | |
| int | GetOption (const int option) const |
| Gets an option. | |
| void | SetWindowPosition (const int x, const int y) |
| Sets a window position. | |
| void | SetWindowTitle (const char *title) |
| Sets a window title. | |
| void | SetWindowTitle (const std::string &title) |
| Sets a window title. | |
| bool | SetFlag (int flag, bool onOff) |
| Sets a flag. | |
| ALLEGRO_EVENT_SOURCE * | GetEventSource () const |
| Gets the event source. | |
Static Public Member Functions | |
| static int | GetNewFlags () |
| Gets the new flags. | |
| static int | GetNewRefreshRate () |
| Gets the new refresh rate. | |
| static void | GetNewWindowPosition (int &x, int &y) |
| Gets a new window position. | |
| static void | SetNewOption (int option, int value, int importance) |
| Sets a new option. | |
| static int | GetNewOption (int option, int &importance) |
| Gets a new option. | |
| static void | ResetNewOptions () |
| Resets the new options. | |
| static void | SetNewFlags (int flags) |
| Sets a new flags. | |
| static void | SetNewRefreshRate (int refreshRate) |
| Sets a new refresh rate. | |
| static void | SetNewWindowPosition (int x, int y) |
| Sets a new window position. | |
| static void | ResetNewWindowPosition () |
| Resets the new window position. | |
| static void | FlipDisplay () |
| Flip display. | |
| static bool | InhibitScreensaver (bool inhibit) |
| Inhibit screensaver. | |
| static void | UpdateRegion (int x, int y, int width, int height) |
| Updates the region. | |
| static bool | WaitForVsync () |
| Determines if we can wait for vsync. | |
Wrapper for ALLEGRO_DISPLAY
| Allegro::DisplayPlus::DisplayPlus | ( | void | ) |
Default constructor.
| Allegro::DisplayPlus::DisplayPlus | ( | const int | w, |
| const int | h | ||
| ) |
Default constructor.
| w | The const int to process. |
| h | The const int to process. |
| Allegro::DisplayPlus::~DisplayPlus | ( | void | ) |
Destructor.
| bool Allegro::DisplayPlus::AcknowledgeResize | ( | void | ) |
Determines if we can acknowledge resize.
| void Allegro::DisplayPlus::CreateDisplay | ( | const int | w, |
| const int | h | ||
| ) |
Creates a display.
| w | The const int to process. |
| h | The const int to process. |
|
static |
Flip display.
| ALLEGRO_BITMAP * Allegro::DisplayPlus::GetBackbuffer | ( | void | ) | const |
Gets the backbuffer.
| ALLEGRO_EVENT_SOURCE * Allegro::DisplayPlus::GetEventSource | ( | void | ) | const |
Gets the event source.
| int Allegro::DisplayPlus::GetFlags | ( | void | ) | const |
Gets the flags.
| int Allegro::DisplayPlus::GetFormat | ( | void | ) | const |
Gets the format.
| int Allegro::DisplayPlus::GetHeight | ( | void | ) | const |
Gets the height.
|
static |
Gets the new flags.
|
static |
Gets a new option.
| option | The option. |
| importance | The importance. |
|
static |
Gets the new refresh rate.
|
static |
Gets a new window position.
| x | The int & to process. |
| y | The int & to process. |
| int Allegro::DisplayPlus::GetOption | ( | const int | option | ) | const |
Gets an option.
| option | The option. |
| int Allegro::DisplayPlus::GetRefreshRate | ( | void | ) | const |
Gets the refresh rate.
| int Allegro::DisplayPlus::GetWidth | ( | void | ) | const |
Gets the width.
| void Allegro::DisplayPlus::GetWindowPosition | ( | int & | x, |
| int & | y | ||
| ) |
Gets a window position.
| x | The const int to process. |
| y | The const int to process. |
|
static |
Inhibit screensaver.
| inhibit | true to inhibit. |
|
static |
Resets the new options.
|
static |
Resets the new window position.
| bool Allegro::DisplayPlus::ResizeDisplay | ( | const int | w, |
| const int | h | ||
| ) |
Resize display.
| w | The const int to process. |
| h | The const int to process. |
| bool Allegro::DisplayPlus::SetFlag | ( | int | flag, |
| bool | onOff | ||
| ) |
Sets a flag.
| flag | The flag. |
| onOff | true to disable, false to enable the on. |
| void Allegro::DisplayPlus::SetIcon | ( | ALLEGRO_BITMAP * | icon | ) |
Sets an icon.
| icon | [in,out] If non-null, the icon. |
|
static |
Sets a new flags.
| flags | The flags. |
|
static |
Sets a new option.
| option | The option. |
| value | The value. |
| importance | The importance. |
|
static |
Sets a new refresh rate.
| refreshRate | The refresh rate. |
|
static |
Sets a new window position.
| x | The x coordinate. |
| y | The y coordinate. |
| void Allegro::DisplayPlus::SetWindowPosition | ( | const int | x, |
| const int | y | ||
| ) |
Sets a window position.
| x | The const int to process. |
| y | The const int to process. |
| void Allegro::DisplayPlus::SetWindowTitle | ( | const char * | title | ) |
Sets a window title.
| title | The title. |
| void Allegro::DisplayPlus::SetWindowTitle | ( | const std::string & | title | ) |
Sets a window title.
| title | The title. |
|
static |
Updates the region.
| x | The x coordinate. |
| y | The y coordinate. |
| width | The width. |
| height | The height. |
|
static |
Determines if we can wait for vsync.
1.8.1.2