Home
last modified time | relevance | path

Searched refs:to_ptr (Results 1 – 25 of 27) sorted by relevance

12

/NW4C-1.2.23/include/nw/ut/
Dut_ResArrayTypes.h49 static iter_pointer GetPointer(pointer ptr) { return ResPtr<T>( ptr->to_ptr() ); } in GetPointer()
50 … static const_iter_pointer GetPointer(const_pointer ptr) { return ResPtr<T>( ptr->to_ptr() ); } in GetPointer()
54 static reference GetValue(pointer ptr) { return T( ptr->ofsData.to_ptr() ); } in GetValue()
56 static const_reference GetValue(const_pointer ptr) { return T( ptr->ofsData.to_ptr() ); } in GetValue()
Dut_ResDeclMacros.h37 const char* Get##name() const { return ref().to##name.to_ptr(); } \
41 type Get##name() { return type( ref().to##name.to_ptr() ); } \
42 const type Get##name() const { return type( ref().to##name.to_ptr() ); } \
104 { NW_INDEX_ASSERT( name, idx ); return ref().to##name[ idx ].to_ptr(); } \
113 { NW_INDEX_ASSERT( name, idx ); return type( ref().to##name[ idx ].to_ptr() ); } \
115 { return type( ref().to##name[ idx ].to_ptr() ); } \
166 return tbl_ptr[ idx ].to_ptr(); \
177 return type( tbl_ptr[ idx ].to_ptr() ); \
183 return type( tbl_ptr[ idx ].to_ptr() ); \
235 ResDicType dic = ResDicType( ref().to##name##Dic.to_ptr() ); \
[all …]
Dut_ResDictionary.h117 return const_cast<void*>( ref().data[idx].ofsData.to_ptr() );
124 return const_cast<void*>( ref().data[ idx ].ofsData.to_ptr() );
131 return const_cast<void*>( ref().data[ idx ].ofsData.to_ptr() );
184 return const_cast<void*>(ref().data[idx + 1].ofsData.to_ptr());
199 return const_cast<void*>(x->ofsData.to_ptr());
217 return const_cast<void*>(x->ofsData.to_ptr()); in operator()
233 return const_cast<void*>(x->ofsData.to_ptr());
Dut_ResTypes.h157 const char* to_ptr() const in to_ptr() function
170 operator const char*() const { return to_ptr(); }
198 void* to_ptr() in to_ptr() function
205 const void* to_ptr() const in to_ptr() function
213 const T* to_ptr() const in to_ptr() function
215 return static_cast<const T*>( to_ptr() ); in to_ptr()
219 T* to_ptr() in to_ptr() function
221 return static_cast<T*>( to_ptr() ); in to_ptr()
233 return to_ptr(); in to_table_ptr()
238 return to_ptr(); in to_table_ptr()
Dut_ResMetaData.h137 const char* GetValues(int idx) const { return ref().m_Values[idx].to_ptr(); } in GetValues()
138 …etWValues(int idx) const { return reinterpret_cast<const wchar_t*>(ref().m_Values[idx].to_ptr()); } in GetWValues()
Dut_ResArray.h118 static iter_pointer GetPointer(pointer ptr) { return ResPtr<T>( ptr->to_ptr() ); } in GetPointer()
119 … static const_iter_pointer GetPointer(const_pointer ptr) { return ResPtr<T>( ptr->to_ptr() ); } in GetPointer()
123 static reference GetValue(pointer ptr) { return T( ptr->to_ptr() ); } in GetValue()
125 static const_reference GetValue(const_pointer ptr) { return T( ptr->to_ptr() ); } in GetValue()
144 static const_reference GetValue(const_pointer ptr) { return T( ptr->to_ptr() ); } in GetValue()
/NW4C-1.2.23/sources/libraries/gfx/
Dgfx_AnimHelper.cpp60 …urn reinterpret_cast<ResTextureSamplerData*>(resMat.GetTextureMappers(0).ref().toSampler.to_ptr()); in GetBaseObject()
64 …urn reinterpret_cast<ResTextureSamplerData*>(resMat.GetTextureMappers(1).ref().toSampler.to_ptr()); in GetBaseObject()
68 …urn reinterpret_cast<ResTextureSamplerData*>(resMat.GetTextureMappers(2).ref().toSampler.to_ptr()); in GetBaseObject()
Dgfx_FragmentLight.cpp192 allocator->Free( resFragmentLight->toDistanceSampler.to_ptr() ); in DestroyResFragmentLight()
195 reinterpret_cast<ResLightingLookupTableData*>(resFragmentLight->toAngleSampler.to_ptr()); in DestroyResFragmentLight()
196 allocator->Free( angleSampler->toSampler.to_ptr() ); in DestroyResFragmentLight()
197 allocator->Free( resFragmentLight->toAngleSampler.to_ptr() ); in DestroyResFragmentLight()
198 if ( resFragmentLight->toName.to_ptr() != NULL ) in DestroyResFragmentLight()
200 allocator->Free( const_cast<char*>( resFragmentLight->toName.to_ptr() ) ); in DestroyResFragmentLight()
Dgfx_Fog.cpp167 if ( resFog->toName.to_ptr() != NULL ) in DestroyResFog()
169 allocator->Free( const_cast<char*>( resFog->toName.to_ptr() ) ); in DestroyResFog()
172 if (resFog->toFogUpdater.to_ptr() != NULL) in DestroyResFog()
174 allocator->Free( resFog->toFogUpdater.to_ptr() ); in DestroyResFog()
177 if (resFog->toFogSampler.to_ptr() != NULL) in DestroyResFog()
179 ResImageLookupTable fogSampler = ResImageLookupTable(resFog->toFogSampler.to_ptr()); in DestroyResFog()
180 if (fogSampler.ref().toCommandCacheTable.to_ptr() != NULL) in DestroyResFog()
182 allocator->Free( fogSampler.ref().toCommandCacheTable.to_ptr() ); in DestroyResFog()
185 allocator->Free( resFog->toFogSampler.to_ptr() ); in DestroyResFog()
Dgfx_AmbientLight.cpp148 if ( resAmbientLight->toName.to_ptr() != NULL ) in DestroyResAmbientLight()
150 allocator->Free( const_cast<char*>( resAmbientLight->toName.to_ptr() ) ); in DestroyResAmbientLight()
Dgfx_HemiSphereLight.cpp149 if ( resHemiSphereLight->toName.to_ptr() != NULL ) in DestroyResHemiSphereLight()
151 allocator->Free( const_cast<char*>( resHemiSphereLight->toName.to_ptr() ) ); in DestroyResHemiSphereLight()
Dgfx_VertexLight.cpp167 if ( resVertexLight->toName.to_ptr() != NULL ) in DestroyResVertexLight()
169 allocator->Free( const_cast<char*>( resVertexLight->toName.to_ptr() ) ); in DestroyResVertexLight()
Dgfx_Material.cpp514 if (resMaterial.ref().toShaderParametersTable.to_ptr() != NULL) in DestroyResMaterial()
520 allocator->Free(resMaterial.ref().toShaderParametersTable.to_ptr()); in DestroyResMaterial()
/NW4C-1.2.23/include/nw/anim/res/
Danim_ResAnim.h615 return reinterpret_cast<const type*>( ref().to##name.to_ptr() ); \
627 return reinterpret_cast<type*>( ref().to##name.to_ptr() ); \
642 reinterpret_cast<const ResFloatCurveData*>( ref().to##name.to_ptr() ), \
658 reinterpret_cast<const ResIntCurveData*>( ref().to##name.to_ptr() ), \
672 reinterpret_cast<const ResVector3CurveData*>( ref().to##name.to_ptr() ), \
680 reinterpret_cast<const ResVector3CurveData*>( ref().to##name.to_ptr() ), \
709 reinterpret_cast<const ResFloatCurveData*>( ref().toCurve.to_ptr() ), in NW_RESANM_GETCURVE_DECL()
758 reinterpret_cast<const ResIntCurveData*>( ref().toCurve.to_ptr() ), in NW_RESANM_GETCURVE_DECL()
806 reinterpret_cast<const ResBoolCurveData*>( ref().toCurve.to_ptr() ), in NW_RESANM_GETCURVE_DECL()
1034 …Curve( result, flags, reinterpret_cast<const ResVector4CurveData*>( ref().toRotate.to_ptr() ), f ); in NW_RESANM_EVALUATE_VEC3_DECL()
[all …]
Danim_ResAnimGroup.h243 … NW_DEPRECATED_FUNCTION(const char* GetTargetName() const) { return ref().toTargetName.to_ptr(); } in NW_RES_FIELD_STRING_DECL()
244 …RECATED_FUNCTION(const char* GetBaseObjectPath() const) { return ref().toBaseObjectPath.to_ptr(); } in NW_DEPRECATED_FUNCTION()
/NW4C-1.2.23/sources/libraries/ut/
Dut_ResDictionary.cpp33 if ( x->toName.offset != 0 && std::strcmp(key, x->toName.to_ptr()) == 0 ) in GetIndex()
109 if (x->ofsString != 0 && !std::strcmp(s, x->ofsString.to_ptr<char>())) in Get()
/NW4C-1.2.23/include/nw/gfx/res/
Dgfx_ResTextureMapper.h201 return static_cast<ResTextureMapperData*>( ref().toOwner.to_ptr() ); in GetOwnerData()
211 return static_cast<const ResTextureMapperData*>( ref().toOwner.to_ptr() ); in GetOwnerData()
469 const ResTexture GetTexture() const { return ResTexture( ref().toTexture.to_ptr() ); } in GetTexture()
545 …const ResTextureSampler GetSampler() const { return ResTextureSampler( ref().toSampler.to_ptr() )… in GetSampler()
Dgfx_ResShape.h272 nw::ut::ResOrientedBoundingBox resOBB( ref().toBoundingVolume.to_ptr() ); in NW_RES_CTOR_INHERIT()
280 const nw::ut::ResOrientedBoundingBox resOBB( ref().toBoundingVolume.to_ptr() ); in GetOrientedBoundingBox()
Dgfx_ResShader.h601 return static_cast<ResBinaryShaderData*>( ref().toOwnerShader.to_ptr() ); in GetOwnerShaderData()
611 return static_cast<const ResBinaryShaderData*>( ref().toOwnerShader.to_ptr() ); in GetOwnerShaderData()
Dgfx_ResTexture.h619 return ResPixelBasedImage( ref().toImagesTables[ face ].to_ptr() ); in GetImage()
633 return ResPixelBasedImage( ref().toImagesTables[ face ].to_ptr() ); in GetImage()
/NW4C-1.2.23/include/nw/anim/
Danim_AnimBlend.h693 dstOffset->set_ptr(srcOffset->to_ptr()); in Override()
709 dstOffset->set_ptr(srcOffset->to_ptr()); in Apply()
717 dstOffset->set_ptr(srcOffset->to_ptr()); in ConvertToAnimResult()
/NW4C-1.2.23/sources/libraries/gfx/res/
Dgfx_ResTexture.cpp815 if (resPixelBasedImage.ptr()->toImageDataTable.to_ptr() != NULL) in DynamicDestroy()
817 allocator->Free(resPixelBasedImage.ptr()->toImageDataTable.to_ptr()); in DynamicDestroy()
847 if (resPixelBasedImage.ptr()->toImageDataTable.to_ptr() != NULL) in DynamicDestroy()
849 allocator->Free(resPixelBasedImage.ptr()->toImageDataTable.to_ptr()); in DynamicDestroy()
Dgfx_ResTextureMapper.cpp291 allocator->Free(resPixelBasedTextureMapper.ref().toSampler.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
296 allocator->Free(resPixelBasedTextureMapper.ref().toTexture.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
316 allocator->Free(resProceduralTextureMapper.ref().toTexture.to_ptr()); in ResProceduralTextureMapper_DestroyDynamic()
/NW4C-1.2.23/sources/libraries/anim/res/
Danim_ResAnimCurve.cpp434 …eturn reinterpret_cast<const ResFloatSegmentData*>( pCurve->segmentsTable.toSegments[0].to_ptr() ); in GetFloatSegment_()
445 … ResFloatSegmentData* pSegment = reinterpret_cast<const ResFloatSegmentData*>( pOffset->to_ptr() ); in GetFloatSegment_()
453 … return reinterpret_cast<const ResFloatSegmentData*>( pOffsetTable[ segmentCount - 1 ].to_ptr() ); in GetFloatSegment_()
661 reinterpret_cast<const ResFloatCurveData*>( pCurve->toLeftCurve.to_ptr() ); in CalcCompositeFloatCurve_()
663 reinterpret_cast<const ResFloatCurveData*>( pCurve->toRightCurve.to_ptr() ); in CalcCompositeFloatCurve_()
Danim_ResAnimGroup.cpp202 ResStandardTextureSampler sampler(mapper.ref().toSampler.to_ptr()); in SetValue()
222 ResReferenceTexture texture(offset.to_ptr()); in SetValue()

12