Format more engine code
This commit is contained in:
@@ -16,9 +16,8 @@ class SkinnedMeshDrawData;
|
||||
/// </summary>
|
||||
API_CLASS(NoSpawn) class FLAXENGINE_API SkinnedMesh : public MeshBase
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_WITH_CONSTRUCTOR_IMPL(SkinnedMesh, MeshBase);
|
||||
DECLARE_SCRIPTING_TYPE_WITH_CONSTRUCTOR_IMPL(SkinnedMesh, MeshBase);
|
||||
protected:
|
||||
|
||||
GPUBuffer* _vertexBuffer = nullptr;
|
||||
GPUBuffer* _indexBuffer = nullptr;
|
||||
mutable Array<byte> _cachedIndexBuffer;
|
||||
@@ -26,7 +25,6 @@ protected:
|
||||
mutable int32 _cachedIndexBufferCount;
|
||||
|
||||
public:
|
||||
|
||||
SkinnedMesh(const SkinnedMesh& other)
|
||||
: SkinnedMesh()
|
||||
{
|
||||
@@ -41,7 +39,6 @@ public:
|
||||
~SkinnedMesh();
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Gets the skinned model owning this mesh.
|
||||
/// </summary>
|
||||
@@ -64,7 +61,6 @@ public:
|
||||
Array<BlendShape> BlendShapes;
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SkinnedMesh"/> class.
|
||||
/// </summary>
|
||||
@@ -93,7 +89,6 @@ public:
|
||||
void Unload();
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Updates the model mesh (used by the virtual models created with Init rather than Load).
|
||||
/// </summary>
|
||||
@@ -145,7 +140,6 @@ public:
|
||||
bool UpdateMesh(uint32 vertexCount, uint32 triangleCount, VB0SkinnedElementType* vb, void* ib, bool use16BitIndices);
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Determines if there is an intersection between the mesh and a ray in given world
|
||||
/// </summary>
|
||||
@@ -166,7 +160,6 @@ public:
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Model instance drawing packed data.
|
||||
/// </summary>
|
||||
@@ -238,14 +231,12 @@ public:
|
||||
void Draw(const RenderContext& renderContext, const DrawInfo& info, float lodDitherFactor) const;
|
||||
|
||||
public:
|
||||
|
||||
// [MeshBase]
|
||||
bool DownloadDataGPU(MeshBufferType type, BytesContainer& result) const override;
|
||||
Task* DownloadDataGPUAsync(MeshBufferType type, BytesContainer& result) const override;
|
||||
bool DownloadDataCPU(MeshBufferType type, BytesContainer& result, int32& count) const override;
|
||||
|
||||
private:
|
||||
|
||||
// Internal bindings
|
||||
API_FUNCTION(NoProxy) ScriptingObject* GetParentModel();
|
||||
#if !COMPILE_WITHOUT_CSHARP
|
||||
|
||||
Reference in New Issue
Block a user