Changeset 8523 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Jun 16, 2006, 11:16:38 AM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/effects/volfog_effect.cc
r8495 r8523 25 25 26 26 #define GLX_GLXEXT_PROTOTYPES 27 #include <GL/glx.h>27 //#include <GL/glx.h> 28 28 // #include <GL/glut.h> 29 29 … … 90 90 91 91 92 glFogCoordfEXT = (PFNGLFOGCOORDFEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoordfEXT");92 /* glFogCoordfEXT = (PFNGLFOGCOORDFEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoordfEXT"); 93 93 glFogCoordfvEXT = (PFNGLFOGCOORDFVEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoordfvEXT"); 94 94 glFogCoorddEXT = (PFNGLFOGCOORDDEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoorddEXT"); 95 95 glFogCoorddvEXT = (PFNGLFOGCOORDDVEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoorddvEXT"); 96 96 glFogCoordPointerEXT = (PFNGLFOGCOORDPOINTEREXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoordPointerEXT"); 97 97 */ 98 98 // set the fog attributes 99 99 glFogf (GL_FOG_START, fogStart); -
trunk/src/lib/util/filesys/directory.cc
r8332 r8523 99 99 return false; 100 100 } 101 102 dirent* entry; 103 while ((entry = readdir(handle)) != NULL) 104 this->_fileNames.push_back(entry->d_name); 105 closedir(handle); 106 101 107 #else 102 108 HANDLE handle; … … 124 130 this->_fileNames.push_back(entry.cFileName); 125 131 } 126 #endif 127 128 // BUILDING the list of contained Files. (only the names) 129 #if not defined(__WIN32__) 130 dirent* entry; 131 while ((entry = readdir(handle)) != NULL) 132 this->_fileNames.push_back(entry->d_name); 133 closedir(handle); 134 #else 135 WIN32_FIND_DATA entry; 136 while ((int ok = FindNextFile(handle, &entry)) != 0) 132 int ok; 133 while ((ok = FindNextFile(handle, &entry)) != 0) 137 134 this->_fileNames.push_back(entry.cFileName); 138 135 FindClose(handle); 139 #endif 136 #endif /* __WIN_32__ */ 137 140 138 this->_opened = true; 141 139 return true;
Note: See TracChangeset
for help on using the changeset viewer.