Application::Application() : textureManager_(this), timerContainer_(this) { stage_ = 0; orientation_ = ePortrait; hardwareOrientation_ = ePortrait; deviceOrientation_ = ePortrait; nframe_ = -1; // uninitialized yet time_ = -1; clearColorBuffer_ = true; width_ = 320; height_ = 480; logicalWidth_ = 320; logicalHeight_ = 480; scaleMode_ = eNoScale; calculateLogicalTransformation(); defaultFont_ = NULL; scale_ = 1; fov_ = 0; farplane_ = 0; nearplane_ = 0; }
void Application::setLogicalDimensions(int width, int height) { logicalWidth_ = width; logicalHeight_ = height; calculateLogicalTransformation(); }
void Application::setResolution(int width, int height) { width_ = width; height_ = height; if (ShaderEngine::Engine) ShaderEngine::Engine->resizeFramebuffer(width_, height_); calculateLogicalTransformation(); }
void Application::setLogicalScaleMode(LogicalScaleMode mode) { scaleMode_ = mode; calculateLogicalTransformation(); }
void Application::setOrientation(Orientation orientation) { orientation_ = orientation; calculateLogicalTransformation(); }