⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loadimagefile.cpp

📁 游戏编程精华02-含有几十个游戏编程例子
💻 CPP
字号:
#include "priv_precompiled.h"

/*
Copyright 2001 Bruce Dawson, Cygnus Software
For more information, visit http://www.cygnus-software.com/papers/
or e-mail: comments@cygnus-software.com

This code may be redistributed as long as this notice is kept intact.
*/

#include "csbitmap.h"

bool LoadImageFile(const char* FileName, CSBitmap* DestBitmap)
{
	// Yes, I know this is really crude. I should at least check the
	// extensions or something. Oh well...
	if (LoadBMPFile(FileName, DestBitmap))
		return true;

	//if (LoadTargaFile(FileName, DestBitmap))
	//	return true;

	if (LoadPCXFile(FileName, DestBitmap))
		return true;

	return false;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -