forked from Kolyah35/minecraft-pe-0.6.1
the whole game
This commit is contained in:
41
src/client/renderer/RenderList.h
Executable file
41
src/client/renderer/RenderList.h
Executable file
@@ -0,0 +1,41 @@
|
||||
#ifndef NET_MINECRAFT_CLIENT_RENDERER__RenderList_H__
|
||||
#define NET_MINECRAFT_CLIENT_RENDERER__RenderList_H__
|
||||
|
||||
//package net.minecraft.client.renderer;
|
||||
|
||||
class RenderChunk;
|
||||
|
||||
class RenderList
|
||||
{
|
||||
static const int MAX_NUM_OBJECTS = 1024 * 3;
|
||||
|
||||
public:
|
||||
RenderList();
|
||||
~RenderList();
|
||||
|
||||
void init(float xOff, float yOff, float zOff);
|
||||
|
||||
void add(int list);
|
||||
void addR(const RenderChunk& chunk);
|
||||
|
||||
__inline void next() { ++listIndex; }
|
||||
|
||||
void render();
|
||||
void renderChunks();
|
||||
|
||||
void clear();
|
||||
|
||||
|
||||
float xOff, yOff, zOff;
|
||||
int* lists;
|
||||
RenderChunk* rlists;
|
||||
|
||||
int listIndex;
|
||||
bool inited;
|
||||
bool rendered;
|
||||
|
||||
private:
|
||||
int bufferLimit;
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_CLIENT_RENDERER__RenderList_H__*/
|
||||
Reference in New Issue
Block a user