コード例 #1
0
ファイル: application.cpp プロジェクト: abelHan/gideros
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;
}
コード例 #2
0
ファイル: application.cpp プロジェクト: sumyfly/gideros
void Application::setLogicalDimensions(int width, int height)
{
	logicalWidth_ = width;
	logicalHeight_ = height;

	calculateLogicalTransformation();
}
コード例 #3
0
ファイル: application.cpp プロジェクト: abelHan/gideros
void Application::setResolution(int width, int height) {
	width_ = width;
	height_ = height;

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

	calculateLogicalTransformation();
}
コード例 #4
0
ファイル: application.cpp プロジェクト: abelHan/gideros
void Application::setLogicalScaleMode(LogicalScaleMode mode) {
	scaleMode_ = mode;
	calculateLogicalTransformation();
}
コード例 #5
0
ファイル: application.cpp プロジェクト: abelHan/gideros
void Application::setOrientation(Orientation orientation) {
	orientation_ = orientation;

	calculateLogicalTransformation();
}