ManaPlus
|
#include "graphicsmanager.h"
#include "settings.h"
#include "render/mobileopengl2graphics.h"
#include "render/mobileopenglgraphics.h"
#include "render/modernopenglgraphics.h"
#include "render/normalopenglgraphics.h"
#include "render/safeopenglgraphics.h"
#include "render/opengl/mgl.h"
#include "render/opengl/mglcheck.h"
#include "render/opengl/mglemu.h"
#include "render/sdlgraphics.h"
#include "resources/openglimagehelper.h"
#include "resources/openglscreenshothelper.h"
#include "resources/mobileopenglscreenshothelper.h"
#include "resources/safeopenglimagehelper.h"
#include "render/opengl/mglfunctions.h"
#include "resources/sdlimagehelper.h"
#include "resources/sdlscreenshothelper.h"
#include "utils/delete2.h"
#include "utils/sdlhelper.h"
#include "test/testmain.h"
#include <SDL_syswm.h>
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | useCompression(name) |
#define | RENDER_SOFTWARE_INIT |
#define | RENDER_SDL2_DEFAULT_INIT |
#define | RENDER_NORMAL_OPENGL_INIT |
#define | RENDER_MODERN_OPENGL_INIT |
#define | RENDER_SAFE_OPENGL_INIT |
#define | RENDER_GLES2_OPENGL_INIT |
#define | RENDER_GLES_OPENGL_INIT |
Functions | |
static void | debugCallback (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *text, GLvoid *userParam) |
Variables | |
GraphicsManager | graphicsManager |
RenderType | openGLMode = RENDER_SOFTWARE |
ScreenshotHelper * | screenshortHelper = 0 |
const int | densitySize = 6 |
const std::string | densityNames [] |
#define RENDER_GLES2_OPENGL_INIT |
Definition at line 321 of file graphicsmanager.cpp.
#define RENDER_GLES_OPENGL_INIT |
Definition at line 332 of file graphicsmanager.cpp.
#define RENDER_MODERN_OPENGL_INIT |
Definition at line 299 of file graphicsmanager.cpp.
#define RENDER_NORMAL_OPENGL_INIT |
Definition at line 293 of file graphicsmanager.cpp.
#define RENDER_SAFE_OPENGL_INIT |
Definition at line 314 of file graphicsmanager.cpp.
#define RENDER_SDL2_DEFAULT_INIT |
Definition at line 286 of file graphicsmanager.cpp.
#define RENDER_SOFTWARE_INIT |
Definition at line 281 of file graphicsmanager.cpp.
#define useCompression | ( | name | ) |
Definition at line 108 of file graphicsmanager.cpp.
|
static |
Definition at line 1555 of file graphicsmanager.cpp.
References CAST_SIZE, GL_DEBUG_SEVERITY_HIGH, GL_DEBUG_SEVERITY_LOW, GL_DEBUG_SEVERITY_MEDIUM, GL_DEBUG_SEVERITY_NOTIFICATION, GL_DEBUG_SOURCE_API, GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_SOURCE_OTHER, GL_DEBUG_SOURCE_SHADER_COMPILER, GL_DEBUG_SOURCE_THIRD_PARTY, GL_DEBUG_SOURCE_WINDOW_SYSTEM, GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR, GL_DEBUG_TYPE_ERROR, GL_DEBUG_TYPE_MARKER, GL_DEBUG_TYPE_OTHER, GL_DEBUG_TYPE_PERFORMANCE, GL_DEBUG_TYPE_POP_GROUP, GL_DEBUG_TYPE_PORTABILITY, GL_DEBUG_TYPE_PUSH_GROUP, GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR, Logger::log(), logger, and Catch::toString().
Referenced by GraphicsManager::updateDebugLog().
const std::string densityNames[] |
Definition at line 123 of file graphicsmanager.cpp.
Referenced by GraphicsManager::getDensityString().
const int densitySize = 6 |
Definition at line 121 of file graphicsmanager.cpp.
Referenced by GraphicsManager::detectPixelSize(), and GraphicsManager::getDensityString().
GraphicsManager graphicsManager |
Definition at line 115 of file graphicsmanager.cpp.
Referenced by Setup_Video::action(), OpenGLImageHelper::copySurfaceToImage(), NormalOpenGLGraphics::drawLineArrayf(), NormalOpenGLGraphics::drawLineArrayi(), MobileOpenGL2Graphics::drawLineArrays(), MobileOpenGLGraphics::drawLineArrays(), ModernOpenGLGraphics::drawLineArrays(), drawQuad(), MobileOpenGL2Graphics::drawQuad(), ModernOpenGLGraphics::drawQuad(), NormalOpenGLGraphics::drawQuadArrayfi(), NormalOpenGLGraphics::drawQuadArrayfiCached(), NormalOpenGLGraphics::drawQuadArrayii(), NormalOpenGLGraphics::drawQuadArrayiiCached(), drawRescaledQuad(), MobileOpenGL2Graphics::drawRescaledQuad(), ModernOpenGLGraphics::drawRescaledQuad(), MobileOpenGL2Graphics::drawTriangleArray(), ModernOpenGLGraphics::drawTriangleArray(), MobileOpenGLGraphics::drawTriangleArrayfs(), MobileOpenGLGraphics::drawTriangleArrayfsCached(), emuglTextureSubImage2DEXT(), Client::gameInit(), Graphics::getMemoryUsage(), MobileOpenGLScreenshotHelper::getScreenshot(), OpenGLScreenshotHelper::getScreenshot(), OpenGLImageHelper::glLoad(), SafeOpenGLImageHelper::glLoad(), Client::initGraphics(), MapReader::loadEmptyAtlas(), MobileOpenGL2Graphics::postInit(), ModernOpenGLGraphics::postInit(), MobileOpenGLScreenshotHelper::prepare(), OpenGLScreenshotHelper::prepare(), MapReader::readTileset(), Theme::selectSkin(), setConfigDefaults2(), Graphics::setOpenGLMode(), MobileOpenGL2Graphics::testDraw(), ModernOpenGLGraphics::testDraw(), NormalOpenGLGraphics::testDraw(), TestLauncher::testTextures(), TestLauncher::testVideoDetection(), and Graphics::updateMemoryInfo().
RenderType openGLMode = RENDER_SOFTWARE |
Definition at line 117 of file graphicsmanager.cpp.
Referenced by Gui::draw(), TestMain::exec(), GraphicsManager::initGraphics(), Button::widgetHidden(), Window::widgetHidden(), and TestMain::writeConfig().
ScreenshotHelper* screenshortHelper = 0 |
Definition at line 119 of file graphicsmanager.cpp.
Referenced by GraphicsManager::createRenderers(), Game::createScreenshot(), and TestLauncher::testTextures().