mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
initial commit jolt
This commit is contained in:
parent
0c2aa5328c
commit
8acf7da95b
1086 changed files with 214612 additions and 4 deletions
|
|
@ -0,0 +1,28 @@
|
|||
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
|
||||
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Jolt/Core/Reference.h>
|
||||
|
||||
class RenderPrimitive;
|
||||
|
||||
/// Buffer that holds a list of instances (usually model transform etc.) for instance based rendering
|
||||
class RenderInstances : public RefTarget<RenderInstances>
|
||||
{
|
||||
public:
|
||||
/// Destructor
|
||||
virtual ~RenderInstances() = default;
|
||||
|
||||
/// Erase all instance data
|
||||
virtual void Clear() = 0;
|
||||
|
||||
/// Instance buffer management functions
|
||||
virtual void CreateBuffer(int inNumInstances, int inInstanceSize) = 0;
|
||||
virtual void * Lock() = 0;
|
||||
virtual void Unlock() = 0;
|
||||
|
||||
/// Draw the instances when context has been set by Renderer::BindShader
|
||||
virtual void Draw(RenderPrimitive *inPrimitive, int inStartInstance, int inNumInstances) const = 0;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue