forked from mirrors/kolyah35-minecraft-pe-0.6.1
.h -> .hpp everything
This commit is contained in:
parent
7d3257669a
commit
7418263193
845 changed files with 53732 additions and 53754 deletions
52
src/client/particle/ParticleEngine.hpp
Executable file
52
src/client/particle/ParticleEngine.hpp
Executable file
|
|
@ -0,0 +1,52 @@
|
|||
#pragma once
|
||||
|
||||
//package net.minecraft.client.particle;
|
||||
|
||||
#include <vector>
|
||||
#include "world/entity/Entity.hpp"
|
||||
#include "world/level/tile/Tile.hpp"
|
||||
#include "client/renderer/gles.hpp"
|
||||
|
||||
class Textures;
|
||||
class Level;
|
||||
class Particle;
|
||||
typedef std::vector<Particle*> ParticleList;
|
||||
|
||||
class ParticleEngine
|
||||
{
|
||||
public:
|
||||
static const int MISC_TEXTURE = 0;
|
||||
static const int TERRAIN_TEXTURE = 1;
|
||||
static const int ITEM_TEXTURE = 2;
|
||||
static const int ENTITY_PARTICLE_TEXTURE = 3;
|
||||
|
||||
static const int TEXTURE_COUNT = 4;
|
||||
|
||||
ParticleEngine(Level* level, Textures* textures);
|
||||
~ParticleEngine();
|
||||
|
||||
void add(Particle* p);
|
||||
void destroy(int x, int y, int z);
|
||||
|
||||
void tick();
|
||||
void render(Entity* player, float a);
|
||||
void renderLit(Entity* player, float a);
|
||||
|
||||
void setLevel(Level* level);
|
||||
|
||||
void crack(int x, int y, int z, int face);
|
||||
|
||||
std::string countParticles();
|
||||
|
||||
protected:
|
||||
void clear();
|
||||
|
||||
Level* level;
|
||||
GLuint textureIds[4];
|
||||
|
||||
private:
|
||||
ParticleList particles[4];
|
||||
Textures* textures;
|
||||
Random random;
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue