RuntimeMeshSectionProxy.h
Go to the documentation of this file.
1 // Copyright 2016-2018 Chris Conway (Koderz). All Rights Reserved.
2 
3 #pragma once
4 
5 #include "Engine/Engine.h"
6 #include "Components/MeshComponent.h"
7 #include "RuntimeMeshRendering.h"
9 
10 
12 {
13  FPackedNormal Normal;
14  FPackedNormal Tangent;
15  FColor Color;
16  FVector2DHalf UV0;
17 
19  : Normal(FVector(0.0f, 0.0f, 1.0f))
20  , Tangent(FVector(1.0f, 0.0f, 0.0f))
21  , Color(FColor::Transparent)
22  , UV0(FVector2D::ZeroVector)
23  { }
24 };
25 
26 
27 class FRuntimeMeshSectionProxy : public TSharedFromThis<FRuntimeMeshSectionProxy, ESPMode::NotThreadSafe>
28 {
31 
34 
37 
40 
43 
46 
49 
52 
54  bool bIsVisible;
55 
58 
59 public:
61 
63 
64  bool ShouldRender();
65  bool CanRender();
66 
67  bool WantsToRenderInStaticPath() const;
68 
69  bool CastsShadow() const;
70 
71  FRuntimeMeshVertexFactory* GetVertexFactory() { return &VertexFactory; }
72 
73  void CreateMeshBatch(FMeshBatch& MeshBatch, bool bWantsAdjacencyInfo);
74 
75  void BuildVertexDataType(FLocalVertexFactory::FDataType& DataType);
76 
77  void FinishUpdate_RenderThread(FRuntimeMeshSectionUpdateParamsPtr UpdateData);
78 
79  void FinishPropertyUpdate_RenderThread(FRuntimeMeshSectionPropertyUpdateParamsPtr UpdateData);
80 };
81 
82 
FRuntimeMeshVertexFactory VertexFactory
FRuntimeMeshTangentsVertexBuffer TangentsBuffer
EUpdateFrequency
FRuntimeMeshUVsVertexBuffer UVsBuffer
FRuntimeMeshVertexFactory * GetVertexFactory()
TSharedPtr< FRuntimeMeshSectionPropertyUpdateParams, ESPMode::NotThreadSafe > FRuntimeMeshSectionPropertyUpdateParamsPtr
TSharedPtr< FRuntimeMeshSectionUpdateParams, ESPMode::NotThreadSafe > FRuntimeMeshSectionUpdateParamsPtr
GLdouble f
FRuntimeMeshIndexBuffer IndexBuffer
FRuntimeMeshPositionVertexBuffer PositionBuffer
TSharedPtr< FRuntimeMeshSectionCreationParams, ESPMode::NotThreadSafe > FRuntimeMeshSectionCreationParamsPtr
FRuntimeMeshIndexBuffer AdjacencyIndexBuffer
FRuntimeMeshColorVertexBuffer ColorBuffer


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:41