예제 #1
0
파일: IScene.cpp 프로젝트: hxingchh/Medusa
IScene::IScene(const StringRef& name/*=StringRef::Empty*/, const IEventArg& e /*= IEventArg::Empty*/)
	:INode(name), mSceneGraph(nullptr)
{
	mScene = this;
	mRenderTarget = nullptr;

	mSize = ResolutionAdapter::Instance().WinSize();

	SetStretch(Stretch::Fill);
	SetSizeToContent(SizeToContent::WidthAndHeight);
	Start();
}
예제 #2
0
파일: IPanel.cpp 프로젝트: johndpope/Medusa
IPanel::IPanel(StringRef name/*=StringRef::Empty*/):INode(name)
{
	SetSizeToContent(SizeToContent::WidthAndHeight);
}