summaryrefslogtreecommitdiff
path: root/utils/hlfaceposer/mxbitmaptools.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hlfaceposer/mxbitmaptools.h')
-rw-r--r--utils/hlfaceposer/mxbitmaptools.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/utils/hlfaceposer/mxbitmaptools.h b/utils/hlfaceposer/mxbitmaptools.h
new file mode 100644
index 0000000..dad3268
--- /dev/null
+++ b/utils/hlfaceposer/mxbitmaptools.h
@@ -0,0 +1,35 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+#if !defined( MXBITMAPTOOLS_H )
+#define MXBITMAPTOOLS_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+struct mxbitmapdata_t
+{
+ mxbitmapdata_t()
+ {
+ valid = false;
+ image = 0;
+ width = 0;
+ height = 0;
+ }
+
+ bool valid;
+ void *image;
+ int width;
+ int height;
+};
+
+class mxWindow;
+
+bool LoadBitmapFromFile( const char *relative, mxbitmapdata_t& bitmap );
+void DrawBitmapToWindow( mxWindow *wnd, int x, int y, int w, int h, mxbitmapdata_t& bitmap );
+void DrawBitmapToDC( void *hdc, int x, int y, int w, int h, mxbitmapdata_t& bitmap );
+
+#endif // MXBITMAPTOOLS_H \ No newline at end of file