Ver Fonte

SVT example removed unused

Aleš Mlakar há 7 anos atrás
pai
commit
e007b66e6b
2 ficheiros alterados com 4 adições e 6 exclusões
  1. 3 4
      examples/40-svt/vt.cpp
  2. 1 2
      examples/40-svt/vt.h

+ 3 - 4
examples/40-svt/vt.cpp

@@ -588,9 +588,8 @@ void PageLoader::copyColor(uint8_t* image, Page request)
 	}
 	}
 }
 }
 
 
-PageCache::PageCache(VirtualTextureInfo* _info, TextureAtlas* _atlas, PageLoader* _loader, PageIndexer* _indexer, int _count)
-	: m_info(_info)
-	, m_atlas(_atlas)
+PageCache::PageCache(TextureAtlas* _atlas, PageLoader* _loader, PageIndexer* _indexer, int _count)
+	: m_atlas(_atlas)
 	, m_loader(_loader)
 	, m_loader(_loader)
 	, m_indexer(_indexer)
 	, m_indexer(_indexer)
 	, m_count(_count)
 	, m_count(_count)
@@ -867,7 +866,7 @@ VirtualTexture::VirtualTexture(TileDataFile* _tileDataFile, VirtualTextureInfo*
 	// Setup classes
 	// Setup classes
 	m_atlas = BX_NEW(VirtualTexture::getAllocator(), TextureAtlas)(m_info, m_atlasCount, m_uploadsPerFrame);
 	m_atlas = BX_NEW(VirtualTexture::getAllocator(), TextureAtlas)(m_info, m_atlasCount, m_uploadsPerFrame);
 	m_loader = BX_NEW(VirtualTexture::getAllocator(), PageLoader)(m_tileDataFile, m_indexer, m_info);
 	m_loader = BX_NEW(VirtualTexture::getAllocator(), PageLoader)(m_tileDataFile, m_indexer, m_info);
-	m_cache = BX_NEW(VirtualTexture::getAllocator(), PageCache)(m_info, m_atlas, m_loader, m_indexer, m_atlasCount);
+	m_cache = BX_NEW(VirtualTexture::getAllocator(), PageCache)(m_atlas, m_loader, m_indexer, m_atlasCount);
 	m_pageTable = BX_NEW(VirtualTexture::getAllocator(), PageTable)(m_cache, m_info, m_indexer);
 	m_pageTable = BX_NEW(VirtualTexture::getAllocator(), PageTable)(m_cache, m_info, m_indexer);
 
 
 	// Create uniforms
 	// Create uniforms

+ 1 - 2
examples/40-svt/vt.h

@@ -242,7 +242,7 @@ private:
 class PageCache
 class PageCache
 {
 {
 public:
 public:
-	PageCache(VirtualTextureInfo* _info, TextureAtlas* _atlas, PageLoader* _loader, PageIndexer* _indexer, int _count);
+	PageCache(TextureAtlas* _atlas, PageLoader* _loader, PageIndexer* _indexer, int _count);
 	bool touch(Page page);
 	bool touch(Page page);
 	bool request(Page request, bgfx::ViewId blitViewId);
 	bool request(Page request, bgfx::ViewId blitViewId);
 	void clear();
 	void clear();
@@ -253,7 +253,6 @@ public:
 	std::function<void(Page, Point)> added;
 	std::function<void(Page, Point)> added;
 
 
 private:
 private:
-	VirtualTextureInfo* m_info;
 	TextureAtlas*		m_atlas;
 	TextureAtlas*		m_atlas;
 	PageLoader*			m_loader;
 	PageLoader*			m_loader;
 	PageIndexer*		m_indexer;
 	PageIndexer*		m_indexer;