Base class for Sprite emitters and other emitter types that share similar features. 更多...
#include <ParticleHelper.h>
类 FDynamicSpriteEmitterDataBase 继承关系图:Public 成员函数 | |
| void | BuildViewFillData (const FParticleSystemSceneProxy *Proxy, const FSceneView *InView, int32 InVertexCount, int32 InVertexSize, int32 InDynamicParameterVertexSize, FGlobalDynamicIndexBuffer &DynamicIndexBuffer, FGlobalDynamicVertexBuffer &DynamicVertexBuffer, FGlobalDynamicVertexBuffer::FAllocation &DynamicVertexAllocation, FGlobalDynamicIndexBuffer::FAllocation &DynamicIndexAllocation, FGlobalDynamicVertexBuffer::FAllocation *DynamicParameterAllocation, FAsyncBufferFillData &Data) const |
| Set up an buffer for async filling 更多... | |
| virtual int32 | GetDynamicParameterVertexStride () const |
| Get the vertex stride for the dynamic parameter rendering data | |
| virtual int32 | GetDynamicVertexStride (ERHIFeatureLevel::Type) const |
| Get the vertex stride for the dynamic rendering data | |
| virtual void | GetIndexAllocInfo (int32 &OutNumIndices, int32 &OutStride) const |
| Gets the information required for allocating this emitters indices from the global index array. | |
| const FMaterialRenderProxy * | GetMaterialRenderProxy () |
| Retrieve the material render proxy to use for rendering this emitter. 更多... | |
| virtual const FDynamicSpriteEmitterReplayDataBase * | GetSourceData () const |
| Get the source replay data for this emitter | |
| virtual void | RenderDebug (const FParticleSystemSceneProxy *Proxy, FPrimitiveDrawInterface *PDI, const FSceneView *View, bool bCrosses) const |
| Debug rendering 更多... | |
| void | SortSpriteParticles (int32 SortMode, bool bLocalSpace, int32 ParticleCount, const uint8 *ParticleData, int32 ParticleStride, const uint16 *ParticleIndices, const FSceneView *View, const FMatrix &LocalToWorld, FParticleOrder *ParticleOrder) const |
| Sort the given sprite particles 更多... | |
Public 成员函数 继承自 FDynamicEmitterDataBase | |
| virtual void | GatherSimpleLights (const FParticleSystemSceneProxy *Proxy, const FSceneViewFamily &ViewFamily, FSimpleLightArray &OutParticleLights) const |
| Callback from the renderer to gather simple lights that this proxy wants renderered. | |
| virtual const FMacroUVOverride & | GetMacroUVOverride () const |
| Returns the current macro uv override. 更多... | |
| virtual const FMaterialRenderProxy * | GetMaterialRenderProxy ()=0 |
| Retrieve the material render proxy to use for rendering this emitter. 更多... | |
| virtual const FDynamicEmitterReplayDataBase & | GetSource () const =0 |
| Returns the source data for this particle system | |
| FParticleVertexFactoryBase * | GetVertexFactory (const FParticleSystemSceneProxy *InOwnerProxy) |
| Get the vertex factory for this emitter data, possibly creating it 更多... | |
| void * | operator new (size_t Size) |
| Custom new/delete with recycling | |
| virtual void | ReleaseRenderThreadResources (const FParticleSystemSceneProxy *InOwnerProxy) |
| Release the render thread resources for this emitter data 更多... | |
| virtual void | UpdateRenderThreadResourcesEmitter (const FParticleSystemSceneProxy *InOwnerProxy) |
| Create the render thread resources for this emitter data 更多... | |
Public 属性 | |
| uint32 | bUsesDynamicParameter:1 |
| true if the particle emitter utilizes the DynamicParameter module | |
| const FMaterialRenderProxy * | MaterialResource |
| The material render proxy for this emitter | |
Public 属性 继承自 FDynamicEmitterDataBase | |
| uint32 | bSelected:1 |
| true if this emitter is currently selected | |
| uint32 | bValid:1 |
| true if this emitter has valid rendering data | |
| TStatId | StatID |
| Stat id of this object, 0 if nobody asked for it yet | |
额外继承的成员函数 | |
Protected 成员函数 继承自 FDynamicEmitterDataBase | |
| virtual FParticleVertexFactoryBase * | BuildVertexFactory (const FParticleSystemSceneProxy *InOwnerProxy) |
| Create the vertex factory for this emitter data 更多... | |
Protected 属性 继承自 FDynamicEmitterDataBase | |
| FParticleVertexFactoryBase * | ParticleVertexFactory |
| The vertex factory used for rendering | |
Base class for Sprite emitters and other emitter types that share similar features.
| void FDynamicSpriteEmitterDataBase::BuildViewFillData | ( | const FParticleSystemSceneProxy * | Proxy, |
| const FSceneView * | InView, | ||
| int32 | InVertexCount, | ||
| int32 | InVertexSize, | ||
| int32 | InDynamicParameterVertexSize, | ||
| FGlobalDynamicIndexBuffer & | DynamicIndexBuffer, | ||
| FGlobalDynamicVertexBuffer & | DynamicVertexBuffer, | ||
| FGlobalDynamicVertexBuffer::FAllocation & | DynamicVertexAllocation, | ||
| FGlobalDynamicIndexBuffer::FAllocation & | DynamicIndexAllocation, | ||
| FGlobalDynamicVertexBuffer::FAllocation * | DynamicParameterAllocation, | ||
| FAsyncBufferFillData & | Data | ||
| ) | const |
Set up an buffer for async filling
| Proxy | The primitive scene proxy for the emitter. |
| InView | View for this buffer |
| InVertexCount | Count of verts for this buffer |
| InVertexSize | Stride of these verts, only used for verification |
| InDynamicParameterVertexStride | Stride of the dynamic parameter |
|
inlinevirtual |
Retrieve the material render proxy to use for rendering this emitter.
PURE VIRTUAL
| bSelected | Whether the object is selected |
|
virtual |
Debug rendering
| Proxy | The primitive scene proxy for the emitter. |
| PDI | The primitive draw interface to render with |
| View | The scene view being rendered |
| bCrosses | If true, render Crosses at particle position; false, render points |
被 FDynamicRibbonEmitterData, FDynamicAnimTrailEmitterData, FDynamicBeam2EmitterData , 以及 FDynamicTrailsEmitterData 重载.
| void FDynamicSpriteEmitterDataBase::SortSpriteParticles | ( | int32 | SortMode, |
| bool | bLocalSpace, | ||
| int32 | ParticleCount, | ||
| const uint8 * | ParticleData, | ||
| int32 | ParticleStride, | ||
| const uint16 * | ParticleIndices, | ||
| const FSceneView * | View, | ||
| const FMatrix & | LocalToWorld, | ||
| FParticleOrder * | ParticleOrder | ||
| ) | const |
Sort the given sprite particles
| SorceMode | The sort mode to utilize (EParticleSortMode) |
| bLocalSpace | true if the emitter is using local space |
| ParticleCount | The number of particles |
| ParticleData | The actual particle data |
| ParticleStride | The stride between entries in the ParticleData array |
| ParticleIndices | Indirect index list into ParticleData |
| View | The scene view being rendered |
| LocalToWorld | The local to world transform of the component rendering the emitter |
| ParticleOrder | The array to fill in with ordered indices |