8 #include "videodriver.h" 
   13 #include <glm/glm.hpp> 
   14 #include <utility/dllexport.h> 
   15 #include <utility/errorstate.h> 
   16 #include <SDL_hints.h> 
   17 #include <SDL_surface.h> 
   31         void NAPAPI 
showWindow(SDL_Window* window, 
bool show);
 
   76         void NAPAPI 
setWindowSize(SDL_Window* window, 
const glm::ivec2& size);
 
  144         bool NAPAPI 
getDisplayName(
int displayIndex, std::string& outName);
 
  153         bool NAPAPI 
getDisplayBounds(
int displayIndex, glm::ivec2& outMin, glm::ivec2& outMax);
 
  319         void NAPAPI 
setWindowTitle(SDL_Window* window, 
const std::string& name);
 
  342         using SurfacePtr = std::unique_ptr<SDL_Surface, std::function<void(SDL_Surface*)>>;
 
  
void NAPAPI setWindowResizable(SDL_Window *window, bool enabled)
 
int NAPAPI getDisplayIndex(SDL_Window *window)
 
bool NAPAPI initVideo(utility::ErrorState &error)
 
bool NAPAPI getWindowDisplayScale(SDL_Window *window, float *scale)
 
uint32_t NAPAPI getWindowId(SDL_Window *window)
 
void NAPAPI toggleCursor()
 
bool NAPAPI setWindowPosition(SDL_Window *window, const glm::ivec2 &position)
 
bool NAPAPI cursorVisible()
 
void NAPAPI showWindow(SDL_Window *window, bool show)
 
NAPAPI SurfacePtr createSurface(const std::string &imagePath, utility::ErrorState &error)
 
uint32 NAPAPI getGlobalMouseState(float *x, float *y)
 
NAPAPI std::vector< int > getDisplayIDs()
 
void NAPAPI setWindowAlwaysOnTop(SDL_Window *window, bool enabled)
 
bool NAPAPI setFullscreen(SDL_Window *window, bool value)
 
Definition: errorstate.h:19
 
uint32 NAPAPI getMouseState(float *x, float *y)
 
int NAPAPI getDisplayCount()
 
bool NAPAPI videoInitialized()
 
bool NAPAPI enableTextInput(SDL_Window *window)
 
EVideoDriver
Definition: videodriver.h:20
 
void NAPAPI setWindowBordered(SDL_Window *window, bool hasBorders)
 
uint32_t uint32
Definition: numeric.h:20
 
bool NAPAPI getDisplayContentScale(int displayIndex, float *scale)
 
bool NAPAPI getFullscreen(SDL_Window *window)
 
glm::ivec2 NAPAPI getWindowSize(SDL_Window *window)
 
NAPAPI std::vector< nap::Display > getDisplays()
 
EOrientation
Definition: display.h:30
 
NAPAPI std::string getCurrentVideoDriver()
 
std::unique_ptr< SDL_Surface, std::function< void(SDL_Surface *)> > SurfacePtr
Definition: sdlhelpers.h:342
 
glm::vec2 NAPAPI getGlobalCursorPosition()
 
glm::ivec2 NAPAPI getDrawableWindowSize(SDL_Window *window)
 
void NAPAPI setWindowTitle(SDL_Window *window, const std::string &name)
 
bool NAPAPI getWindowPixelDensity(SDL_Window *window, float *density)
 
bool NAPAPI disableTextInput(SDL_Window *window)
 
Definition: templateapp.h:17
 
uint32 NAPAPI getWindowFlags(SDL_Window *window)
 
NAPAPI std::vector< std::string > getVideoDrivers()
 
glm::ivec2 NAPAPI getWindowPosition(SDL_Window *window)
 
glm::vec2 NAPAPI getCursorPosition()
 
bool NAPAPI getDisplayName(int displayIndex, std::string &outName)
 
void NAPAPI shutdownVideo()
 
void NAPAPI setWindowSize(SDL_Window *window, const glm::ivec2 &size)
 
bool NAPAPI getDisplayBounds(int displayIndex, glm::ivec2 &outMin, glm::ivec2 &outMax)
 
glm::ivec2 NAPAPI getScreenSize(int screenIndex)
 
Display::EOrientation NAPAPI getDisplayOrientation(int displayIndex)
 
std::string NAPAPI getSDLError()
 
void NAPAPI raiseWindow(SDL_Window *window)