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.

26 lines
591 B

  1. //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //===========================================================================//
  8. #ifndef IFONT_H
  9. #define IFONT_H
  10. #include "platform.h"
  11. // font interface
  12. class IFont
  13. {
  14. public:
  15. virtual void RenderToBuffer(int ch, int offsetx, int width, int height, unsigned char *pBuffer) = 0;
  16. virtual bool GetCharABCWidth(int ch, int &a, int &b, int &c) = 0;
  17. virtual int GetMaxHeight() = 0;
  18. virtual int GetMaxWidth() = 0;
  19. virtual int GetAscent() = 0;
  20. };
  21. #endif