Browse Source

renderbuf is vestigial

opengl-renderer-broken
Martin Dørum 4 years ago
parent
commit
56e541b9b2
2 changed files with 0 additions and 3 deletions
  1. 0
    1
      libswan/include/swan/Chunk.h
  2. 0
    2
      libswan/src/Chunk.cc

+ 0
- 1
libswan/include/swan/Chunk.h View File



private: private:
static constexpr float DEACTIVATE_INTERVAL = 20; static constexpr float DEACTIVATE_INTERVAL = 20;
static uint8_t *renderbuf;


void renderList(SDL_Renderer *rnd); void renderList(SDL_Renderer *rnd);



+ 0
- 2
libswan/src/Chunk.cc View File



namespace Swan { namespace Swan {


uint8_t *Chunk::renderbuf = new uint8_t[CHUNK_WIDTH * TILE_SIZE * CHUNK_HEIGHT * TILE_SIZE * 4];

void Chunk::compress() { void Chunk::compress() {
if (isCompressed()) if (isCompressed())
return; return;

Loading…
Cancel
Save