Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 25 of 202) sorted by relevance

123456789

/NW4C-2.0.3/sources/libraries/gfx/
Dgfx_SceneContext.cpp30 os::IAllocator* allocator in Create() argument
33 NW_NULL_ASSERT(allocator); in Create()
35 SceneNodeArray sceneNodes(allocator); in Create()
36 UserRenderNodeArray userRenderNodes(allocator); in Create()
37 ModelArray models(allocator); in Create()
38 SkeletalModelArray skeletalModels(allocator); in Create()
39 LightArray lights(allocator); in Create()
40 FragmentLightArray fragmentLights(allocator); in Create()
41 VertexLightArray vertexLights(allocator); in Create()
42 HemiSphereLightArray hemiSphereLights(allocator); in Create()
[all …]
Dgfx_SceneNode.cpp37 os::IAllocator* allocator in Create() argument
40 NW_NULL_ASSERT(allocator); in Create()
42 void* memory = allocator->Alloc(sizeof(SceneNode)); in Create()
46 allocator, ResSceneNode(), m_Description); in Create()
48 Result result = node->Initialize(allocator); in Create()
62 os::IAllocator* allocator in Create() argument
65 NW_NULL_ASSERT(allocator); in Create()
69 void* memory = allocator->Alloc(sizeof(SceneNode)); in Create()
73 allocator, resNode, description); in Create()
75 Result result = node->Initialize(allocator); in Create()
[all …]
Dgfx_ParticleContext.cpp30 os::IAllocator* allocator in Create() argument
33 NW_NULL_ASSERT(allocator); in Create()
35 VEC3Array emissionPositions(allocator); in Create()
36 U16Array emissionParents(allocator); in Create()
37 F32Array particleWorkF32(allocator); in Create()
38 VEC3Array prevTranslate(allocator); in Create()
42 emissionPositions = VEC3Array(this->m_MaxEmission, allocator); in Create()
43 emissionParents = U16Array(this->m_MaxEmission, allocator); in Create()
44 particleWorkF32 = F32Array(this->m_MaxStreamLength, allocator); in Create()
47 prevTranslate = VEC3Array(this->m_MaxStreamLength, allocator); in Create()
[all …]
Dgfx_LightSet.cpp31 os::IAllocator* allocator in Create() argument
34 NW_NULL_ASSERT(allocator); in Create()
36 void* memory = allocator->Alloc(sizeof(LightSet)); in Create()
39 allocator, in Create()
45 void* memoryArray = allocator->Alloc(sizeof(VertexLight*) * m_Description.maxVertexLights); in Create()
46 …lightSet->m_VertexLights = VertexLightArray(memoryArray, m_Description.maxVertexLights, allocator); in Create()
50 lightSet->m_VertexLights = VertexLightArray(allocator); in Create()
60 os::IAllocator* allocator in Create() argument
63 NW_NULL_ASSERT(allocator); in Create()
66 void* memory = allocator->Alloc(sizeof(LightSet)); in Create()
[all …]
Dgfx_AmbientLight.cpp35 os::IAllocator* allocator in Create() argument
38 NW_NULL_ASSERT(allocator); in Create()
44 CreateResAmbientLight(allocator), in Create()
45 ResAmbientLightDataDestroyer(allocator)); in Create()
47 void* memory = allocator->Alloc(sizeof(AmbientLight)); in Create()
50 allocator, in Create()
54 Result result = light->Initialize(allocator); in Create()
94 os::IAllocator* allocator in Create() argument
97 NW_NULL_ASSERT(allocator); in Create()
103 void* memory = allocator->Alloc(sizeof(AmbientLight)); in Create()
[all …]
Dgfx_HemiSphereLight.cpp37 os::IAllocator* allocator in Create() argument
40 NW_NULL_ASSERT(allocator); in Create()
46 CreateResHemiSphereLight(allocator), in Create()
47 ResHemiSphereLightDataDestroyer(allocator)); in Create()
49 void* memory = allocator->Alloc(sizeof(HemiSphereLight)); in Create()
52 allocator, in Create()
56 Result result = light->Initialize(allocator); in Create()
96 os::IAllocator* allocator in Create() argument
99 NW_NULL_ASSERT(allocator); in Create()
105 void* memory = allocator->Alloc(sizeof(HemiSphereLight)); in Create()
[all …]
Dgfx_VertexLight.cpp38 os::IAllocator* allocator in Create() argument
41 NW_NULL_ASSERT(allocator); in Create()
47 CreateResVertexLight(allocator), in Create()
48 ResVertexLightDataDestroyer(allocator)); in Create()
50 void* memory = allocator->Alloc(sizeof(VertexLight)); in Create()
53 allocator, in Create()
57 Result result = light->Initialize(allocator); in Create()
97 os::IAllocator* allocator in Create() argument
100 NW_NULL_ASSERT(allocator); in Create()
106 void* memory = allocator->Alloc(sizeof(VertexLight)); in Create()
[all …]
Dgfx_FragmentLight.cpp37 os::IAllocator* allocator in Create() argument
40 NW_NULL_ASSERT(allocator); in Create()
46 CreateResFragmentLight(allocator), in Create()
47 ResFragmentLightDataDestroyer(allocator)); in Create()
49 void* memory = allocator->Alloc(sizeof(FragmentLight)); in Create()
52 allocator, in Create()
56 Result result = light->Initialize(allocator); in Create()
123 os::IAllocator* allocator in Create() argument
126 NW_NULL_ASSERT(allocator); in Create()
132 void* memory = allocator->Alloc(sizeof(FragmentLight)); in Create()
[all …]
Dgfx_TransformNode.cpp35 os::IAllocator* allocator, in TransformNode() argument
38 : SceneNode(allocator, resObj, description), in TransformNode()
59 os::IAllocator* allocator in Create() argument
62 NW_NULL_ASSERT(allocator); in Create()
64 void* memory = allocator->Alloc(sizeof(TransformNode)); in Create()
68 allocator, in Create()
72 Result result = node->Initialize(allocator); in Create()
85 os::IAllocator* allocator in Create() argument
88 NW_NULL_ASSERT(allocator); in Create()
92 void* memory = allocator->Alloc(sizeof(TransformNode)); in Create()
[all …]
Dgfx_Model.cpp41 os::IAllocator* allocator in Create() argument
44 NW_NULL_ASSERT(allocator); in Create()
50 void* memory = allocator->Alloc(sizeof(Model)); in Create()
54 allocator, in Create()
58 Result result = node->Initialize(allocator); in Create()
72 Model::Initialize(os::IAllocator* allocator) in Initialize() argument
76 result |= TransformNode::Initialize(allocator); in Initialize()
79 result |= CreateResMeshes(allocator); in Initialize()
82 result |= CreateResMeshNodeVisibilities(allocator); in Initialize()
85 result |= CreateMaterials(allocator); in Initialize()
[all …]
Dgfx_Fog.cpp40 os::IAllocator* allocator in Create() argument
43 NW_NULL_ASSERT(allocator); in Create()
46 CreateResFog(allocator), in Create()
47 ResFogDataDestroyer(allocator)); in Create()
49 void* memory = allocator->Alloc(sizeof(Fog)); in Create()
52 allocator, in Create()
55 Result result = fog->Initialize(allocator); in Create()
111 os::IAllocator* allocator in Create() argument
114 NW_NULL_ASSERT(allocator); in Create()
120 void* memory = allocator->Alloc(sizeof(Fog)); in Create()
[all …]
Dgfx_PerspectiveProjectionUpdater.cpp31 PerspectiveProjectionUpdater::Create(os::IAllocator* allocator) in Create() argument
33 NW_NULL_ASSERT(allocator); in Create()
35 void* updaterMemory = allocator->Alloc(sizeof(PerspectiveProjectionUpdater)); in Create()
39 = AllocateAndFill<ResPerspectiveProjectionUpdaterData>(allocator, 0); in Create()
52 return new(updaterMemory) PerspectiveProjectionUpdater(allocator, true, resUpdater); in Create()
58 os::IAllocator* allocator, in Create() argument
61 NW_NULL_ASSERT(allocator); in Create()
63 void* updaterMemory = allocator->Alloc(sizeof(PerspectiveProjectionUpdater)); in Create()
66 return new(updaterMemory) PerspectiveProjectionUpdater(allocator, false, resUpdater); in Create()
71 os::IAllocator* allocator, in PerspectiveProjectionUpdater() argument
[all …]
Dgfx_Skeleton.cpp34 Skeleton::CreateCallbacks(os::IAllocator* allocator, int maxCallbacks, bool isFixedSizeMemory) in CreateCallbacks() argument
41 CalculateMatrixSignal::CreateInvalidateSignal(allocator); in CreateCallbacks()
43 CalculateMatrixSignal::CreateInvalidateSignal(allocator); in CreateCallbacks()
48 CalculateMatrixSignal::CreateFixedSizedSignal(maxCallbacks, allocator); in CreateCallbacks()
50 CalculateMatrixSignal::CreateFixedSizedSignal(maxCallbacks, allocator); in CreateCallbacks()
56 CalculateMatrixSignal::CreateVariableSizeSignal(allocator); in CreateCallbacks()
58 CalculateMatrixSignal::CreateVariableSizeSignal(allocator); in CreateCallbacks()
Dgfx_Material.cpp46 os::IAllocator* allocator, in Material() argument
51 allocator, in Material()
69 os::IAllocator* allocator in Create() argument
72 NW_NULL_ASSERT(allocator); in Create()
78 void* memory = allocator->Alloc(sizeof(Material)); in Create()
85 allocator, in Create()
90 Result result = material->Initialize(allocator); in Create()
276 Material::CreateBuffers(os::IAllocator* allocator) in CreateBuffers() argument
285 void* memory = allocator->Alloc(sizeof(ResMaterial) * m_BufferCount); in CreateBuffers()
293 m_Buffers = ResMaterialArray(memory, m_BufferCount, allocator); in CreateBuffers()
[all …]
Dgfx_LookAtTargetViewUpdater.cpp31 LookAtTargetViewUpdater::Create(os::IAllocator* allocator) in Create() argument
33 NW_NULL_ASSERT(allocator); in Create()
35 void* updaterMemory = allocator->Alloc(sizeof(LookAtTargetViewUpdater)); in Create()
39 = AllocateAndFill<ResLookAtTargetViewUpdaterData>(allocator, 0); in Create()
51 return new(updaterMemory) LookAtTargetViewUpdater(allocator, true, resUpdater); in Create()
56 LookAtTargetViewUpdater::Create(os::IAllocator* allocator, ResLookAtTargetViewUpdater resUpdater) in Create() argument
58 NW_NULL_ASSERT(allocator); in Create()
60 void* updaterMemory = allocator->Alloc(sizeof(LookAtTargetViewUpdater)); in Create()
63 return new(updaterMemory) LookAtTargetViewUpdater(allocator, false, resUpdater); in Create()
68 os::IAllocator* allocator, in LookAtTargetViewUpdater() argument
[all …]
Dgfx_FrustumProjectionUpdater.cpp32 FrustumProjectionUpdater::Create(os::IAllocator* allocator) in Create() argument
34 NW_NULL_ASSERT(allocator); in Create()
36 void* updaterMemory = allocator->Alloc(sizeof(FrustumProjectionUpdater)); in Create()
40 = AllocateAndFill<ResFrustumProjectionUpdaterData>(allocator, 0); in Create()
54 return new(updaterMemory) FrustumProjectionUpdater(allocator, true, resUpdater); in Create()
59 FrustumProjectionUpdater::Create(os::IAllocator* allocator, ResFrustumProjectionUpdater resUpdater) in Create() argument
61 NW_NULL_ASSERT(allocator); in Create()
63 void* updaterMemory = allocator->Alloc(sizeof(FrustumProjectionUpdater)); in Create()
66 return new(updaterMemory) FrustumProjectionUpdater(allocator, false, resUpdater); in Create()
71 os::IAllocator* allocator, in FrustumProjectionUpdater() argument
[all …]
Dgfx_RotateViewUpdater.cpp31 RotateViewUpdater::Create(os::IAllocator* allocator) in Create() argument
33 NW_NULL_ASSERT(allocator); in Create()
35 void* updaterMemory = allocator->Alloc(sizeof(RotateViewUpdater)); in Create()
39 = AllocateAndFill<ResRotateViewUpdaterData>(allocator, 0); in Create()
51 return new(updaterMemory) RotateViewUpdater(allocator, true, resUpdater); in Create()
56 RotateViewUpdater::Create(os::IAllocator* allocator, ResRotateViewUpdater resUpdater) in Create() argument
58 NW_NULL_ASSERT(allocator); in Create()
60 void* updaterMemory = allocator->Alloc(sizeof(RotateViewUpdater)); in Create()
63 return new(updaterMemory) RotateViewUpdater(allocator, false, resUpdater); in Create()
68 os::IAllocator* allocator, in RotateViewUpdater() argument
[all …]
Dgfx_OrthoProjectionUpdater.cpp32 OrthoProjectionUpdater::Create(os::IAllocator* allocator) in Create() argument
34 NW_NULL_ASSERT(allocator); in Create()
36 void* updaterMemory = allocator->Alloc(sizeof(OrthoProjectionUpdater)); in Create()
40 = AllocateAndFill<ResOrthoProjectionUpdaterData>(allocator, 0); in Create()
54 return new(updaterMemory) OrthoProjectionUpdater(allocator, true, resUpdater); in Create()
60 os::IAllocator* allocator, in Create() argument
63 NW_NULL_ASSERT(allocator); in Create()
65 void* updaterMemory = allocator->Alloc(sizeof(OrthoProjectionUpdater)); in Create()
68 return new(updaterMemory) OrthoProjectionUpdater(allocator, false, resUpdater); in Create()
73 os::IAllocator* allocator, in OrthoProjectionUpdater() argument
[all …]
/NW4C-2.0.3/include/nw/ut/generated/
Dut_Signal.hi35 explicit Slot0(AllocatorType* allocator) : m_Allocator(allocator) {}
40 AllocatorType* allocator = this->GetAllocator();
41 if (allocator)
44 allocator->Free(this);
49 void Destroy(AllocatorType* allocator)
51 NW_NULL_ASSERT(allocator);
53 allocator->Free(this);
89 FunctionSlot0(AllocatorType* allocator, FunctionType function)
90 : Slot0<TResult, TAllocator>(allocator), m_Function(function) {}
147 //! @param[in] allocator アロケータです。
[all …]
/NW4C-2.0.3/include/nw/gfx/
Dgfx_Fog.h119 Fog* Create(os::IAllocator* allocator);
146 os::IAllocator* allocator);
241 ResFogDataDestroyer(os::IAllocator* allocator = 0) : m_Allocator(allocator) in m_Allocator()
253 ResFogUpdaterDataDestroyer(os::IAllocator* allocator = 0) : m_Allocator(allocator) in m_Allocator()
273 os::IAllocator* allocator, in Fog() argument
277 allocator, in Fog()
289 os::IAllocator* allocator, in Fog() argument
293 allocator, in Fog()
319 virtual Result Initialize(os::IAllocator* allocator);
322 Result CreateAnimGroup(os::IAllocator* allocator);
[all …]
Dgfx_FragmentLight.h131 FragmentLight* Create(os::IAllocator* allocator);
158 os::IAllocator* allocator);
199 os::IAllocator* allocator);
263 os::IAllocator* allocator = NULL
265 : m_Allocator(allocator) in m_Allocator()
284 os::IAllocator* allocator, in FragmentLight() argument
288 allocator, in FragmentLight()
296 os::IAllocator* allocator, in FragmentLight() argument
300 allocator, in FragmentLight()
317 virtual Result Initialize(os::IAllocator* allocator);
[all …]
/NW4C-2.0.3/sources/libraries/gfx/res/
Dgfx_ResGraphicsFile.cpp36 ResGraphicsFile::Setup(os::IAllocator* allocator, ResGraphicsFile graphicsFile) in Setup() argument
46 result |= this->GetLutSets( i ).Setup(allocator, graphicsFile); in Setup()
52 result |= this->GetLights( i ).Setup(allocator, graphicsFile); in Setup()
58 result |= this->GetFogs( i ).Setup(allocator, graphicsFile); in Setup()
64 result |= this->GetShaders( i ).Setup(allocator, graphicsFile); in Setup()
70 result |= this->GetTextures( i ).Setup(allocator, graphicsFile); in Setup()
76 result |= this->GetSkeletalAnims( i ).Setup(allocator, graphicsFile); in Setup()
82 result |= this->GetMaterialAnims( i ).Setup(allocator, graphicsFile); in Setup()
88 result |= this->GetVisibilityAnims( i ).Setup(allocator, graphicsFile); in Setup()
94 result |= this->GetCameraAnims( i ).Setup(allocator, graphicsFile); in Setup()
[all …]
Dgfx_ResTextureMapper.cpp29 typedef Result (*SetupFunc)(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResGraphi…
31 …ResTextureMapper (*CloneDynamicFunc)(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
32 typedef void (*DestroyDynamicFunc)(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
34 …dTextureMapper_Setup(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResGraphicsFile…
35 …lTextureMapper_Setup(ResTextureMapper resTextureMapper, os::IAllocator* allocator, ResGraphicsFile…
38 …PixelBasedTextureMapper_CloneDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
39 …ProceduralTextureMapper_CloneDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
40 …xelBasedTextureMapper_DestroyDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
41 …oceduralTextureMapper_DestroyDynamic(ResTextureMapper resTextureMapper, os::IAllocator* allocator);
43 static ResTexture ReferResTexture(os::IAllocator* allocator, ResTexture resTexture);
[all …]
Dgfx_ResShader.cpp31 typedef Result (*SetupFunc)(os::IAllocator* allocator, ResShader resShader);
33 static Result ResBinaryShader_Setup(os::IAllocator* allocator, ResShader resShader);
34 static Result ResReferenceShader_Setup(os::IAllocator* allocator, ResShader resShader);
101 ResShader::Setup(os::IAllocator* allocator, ResGraphicsFile graphicsFile) in Setup() argument
112 result |= s_ShaderSetupTable[0]( allocator, *this ); in Setup()
117 result |= s_ShaderSetupTable[1]( allocator, *this ); in Setup()
129 ResShader::Setup(os::IAllocator* allocator) in Setup() argument
131 return this->Setup(allocator, ResGraphicsFile(NULL)); in Setup()
136 ResBinaryShader_Setup(os::IAllocator* allocator, ResShader resShader) in ResBinaryShader_Setup() argument
151 if (allocator == NULL) { allocator = CommandCacheManager::GetAllocator(); } in ResBinaryShader_Setup()
[all …]
/NW4C-2.0.3/sources/libraries/dev/
Ddev_Screenshot.cpp33 nw::os::IAllocator* allocator, in Create() argument
38 u32* hash = allocator->AllocAndFill(HASH_LENGTH, static_cast<u32>(0)); in Create()
42 u8* copyScreen = allocator->AllocAndFill(maxLength, static_cast<u8>(0)); in Create()
45 void* memory = allocator->Alloc(sizeof(Screenshot)); in Create()
49 allocator, in Create()
117 nw::os::IAllocator* allocator, in Create() argument
124 void* memory = allocator->Alloc(sizeof(Screenshot)); in Create()
125 ScreenshotArray screenshots = ScreenshotArray(maxScreenshot, allocator); in Create()
129 screenshots.push_back(Screenshot::Create(allocator, memorySize)); in Create()
132 return new(memory) ScreenshotManager(allocator, screenshots); in Create()
[all …]

123456789