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

📄 def.h

📁 游戏编程精粹2第六章源码
💻 H
字号:
/* Copyright (C) Dante Treglia II, 2000.  * All rights reserved worldwide. * * This software is provided "as is" without express or implied * warranties. You may freely copy and compile this source into * applications you distribute provided that the copyright text * below is included in the resulting source code, for example: * "Portions Copyright (C) Dante Treglia II, 2000" */#ifndef __DEF_H#define __DEF_H#ifdef WIN32#include "win32.h"#endiftypedef char			s8;typedef unsigned char		u8;typedef float			f32;typedef double			f64;#ifdef WIN32typedef __int16			s16;typedef __int32			s32;typedef __int64			s64;typedef unsigned __int16	u16;typedef unsigned __int32	u32;typedef unsigned __int64	u64;#elsetypedef signed short 		s16;typedef signed long 		s32;typedef signed long long 	s64;typedef unsigned short		u16;typedef unsigned long		u32;typedef unsigned long long	u64;#endiftypedef struct {u8 r, g, b, a;} COLOR;;#define MALLOC malloc#define SET_COLOR(c, rIn, gIn, bIn, aIn) \	c.r = rIn; \	c.g = gIn; \	c.b = bIn; \	c.a = aIn#endif

⌨️ 快捷键说明

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