forked from Dynamitos/Seele
Graceful exit
This commit is contained in:
1 parent
3feb331927
commit
dc28979cfd
13 files changed
+99
-255
No files matched your search
@@ -6,7 +6,6 @@ using namespace Seele;
|
||||
|
||||
extern List<VertexData*> vertexDataList;
|
||||
|
||||
|
||||
StaticMeshVertexData::StaticMeshVertexData()
|
||||
{
|
||||
vertexDataList.add(this);
|
||||
@@ -128,6 +127,18 @@ void StaticMeshVertexData::init(Gfx::PGraphics graphics)
|
||||
descriptorSet = descriptorLayout->allocateDescriptorSet();
|
||||
}
|
||||
|
||||
void StaticMeshVertexData::destroy()
|
||||
{
|
||||
VertexData::destroy();
|
||||
positions = nullptr;
|
||||
texCoords = nullptr;
|
||||
normals = nullptr;
|
||||
tangents = nullptr;
|
||||
biTangents = nullptr;
|
||||
colors = nullptr;
|
||||
descriptorLayout = nullptr;
|
||||
}
|
||||
|
||||
void StaticMeshVertexData::bindBuffers(Gfx::PRenderCommand)
|
||||
{
|
||||
// TODO: for legacy vertex buffer binding
|
||||
|
||||
Reference in new issue
Block a user