/* This is a shortcut to easily render a string once */ void VSFontLib::renderAndDiscard(int x, int y, std::string sentence) { unsigned int s = genSentence(); prepareSentence(s, sentence); renderSentence(x,y,s); deleteSentence(s); }
bool TextClass::render( ID3D11DeviceContext* aD3DDeviceContext, D3DXMATRIX aWorldMatrix, D3DXMATRIX aOrthoMatrix) { bool result; result = renderSentence( aD3DDeviceContext, m_sentence1, aWorldMatrix, aOrthoMatrix); if(!result) { return false; } result = renderSentence( aD3DDeviceContext, m_sentence2, aWorldMatrix, aOrthoMatrix); if(!result) { return false; } return true; }