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

📄 core_common.h

📁 旋转图像Demo和其源代码
💻 H
字号:
/**************************************************
公用头文件和公用函数模块
Author:  LittleFish     QQ:93663886 
E-Mail:  kittyfish_1981@yahoo.com.cn
Blog:    http://blog.csdn.net/kittyfish
真诚的期待你提出改良方法或程序BUG
**************************************************/


#ifndef _FISH_COMMON_H
#define _FISH_COMMON_H

#pragma once

//#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#include "ddraw.h"
#include "dinput.h"
#include "dmusici.h"
#include "dsound.h"
#include <Windows.h>
#include <WindowsX.h>
#include <stdio.h>
#include <stdlib.h>
#include <tchar.h>
#include <time.h>
#include <math.h>
#include <assert.h>
#include <process.h>
#include <MMSystem.h>
#include <fstream>


#include <list>
using namespace std;

#pragma comment ( lib, "ddraw.lib" )
#pragma comment ( lib, "dxguid.lib" )
#pragma comment ( lib, "dsound.lib" )
#pragma comment ( lib, "dinput8.lib" )

#pragma warning ( disable: 4267 )
#pragma warning ( disable: 4244 )
#pragma warning ( disable: 4018 )
//#pragma warning (  )



//********************************struct************************************//
struct PIXEL32
{
	BYTE b;
	BYTE g;
	BYTE r;
	BYTE a;
};

struct PIXEL24
{
	BYTE b;
	BYTE g;
	BYTE r;
};

typedef WORD   PIXEL16;



//********************************define************************************//
#ifndef PI
#define PI 3.1415926535
#endif



//********************************function************************************//
#if !defined(SAFE_DELETE)
#define SAFE_DELETE(p)       { if((p) != NULL) { delete (p);     (p)=NULL; } }
#endif

#if !defined(SAFE_DELETE_ARRAY)
#define SAFE_DELETE_ARRAY(p) { if((p) != NULL) { delete[] (p);   (p)=NULL; } }
#endif

#if !defined(SAFE_RELEASE)
#define SAFE_RELEASE(p)      { if((p) != NULL) { (p)->Release(); (p)=NULL; } }
#endif

void MB( TCHAR* strFormat, ... );

void DebugMB( TCHAR* strFormat, ... );

BOOL IsBetween( int curr, int left, int right );

BOOL Execute( LPCTSTR strFileName );

float B3spLine( float x );

//wcstombs
//mbstowcs

#endif

⌨️ 快捷键说明

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