Esempio n. 1
0
	Water::Water(int nWidth, int nHeight, float waterHeight, Texture *nTexture)
		: Water()
	{
		CreateBlank(nWidth, nHeight, waterHeight);

		texture = nTexture;
	};
Esempio n. 2
0
	void SPTexture::Reload()
	{
		if (path == L"")
		{
			CreateBlank(width, height);
		}

		Load(path);
	}
Esempio n. 3
0
bool ff::ViewWindow::Create(PWND parent, ViewType type)
{
	assertRetVal(parent, false);
	_viewType = type;

#if !METRO_APP
	ff::String viewName = String::from_acp(typeid(*this).name() + 6); // skip "class "
	assertRetVal(CreateBlank(viewName, parent, WS_CHILD), false);
	_allowLayout = true;
#endif

	assertRetVal((_commandRouter = CreateCommandRouter()) != nullptr, false);
	assertRetVal(Initialize(), false);

	// Don't do Layout() until the view is activated

	return true;
}