-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTTF.h
30 lines (24 loc) · 787 Bytes
/
TTF.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef __SDL_TTF_H__
#define __SDL_TTF_H__
#include <SDL\SDL_ttf.h>
#include <stdarg.h>
#define STXINWEI 0x0
class TTF
{
TTF_Font* pFont;
SDL_Color textColor;
SDL_Surface* pSurMessage;
public:
void SetTextColor( Uint8 r , Uint8 g ,Uint8 b );
SDL_Surface* TransForm( Uint16 *text );
SDL_Surface* TransForm( Uint16 *text , SDL_Color fg );
SDL_Surface* TransFormUTF( char *text );
SDL_Surface* TransFormUTF( char *text , SDL_Color fg );
SDL_Surface* TransFormUTF( const char *text );
SDL_Surface* TransFormUTF( const char *text , SDL_Color fg );
int Blit( SDL_Surface* dst , SDL_Rect dstRect , Uint16* text );
int Blit( SDL_Surface* dst , SDL_Rect dstRect , Uint16* text , SDL_Color fg );
TTF( const char* FontFile , int FontSize );
~TTF();
};
#endif //__SDL_TTF_H__