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

📄 ball.h

📁 这是一个相当棒的Linux下的台球游戏
💻 H
字号:
/* ball.h****    includefile: code for creating the GL-ball display-lists**    Copyright (C) 2001  Florian Berger**    Email: harpin_floh@yahoo.de, florian.berger@jk.uni-linz.ac.at****    This program is free software; you can redistribute it and/or modify**    it under the terms of the GNU General Public License Version 2 as**    published by the Free Software Foundation;****    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., 675 Mass Ave, Cambridge, MA 02139, USA.***/#ifndef BALL_H#define BALL_H#include"vmath.h"//typedef double myfloat;#define MAX_PRIM_NUM 100000  /* this should do it for now - FIXME: make me dynamic */typedef struct {    int vnr;    GLfloat *vert;    GLfloat *norm;    GLfloat *tex;    GLfloat *reftex;    int num_prim;  /* !=0 if STRIPS are used */    int prim_size[MAX_PRIM_NUM];  /* sizes of primitives */    int indnr;    int *index;} ElemArray;//void create_ball_array( float r, int depth, int id );//void create_ball( float r, int depth, int id );//void draw_ball( BallType * ball, myvec cam_pos, GLfloat cam_FOV, int win_width );//void free_texbinds( BallsType *balls );void create_texbinds( BallsType *balls );void draw_balls( BallsType balls, myvec cam_pos, GLfloat cam_FOV, int win_width, int spheretexbind, VMvect * lightpos, int lightnr, int * cuberef_binds );void draw_ballpath( BallType * pball );#endif  /* BALL_H */

⌨️ 快捷键说明

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