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

📄 glteleporter.h

📁 S.C.O.U.R.G.E.是一款类似Rogue的游戏
💻 H
字号:
/***************************************************************************                          glteleporter.h  -  description                             -------------------    begin                : Thu Jul 10 2003    copyright            : (C) 2003 by Gabor Torok    email                : cctorok@yahoo.com ***************************************************************************//*************************************************************************** *                                                                         * *   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.                                   * *                                                                         * ***************************************************************************/#ifndef GLTELEPORTER_H#define GLTELEPORTER_H#include "constants.h"#include "glshape.h"/**  *@author Gabor Torok  */class GLTeleporter : public GLShape  { private:  static const int MAX_STARS = 20;  float star[MAX_STARS][2];  float starColor[MAX_STARS][3];  float starAngle[MAX_STARS];  float starSpeed[MAX_STARS];  static const int MAX_RINGS = 20;  float ring[MAX_RINGS];  float delta[MAX_RINGS];  GLuint flameTex;   public:  /**	 Passing 0 for texture disables the creation of	 shapes. (eg. torch, md2 shape)  */  GLTeleporter(GLuint texture[], GLuint flameTex,			   int width, int depth, int height,			   char *name, int descriptionGroup,			   Uint32 color, GLuint display_list, Uint8 shapePalIndex=0);    ~GLTeleporter();    void draw();  inline bool drawFirst() { return false; }  inline bool drawLater() { return true; }  inline void setupBlending() { glBlendFunc(GL_SRC_ALPHA, GL_ONE); } protected:  void commonInit(GLuint flameTex);            };#endif

⌨️ 快捷键说明

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