Exemplo n.º 1
0
	bool FTGLFontDrawingObj::PrepareObj()
	{
		RenderWindow *pRenderWin = static_cast<RenderWindow*>(RenderRoot::GetSingleton().FindRenderTarget(TEXT("Default")));
		pRenderWin->AddKeyboardListener(this);
		m_pCamera->Position() = Unit3f(0.0, 0.0, 100.0f);

		if ( !generateFontBufferFromDC(NULL) )
		{
			return false;
		}

		return true;
	}