basic.h
来自「[Game.Programming].Academic - Graphics G」· C头文件 代码 · 共 46 行
H
46 行
// -*- 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 + =
减小字号Ctrl + -
显示快捷键?