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.
 
 
 
 
 
 

35 lines
751 B

//========= 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