ManaPlus
|
Functions | |
bool | getAllVideoModes (StringVect &modeList) |
void | SetWindowTitle (const SDL_Surface *const window, const char *const title) |
void | SetWindowIcon (const SDL_Surface *const window, SDL_Surface *const icon) |
void | grabInput (const SDL_Surface *const window, const bool grab) |
void | setGamma (const SDL_Surface *const window, const float gamma) |
void | setVsync (const int val) |
bool | getWindowWMInfo (const SDL_Surface *const window, SDL_SysWMinfo *const info) |
SDL_Thread * | createThread (int(*fn)(void *), const char *const name, void *const data) |
void * | createGLContext (SDL_Surface *const window, const int major, const int minor, const int profile) |
void | makeCurrentContext (void *const context) |
void | initLogger () |
void | setLogLevel (const int level) |
void | WaitThread (SDL_Thread *const thread) |
bool | PollEvent (SDL_Event *event) |
void | allowScreenSaver (const bool allow) |
int | MixOpenAudio (const int frequency, const uint16_t format, const int nchannels, const int chunksize) |
Mix_Music * | LoadMUSOgg_RW (SDL_RWops *const rw) |
void | showCursor (const bool show) |
void SDL::allowScreenSaver | ( | const bool | allow | ) |
Definition at line 210 of file sdlhelper.cpp.
References setEnv().
Referenced by Client::gameInit().
void * SDL::createGLContext | ( | SDL_Surface *const | window, |
const int | major, | ||
const int | minor, | ||
const int | profile | ||
) |
Definition at line 174 of file sdlhelper.cpp.
Referenced by ModernOpenGLGraphics::createGLContext().
SDL_Thread * SDL::createThread | ( | int(*)(void *) | fn, |
const char *const | name, | ||
void *const | data | ||
) |
Definition at line 118 of file sdlhelper.cpp.
References data.
Referenced by Ea::Network::connect(), WhoIsOnline::download(), IPC::init(), and Net::Download::start().
bool SDL::getAllVideoModes | ( | StringVect & | modeList | ) |
< Surface is a full screen display
< Surface is in video memory
Definition at line 44 of file sdlhelper.cpp.
References CAST_S32, Logger::log(), Logger::log1(), logger, and Catch::toString().
Referenced by ModeListModel::ModeListModel(), and GraphicsManager::setVideoMode().
bool SDL::getWindowWMInfo | ( | const SDL_Surface *const | window, |
SDL_SysWMinfo *const | info | ||
) |
Definition at line 112 of file sdlhelper.cpp.
References Actions::info().
Referenced by GraphicsManager::detectPixelSize(), WindowManager::setIcon(), and GraphicsManager::updatePlanformExtensions().
void SDL::grabInput | ( | const SDL_Surface *const | window, |
const bool | grab | ||
) |
Definition at line 97 of file sdlhelper.cpp.
Referenced by WindowManager::applyGrabMode().
void SDL::initLogger | ( | ) |
Definition at line 187 of file sdlhelper.cpp.
Referenced by Client::gameInit(), and main().
Mix_Music * SDL::LoadMUSOgg_RW | ( | SDL_RWops *const | rw | ) |
Definition at line 39 of file sdlmusichelper.cpp.
Referenced by anonymous_namespace{musicloader.cpp}::ResourceLoader::load().
void SDL::makeCurrentContext | ( | void *const | context | ) |
Definition at line 182 of file sdlhelper.cpp.
Referenced by ModernOpenGLGraphics::createGLContext().
int SDL::MixOpenAudio | ( | const int | frequency, |
const uint16_t | format, | ||
const int | nchannels, | ||
const int | chunksize | ||
) |
Definition at line 28 of file sdlmusichelper.cpp.
Referenced by SoundManager::init().
bool SDL::PollEvent | ( | SDL_Event * | event | ) |
Definition at line 201 of file sdlhelper.cpp.
Referenced by EventsManager::handleEvents(), and EventsManager::handleGameEvents().
void SDL::setGamma | ( | const SDL_Surface *const | window, |
const float | gamma | ||
) |
Definition at line 102 of file sdlhelper.cpp.
Referenced by WindowManager::applyGamma().
void SDL::setLogLevel | ( | const int | level | ) |
void SDL::setVsync | ( | const int | val | ) |
Definition at line 107 of file sdlhelper.cpp.
Referenced by WindowManager::applyVSync().
void SDL::SetWindowIcon | ( | const SDL_Surface *const | window, |
SDL_Surface *const | icon | ||
) |
Definition at line 91 of file sdlhelper.cpp.
Referenced by WindowManager::setIcon().
void SDL::SetWindowTitle | ( | const SDL_Surface *const | window, |
const char *const | title | ||
) |
Definition at line 85 of file sdlhelper.cpp.
Referenced by WindowManager::initTitle(), WindowManager::newChatMessage(), WindowManager::setIsMinimized(), and WindowManager::updateTitle().
void SDL::showCursor | ( | const bool | show | ) |
void SDL::WaitThread | ( | SDL_Thread *const | thread | ) |
Definition at line 195 of file sdlhelper.cpp.
Referenced by WhoIsOnline::action(), Ea::Network::disconnect(), WhoIsOnline::download(), Net::Download::~Download(), IPC::~IPC(), and WhoIsOnline::~WhoIsOnline().