engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FDynamicSpriteEmitterDataBase结构体 参考

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.

成员函数说明

◆ BuildViewFillData()

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

参数
ProxyThe primitive scene proxy for the emitter.
InViewView for this buffer
InVertexCountCount of verts for this buffer
InVertexSizeStride of these verts, only used for verification
InDynamicParameterVertexStrideStride of the dynamic parameter

◆ GetMaterialRenderProxy()

const FMaterialRenderProxy * FDynamicSpriteEmitterDataBase::GetMaterialRenderProxy ( )
inlinevirtual

Retrieve the material render proxy to use for rendering this emitter.

PURE VIRTUAL

参数
bSelectedWhether the object is selected
返回
FMaterialRenderProxy* The material proxt to render with.

实现了 FDynamicEmitterDataBase.

◆ RenderDebug()

virtual void FDynamicSpriteEmitterDataBase::RenderDebug ( const FParticleSystemSceneProxy *  Proxy,
FPrimitiveDrawInterface *  PDI,
const FSceneView *  View,
bool  bCrosses 
) const
virtual

Debug rendering

参数
ProxyThe primitive scene proxy for the emitter.
PDIThe primitive draw interface to render with
ViewThe scene view being rendered
bCrossesIf true, render Crosses at particle position; false, render points

被 FDynamicRibbonEmitterData, FDynamicAnimTrailEmitterData, FDynamicBeam2EmitterData , 以及 FDynamicTrailsEmitterData 重载.

◆ SortSpriteParticles()

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

参数
SorceModeThe sort mode to utilize (EParticleSortMode)
bLocalSpacetrue if the emitter is using local space
ParticleCountThe number of particles
ParticleDataThe actual particle data
ParticleStrideThe stride between entries in the ParticleData array
ParticleIndicesIndirect index list into ParticleData
ViewThe scene view being rendered
LocalToWorldThe local to world transform of the component rendering the emitter
ParticleOrderThe array to fill in with ordered indices

该结构体的文档由以下文件生成: