Ignore:
Timestamp:
05/28/15 10:21:10 (10 years ago)
Author:
epyon
Message:
  • stl/assert.hh, stl/capi.hh, size_t independent
  • GCC 4.8 compatibility
  • using template usage
  • various minor changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/interface/vertex.hh

    r368 r376  
    164164                        typedef decltype( VT::position ) value_type;
    165165                        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 );
    167167                };
    168168
     
    172172                        typedef decltype( VT::texcoord ) value_type;
    173173                        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 );
    175175                };
    176176
     
    180180                        typedef decltype( VT::normal ) value_type;
    181181                        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 );
    183183                };
    184184
     
    188188                        typedef decltype( VT::tangent ) value_type;
    189189                        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 );
    191191                };
    192192
     
    196196                        typedef decltype( VT::boneindex ) value_type;
    197197                        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 );
    199199                };
    200200
     
    204204                        typedef decltype( VT::boneweight ) value_type;
    205205                        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 );
    207207                };
    208208
     
    212212                        typedef decltype( VT::color ) value_type;
    213213                        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 );
    215215                };
    216216
Note: See TracChangeset for help on using the changeset viewer.