Click here to Skip to main content
15,881,559 members
Articles / Mobile Apps / iPhone

FreeType on OpenGL ES (iPhone)

Rate me:
Please Sign up or sign in to vote.
4.75/5 (10 votes)
24 Nov 2010CPOL4 min read 86.4K   3K   27  
Faster, smarter and better looking fonts rendered with OpenGL ES
#ifndef _RACEXCEPTION_H_INCLUDED_
#define _RACEXCEPTION_H_INCLUDED_

#include <string>
using namespace std;


class RacException 
{
public:
	RacException(const char* szErr) : m_strErr(szErr) {}
	RacException(const char* szErr, const string& strAdd) 
	 : m_strErr(szErr) 
	 {
		 m_strErr += strAdd;
	 }
	RacException(const char* szErr, const char* szAdd) 
	 : m_strErr(szErr) 
	 {
		 if (szAdd != NULL)
			m_strErr += szAdd;
	 }
	RacException(const char* szErr, int num);
	RacException(const ostringstream& os);
	const string& GetStrErr() const
	{
		return m_strErr;
	}
private:
	string m_strErr;
};

#endif // _RACEXCEPTION_H_INCLUDED_

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Astronautz
Spain Spain
After working in the software industry for many years, I've started my own games company that specialises in strategy games for mobile platforms.

Comments and Discussions