Package zombie.core
Class SpriteRenderer
java.lang.Object
zombie.core.SpriteRenderer
public final class SpriteRenderer
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpriteRenderer.RingBuffer
static class
SpriteRenderer.WallShaderTexRender
-
Field Summary
Fields Modifier and Type Field Description static boolean
GL_BLENDFUNC_ENABLED
static SpriteRenderer
instance
SpriteRendererStates
m_states
static int
NUM_RENDER_STATES
static SpriteRenderer.RingBuffer
ringBuffer
-
Constructor Summary
Constructors Constructor Description SpriteRenderer()
-
Method Summary
Modifier and Type Method Description SpriteRenderState
acquireStateForRendering(java.util.function.BooleanSupplier booleanSupplier)
protected void
buildStateDrawBuffer(SpriteRenderState spriteRenderState)
protected void
buildStateUIDrawBuffer(SpriteRenderState spriteRenderState)
void
clearCutawayTexture()
void
clearSprites()
void
clearUseVertColorsArray()
void
create()
void
doCoreIntParam(int int1, float float1)
void
drawGeneric(TextureDraw.GenericDrawer genericDrawer)
void
drawModel(ModelManager.ModelSlot modelSlot)
void
drawParticles(int int1, int int2, int int3)
void
drawPuddles(Shader shader, int int1, int int2, int int3)
void
drawSkyBox(Shader shader, int int1, int int2, int int3)
void
drawWater(Shader shader, int int1, int int2, boolean boolean1)
void
EndShader()
boolean
getDoAdditive()
int
getMainStateIndex()
float
getPlayerMaxZoom()
float
getPlayerMinZoom()
float
getPlayerZoomLevel()
SpriteRenderState
getPopulatingState()
PlayerCamera
getRenderingPlayerCamera(int int1)
int
getRenderingPlayerIndex()
SpriteRenderState
getRenderingState()
int
getRenderStateIndex()
void
glAlphaFunc(int int1, float float1)
void
glBind(int int1)
void
glBlendEquation(int int1)
void
glBlendFunc(int int1, int int2)
void
glBlendFuncSeparate(int int1, int int2, int int3, int int4)
void
glBuffer(int int1, int int2)
void
glClear(int int1)
void
glClearColor(int int1, int int2, int int3, int int4)
void
glColorMask(int int1, int int2, int int3, int int4)
void
glDepthMask(boolean boolean1)
void
glDisable(int int1)
void
glDoEndFrame()
void
glDoEndFrameFx(int int1)
void
glDoStartFrame(int int1, int int2, float float1, int int3)
void
glDoStartFrame(int int1, int int2, float float1, int int3, boolean boolean1)
void
glDoStartFrameFx(int int1, int int2, int int3)
void
glEnable(int int1)
void
glGenerateMipMaps(int int1)
void
glIgnoreStyles(boolean boolean1)
void
glLoadIdentity()
void
glStencilFunc(int int1, int int2, int int3)
void
glStencilMask(int int1)
void
glStencilOp(int int1, int int2, int int3)
void
glTexParameteri(int int1, int int2, int int3)
void
glViewport(int int1, int int2, int int3, int int4)
void
initFromIsoCamera(int int1)
boolean
isMaxZoomLevel()
boolean
isMinZoomLevel()
boolean
isWaitingForRenderState()
void
notifyRenderStateQueue()
void
postRender()
void
prePopulating()
void
pushFrameDown()
void
render(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16, java.util.function.Consumer consumer)
void
render(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, float float1, float float2, float float3, float float4, java.util.function.Consumer consumer)
void
render(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16)
void
render(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16, java.util.function.Consumer consumer)
void
render(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, int int1, int int2, int int3, int int4)
void
render(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, java.util.function.Consumer consumer)
void
renderClamped(Texture texture, int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8, float float1, float float2, float float3, float float4, java.util.function.Consumer consumer)
void
renderdebug(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16, float float17, float float18, float float19, float float20, float float21, float float22, float float23, float float24, java.util.function.Consumer consumer)
void
renderflipped(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, java.util.function.Consumer consumer)
void
renderi(Texture texture, int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, java.util.function.Consumer consumer)
void
renderline(Texture texture, int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4)
void
renderline(Texture texture, int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, int int5)
void
renderPoly(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12)
void
renderPoly(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12)
void
renderPoly(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16, float float17, float float18, float float19, float float20)
void
renderRect(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4)
void
setCutawayTexture(Texture texture, int int1, int int2, int int3, int int4)
void
setDefaultStyle(AbstractStyle abstractStyle)
void
setDoAdditive(boolean boolean1)
void
setExtraWallShaderParams(SpriteRenderer.WallShaderTexRender wallShaderTexRender)
void
setRenderingPlayerIndex(int int1)
void
setUseVertColorsArray(byte byte1, int int1, int int2, int int3, int int4)
void
ShaderUpdate1f(int int1, int int2, float float1)
void
ShaderUpdate1i(int int1, int int2, int int3)
void
ShaderUpdate2f(int int1, int int2, float float1, float float2)
void
ShaderUpdate3f(int int1, int int2, float float1, float float2, float float3)
void
ShaderUpdate4f(int int1, int int2, float float1, float float2, float float3, float float4)
void
startOffscreenUI()
void
StartShader(int int1, int int2)
void
stopOffscreenUI()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
ringBuffer
-
NUM_RENDER_STATES
public static final int NUM_RENDER_STATES- See Also:
- Constant Field Values
-
m_states
-
GL_BLENDFUNC_ENABLED
public static boolean GL_BLENDFUNC_ENABLED
-
-
Constructor Details
-
SpriteRenderer
public SpriteRenderer()
-
-
Method Details
-
create
public void create() -
clearSprites
public void clearSprites() -
glDepthMask
public void glDepthMask(boolean boolean1) -
renderflipped
public void renderflipped(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, java.util.function.Consumer consumer) -
drawModel
-
drawSkyBox
-
drawWater
-
drawPuddles
-
drawParticles
public void drawParticles(int int1, int int2, int int3) -
drawGeneric
-
glDisable
public void glDisable(int int1) -
glEnable
public void glEnable(int int1) -
glStencilMask
public void glStencilMask(int int1) -
glClear
public void glClear(int int1) -
glClearColor
public void glClearColor(int int1, int int2, int int3, int int4) -
glStencilFunc
public void glStencilFunc(int int1, int int2, int int3) -
glStencilOp
public void glStencilOp(int int1, int int2, int int3) -
glColorMask
public void glColorMask(int int1, int int2, int int3, int int4) -
glAlphaFunc
public void glAlphaFunc(int int1, float float1) -
glBlendFunc
public void glBlendFunc(int int1, int int2) -
glBlendFuncSeparate
public void glBlendFuncSeparate(int int1, int int2, int int3, int int4) -
glBlendEquation
public void glBlendEquation(int int1) -
render
public void render(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, float float1, float float2, float float3, float float4, java.util.function.Consumer consumer) -
render
public void render(Texture texture, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16, java.util.function.Consumer consumer) -
renderdebug
public void renderdebug(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16, float float17, float float18, float float19, float float20, float float21, float float22, float float23, float float24, java.util.function.Consumer consumer) -
renderline
public void renderline(Texture texture, int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, int int5) -
renderline
public void renderline(Texture texture, int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4) -
render
public void render(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, int int1, int int2, int int3, int int4) -
render
public void render(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, java.util.function.Consumer consumer) -
renderi
public void renderi(Texture texture, int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, java.util.function.Consumer consumer) -
renderClamped
public void renderClamped(Texture texture, int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8, float float1, float float2, float float3, float float4, java.util.function.Consumer consumer) -
renderRect
public void renderRect(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4) -
renderPoly
public void renderPoly(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12) -
renderPoly
public void renderPoly(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12) -
renderPoly
public void renderPoly(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16, float float17, float float18, float float19, float float20) -
render
public void render(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16) -
render
public void render(Texture texture, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16, java.util.function.Consumer consumer) -
prePopulating
public void prePopulating() -
postRender
public void postRender() -
buildStateDrawBuffer
-
buildStateUIDrawBuffer
-
notifyRenderStateQueue
public void notifyRenderStateQueue() -
glBuffer
public void glBuffer(int int1, int int2) -
glDoStartFrame
public void glDoStartFrame(int int1, int int2, float float1, int int3) -
glDoStartFrame
public void glDoStartFrame(int int1, int int2, float float1, int int3, boolean boolean1) -
glDoStartFrameFx
public void glDoStartFrameFx(int int1, int int2, int int3) -
glIgnoreStyles
public void glIgnoreStyles(boolean boolean1) -
glDoEndFrame
public void glDoEndFrame() -
glDoEndFrameFx
public void glDoEndFrameFx(int int1) -
doCoreIntParam
public void doCoreIntParam(int int1, float float1) -
glTexParameteri
public void glTexParameteri(int int1, int int2, int int3) -
StartShader
public void StartShader(int int1, int int2) -
EndShader
public void EndShader() -
setCutawayTexture
-
clearCutawayTexture
public void clearCutawayTexture() -
setUseVertColorsArray
public void setUseVertColorsArray(byte byte1, int int1, int int2, int int3, int int4) -
clearUseVertColorsArray
public void clearUseVertColorsArray() -
setExtraWallShaderParams
-
ShaderUpdate1i
public void ShaderUpdate1i(int int1, int int2, int int3) -
ShaderUpdate1f
public void ShaderUpdate1f(int int1, int int2, float float1) -
ShaderUpdate2f
public void ShaderUpdate2f(int int1, int int2, float float1, float float2) -
ShaderUpdate3f
public void ShaderUpdate3f(int int1, int int2, float float1, float float2, float float3) -
ShaderUpdate4f
public void ShaderUpdate4f(int int1, int int2, float float1, float float2, float float3, float float4) -
glLoadIdentity
public void glLoadIdentity() -
glGenerateMipMaps
public void glGenerateMipMaps(int int1) -
glBind
public void glBind(int int1) -
glViewport
public void glViewport(int int1, int int2, int int3, int int4) -
startOffscreenUI
public void startOffscreenUI() -
stopOffscreenUI
public void stopOffscreenUI() -
pushFrameDown
public void pushFrameDown() -
acquireStateForRendering
public SpriteRenderState acquireStateForRendering(java.util.function.BooleanSupplier booleanSupplier) -
getMainStateIndex
public int getMainStateIndex() -
getRenderStateIndex
public int getRenderStateIndex() -
getDoAdditive
public boolean getDoAdditive() -
setDefaultStyle
-
setDoAdditive
public void setDoAdditive(boolean boolean1) -
initFromIsoCamera
public void initFromIsoCamera(int int1) -
setRenderingPlayerIndex
public void setRenderingPlayerIndex(int int1) -
getRenderingPlayerIndex
public int getRenderingPlayerIndex() -
getRenderingPlayerCamera
-
getRenderingState
-
getPopulatingState
-
isMaxZoomLevel
public boolean isMaxZoomLevel() -
isMinZoomLevel
public boolean isMinZoomLevel() -
getPlayerZoomLevel
public float getPlayerZoomLevel() -
getPlayerMaxZoom
public float getPlayerMaxZoom() -
getPlayerMinZoom
public float getPlayerMinZoom() -
isWaitingForRenderState
public boolean isWaitingForRenderState()
-