| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| protected BlendingAttribute | |
| private static final VertexAttributes | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private VertexAttributes | |
| private int | |
| protected DepthTestAttribute | |
| protected static final int | |
| private static final VertexAttributes | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private short[] | |
| private static final int | |
| private static final int | |
| protected ParticleShader. | |
| private BillboardParticleBatch. | |
| private Array | |
| pack-priv Shader | |
| protected static final int | |
| protected Texture | |
| protected static final Matrix3 | |
| protected static final Vector3 | |
| protected static final Vector3 | |
| protected static final Vector3 | |
| protected static final Vector3 | |
| protected static final Vector3 | |
| protected static final Vector3 | |
| protected boolean | |
| private float[] |
| Access | Constructor and Description |
|---|---|
| public | BillboardParticleBatch(ParticleShader.
Allow to use GPU instead of CPU useGPU, int Max particle displayed capacity, BlendingAttribute Blending attribute used by the batch blendingAttribute, DepthTestAttribute DepthTest attribute used by the batch depthTestAttribute)Create a new BillboardParticleBatch |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | allocParticlesData(int capacity)
Implements abstract com.
|
| protected Renderable | |
| private void | |
| private void | |
| public void | begin()
Overrides com. Implements com. Must be called once before any drawing operation |
| private void | |
| private void | |
| private void | |
| private void | |
| protected void | flush(int[] offsets)
Implements abstract com. Sends the data to the gpu. |
| public ParticleShader. | |
| public BlendingAttribute | |
| public void | getRenderables(Array<Renderable> renderables, Pool<Renderable> pool)
Implements com. Returns |
| protected Shader | |
| public Texture | |
| private void | initRenderData()
Allocates all the require rendering resources like Renderables,Shaders,Meshes according to the current batch configuration. |
| public boolean | |
| public void | load(AssetManager manager, ResourceData<T> resources)
Implements com.
|
| private static void | putVertex(float[] vertices, int offset, float x, float y, float z, float u, float v, float scaleX, float scaleY, float cosRotation, float sinRotation, float r, float g, float b, float a)
|
| private static void | |
| public void | save(AssetManager manager, ResourceData<T> resources)
Implements com.
|
| public void | |
| public void | |
| public void | |
| public void |
| blendingAttribute | back to summary |
|---|---|
| protected BlendingAttribute blendingAttribute | |
| CPU_ATTRIBUTES | back to summary |
|---|---|
| private static final VertexAttributes CPU_ATTRIBUTES | |
| CPU_COLOR_OFFSET | back to summary |
|---|---|
| private static final int CPU_COLOR_OFFSET | |
| CPU_POSITION_OFFSET | back to summary |
|---|---|
| private static final int CPU_POSITION_OFFSET | |
| CPU_UV_OFFSET | back to summary |
|---|---|
| private static final int CPU_UV_OFFSET | |
| CPU_VERTEX_SIZE | back to summary |
|---|---|
| private static final int CPU_VERTEX_SIZE | |
| currentAttributes | back to summary |
|---|---|
| private VertexAttributes currentAttributes | |
| currentVertexSize | back to summary |
|---|---|
| private int currentVertexSize | |
| depthTestAttribute | back to summary |
|---|---|
| protected DepthTestAttribute depthTestAttribute | |
| directionUsage | back to summary |
|---|---|
| protected static final int directionUsage | |
| GPU_ATTRIBUTES | back to summary |
|---|---|
| private static final VertexAttributes GPU_ATTRIBUTES | |
| GPU_COLOR_OFFSET | back to summary |
|---|---|
| private static final int GPU_COLOR_OFFSET | |
| GPU_POSITION_OFFSET | back to summary |
|---|---|
| private static final int GPU_POSITION_OFFSET | |
| GPU_SIZE_ROTATION_OFFSET | back to summary |
|---|---|
| private static final int GPU_SIZE_ROTATION_OFFSET | |
| GPU_UV_OFFSET | back to summary |
|---|---|
| private static final int GPU_UV_OFFSET | |
| GPU_VERTEX_SIZE | back to summary |
|---|---|
| private static final int GPU_VERTEX_SIZE | |
| indices | back to summary |
|---|---|
| private short[] indices | |
| MAX_PARTICLES_PER_MESH | back to summary |
|---|---|
| private static final int MAX_PARTICLES_PER_MESH | |
| MAX_VERTICES_PER_MESH | back to summary |
|---|---|
| private static final int MAX_VERTICES_PER_MESH | |
| mode | back to summary |
|---|---|
| protected ParticleShader. | |
| renderablePool | back to summary |
|---|---|
| private BillboardParticleBatch. | |
| renderables | back to summary |
|---|---|
| private Array<Renderable> renderables | |
| shader | back to summary |
|---|---|
| pack-priv Shader shader | |
| sizeAndRotationUsage | back to summary |
|---|---|
| protected static final int sizeAndRotationUsage | |
| texture | back to summary |
|---|---|
| protected Texture texture | |
| TMP_M3 | back to summary |
|---|---|
| protected static final Matrix3 TMP_M3 | |
| TMP_V1 | back to summary |
|---|---|
| protected static final Vector3 TMP_V1 | |
| TMP_V2 | back to summary |
|---|---|
| protected static final Vector3 TMP_V2 | |
| TMP_V3 | back to summary |
|---|---|
| protected static final Vector3 TMP_V3 | |
| TMP_V4 | back to summary |
|---|---|
| protected static final Vector3 TMP_V4 | |
| TMP_V5 | back to summary |
|---|---|
| protected static final Vector3 TMP_V5 | |
| TMP_V6 | back to summary |
|---|---|
| protected static final Vector3 TMP_V6 | |
| useGPU | back to summary |
|---|---|
| protected boolean useGPU | |
| vertices | back to summary |
|---|---|
| private float[] vertices | |
| BillboardParticleBatch | back to summary |
|---|---|
| public BillboardParticleBatch(ParticleShader. Create a new BillboardParticleBatch
| |
| BillboardParticleBatch | back to summary |
|---|---|
| public BillboardParticleBatch(ParticleShader. | |
| BillboardParticleBatch | back to summary |
|---|---|
| public BillboardParticleBatch() | |
| BillboardParticleBatch | back to summary |
|---|---|
| public BillboardParticleBatch(int capacity) | |
| allocIndices | back to summary |
|---|---|
| private void allocIndices() | |
| allocParticlesData | back to summary |
|---|---|
| public void allocParticlesData(int capacity) Implements abstract com.
| |
| allocRenderable | back to summary |
|---|---|
| protected Renderable allocRenderable() | |
| allocRenderables | back to summary |
|---|---|
| private void allocRenderables(int capacity) | |
| allocShader | back to summary |
|---|---|
| private void allocShader() | |
| begin | back to summary |
|---|---|
| public void begin() Overrides com. Implements com. Doc from com. Must be called once before any drawing operation
| |
| clearRenderablesPool | back to summary |
|---|---|
| private void clearRenderablesPool() | |
| fillVerticesGPU | back to summary |
|---|---|
| private void fillVerticesGPU(int[] particlesOffset) | |
| fillVerticesToScreenCPU | back to summary |
|---|---|
| private void fillVerticesToScreenCPU(int[] particlesOffset) | |
| fillVerticesToViewPointCPU | back to summary |
|---|---|
| private void fillVerticesToViewPointCPU(int[] particlesOffset) | |
| flush | back to summary |
|---|---|
| protected void flush(int[] offsets) Implements abstract com. Doc from com. Sends the data to the gpu. This method must use the calculated offsets to build the particles meshes. The offsets represent the position at which a particle should be placed into the vertex array.
| |
| getAlignMode | back to summary |
|---|---|
| public ParticleShader. | |
| getBlendingAttribute | back to summary |
|---|---|
| public BlendingAttribute getBlendingAttribute() | |
| getRenderables | back to summary |
|---|---|
| public void getRenderables(Array<Renderable> renderables, Pool<Renderable> pool) Implements com. Doc from com. Returns
| |
| getShader | back to summary |
|---|---|
| protected Shader getShader(Renderable renderable) | |
| getTexture | back to summary |
|---|---|
| public Texture getTexture() | |
| initRenderData | back to summary |
|---|---|
| private void initRenderData() Allocates all the require rendering resources like Renderables,Shaders,Meshes according to the current batch configuration. | |
| isUseGPU | back to summary |
|---|---|
| public boolean isUseGPU() | |
| load | back to summary |
|---|---|
| public void load(AssetManager manager, ResourceData<T> resources) Implements com.
| |
| putVertex | back to summary |
|---|---|
| private static void putVertex(float[] vertices, int offset, float x, float y, float z, float u, float v, float scaleX, float scaleY, float cosRotation, float sinRotation, float r, float g, float b, float a) | |
| putVertex | back to summary |
|---|---|
| private static void putVertex(float[] vertices, int offset, Vector3 p, float u, float v, float r, float g, float b, float a) | |
| save | back to summary |
|---|---|
| public void save(AssetManager manager, ResourceData<T> resources) Implements com.
| |
| setAlignMode | back to summary |
|---|---|
| public void setAlignMode(ParticleShader. Sets the current align mode. It will reallocate internal data, use only when necessary. | |
| setTexture | back to summary |
|---|---|
| public void setTexture(Texture texture) | |
| setUseGpu | back to summary |
|---|---|
| public void setUseGpu(boolean useGPU) Sets the current align mode. It will reallocate internal data, use only when necessary. | |
| setVertexData | back to summary |
|---|---|
| public void setVertexData() Sets vertex attributes and size | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ParticleShader. | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| mode | back to summary |
|---|---|
| pack-priv ParticleShader. | |
| useGPU | back to summary |
|---|---|
| pack-priv boolean useGPU | |
| Config | back to summary |
|---|---|
| public Config() | |
| Config | back to summary |
|---|---|
| public Config(boolean useGPU, ParticleShader. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Renderable |
| RenderablePool | back to summary |
|---|---|
| public RenderablePool() | |
| newObject | back to summary |
|---|---|
| public Renderable newObject() Implements abstract com.
| |