Decompile fn_02162 (RenderVertexPool::~RenderVertexPool)
Batch #1715 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_02162 RenderVertexPool::~RenderVertexPool: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
320e545705
commit
0085ade247
2 changed files with 22 additions and 0 deletions
|
|
@ -19,6 +19,26 @@ RenderVertexPool::RenderVertexPool() : m_minimum(10240), m_used(0) {
|
||||||
this->Activate(this->m_minimum);
|
this->Activate(this->m_minimum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OFFSET: 0x00561690
|
||||||
|
// FUNCTION: fn_02162
|
||||||
|
RenderVertexPool::~RenderVertexPool() {
|
||||||
|
this->Release();
|
||||||
|
}
|
||||||
|
|
||||||
|
// OFFSET: 0x00562290
|
||||||
|
// FUNCTION: fn_02177
|
||||||
|
void RenderVertexPool::Release() {
|
||||||
|
for (auto& block : this->m_active) {
|
||||||
|
block.reset();
|
||||||
|
}
|
||||||
|
this->m_active.clear();
|
||||||
|
|
||||||
|
for (auto& block : this->m_unused) {
|
||||||
|
block.reset();
|
||||||
|
}
|
||||||
|
this->m_unused.clear();
|
||||||
|
}
|
||||||
|
|
||||||
// OFFSET: 0x00559AA0
|
// OFFSET: 0x00559AA0
|
||||||
// FUNCTION: fn_02070
|
// FUNCTION: fn_02070
|
||||||
RenderVertexPool::Block& RenderVertexPool::Activate(unsigned capacity) {
|
RenderVertexPool::Block& RenderVertexPool::Activate(unsigned capacity) {
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
class RenderVertexPool {
|
class RenderVertexPool {
|
||||||
public:
|
public:
|
||||||
RenderVertexPool();
|
RenderVertexPool();
|
||||||
|
~RenderVertexPool();
|
||||||
RenderVertex* Acquire(unsigned count);
|
RenderVertex* Acquire(unsigned count);
|
||||||
void Rewind();
|
void Rewind();
|
||||||
|
|
||||||
|
|
@ -23,6 +24,7 @@ private:
|
||||||
/* 00B8 */ std::forward_list<std::unique_ptr<Block>> m_active;
|
/* 00B8 */ std::forward_list<std::unique_ptr<Block>> m_active;
|
||||||
/* 00BC */ std::forward_list<std::unique_ptr<Block>> m_unused;
|
/* 00BC */ std::forward_list<std::unique_ptr<Block>> m_unused;
|
||||||
Block& Activate(unsigned capacity);
|
Block& Activate(unsigned capacity);
|
||||||
|
void Release();
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(_WIN64)
|
#if defined(_WIN32) && !defined(_WIN64)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue