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

📄 basic.h

📁 [Game.Programming].Academic - Graphics Gems (6 books source code)
💻 H
字号:
// -*- C++ -*-// basic.h by George Vanecek, Jr. June 1994#ifndef _BASIC_H_#define _BASIC_H_#ifndef _IOSTREAM_H#include <ostream.h>#endif#ifndef __MATH_H__#include <math.h>#endif#ifndef _ASSERT_H_#include <assert.h>#endiftypedef int     Counter;	// 0,1,2,...typedef int     Index;		// Array Index: 0,1,2,...enum Boolean { FALSE, TRUE };enum Where   {			// Point/Plane Classification  NOWHERE,  ABOVE      = 0x01,  ON         = 0x02,  ONABOVE    = 0x03,		// ON    | ABOVE  BELOW      = 0x04,  ABOVEBELOW = 0x05,		// ABOVE | BELOW  ONBELOW    = 0x06,		// ON    | BELOW  CROSS      = 0x07		// ABOVE | ON    | BELOW};template<class Type>inline void swap( Type& a, Type& b ){  const Type c = a;  a = b;  b = c;}#ifndef NULL  #define NULL 0#endif#endif

⌨️ 快捷键说明

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