Changeset 584
- Timestamp:
- 07/03/08 12:46:33 (5 months ago)
- Files:
-
- trunk/common/math-vector.h (modified) (1 diff)
- trunk/common/util.h (modified) (2 diffs)
- trunk/common/x42_file.h (modified) (1 diff)
- trunk/libx42/include/x42compilerutils.h (modified) (1 diff)
- trunk/libx42/local.h (modified) (4 diffs)
- trunk/libx42pp/error.cpp (modified) (1 diff)
- trunk/libx42pp/include/x42error.h (modified) (1 diff)
- trunk/libx42pp/include/x42math-vector.h (modified) (1 diff)
- trunk/libx42pp/include/x42types.h (modified) (2 diffs)
- trunk/maya2q3/Makefile (modified) (1 diff)
- trunk/maya2q3/NVMeshMender.h (modified) (1 diff)
- trunk/maya2q3/common.h (modified) (1 diff)
- trunk/maya2q3/q3util.h (modified) (1 diff)
- trunk/maya2q3/util-maya2q3.h (modified) (2 diffs)
- trunk/x42maya/Export-Gather.cpp (modified) (2 diffs)
- trunk/x42maya/common.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/common/math-vector.h
r561 r584 145 145 inline bool equal( const vec3 &v0, const vec3 &v1, float tol ) { return fabsf( v0.x - v1.x ) <= tol && fabsf( v0.y - v1.y ) <= tol && fabsf( v0.z - v1.z ) <= tol; } 146 146 147 __declspec( align( 16 )) struct vec4147 ALIGN(16) struct vec4 148 148 { 149 149 public: trunk/common/util.h
r540 r584 150 150 { 151 151 public: 152 bad_int_cast( void ) : std::exception( "Integer conversion caused loss of data.") { }153 virtual ~bad_int_cast( void ) { }152 bad_int_cast( void ) : std::exception( ) { } 153 virtual ~bad_int_cast( void ) throw() { } 154 154 }; 155 155 … … 158 158 { 159 159 private: 160 template< size_t num_bits >160 template< size_t num_bits2 > 161 161 struct signed_max 162 162 { trunk/common/x42_file.h
r181 r584 402 402 403 403 #endif 404 trunk/libx42/include/x42compilerutils.h
r322 r584 43 43 #endif 44 44 45 46 #ifdef __GNUC__ 47 #include <sys/types.h> 45 48 #endif 49 #endif trunk/libx42/local.h
r469 r584 44 44 #define X42_RF_LOAD_SWAPPED 0x0001 45 45 46 #ifdef __cplusplus 47 #define X42_CONST_CAST( T, v ) const_cast< T* >( v ) 48 #else 49 #define X42_CONST_CAST( T, v ) ((T*)(v)) 50 #endif 51 52 46 53 #ifdef _MSC_VER 47 54 … … 49 56 #define ALWAYS_INLINE static __forceinline 50 57 #define REF_PARAM( x ) (void)sizeof( x ) 51 52 #ifdef __cplusplus53 #define X42_CONST_CAST( T, v ) const_cast< T* >( v )54 #else55 #define X42_CONST_CAST( T, v ) ((T*)(v))56 #endif57 58 58 59 #if _MSC_VER >= 1400 … … 67 68 68 69 #else 70 #include <stdint.h> 69 71 #define INLINE static 70 72 #define ALWAYS_INLINE static … … 76 78 77 79 #define NO_DEFAULT default: break; 80 81 #define _alloca(X) alloca(X) 82 78 83 #endif 79 84 trunk/libx42pp/error.cpp
r462 r584 60 60 } 61 61 62 X42_EXPORT X42_NORETURN void X42_CALL fail( int code, const char *msg ) throw( ... )62 X42_EXPORT X42_NORETURN void X42_CALL fail( int code, const char *msg ) 63 63 { 64 64 onErr( code, msg ); trunk/libx42pp/include/x42error.h
r233 r584 74 74 }; 75 75 76 X42_EXPORT X42_NORETURN void X42_CALL fail( int code, const char *msg ) throw( ... );76 X42_EXPORT X42_NORETURN void X42_CALL fail( int code, const char *msg ); 77 77 X42_EXPORT void X42_CALL warn( int code, const char *msg ); 78 78 trunk/libx42pp/include/x42math-vector.h
r469 r584 146 146 inline bool equal( const vec3 &v0, const vec3 &v1, float tol ) { return fabsf( v0.x - v1.x ) <= tol && fabsf( v0.y - v1.y ) <= tol && fabsf( v0.z - v1.z ) <= tol; } 147 147 148 __declspec( align( 16 ) )struct vec4148 struct vec4 149 149 { 150 150 public: trunk/libx42pp/include/x42types.h
r469 r584 27 27 #include <basetsd.h> 28 28 #else 29 # error "Include whatever'll bring IntPtr on your platform here."29 #include <stdint.h> 30 30 #endif 31 31 … … 378 378 typedef MemStreamIterator< const T > const_iterator; 379 379 380 typedef T &reference;381 typedef MemStreamIterator< T > iterator;382 typedef MemStreamIterator< const T > const_iterator;383 380 typedef typename MemStreamIterator< T >::difference_type difference_type; 384 381 trunk/maya2q3/Makefile
r156 r584 5 5 VERS=1.0 6 6 DEBUG_FLAGS= 7 8 CC = gcc-4.1 9 C++ = g++-4.1 7 10 8 11 default: linux/bin/maya2q3.$(EXT) trunk/maya2q3/NVMeshMender.h
r34 r584 130 130 }; 131 131 */ 132 Vertex ::Vertex():pos(0.0f ,0.0f ,0.0f )132 Vertex():pos(0.0f ,0.0f ,0.0f ) 133 133 ,normal(0.0f ,0.0f ,0.0f ) 134 134 ,s(0.0f ) trunk/maya2q3/common.h
r572 r584 176 176 #endif 177 177 178 #ifdef __GNUC__ 179 #define ALIGN(x) __attribute__((aligned(x))) 180 #else 181 #define ALIGN(x) __declspec(align(x)) 182 #endif 183 178 184 #include <boost/smart_ptr.hpp> 179 185 trunk/maya2q3/q3util.h
r548 r584 144 144 145 145 #endif 146 trunk/maya2q3/util-maya2q3.h
r540 r584 199 199 } 200 200 201 virtual const char* what() const 201 virtual const char* what() const throw() 202 202 { 203 203 return statcode.errorString().asChar(); … … 244 244 245 245 #endif 246 trunk/x42maya/Export-Gather.cpp
r582 r584 571 571 if( triVerts[t] == faceVerts[k] ) 572 572 { 573 group.indices.push_back( util::checked_int_cast< ushort>( x42Verts[k] ) );573 group.indices.push_back( util::checked_int_cast< x42::index >( x42Verts[k] ) ); 574 574 break; 575 575 } … … 842 842 if( triVerts[t] == faceVerts[k] ) 843 843 { 844 group.indices.push_back( util::checked_int_cast< ushort>( x42Verts[k] ) );844 group.indices.push_back( util::checked_int_cast< x42::index >( x42Verts[k] ) ); 845 845 break; 846 846 } trunk/x42maya/common.h
r463 r584 36 36 #else 37 37 #define DLLEXPORT 38 #define CDECL 38 39 #endif 39 40 … … 58 59 #define NT_PLUGIN 59 60 #define REQUIRE_IOSTREAM 60 #else61 #error "Unsupported platform."62 61 #endif 63 62
