Water::Water(int nWidth, int nHeight, float waterHeight, Texture *nTexture) : Water() { CreateBlank(nWidth, nHeight, waterHeight); texture = nTexture; };
void SPTexture::Reload() { if (path == L"") { CreateBlank(width, height); } Load(path); }
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; }