mirror of https://github.com/bkaradzic/bgfx
SVT example more removed unused
This commit is contained in:
parent
e007b66e6b
commit
e024fb84d7
|
@ -588,10 +588,9 @@ void PageLoader::copyColor(uint8_t* image, Page request)
|
|||
}
|
||||
}
|
||||
|
||||
PageCache::PageCache(TextureAtlas* _atlas, PageLoader* _loader, PageIndexer* _indexer, int _count)
|
||||
PageCache::PageCache(TextureAtlas* _atlas, PageLoader* _loader, int _count)
|
||||
: m_atlas(_atlas)
|
||||
, m_loader(_loader)
|
||||
, m_indexer(_indexer)
|
||||
, m_count(_count)
|
||||
{
|
||||
clear();
|
||||
|
@ -866,7 +865,7 @@ VirtualTexture::VirtualTexture(TileDataFile* _tileDataFile, VirtualTextureInfo*
|
|||
// Setup classes
|
||||
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_cache = BX_NEW(VirtualTexture::getAllocator(), PageCache)(m_atlas, m_loader, m_indexer, m_atlasCount);
|
||||
m_cache = BX_NEW(VirtualTexture::getAllocator(), PageCache)(m_atlas, m_loader, m_atlasCount);
|
||||
m_pageTable = BX_NEW(VirtualTexture::getAllocator(), PageTable)(m_cache, m_info, m_indexer);
|
||||
|
||||
// Create uniforms
|
||||
|
|
|
@ -242,7 +242,7 @@ private:
|
|||
class PageCache
|
||||
{
|
||||
public:
|
||||
PageCache(TextureAtlas* _atlas, PageLoader* _loader, PageIndexer* _indexer, int _count);
|
||||
PageCache(TextureAtlas* _atlas, PageLoader* _loader, int _count);
|
||||
bool touch(Page page);
|
||||
bool request(Page request, bgfx::ViewId blitViewId);
|
||||
void clear();
|
||||
|
@ -255,7 +255,6 @@ public:
|
|||
private:
|
||||
TextureAtlas* m_atlas;
|
||||
PageLoader* m_loader;
|
||||
PageIndexer* m_indexer;
|
||||
|
||||
int m_count;
|
||||
|
||||
|
|
Loading…
Reference in New Issue