Exemple #1
0
void TextClass::Shutdown()
{
    // Release the first sentence.
    ReleaseSentence(&m_sentence1);

    // Release the second sentence.
    ReleaseSentence(&m_sentence2);

    // Release the font shader object.
    if(m_FontShader)
    {
        m_FontShader->Shutdown();
        delete m_FontShader;
        m_FontShader = 0;
    }

    // Release the font object.
    if(m_Font)
    {
        m_Font->Shutdown();
        delete m_Font;
        m_Font = 0;
    }

    return;
}
void TextClass::Shutdown()
{
	ReleaseSentence(&_cpusentence);

	ReleaseSentence(&_fpsentence);

	ReleaseSentence(&_sentence1);

	ReleaseSentence(&_sentence2);

	if (_fontShader)
	{
		_fontShader->Shutdown();
		delete _fontShader;
		_fontShader = NULL;
	}

	if (_font)
	{
		_font->Shutdown();
		delete _font;
		_font = NULL;
	}

}
Exemple #3
0
	void TextClass::Shutdown() {
		ReleaseSentence(&mSentence1);
		ReleaseSentence(&mSentence2);
		if(mFontShader)
		{
			delete mFontShader;
			mFontShader = 0;
		}
		if(mFont)
		{
			mFont->Shutdown();
			delete mFont;
			mFont = 0 ;
		}
	}
Exemple #4
0
void Text::Shutdown(){
	//clear sentence array
	if (m_sentenceArray){
		for (int i = 0; i < MAXSENTENCE; i++){
			if (m_sentenceArray[i] != 0){
				ReleaseSentence(m_sentenceArray[i]);
				delete m_sentenceArray[i];
				m_sentenceArray[i] = 0;
			}
		}
		delete [] m_sentenceArray;
		m_sentenceArray = 0;
	}
	// Release the font shader object.
	if(m_FontShader)
	{
		m_FontShader->Shutdown();
		delete m_FontShader;
		m_FontShader = 0;
	}

	// Release the font object.
	if(m_Font)
	{
		m_Font->Shutdown();
		delete m_Font;
		m_Font = 0;
	}

}
Exemple #5
0
void Text::Shutdown()
{
	ReleaseSentence(&sen01);
	ReleaseSentence(&sen02);

	if (m_FontShader)
	{
		m_FontShader->Shutdown();
		delete m_FontShader;
		m_FontShader = nullptr;
	}

	if (m_Font)
	{
		m_Font->Shutdown();
		delete m_Font;
		m_Font = nullptr;
	}
}
Exemple #6
0
void CTextClass::Shutdown()
{
	//Liberamos la segunda sentencia
	ReleaseSentence(&m_Sentence2);
	ReleaseSentence(&m_Sentence1);

	//Liberamos el fontshader y el font
	if (m_FontShader)
	{
		m_FontShader->Shutdown();
		delete m_FontShader;
		m_FontShader = 0;
	}
	if (m_Font)
	{
		m_Font->Shutdown();
		delete m_Font;
		m_Font = 0;
	}
	return;
}
Exemple #7
0
void TextClass::Shutdown()
{
	// Release the font object.
	if(m_Font)
	{
		m_Font->Shutdown();
		delete m_Font;
		m_Font = 0;
	}

	// Release the sentences.
	ReleaseSentence(&m_sentence1);
	ReleaseSentence(&m_sentence2);
	ReleaseSentence(&m_sentence3);
	ReleaseSentence(&m_sentence4);
	ReleaseSentence(&m_sentence5);
	ReleaseSentence(&m_sentence6);
	ReleaseSentence(&m_sentence7);
	ReleaseSentence(&m_sentence8);
	ReleaseSentence(&m_sentence9);
	ReleaseSentence(&m_sentence10);

	return;
}
Exemple #8
0
void OldText::Shutdown()
{
	ReleaseSentence(&_sentence);

	if (_fontShader)
	{
		_fontShader->Shutdown();
		delete _fontShader;
		_fontShader = NULL;
	}

	if (_font)
	{
		_font->Shutdown();
		delete _font;
		_font = NULL;
	}
}
Exemple #9
0
void Text::ClearSentence(int id){
	ReleaseSentence(m_sentenceArray[id]);
	delete m_sentenceArray[id];
	m_sentenceArray[id] = 0;
}
Exemple #10
0
void TextClass::Shutdown()
{
	ReleaseSentence(&m_sentence1);
	ReleaseSentence(&m_sentence2);
	ReleaseSentence(&m_sentence3);
	ReleaseSentence(&m_sentence4);
	ReleaseSentence(&m_sentence5);
	ReleaseSentence(&m_sentence6);
	ReleaseSentence(&m_sentence7);
	ReleaseSentence(&m_sentence8);
	ReleaseSentence(&m_sentence9);
	ReleaseSentence(&m_sentence10);
	ReleaseSentence(&m_sentence11);

	// Release the font shader object.
	if(m_FontShader)
	{
		delete m_FontShader;
		m_FontShader = 0;
	}

	// Release the font object.
	if(m_Font)
	{
		m_Font->Shutdown();
		delete m_Font;
		m_Font = 0;
	}

	return;
}