DebugFont.h
Go to the documentation of this file.00001 00014 #ifndef __DebugFont_H__ 00015 #define __DebugFont_H__ 00016 00017 // Includes 00018 00019 // Forward declares 00020 class Bitmap; 00021 00022 // DebugFont 00023 class DebugFont 00024 { 00025 public: 00029 void Blit( 00030 Bitmap& bitmap, 00031 int x, 00032 int y, 00033 const char* text, 00034 unsigned short color = 0xffff 00035 ); 00036 00040 void Blit( 00041 unsigned char* colorData, 00042 int hPitch, 00043 int vPitch, 00044 int x, 00045 int y, 00046 const char* text, 00047 unsigned char color = 0xff 00048 ); 00049 00053 void Blit( 00054 unsigned short* colorData, 00055 int hPitch, 00056 int vPitch, 00057 int x, 00058 int y, 00059 const char* text, 00060 unsigned short color = 0xffff 00061 ); 00062 00066 void Blit( 00067 unsigned int* colorData, 00068 int hPitch, 00069 int vPitch, 00070 int x, 00071 int y, 00072 const char* text, 00073 unsigned int color = 0xffffffff 00074 ); 00075 00076 private: 00082 template <typename TYPE> void Blit( 00083 TYPE* colorData, 00084 int hPitch, 00085 int vPitch, 00086 int x, 00087 int y, 00088 const char* text, 00089 TYPE color 00090 ); 00091 }; 00092 00093 00094 #endif /* __DebugFont_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
