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

📄 glibrary.h

📁 书名:C语言科学与艺术,以前交钱下载的
💻 H
字号:
/* * File: glibrary.h * Version: 3.0 * Last modified on Sat Oct  1 12:28:02 1994 by eroberts * ----------------------------------------------------- * This interface exports several simple, low-level functions that are * used in various other parts of the graphics package implementation. * Because these functions are otherwise likely to collide with student * functions, all external names include a GL prefix. */#ifndef _glibrary_h#define _glibrary_h/* * Functions: GLRadians, GLDegrees * Usage: radians = GLRadians(degrees); *        degrees = GLDegrees(radians); * ------------------------------------ * These functions convert back and forth between degrees and radians. */double GLRadians(double degrees);double GLDegrees(double radians);/* * Function: GLRound * Usage: n = GLRound(x); * ---------------------- * This function rounds a double to the nearest integer. */int GLRound(double x);/* * Functions: GLMin, GLMax * Usage: min = GLMin(x, y); *        max = GLMax(x, y); * ------------------------- * These functions find the minimum and maximum of two integers. */int GLMin(int x, int y);int GLMax(int x, int y);/* * Functions: GLMinF, GLMaxF * Usage: min = GLMinF(x, y); *        max = GLMaxF(x, y); * -------------------------- * These functions find the minimum and maximum of two doubles. */double GLMinF(double x, double y);double GLMaxF(double x, double y);#endif

⌨️ 快捷键说明

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