Implemented notification system needed for occlusion culling and transparency sorting
--HG-- extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4072
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
#import "KRShaderManager.h"
|
||||
#import "KRContext.h"
|
||||
|
||||
KRModel::KRModel(std::string name, std::string path) {
|
||||
KRModel::KRModel(KRContext &context, std::string name, std::string path) : KRContextObject(context) {
|
||||
m_name = name;
|
||||
loadPack(path);
|
||||
}
|
||||
@@ -54,7 +54,7 @@ KRModel::KRModel(std::string name, std::string path) {
|
||||
void KRModel::loadPack(std::string path) {
|
||||
m_materials.clear();
|
||||
m_uniqueMaterials.clear();
|
||||
m_pMesh = new KRMesh(KRResource::GetFileBase(path));
|
||||
m_pMesh = new KRMesh(*m_pContext, KRResource::GetFileBase(path));
|
||||
m_pMesh->loadPack(path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user