| /NW4C-1.2.23/sources/libraries/demo/ |
| D | demo_Memory.cpp | 42 AlignMemory_( void* memory, u8 align ) in AlignMemory_() argument 44 void* top = nw::ut::AddOffsetToPtr( memory, 1 ); in AlignMemory_() 49 size_t offset = nw::ut::GetOffsetFromPtr( memory, top ); in AlignMemory_() 60 void* memory = nw::demo::Alloc(size); in InitializeDemoAllocator() local 61 uptr address = reinterpret_cast<uptr>(memory); in InitializeDemoAllocator() 101 UnAlignMemory( void* memory ) in UnAlignMemory() argument 103 u8* head = reinterpret_cast<u8*>( nw::ut::AddOffsetToPtr( memory, -1 ) ); in UnAlignMemory() 107 return nw::ut::AddOffsetToPtr( memory, -offset ); in UnAlignMemory() 121 void* memory = s_MainMemoryHeap.Allocate( size + alignment ); in Alloc() local 123 return AlignMemory_( memory, alignment ); in Alloc() [all …]
|
| D | demo_DisplayBufferSwapper.cpp | 35 void* memory = allocator->Alloc(sizeof(DisplayBufferSwapper)); in Create() local 37 new(memory) DisplayBufferSwapper(allocator, m_Description); in Create() 80 void* memory = allocator->Alloc(sizeof(GLuint) * m_Description.bufferCount); in DisplayBufferSwapper() local 81 m_DisplayBuffers = static_cast<GLuint*>(memory); in DisplayBufferSwapper()
|
| /NW4C-1.2.23/include/nw/os/ |
| D | os_Memory.h | 54 virtual void Free(void* memory) = 0; 72 u8* memory = static_cast<u8*>(this->Alloc(size, alignment)); variable 74 if (memory != NULL) 76 std::fill_n(NW_CHECKED_ARRAY_ITERATOR(memory, size), size, data); 78 return memory; 92 u8* memory = static_cast<u8*>(this->Alloc(sizeof(TObject) * size, alignment)); variable 94 if (memory != NULL) 96 std::fill_n(memory, size, data); 99 return static_cast<TObject*>(memory); 184 u8* memory = static_cast<u8*>(allocator->Alloc(memorySize)); in AllocateAndFill() local [all …]
|
| /NW4C-1.2.23/sources/libraries/gfx/ |
| D | gfx_LightSet.cpp | 34 void* memory = allocator->Alloc(sizeof(LightSet)); in Create() local 35 NW_NULL_ASSERT(memory); in Create() 36 LightSet* lightSet = new(memory) LightSet( in Create() 54 void* memory = allocator->Alloc(sizeof(LightSet)); in Create() local 55 NW_NULL_ASSERT(memory); in Create() 60 LightSet* lightSet = new(memory) LightSet( in Create()
|
| D | gfx_SceneNode.cpp | 40 void* memory = allocator->Alloc(sizeof(SceneNode)); in Create() local 41 NW_NULL_ASSERT(memory); in Create() 43 SceneNode* node = new(memory) SceneNode( in Create() 67 void* memory = allocator->Alloc(sizeof(SceneNode)); in Create() local 68 NW_NULL_ASSERT(memory); in Create() 70 SceneNode* node = new(memory) SceneNode( in Create() 149 void* memory = allocator->Alloc( in CreateChildren() local 152 if (memory == NULL) in CreateChildren() 158 m_Children = SceneNodeChildren(NULL, memory, m_Description.maxChildren, allocator); in CreateChildren()
|
| D | gfx_IRenderTarget.cpp | 38 void* memory = allocator->Alloc(sizeof(OnScreenBuffer), renderTargetAlignment); in Create() local 39 NW_NULL_ASSERT(memory); in Create() 41 renderTarget = new(memory) OnScreenBuffer(allocator, m_Description); in Create() 54 void* memory = allocator->Alloc(sizeof(OffScreenBuffer), renderTargetAlignment); in CreateOffScreenBuffer() local 55 NW_NULL_ASSERT(memory); in CreateOffScreenBuffer() 111 renderTarget = new(memory) OffScreenBuffer(allocator, description, texture); in CreateOffScreenBuffer()
|
| D | gfx_ParticleModel.cpp | 134 void* memory = mainAllocator->Alloc(sizeof(ParticleModel)); in Create() local 135 if (memory == NULL) in Create() 140 ParticleModel* node = new(memory) ParticleModel( in Create() 261 void* memory = allocator->Alloc(sizeof(ParticleSet*) * m_MaximumParticleSet); in Initialize() local 262 if (!memory) in Initialize() 268 m_ParticleSets = ut::MoveArray<ParticleSet*>(memory, m_MaximumParticleSet, allocator); in Initialize() 278 void* memory = allocator->Alloc(sizeof(ParticleShape*) * m_MaximumParticleSet); in Initialize() local 279 if (!memory) in Initialize() 285 m_ParticleShapes = ut::MoveArray<ParticleShape*>(memory, m_MaximumParticleSet, allocator); in Initialize()
|
| D | gfx_ParticleContext.cpp | 44 void* memory = allocator->Alloc(sizeof(ParticleContext)); in Create() local 45 NW_NULL_ASSERT(memory); in Create() 47 ParticleContext* context = new(memory) ParticleContext( in Create()
|
| D | gfx_TransformNode.cpp | 62 void* memory = allocator->Alloc(sizeof(TransformNode)); in Create() local 63 NW_NULL_ASSERT(memory); in Create() 65 TransformNode* node = new(memory) TransformNode( in Create() 90 void* memory = allocator->Alloc(sizeof(TransformNode)); in Create() local 91 NW_NULL_ASSERT(memory); in Create() 93 TransformNode* node = new(memory) TransformNode( in Create()
|
| D | gfx_AmbientLight.cpp | 42 void* memory = allocator->Alloc(sizeof(AmbientLight)); in Create() local 43 NW_NULL_ASSERT(memory); in Create() 44 AmbientLight* light = new(memory) AmbientLight( in Create() 70 void* memory = allocator->Alloc(sizeof(AmbientLight)); in Create() local 71 NW_NULL_ASSERT(memory); in Create() 73 AmbientLight* light = new(memory) AmbientLight( in Create()
|
| D | gfx_HemiSphereLight.cpp | 44 void* memory = allocator->Alloc(sizeof(HemiSphereLight)); in Create() local 45 NW_NULL_ASSERT(memory); in Create() 46 HemiSphereLight* light = new(memory) HemiSphereLight( in Create() 72 void* memory = allocator->Alloc(sizeof(HemiSphereLight)); in Create() local 73 NW_NULL_ASSERT(memory); in Create() 75 HemiSphereLight* light = new(memory) HemiSphereLight( in Create()
|
| D | gfx_VertexLight.cpp | 45 void* memory = allocator->Alloc(sizeof(VertexLight)); in Create() local 46 NW_NULL_ASSERT(memory); in Create() 47 VertexLight* light = new(memory) VertexLight( in Create() 73 void* memory = allocator->Alloc(sizeof(VertexLight)); in Create() local 74 NW_NULL_ASSERT(memory); in Create() 76 VertexLight* light = new(memory) VertexLight( in Create()
|
| D | gfx_Model.cpp | 49 void* memory = allocator->Alloc(sizeof(Model)); in Create() local 50 NW_NULL_ASSERT(memory); in Create() 52 Model* node = new(memory) Model( in Create() 307 void* memory = allocator->Alloc(sizeof(Material*) * materialCount); in CreateMaterials() local 309 if (memory == NULL) in CreateMaterials() 315 m_Materials = gfx::MaterialArray(memory, materialCount, allocator); in CreateMaterials() 331 void* memory = allocator->Alloc(sizeof(Material*) * materialCount); in CreateMaterials() local 333 if (memory == NULL) in CreateMaterials() 339 m_Materials = gfx::MaterialArray(memory, materialCount, allocator); in CreateMaterials() 408 void* memory = allocator->Alloc(sizeof(bool) * meshesCount); in CreateResMeshes() local [all …]
|
| D | gfx_StandardSkeleton.cpp | 43 void* memory = allocator->Alloc(sizeof(StandardSkeleton)); in Create() local 44 NW_NULL_ASSERT(memory); in Create() 56 StandardSkeleton* skeleton = new(memory) StandardSkeleton( in Create()
|
| D | gfx_ParticleSceneUpdater.cpp | 45 void* memory = allocator->Alloc(sizeof(ParticleSceneUpdater)); in Create() local 46 if (memory == NULL) in Create() 51 return new(memory) ParticleSceneUpdater( in Create()
|
| D | gfx_SceneInitializer.cpp | 49 void* memory = allocator->Alloc(sizeof(SceneInitializer)); in Create() local 50 NW_NULL_ASSERT(memory); in Create() 55 SceneInitializer* initializer = new(memory) SceneInitializer(allocator, m_Description); in Create()
|
| D | gfx_FragmentLight.cpp | 44 void* memory = allocator->Alloc(sizeof(FragmentLight)); in Create() local 45 NW_NULL_ASSERT(memory); in Create() 46 FragmentLight* light = new(memory) FragmentLight( in Create() 72 void* memory = allocator->Alloc(sizeof(FragmentLight)); in Create() local 73 NW_NULL_ASSERT(memory); in Create() 75 FragmentLight* light = new(memory) FragmentLight( in Create()
|
| D | gfx_AnimObject.cpp | 171 void* memory = GetAllocator().Alloc(sizeof(anim::AnimBlendOp*) * blendOpCount); in Initialize() local 173 if (memory == NULL) in Initialize() 179 … m_BlendOperations = ut::MoveArray<anim::AnimBlendOp*>(memory, blendOpCount, &GetAllocator()); in Initialize() 191 void* memory = GetAllocator().Alloc(sizeof(int) * memberCount); in Initialize() local 192 if (memory == NULL) in Initialize() 198 m_TargetObjectIndicies = ut::MoveArray<int>(memory, memberCount, &GetAllocator()); in Initialize() 203 void* memory = GetAllocator().Alloc(sizeof(void*) * memberCount); in Initialize() local 204 if (memory == NULL) in Initialize() 210 m_TargetObjects = ut::MoveArray<void*>(memory, memberCount, &GetAllocator()); in Initialize() 215 void* memory = GetAllocator().Alloc(sizeof(void*) * memberCount); in Initialize() local [all …]
|
| D | gfx_SceneContext.cpp | 66 void* memory = allocator->Alloc(sizeof(SceneContext)); in Create() local 67 NW_NULL_ASSERT(memory); in Create() 69 SceneContext* context = new(memory) SceneContext( in Create()
|
| /NW4C-1.2.23/include/nw/demo/ |
| D | demo_Memory.h | 69 void* UnAlignMemory( void* memory ); 86 void Free(void* memory); 149 void* memory = m_Heap.Allocate(size, alignment); in Alloc() local 152 if (memory != NULL) in Alloc() 154 void* unalignMemory = UnAlignMemory(memory); in Alloc() 166 return memory; in Alloc() 174 virtual void Free(void* memory) in Free() argument 177 void* unalignMemory = UnAlignMemory(memory); in Free() 188 m_Heap.Free(memory); in Free()
|
| /NW4C-1.2.23/include/nw/ut/generated/ |
| D | ut_Signal.hi | 149 void* memory = allocator->Alloc(sizeof(SelfType)); 150 if (memory) 153 return new(memory) SelfType(NULL, 0, allocator); 155 return new(memory) SelfType(allocator); 171 void* memory = allocator->Alloc(sizeof(SelfType)); 172 if (memory) 178 return new(memory) SelfType(elements, maxSlots, allocator); 182 allocator->Free(memory); 187 return new(memory) SelfType(allocator); 199 void* memory = allocator->Alloc(sizeof(SelfType)); [all …]
|
| /NW4C-1.2.23/sources/libraries/dev/ |
| D | dev_Screenshot.cpp | 43 void* memory = allocator->Alloc(sizeof(Screenshot)); in Create() local 44 NW_NULL_ASSERT(memory); in Create() 46 return new(memory) Screenshot( in Create() 122 void* memory = allocator->Alloc(sizeof(Screenshot)); in Create() local 130 return new(memory) ScreenshotManager(allocator, screenshots); in Create()
|
| /NW4C-1.2.23/include/nw/ut/ |
| D | ut_Signal.h | 88 void* memory = allocator->Alloc(sizeof(TSlot)); 89 NW_NULL_ASSERT(memory); 91 return new(memory) TSlot(allocator, function);
|
| /NW4C-1.2.23/include/nw/gfx/ |
| D | gfx_IRenderTarget.h | 180 Builder& ColorArea(GraphicsMemoryArea memory) in ColorArea() argument 182 m_Description.colorArea = memory; in ColorArea() 189 Builder& DepthArea(GraphicsMemoryArea memory) in DepthArea() argument 191 m_Description.depthArea = memory; in DepthArea()
|
| D | gfx_AnimObject.h | 803 void* memory = GetAllocator().Alloc(sizeof(AnimGroup*) * maxAnimGroups); in Initialize() local 804 if (memory == NULL) in Initialize() 810 m_AnimGroups = AnimGroupArray(memory, maxAnimGroups, &GetAllocator()); in Initialize() 813 void* memory = GetAllocator().Alloc(sizeof(AnimObject*) * animObjectCount); in Initialize() local 814 if (memory == NULL) in Initialize() 820 m_AnimObjects = AnimObjectArray(memory, animObjectCount, &GetAllocator()); in Initialize() 1158 void* memory = GetAllocator().Alloc(sizeof(int) * maxMembers); in Initialize() local 1159 if (memory == NULL) in Initialize() 1165 m_BindIndexTable = ut::MoveArray<int>(memory, maxMembers, &GetAllocator()); in Initialize() 1169 void* memory = GetAllocator().Alloc(sizeof(int) * maxAnimMembers); in Initialize() local [all …]
|