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

📄 types.h

📁 游戏编程精粹2第三章源码
💻 H
字号:
/* Copyright (C) Alex Vlachos and John Isidoro, 2001. 
 * 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) Alex Vlachos and John Isidoro, 2001"
 */
/******************************************************************************
 *  Types.h -- Variable prototypes
 ******************************************************************************
 *  Written by Alex Vlachos (Alex@Vlachos.com)
 ******************************************************************************/

#ifndef __Types_h
#define __Types_h

// DEFINES ====================================================================
#ifdef TRUE
#undef TRUE
#endif
#define TRUE  1

#ifdef FALSE
#undef FALSE
#endif
#define FALSE 0

#ifdef ATI_MAC_OS
   /*******/
   /* MAC */
   /*******/
   // SIGNED TYPEDEFS ============================================================
   typedef char char8;
   
   typedef char    int8;
   typedef short   int16;
   typedef long    int32;
   //typedef __int64 int64;
   
   typedef float       float32;
   typedef double      float64;
   typedef long double float80;
   
   typedef long fixed32;
   
   typedef char bool8;
   
   // UNSIGNED TYPEDEFS ==========================================================
   typedef unsigned char    uint8;
   typedef unsigned short   uint16;
   typedef unsigned long     uint32;
   //typedef unsigned __int64 uint64;
   
   typedef unsigned long ufixed32;
#else   
   /***********/
   /* Windows */
   /***********/
   // SIGNED TYPEDEFS ============================================================
   typedef char char8;
   
   typedef char    int8;
   typedef short   int16;
   typedef int     int32;
   typedef __int64 int64;
   
   typedef float       float32;
   typedef double      float64;
   typedef long double float80;
   
   typedef int fixed32;
   
   typedef char bool8;
   
   // UNSIGNED TYPEDEFS ==========================================================
   typedef unsigned char    uint8;
   typedef unsigned short   uint16;
   typedef unsigned int     uint32;
   typedef unsigned __int64 uint64;
   
   typedef unsigned int ufixed32;
#endif

#endif

⌨️ 快捷键说明

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