Changeset 376 for trunk/nv/interface/vertex.hh
- Timestamp:
- 05/28/15 10:21:10 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/interface/vertex.hh
r368 r376 164 164 typedef decltype( VT::position ) value_type; 165 165 static const datatype etype = type_to_enum< decltype( VT::position ) >::type; 166 static const int offset = offsetof( VT, position );166 static const int offset = NV_OFFSET_OF( VT, position ); 167 167 }; 168 168 … … 172 172 typedef decltype( VT::texcoord ) value_type; 173 173 static const datatype etype = type_to_enum< decltype( VT::texcoord ) >::type; 174 static const int offset = offsetof( VT, texcoord );174 static const int offset = NV_OFFSET_OF( VT, texcoord ); 175 175 }; 176 176 … … 180 180 typedef decltype( VT::normal ) value_type; 181 181 static const datatype etype = type_to_enum< decltype( VT::normal ) >::type; 182 static const int offset = offsetof( VT, normal );182 static const int offset = NV_OFFSET_OF( VT, normal ); 183 183 }; 184 184 … … 188 188 typedef decltype( VT::tangent ) value_type; 189 189 static const datatype etype = type_to_enum< decltype( VT::tangent ) >::type; 190 static const int offset = offsetof( VT, tangent );190 static const int offset = NV_OFFSET_OF( VT, tangent ); 191 191 }; 192 192 … … 196 196 typedef decltype( VT::boneindex ) value_type; 197 197 static const datatype etype = type_to_enum< decltype( VT::boneindex ) >::type; 198 static const int offset = offsetof( VT, boneindex );198 static const int offset = NV_OFFSET_OF( VT, boneindex ); 199 199 }; 200 200 … … 204 204 typedef decltype( VT::boneweight ) value_type; 205 205 static const datatype etype = type_to_enum< decltype( VT::boneweight ) >::type; 206 static const int offset = offsetof( VT, boneweight );206 static const int offset = NV_OFFSET_OF( VT, boneweight ); 207 207 }; 208 208 … … 212 212 typedef decltype( VT::color ) value_type; 213 213 static const datatype etype = type_to_enum< decltype( VT::color ) >::type; 214 static const int offset = offsetof( VT, color );214 static const int offset = NV_OFFSET_OF( VT, color ); 215 215 }; 216 216
Note: See TracChangeset
for help on using the changeset viewer.