Home
last modified time | relevance | path

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

12

/NW4C-2.0.3/sources/libraries/anim/res/
Danim_ResUtil.cpp58 texture.toName.set_ptr(srcTexture->toName.to_ptr()); in CloneTextureAnimMember()
60 texture.toUserDataDic.set_ptr(srcTexture->toUserDataDic.to_ptr()); in CloneTextureAnimMember()
64 texture.toPath.set_ptr(srcTexture->toPath.to_ptr()); in CloneTextureAnimMember()
79 anim->toCurve.set_ptr(src.ptr()->toCurve.to_ptr()); in CloneTextureAnimMember()
86 anim->toPath.set_ptr(src.ptr()->toPath.to_ptr()); in CloneTextureAnimMember()
101 allocator->Free(anim.ptr()->toTexturesTable.to_ptr()); in DestroyTextureAnimMember()
127 animData->toName.set_ptr(src.ptr()->toName.to_ptr()); in CloneTextureAnim()
128 animData->toTargetAnimGroupName.set_ptr(src.ptr()->toTargetAnimGroupName.to_ptr()); in CloneTextureAnim()
134 animData->toUserDataDic.set_ptr(src.ptr()->toUserDataDic.to_ptr()); in CloneTextureAnim()
142 memcpy(memberMemory, src.ptr()->toMemberAnimSetDic.to_ptr(), size); in CloneTextureAnim()
[all …]
Danim_ResAnimCurve.cpp490 …eturn reinterpret_cast<const ResFloatSegmentData*>( pCurve->segmentsTable.toSegments[0].to_ptr() ); in GetFloatSegment_()
501 … ResFloatSegmentData* pSegment = reinterpret_cast<const ResFloatSegmentData*>( pOffset->to_ptr() ); in GetFloatSegment_()
509 … return reinterpret_cast<const ResFloatSegmentData*>( pOffsetTable[ segmentCount - 1 ].to_ptr() ); in GetFloatSegment_()
725 reinterpret_cast<const ResFloatCurveData*>( pCurve->toLeftCurve.to_ptr() ); in CalcCompositeFloatCurve_()
727 reinterpret_cast<const ResFloatCurveData*>( pCurve->toRightCurve.to_ptr() ); in CalcCompositeFloatCurve_()
Danim_ResAnimGroup.cpp212 ResStandardTextureSampler sampler(mapper.ref().toSampler.to_ptr()); in SetValue()
232 ResReferenceTexture texture(offset.to_ptr()); in SetValue()
Danim_ResAnim.cpp278 dst->set_ptr(src->to_ptr()); in ApplyCache()
/NW4C-2.0.3/include/nw/ut/
Dut_ResArrayTypes.h51 static iter_pointer GetPointer(pointer ptr) { return ResPtr<T>( ptr->to_ptr() ); } in GetPointer()
52 … static const_iter_pointer GetPointer(const_pointer ptr) { return ResPtr<T>( ptr->to_ptr() ); } in GetPointer()
56 static reference GetValue(pointer ptr) { return T( ptr->ofsData.to_ptr() ); } in GetValue()
58 static const_reference GetValue(const_pointer ptr) { return T( ptr->ofsData.to_ptr() ); } in GetValue()
Dut_ResDeclMacros.h45 const char* Get##name() const { return ref().to##name.to_ptr(); } \
49 type Get##name() { return type( ref().to##name.to_ptr() ); } \
50 const type Get##name() const { return type( ref().to##name.to_ptr() ); } \
114 { NW_INDEX_ASSERT( name, idx ); return ref().to##name[ idx ].to_ptr(); } \
123 { NW_INDEX_ASSERT( name, idx ); return type( ref().to##name[ idx ].to_ptr() ); } \
125 { return type( ref().to##name[ idx ].to_ptr() ); } \
176 return tbl_ptr[ idx ].to_ptr(); \
187 return type( tbl_ptr[ idx ].to_ptr() ); \
193 return type( tbl_ptr[ idx ].to_ptr() ); \
245 ResDicType dic = ResDicType( ref().to##name##Dic.to_ptr() ); \
[all …]
Dut_ResDictionary.h119 return const_cast<void*>( ref().data[idx].ofsData.to_ptr() );
126 return const_cast<void*>( ref().data[ idx ].ofsData.to_ptr() );
133 return const_cast<void*>( ref().data[ idx ].ofsData.to_ptr() );
186 return const_cast<void*>(ref().data[idx + 1].ofsData.to_ptr());
201 return const_cast<void*>(x->ofsData.to_ptr());
219 return const_cast<void*>(x->ofsData.to_ptr()); in operator()
235 return const_cast<void*>(x->ofsData.to_ptr());
Dut_ResTypes.h159 const char* to_ptr() const in to_ptr() function
172 operator const char*() const { return to_ptr(); }
200 void* to_ptr() in to_ptr() function
207 const void* to_ptr() const in to_ptr() function
215 const T* to_ptr() const in to_ptr() function
217 return static_cast<const T*>( to_ptr() ); in to_ptr()
221 T* to_ptr() in to_ptr() function
223 return static_cast<T*>( to_ptr() ); in to_ptr()
235 return to_ptr(); in to_table_ptr()
240 return to_ptr(); in to_table_ptr()
Dut_ResMetaData.h139 const char* GetValues(int idx) const { return ref().m_Values[idx].to_ptr(); } in GetValues()
140 …etWValues(int idx) const { return reinterpret_cast<const wchar_t*>(ref().m_Values[idx].to_ptr()); } in GetWValues()
Dut_ResArray.h120 static iter_pointer GetPointer(pointer ptr) { return ResPtr<T>( ptr->to_ptr() ); } in GetPointer()
121 … static const_iter_pointer GetPointer(const_pointer ptr) { return ResPtr<T>( ptr->to_ptr() ); } in GetPointer()
125 static reference GetValue(pointer ptr) { return T( ptr->to_ptr() ); } in GetValue()
127 static const_reference GetValue(const_pointer ptr) { return T( ptr->to_ptr() ); } in GetValue()
146 static const_reference GetValue(const_pointer ptr) { return T( ptr->to_ptr() ); } in GetValue()
/NW4C-2.0.3/sources/libraries/gfx/
Dgfx_Fog.cpp204 if ( resFog->toName.to_ptr() != NULL ) in DestroyResFog()
206 allocator->Free( const_cast<char*>( resFog->toName.to_ptr() ) ); in DestroyResFog()
209 if (resFog->toFogUpdater.to_ptr() != NULL) in DestroyResFog()
211 allocator->Free( resFog->toFogUpdater.to_ptr() ); in DestroyResFog()
214 if (resFog->toFogSampler.to_ptr() != NULL) in DestroyResFog()
216 ResImageLookupTable fogSampler = ResImageLookupTable(resFog->toFogSampler.to_ptr()); in DestroyResFog()
217 if (fogSampler.ref().toCommandCacheTable.to_ptr() != NULL) in DestroyResFog()
219 allocator->Free( fogSampler.ref().toCommandCacheTable.to_ptr() ); in DestroyResFog()
222 allocator->Free( resFog->toFogSampler.to_ptr() ); in DestroyResFog()
Dgfx_FragmentLight.cpp404 allocator->Free( resFragmentLight->toDistanceSampler.to_ptr() ); in DestroyResFragmentLight()
407 reinterpret_cast<ResLightingLookupTableData*>(resFragmentLight->toAngleSampler.to_ptr()); in DestroyResFragmentLight()
408 if ( angleSampler->toSampler.to_ptr() != NULL ) in DestroyResFragmentLight()
410 allocator->Free( angleSampler->toSampler.to_ptr() ); in DestroyResFragmentLight()
413 if ( resFragmentLight->toName.to_ptr() != NULL ) in DestroyResFragmentLight()
415 allocator->Free( const_cast<char*>( resFragmentLight->toName.to_ptr() ) ); in DestroyResFragmentLight()
Dgfx_AmbientLight.cpp182 if ( resAmbientLight->toName.to_ptr() != NULL ) in DestroyResAmbientLight()
184 allocator->Free( const_cast<char*>( resAmbientLight->toName.to_ptr() ) ); in DestroyResAmbientLight()
Dgfx_HemiSphereLight.cpp183 if ( resHemiSphereLight->toName.to_ptr() != NULL ) in DestroyResHemiSphereLight()
185 allocator->Free( const_cast<char*>( resHemiSphereLight->toName.to_ptr() ) ); in DestroyResHemiSphereLight()
Dgfx_VertexLight.cpp201 if ( resVertexLight->toName.to_ptr() != NULL ) in DestroyResVertexLight()
203 allocator->Free( const_cast<char*>( resVertexLight->toName.to_ptr() ) ); in DestroyResVertexLight()
Dgfx_Material.cpp522 if (resMaterial.ref().toShaderParametersTable.to_ptr() != NULL) in DestroyResMaterial()
528 allocator->Free(resMaterial.ref().toShaderParametersTable.to_ptr()); in DestroyResMaterial()
/NW4C-2.0.3/include/nw/anim/res/
Danim_ResAnim.h751 return reinterpret_cast<const type*>( ref().to##name.to_ptr() ); \
763 return reinterpret_cast<type*>( ref().to##name.to_ptr() ); \
778 reinterpret_cast<const ResFloatCurveData*>( ref().to##name.to_ptr() ), \
794 reinterpret_cast<const ResIntCurveData*>( ref().to##name.to_ptr() ), \
808 reinterpret_cast<const ResVector3CurveData*>( ref().to##name.to_ptr() ), \
816 reinterpret_cast<const ResVector3CurveData*>( ref().to##name.to_ptr() ), \
845 reinterpret_cast<const ResFloatCurveData*>( ref().toCurve.to_ptr() ), in NW_RESANM_GETCURVE_DECL()
894 reinterpret_cast<const ResIntCurveData*>( ref().toCurve.to_ptr() ), in NW_RESANM_GETCURVE_DECL()
942 reinterpret_cast<const ResBoolCurveData*>( ref().toCurve.to_ptr() ), in NW_RESANM_GETCURVE_DECL()
1170 …Curve( result, flags, reinterpret_cast<const ResVector4CurveData*>( ref().toRotate.to_ptr() ), f ); in NW_RESANM_EVALUATE_VEC3_DECL()
[all …]
/NW4C-2.0.3/sources/libraries/ut/
Dut_ResDictionary.cpp35 if ( x->toName.offset != 0 && std::strcmp(key, x->toName.to_ptr()) == 0 ) in GetIndex()
111 if (x->ofsString != 0 && !std::strcmp(s, x->ofsString.to_ptr<char>())) in Get()
/NW4C-2.0.3/include/nw/gfx/res/
Dgfx_ResTextureMapper.h252 return static_cast<ResTextureMapperData*>( ref().toOwner.to_ptr() ); in GetOwnerData()
262 return static_cast<const ResTextureMapperData*>( ref().toOwner.to_ptr() ); in GetOwnerData()
523 const ResTexture GetTexture() const { return ResTexture( ref().toTexture.to_ptr() ); } in GetTexture()
593 …const ResTextureSampler GetSampler() const { return ResTextureSampler( ref().toSampler.to_ptr() )… in NW_RES_CTOR_INHERIT()
594 ResTextureSampler GetSampler() { return ResTextureSampler( ref().toSampler.to_ptr() ); } in GetSampler()
Dgfx_ResShape.h304 nw::ut::ResOrientedBoundingBox resOBB( ref().toBoundingVolume.to_ptr() ); in NW_RES_CTOR_INHERIT()
312 const nw::ut::ResOrientedBoundingBox resOBB( ref().toBoundingVolume.to_ptr() ); in GetOrientedBoundingBox()
Dgfx_ResShader.h627 return static_cast<ResBinaryShaderData*>( ref().toOwnerShader.to_ptr() ); in GetOwnerShaderData()
637 return static_cast<const ResBinaryShaderData*>( ref().toOwnerShader.to_ptr() ); in GetOwnerShaderData()
Dgfx_ResTexture.h627 return ResPixelBasedImage( ref().toImagesTables[ face ].to_ptr() ); in GetImage()
641 return ResPixelBasedImage( ref().toImagesTables[ face ].to_ptr() ); in GetImage()
/NW4C-2.0.3/include/nw/anim/
Danim_AnimBlend.h591 dstOffset->set_ptr(srcOffset->to_ptr()); in Override()
607 dstOffset->set_ptr(srcOffset->to_ptr()); in Apply()
615 dstOffset->set_ptr(srcOffset->to_ptr()); in ConvertToAnimResult()
/NW4C-2.0.3/sources/libraries/gfx/res/
Dgfx_ResTexture.cpp951 if (resPixelBasedImage.ptr()->toImageDataTable.to_ptr() != NULL) in DynamicDestroy()
953 allocator->Free(resPixelBasedImage.ptr()->toImageDataTable.to_ptr()); in DynamicDestroy()
983 if (firstFace.ptr()->toImageDataTable.to_ptr() != NULL) in DynamicDestroy()
985 allocator->Free(firstFace.ptr()->toImageDataTable.to_ptr()); in DynamicDestroy()
1011 if (resPixelBasedImage.ptr()->toImageDataTable.to_ptr() != NULL) in DynamicDestroy()
1013 allocator->Free(resPixelBasedImage.ptr()->toImageDataTable.to_ptr()); in DynamicDestroy()
Dgfx_ResTextureMapper.cpp325 allocator->Free(resPixelBasedTextureMapper.ref().toSampler.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
330 allocator->Free(resPixelBasedTextureMapper.ref().toTexture.to_ptr()); in ResPixelBasedTextureMapper_DestroyDynamic()
350 allocator->Free(resProceduralTextureMapper.ref().toTexture.to_ptr()); in ResProceduralTextureMapper_DestroyDynamic()

12