def.h
来自「游戏编程精髓里的人工智能源代码很好的源代码!」· C头文件 代码 · 共 50 行
H
50 行
/* Copyright (C) Steve Rabin, 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) Steve Rabin, 2000" */#ifndef __DEF_H#define __DEF_H#ifdef _WIN32#include <win32.h>#endiftypedef char s8;#ifdef _WIN32typedef __int16 s16;typedef __int32 s32;typedef __int64 s64;#elsetypedef short s16;typedef long s32;typedef long long s64;#endiftypedef unsigned char u8;#ifdef _WIN32typedef unsigned __int16 u16;typedef unsigned __int32 u32;typedef unsigned __int64 u64;#elsetypedef unsigned short u16;typedef unsigned long u32;typedef unsigned long long u64;#endiftypedef float f32;typedef double f64;typedef 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 + =
减小字号Ctrl + -
显示快捷键?