📄 display.hpp
字号:
/* Context : Graphic Display Utility Functions Author : Frank Hoeppner, see also AUTHORS file Description : header of function module display History : see source file Comment : This file was generated automatically. DO NOT EDIT. Copyright : Copyright (C) 1999-2000 Frank Hoeppner This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*/#ifndef display_HEADER#define display_HEADER/* configuration include */#ifdef HAVE_CONFIG_H/*//FILETREE_IFDEF HAVE_CONFIG_H*/#include "config.h"/*//FILETREE_ENDIF*/#endif/* necessary includes */#include "define.hpp"//#define INLINE inline/* global types and constants *//* data interface */#define DISPLAY_LEFT_BUTTON 0#define DISPLAY_MIDDLE_BUTTON 1#define DISPLAY_RIGHT_BUTTON 2#define DISPLAY_UP_BUTTON 1#define DISPLAY_DOWN_BUTTON 0extern const float COLOR_RED[];extern const float COLOR_DARKRED[];extern const float COLOR_GREEN[];extern const float COLOR_DARKGREEN[];extern const float COLOR_BLUE[];extern const float COLOR_YELLOW[];extern const float COLOR_WHITE[];extern const float COLOR_LIGHTGRAY[];extern const float COLOR_DARKGRAY[];extern const float COLOR_BLACK[];/* Display interface */void display_again();void display_init(int,int,char*);void display_loop(void (*)(),void (*)(int,int,int,int),void (*)(int,int));void display_text(float,float,float,const char*,int n=100);void display_rect(float,float,float,float,bool);void display_color(float,float,float,float a=1.0);void display_color(const float [4]);void display_color_hsv(float,float,float,float a=1.0);void display_cube(float,float,float,float,float,float);void display_point(float,float,float,float d=0.0);void display_cylinder(float,float,float,float,float,float,float d=0.0);void display_disc(float,float,float,float d=0.0);void display_ball(float,float,float,float d=0.0);void display_line(float,float,float,float,float,float,float d=0.0);void display_scale(float,float,float);void display_mode_menu();void display_mode_2d(float,float,float,float);void display_mode_3d(float,float,float,float,float,float,float);void display_delete_list(int);void display_list_begin(int);void display_list_end();void display_list(int);void display_all_lists();int get_window_width();int get_window_height();#ifdef OPENGLvoid display_refresh();void display_reshape(int w,int h);#endif/* inline implementation */#endif /* display_HEADER */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -