22 #ifndef FIFE_DEVICECAPS_H 23 #define FIFE_DEVICECAPS_H 92 bool isSDL()
const {
return (!(
m_SDLFlags & SDL_WINDOW_OPENGL)) ? true :
false; };
159 void fillDeviceCaps();
204 uint8_t getDisplayCount()
const;
208 std::string getDisplayName(
uint8_t display = 0)
const;
216 int32_t getDesktopRefreshRate(
uint8_t display = 0)
const;
220 int32_t getDesktopWidth(
uint8_t display = 0)
const;
224 int32_t getDesktopHeight(
uint8_t display = 0)
const;
241 void fillAvailableDrivers();
247 #endif //FIFE_DEVICECAPS_H
uint8_t getDisplay() const
Returns the display index.
uint16_t getHeight() const
Returns the height of the screen mode.
std::vector< std::string > m_availableVideoDrivers
uint32_t getSDLFlags() const
Returns the SDL flags used when testing this mode.
int8_t getRenderDriverIndex() const
Returns the index of the render driver.
std::string m_renderDriverName
std::string getRenderDriverName() const
Returns the name of the current render driver or an empty string to initialize the first one supporti...
void setVideoDriverName(const std::string &driver)
Sets the name of the video driver.
std::vector< std::string > getAvailableVideoDrivers() const
Gets the available video drivers for your operating system.
bool isOpenGL() const
True if this mode uses the OpenGL renderer.
std::vector< std::string > getAvailableRenderDrivers() const
Gets the available render drivers for your operating system.
std::string m_videoDriverName
uint32_t getFormat() const
Returns the pixel format enum.
bool operator<(const ScreenMode &rhs) const
void setFormat(uint32_t format)
Sets the pixel format enum.
void setRenderDriverName(const std::string driver)
Sets the render driver name.
static const uint32_t WINDOWED_OPENGL
ScreenMode()
Default Constructor.
static const uint32_t FULLSCREEN_SDL
uint16_t getBPP() const
Returns the number of bits per pixel this mode uses.
std::string getVideoDriverName() const
Returns the name of the current video driver.
int8_t m_renderDriverIndex
static const uint32_t FULLSCREEN_OPENGL
int8_t m_renderDriverIndex
bool isSDL() const
Is this screen mode an SDL only screen mode.
static const uint32_t WINDOWED_SDL
const std::string & getRenderDriverName() const
Returns the render driver name.
void setDisplay(uint8_t display)
Sets the display index.
std::string m_renderDriver
std::vector< ScreenMode > getSupportedScreenModes() const
Returns a vector containing screen modes.
void setRenderDriverIndex(int8_t index)
Sets the index of the render driver used by SDL.
uint16_t getWidth() const
Returns the width of the screen mode.
std::vector< ScreenMode > m_screenModes
uint16_t getRefreshRate() const
Returns the refresh rate in Hz of this mode.
bool isFullScreen() const
True if this is a fullscreen mode.
std::vector< std::string > m_availableRenderDrivers