Refactoring of streamer code to integrate texture and vbo memory management in progress.
--HG-- branch : nfb
This commit is contained in:
@@ -530,6 +530,9 @@ KRMeshManager::KRVBOData::~KRVBOData()
|
||||
|
||||
void KRMeshManager::KRVBOData::load()
|
||||
{
|
||||
if(isLoaded()) {
|
||||
return;
|
||||
}
|
||||
m_vao_handle = -1;
|
||||
m_vbo_handle = -1;
|
||||
m_vbo_handle_indexes = -1;
|
||||
|
||||
@@ -72,7 +72,7 @@ public:
|
||||
KRDataBlock *m_data;
|
||||
KRDataBlock *m_index_data;
|
||||
|
||||
|
||||
bool isLoaded() { return m_vbo_handle != -1; }
|
||||
void load();
|
||||
void unload();
|
||||
void bind();
|
||||
|
||||
Reference in New Issue
Block a user