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.

34 lines
751 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #if !defined( MXBITMAPTOOLS_H )
  8. #define MXBITMAPTOOLS_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. struct mxbitmapdata_t
  13. {
  14. mxbitmapdata_t()
  15. {
  16. valid = false;
  17. image = 0;
  18. width = 0;
  19. height = 0;
  20. }
  21. bool valid;
  22. void *image;
  23. int width;
  24. int height;
  25. };
  26. class mxWindow;
  27. bool LoadBitmapFromFile( const char *relative, mxbitmapdata_t& bitmap );
  28. void DrawBitmapToWindow( mxWindow *wnd, int x, int y, int w, int h, mxbitmapdata_t& bitmap );
  29. void DrawBitmapToDC( void *hdc, int x, int y, int w, int h, mxbitmapdata_t& bitmap );
  30. #endif // MXBITMAPTOOLS_H