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.

64 lines
1.9 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Basic header for using vgui
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef VGUI_H
  8. #define VGUI_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "tier0/platform.h"
  13. #pragma warning( disable: 4786 ) // disables 'identifier truncated in browser information' warning
  14. #pragma warning( disable: 4355 ) // disables 'this' : used in base member initializer list
  15. #pragma warning( disable: 4097 ) // warning C4097: typedef-name 'BaseClass' used as synonym for class-name
  16. #pragma warning( disable: 4514 ) // warning C4514: 'Color::Color' : unreferenced inline function has been removed
  17. #pragma warning( disable: 4100 ) // warning C4100: 'code' : unreferenced formal parameter
  18. #pragma warning( disable: 4127 ) // warning C4127: conditional expression is constant
  19. typedef unsigned char uchar;
  20. typedef unsigned short ushort;
  21. typedef unsigned int uint;
  22. typedef unsigned long ulong;
  23. #ifndef _WCHAR_T_DEFINED
  24. // DAL - wchar_t is a built in define in gcc 3.2 with a size of 4 bytes
  25. #if !defined( __x86_64__ ) && !defined( __WCHAR_TYPE__ )
  26. typedef unsigned short wchar_t;
  27. #define _WCHAR_T_DEFINED
  28. #endif
  29. #endif
  30. // do this in GOLDSRC only!!!
  31. //#define Assert assert
  32. namespace vgui
  33. {
  34. // handle to an internal vgui panel
  35. // this is the only handle to a panel that is valid across dll boundaries
  36. typedef uintp VPANEL;
  37. // handles to vgui objects
  38. // NULL values signify an invalid value
  39. typedef unsigned long HScheme;
  40. typedef unsigned long HTexture;
  41. typedef unsigned long HCursor;
  42. typedef unsigned long HPanel;
  43. const HPanel INVALID_PANEL = 0xffffffff;
  44. typedef unsigned long HFont;
  45. const HFont INVALID_FONT = 0; // the value of an invalid font handle
  46. const float STEREO_NOOP = 1.0f;
  47. const float STEREO_INVALID = 0.0f;
  48. }
  49. #include "tier1/strtools.h"
  50. #endif // VGUI_H