Changeset 993 for GTP/trunk/Lib/Geom/shared/GeoTool/include
- Timestamp:
- 05/30/06 10:47:05 (19 years ago)
- Location:
- GTP/trunk/Lib/Geom/shared/GeoTool/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GeoTool/include/GeoMeshView.h
r985 r993 192 192 void GoToLod_LodStrip(unsigned int lod); 193 193 void GoToLod_LodTree(unsigned int lod); 194 195 // load a image file as a texture 196 void LoadTexture(const char *); 194 197 195 198 private: … … 231 234 // Mesh to show. 232 235 Geometry::Mesh *geoMesh; 236 237 // Current texture handle (OpenGL handle: 0=no texture) 238 GLuint current_texture; 239 bool use_texture_mapping; // this flag enables texture mapping when a texture is loaded 233 240 234 241 virtual int handle(int event); … … 242 249 void enableColorStrips(); 243 250 void disableColorStrips(); 251 void enableTextureMapping(){ use_texture_mapping=true; } 252 void disableTextureMapping(){ use_texture_mapping=false; } 253 bool isTextureMappingEnabled(){ return use_texture_mapping; } 244 254 bool getColorStrips(); 245 255 … … 259 269 GLfloat **mPosArray; 260 270 GLfloat **mNorArray; 271 GLfloat **mTexCoordArray; 261 272 GLfloat *mSharedPosArray; 262 273 GLfloat *mSharedNorArray; 274 GLfloat *mSharedTexCoordArray; 263 275 GLuint **mIndexArray; 264 276 -
GTP/trunk/Lib/Geom/shared/GeoTool/include/GeoMeshViewUI.h
r989 r993 52 52 #include "../resource.h" 53 53 54 //#include <IL/IL.h> 55 54 56 // State of the button process. 55 57 enum ProcessState … … 124 126 inline void cb_menuFileSaveAs_i(fltk::Item*, void*); 125 127 static void cb_menuFileSaveAs(fltk::Item*, void*); 128 inline void cb_menuFileLoadTexture_i(fltk::Item*, void*); 129 static void cb_menuFileLoadTexture(fltk::Item*, void*); 126 130 127 131 inline void cb_menuMeshInfo_i(fltk::Item*, void*); … … 292 296 fltk::Item *menuMeshExportOBJ; 293 297 fltk::Item *menuFileTransformSharedVertex; 298 fltk::Item *menuFileLoadTexture; 294 299 295 300 fltk::Item *menuFileQuit;
Note: See TracChangeset
for help on using the changeset viewer.