Changeset 1022
- Timestamp:
- 11/27/07 17:25:35 (8 months ago)
- Files:
-
- branches/fcptr_stable_jun07/Source/Base/Base/OSGBaseTypeTraits.h (modified) (1 diff)
- branches/fcptr_stable_jun07/Source/Base/Base/OSGConfig.h (modified) (1 diff)
- branches/fcptr_stable_jun07/Source/Base/Base/OSGExceptionBinaryDataHandler.h (modified) (4 diffs)
- branches/fcptr_stable_jun07/Source/Base/Base/OSGExceptionBinaryDataHandler.inl (modified) (4 diffs)
- branches/fcptr_stable_jun07/Source/Base/Base/OSGGLU.h (modified) (1 diff)
- branches/fcptr_stable_jun07/Source/WindowSystem/CoreGL/testWindowCoreGL.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/fcptr_stable_jun07/Source/Base/Base/OSGBaseTypeTraits.h
r699 r1022 1320 1320 1321 1321 1322 #ifdef SIZE_T_NEQ_UINT32 1323 1324 /*! \ingroup GrpBaseBaseBaseTypeTraits 1325 */ 1326 1327 template <> 1328 struct TypeTraits<size_t> : public TypeTraitsTemplateBase<size_t> 1329 { 1330 typedef Real32 RealReturnType; 1331 1332 1333 static const bool IsPOD = true; 1334 static const MathTypeProperties MathProp = IntValue; 1335 1336 static const UInt32 BitsSet = 0xFFFFFFFF; 1337 static const UInt32 BitsClear = 0x00000000; 1338 1339 1340 static size_t getZeroElement(void) 1341 { 1342 return 0; 1343 } 1344 1345 static size_t getOneElement (void) 1346 { 1347 return 1; 1348 } 1349 1350 static size_t getMax (void) 1351 { 1352 return std::numeric_limits<size_t>::max(); 1353 } 1354 1355 static size_t getMin (void) 1356 { 1357 return std::numeric_limits<size_t>::min(); 1358 } 1359 1360 1361 static size_t getFromCString(const Char8 * pData, 1362 Char8 *&pDataEnd) 1363 { 1364 if(pData != NULL) 1365 { 1366 return size_t(strtoul(pData, &pDataEnd, 0)); 1367 } 1368 else 1369 { 1370 return getZeroElement(); 1371 } 1372 } 1373 1374 1375 static size_t getFromCString(const Char8 *pData) 1376 { 1377 Char8 *pDataEnd; 1378 1379 return getFromCString(pData, pDataEnd); 1380 } 1381 1382 1383 static void putToString (const size_t val, 1384 std::string &out) 1385 { 1386 Char8 buffer[15]; 1387 1388 sprintf(buffer, "%u", val); 1389 1390 out.append(buffer); 1391 } 1392 }; 1393 1394 #endif 1395 1396 1322 1397 #ifdef OSG_GLENUM_NEQ_UINT32 1323 1398 branches/fcptr_stable_jun07/Source/Base/Base/OSGConfig.h
r848 r1022 645 645 # define OSG_NO_CONCEPT_CHECKS 646 646 # define SIZE_T_NEQ_UINT32 647 # define OSG_GLENUM_NEQ_UINT32 647 # if (__APPLE_CC__ <= 5370) 648 # define OSG_GLENUM_NEQ_UINT32 649 # endif 648 650 649 651 # define OSG_USE_PTHREADS branches/fcptr_stable_jun07/Source/Base/Base/OSGExceptionBinaryDataHandler.h
r392 r1022 116 116 void putValue (const Real128 &value ); 117 117 void putValue (const std::string &value ); 118 #ifdef __APPLE__118 #ifdef OSG_GLENUM_NEQ_UINT32 119 119 void putValue (const GLenum &value ); 120 120 #endif … … 135 135 void putValues (const Real128 *value, UInt32 size); 136 136 void putValues (const std::string *value, UInt32 size); 137 #ifdef __APPLE__137 #ifdef OSG_GLENUM_NEQ_UINT32 138 138 void putValues (const GLenum *value, UInt32 size); 139 139 #endif … … 162 162 void getValue (Real128 &value ) throw (ReadError); 163 163 void getValue (std::string &value ) throw (ReadError); 164 #ifdef __APPLE__164 #ifdef OSG_GLENUM_NEQ_UINT32 165 165 void getValue (GLenum &value ) throw (ReadError); 166 166 #endif … … 181 181 void getValues (Real128 *value, UInt32 size) throw (ReadError); 182 182 void getValues (std::string *value, UInt32 size) throw (ReadError); 183 #ifdef __APPLE__183 #ifdef OSG_GLENUM_NEQ_UINT32 184 184 void getValues (GLenum *value, UInt32 size) throw (ReadError); 185 185 #endif branches/fcptr_stable_jun07/Source/Base/Base/OSGExceptionBinaryDataHandler.inl
r625 r1022 179 179 } 180 180 181 #ifdef __APPLE__181 #ifdef OSG_GLENUM_NEQ_UINT32 182 182 inline 183 183 void ExceptionBinaryDataHandler::putValue(const GLenum &value) … … 430 430 } 431 431 432 #ifdef __APPLE__432 #ifdef OSG_GLENUM_NEQ_UINT32 433 433 inline 434 434 void ExceptionBinaryDataHandler::putValues(const GLenum *value, UInt32 size) … … 593 593 } 594 594 595 #ifdef __APPLE__595 #ifdef OSG_GLENUM_NEQ_UINT32 596 596 inline 597 597 void ExceptionBinaryDataHandler::getValue(GLenum &value) throw (ReadError) … … 827 827 } 828 828 829 #ifdef __APPLE__829 #ifdef OSG_GLENUM_NEQ_UINT32 830 830 inline 831 831 void ExceptionBinaryDataHandler::getValues(GLenum *value, branches/fcptr_stable_jun07/Source/Base/Base/OSGGLU.h
r269 r1022 69 69 # endif 70 70 #elif defined(__APPLE__) 71 typedef GLvoid (*OSGGLUfuncptr)(...); 71 # if (__APPLE_CC__ <= 5370) 72 typedef GLvoid (*OSGGLUfuncptr)(...); 73 # else 74 typedef GLvoid (*OSGGLUfuncptr)(); 75 # endif 72 76 #else 73 77 typedef void (*OSGGLUfuncptr)(); branches/fcptr_stable_jun07/Source/WindowSystem/CoreGL/testWindowCoreGL.cpp
r465 r1022 376 376 }; 377 377 CGLPixelFormatObj pixelFormatObj; 378 longnumPixelFormats;378 GLint numPixelFormats; 379 379 CGLChoosePixelFormat(attribs, &pixelFormatObj, &numPixelFormats); 380 380
