00001 00002 /*************************************************************************** 00003 gltorch.h - description 00004 ------------------- 00005 begin : Sat Sep 20 2003 00006 copyright : (C) 2003 by Gabor Torok 00007 email : cctorok@yahoo.com 00008 ***************************************************************************/ 00009 00010 /*************************************************************************** 00011 * * 00012 * This program is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU General Public License as published by * 00014 * the Free Software Foundation; either version 2 of the License, or * 00015 * (at your option) any later version. * 00016 * * 00017 ***************************************************************************/ 00018 00019 #ifndef GLLOCATOR_H 00020 #define GLLOCATOR_H 00021 00022 #include "glshape.h" 00023 00024 class GLShape; 00025 00030 class GLLocator : public GLShape { 00031 private: 00032 00033 public: 00034 GLLocator(GLuint texture[], 00035 int width, int depth, int height, 00036 char *name, int descriptionGroup, 00037 Uint32 color, Uint8 shapePalIndex=0); 00038 00039 ~GLLocator(); 00040 00041 void draw(); 00042 00043 inline bool drawFirst() { return false; } 00044 // if true, the next two functions are called 00045 inline bool drawLater() { return true; } 00046 inline void setupBlending() { glBlendFunc(GL_SRC_ALPHA, GL_ONE); } 00047 00048 00049 protected: 00050 }; 00051 00052 #endif
1.4.0