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.

31 lines
1.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Debug overlay / notfication printing
  4. //
  5. //=============================================================================//
  6. #ifndef CON_NPRINT_H
  7. #define CON_NPRINT_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. //-----------------------------------------------------------------------------
  12. // Purpose: Debug overlay / notfication printing
  13. // NOTE: Structure cannot be changed by mods
  14. //-----------------------------------------------------------------------------
  15. typedef struct con_nprint_s
  16. {
  17. int index; // Row #
  18. float time_to_live; // # of seconds before it disappears. -1 means to display for 1 frame then go away.
  19. float color[ 3 ]; // RGB colors ( 0.0 -> 1.0 scale )
  20. bool fixed_width_font;
  21. } con_nprint_t;
  22. // Print string on line idx
  23. void Con_NPrintf( int idx, PRINTF_FORMAT_STRING const char *fmt, ... );
  24. // Customized printout
  25. void Con_NXPrintf( const con_nprint_t *info, PRINTF_FORMAT_STRING const char *fmt, ... );
  26. #endif // CON_NPRINT_H