Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
894 B

  1. //========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef VGUIFONT_H
  8. #define VGUIFONT_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. // Structure passed to CWin32Font::GetCharsRGBA
  13. struct newChar_t
  14. {
  15. wchar_t wch; // A new character to generate texture data for
  16. int fontWide; // Texel width of the character
  17. int fontTall; // Texel height of the character
  18. int offset; // Offset into the buffer given to GetCharsRGBA
  19. };
  20. #if defined( WIN32 )
  21. #include "Win32Font.h"
  22. typedef CWin32Font font_t;
  23. #elif defined(_PS3)
  24. #include "ps3font.h"
  25. typedef CPS3Font font_t;
  26. #elif defined(OSX)
  27. #include "osxfont.h"
  28. typedef COSXFont font_t;
  29. #elif defined(LINUX)
  30. #include "linuxfont.h"
  31. typedef CLinuxFont font_t;
  32. #else
  33. #error
  34. #endif
  35. #endif //VGUIFONT_H