Package foundry.veil.api.quasar.particle
Class RenderStyle.Cube
java.lang.Object
foundry.veil.api.quasar.particle.RenderStyle
foundry.veil.api.quasar.particle.RenderStyle.Cube
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource
- Enclosing class:
RenderStyle
-
Nested Class Summary
Nested classes/interfaces inherited from class foundry.veil.api.quasar.particle.RenderStyle
RenderStyle.Billboard, RenderStyle.Cube -
Field Summary
Fields inherited from class foundry.veil.api.quasar.particle.RenderStyle
bufferSize, CODEC, instanceVBO, maxParticles, MIN_PARTICLES, vertexArray -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.mojang.blaze3d.vertex.MeshDataprotected voidputBufferData(QuasarParticle particle, net.minecraft.client.Camera camera, ByteBuffer buffer) Put information about each particle into the vertex attribute array.protected voidsetupBufferState(VertexArrayBuilder builder) Set up the vertex attribute arrays to use for each particle.Methods inherited from class foundry.veil.api.quasar.particle.RenderStyle
clear, free, getRenderType, init, render, setupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lwjgl.system.NativeResource
close
-
Constructor Details
-
Cube
public Cube()
-
-
Method Details
-
createMesh
protected com.mojang.blaze3d.vertex.MeshData createMesh()- Specified by:
createMeshin classRenderStyle- Returns:
- The MeshData to use for each particle.
-
setupBufferState
Description copied from class:RenderStyleSet up the vertex attribute arrays to use for each particle.- Specified by:
setupBufferStatein classRenderStyle- Parameters:
builder- The builder associated with the VertexArray
-
putBufferData
protected void putBufferData(QuasarParticle particle, net.minecraft.client.Camera camera, ByteBuffer buffer) Description copied from class:RenderStylePut information about each particle into the vertex attribute array.- Specified by:
putBufferDatain classRenderStyle- Parameters:
particle- The particle being loadedcamera- The camera rendering the particlesbuffer- The buffer of the current VertexArray
-