Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
void Application::setLogicalDimensions(int width, int height)
{
	logicalWidth_ = width;
	logicalHeight_ = height;

	calculateLogicalTransformation();
}
Exemplo n.º 3
0
void Application::setResolution(int width, int height) {
	width_ = width;
	height_ = height;

	if (ShaderEngine::Engine)
		ShaderEngine::Engine->resizeFramebuffer(width_, height_);

	calculateLogicalTransformation();
}
Exemplo n.º 4
0
void Application::setLogicalScaleMode(LogicalScaleMode mode) {
	scaleMode_ = mode;
	calculateLogicalTransformation();
}
Exemplo n.º 5
0
void Application::setOrientation(Orientation orientation) {
	orientation_ = orientation;

	calculateLogicalTransformation();
}