summaryrefslogtreecommitdiff
path: root/utils/hlfaceposer/mxbitmaptools.h
blob: dad3268c7251ce2f64fcaedea329aa42513684ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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