forked from mirrors/kolyah35-minecraft-pe-0.6.1
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
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__*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue