Team Fortress 2 Source Code as on 22/4/2020
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.

38 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #if !defined( IVGUICENTERPRINT_H )
  14. #define IVGUICENTERPRINT_H
  15. #ifdef _WIN32
  16. #pragma once
  17. #endif
  18. #include "interface.h"
  19. //-----------------------------------------------------------------------------
  20. // Purpose: Engine Center Print Interface
  21. //-----------------------------------------------------------------------------
  22. abstract_class ICenterPrint
  23. {
  24. public:
  25. virtual void SetTextColor( int r, int g, int b, int a ) = 0;
  26. virtual void Print( char *text ) = 0;
  27. virtual void Print( wchar_t *text ) = 0;
  28. virtual void ColorPrint( int r, int g, int b, int a, char *text ) = 0;
  29. virtual void ColorPrint( int r, int g, int b, int a, wchar_t *text ) = 0;
  30. virtual void Clear( void ) = 0;
  31. };
  32. extern ICenterPrint *centerprint;
  33. #define VCENTERPRINT_INTERFACE_VERSION "VCENTERPRINT002"
  34. #endif // IVGUICENTERPRINT_H