22 #ifndef FIFE_DEVICECAPS_H
23 #define FIFE_DEVICECAPS_H
223 #endif //FIFE_DEVICECAPS_H
uint32_t getVideoMemory() const
Total amount of video memory in Kilobytes, only valid if hardware sufaces are available.
bool isSwToHwAlphaBlitAccel() const
Are software to hardware alpha blits accelerated ?
static const uint32_t HW_WINDOWED_OPENGL
std::vector< ScreenMode > getSupportedScreenModes() const
Returns a vector containing screen modes.
int32_t getDesktopHeight() const
Returns the height of the desktop resolution.
uint32_t getSDLFlags() const
Returns the SDL flags used when testing this mode.
bool isWindowManagerAvail() const
Is there a window manager available ?
static const uint32_t FULLSCREEN_SDL_DB_HW
std::vector< std::string > m_availableDrivers
bool isSDL() const
Is this screen mode an SDL only screen mode.
bool m_swToHwCCBlistAccel
uint16_t getBPP() const
Returns the number of bits per pixel this mode uses.
bool isSDLHardwareSurface() const
Returns true if this is a SDL screen mode with the SDL hardware surface enabled.
bool isOpenGL() const
True if this mode uses the OpenGL renderer.
bool operator<(const ScreenMode &rhs) const
ScreenMode getNearestScreenMode(uint16_t width, uint16_t height, uint16_t bpp, const std::string &renderer, bool fs) const
Gets the nearest valid screen mode based on the arguments passed.
void fillAvailableDrivers()
Called in the constructor.
bool isFullScreen() const
True if this is a fullscreen mode.
bool isSwToHwColorkeyBlitAccel() const
Are software to hardware colorkey blits accelerated ?
ScreenMode()
Default Constructor.
static const uint32_t FULLSCREEN_SDL
static const uint32_t HW_FULLSCREEN_OPENGL
std::vector< std::string > getAvailableDrivers() const
Gets the available graphics drivers for your operating system.
void reset()
Clears all information gathered for the device.
std::string getDriverName() const
Returns the name of the current video driver.
uint16_t getHeight() const
Returns the height of the screen mode.
bool m_hwToHwAlphaBlitAccel
bool isBlitFillAccel() const
Are color fills accelerated ?
uint16_t getWidth() const
Returns the width of the screen mode.
static const uint32_t WINDOWED_SDL_DB_HW
int32_t getDesktopWidth() const
Returns the width of the desktop resolution.
void fillDeviceCaps()
Should be called AFTER SDL_Init() has been called.
static const uint32_t WINDOWED_SDL
bool isHwAlphaBlitAccel() const
Are hardware to hardware alpha blits accelerated ?
bool isSwToHwBlitAccel() const
Are software to hardware blits accelerated ?
bool isHwSurfaceAvail() const
Is it possible to create hardware surfaces ?
bool isHwBlitAccel() const
Are hardware to hardware blits accelerated ?
std::vector< ScreenMode > m_screenModes
bool isHwColorkeyBlitAccel() const
Are hardware to hardware colorkey blits accelerated ?
bool m_swToHwAlphaBlitAccel