00001 /***************************************************************** 00002 * Automatic spherical coordinates 00003 * by Karol Szserszen 00004 * 00005 *****************************************************************/ 00006 #ifndef GL_SPHIR_TEX_COORD_GEN_H_IS_INCLUDED 00007 #define GL_SPHIR_TEX_COORD_GEN_H_IS_INCLUDED 00008 00009 #include "mesh/tex_coord_gen.H" 00010 00011 class GLSphirTexCoordGen : public TexCoordGen { 00012 00013 00014 public: 00015 00016 virtual void setup(); 00017 00018 virtual UVpt uv_from_vert(CBvert* v, CBface* f); 00019 00020 protected: 00021 00022 UVpt compute_uv(CBvert* v); 00023 }; 00024 00025 #endif // GL_SPHIR_TEX_COORD_GEN_H_IS_INCLUDED 00026 00027 // end of file gl_sphir_tex_coord_gen.H