Class SpriteRenderer
java.lang.Object
zombie.core.SpriteRenderer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic final SpriteRendererfinal SpriteRendererStatesstatic final intstatic final SpriteRenderer.RingBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacquireStateForRendering(BooleanSupplier waitCallback) voidbeginProfile(PerformanceProfileProbe performanceProfileProbe) voidvoidvoidvoidcreate()voiddoCoreIntParam(int id, float val) drawGeneric(TextureDraw.GenericDrawer genericDrawer) voiddrawModel(ModelManager.ModelSlot model) voiddrawParticles(int playerIndex, int var1, int var2) voiddrawPuddles(int int0, int int1, int int2, int int3) voiddrawSkyBox(Shader shader, int playerIndex, int apiId, int bufferId) voidvoidendProfile(PerformanceProfileProbe performanceProfileProbe) voidvoidvoidFBORenderChunkStart(int int0, boolean boolean0) booleanintfloatfloatfloatgetRenderingPlayerCamera(int userId) intintstatic longvoidglAlphaFunc(int a, float b) voidglBind(int a) voidglBindFramebuffer(int int0, int int1) voidglBlendEquation(int a) voidglBlendFunc(int a, int b) voidglBlendFuncSeparate(int a, int b, int c, int d) voidglBuffer(int i, int p) voidglClear(int a) voidglClearColor(int r, int g, int b, int a) voidglClearDepth(float float0) voidglColorMask(int a, int b, int c, int d) voidglDepthFunc(int int0) voidglDepthMask(boolean b) voidglDisable(int a) voidvoidglDoEndFrameFx(int player) voidglDoStartFrame(int w, int h, float zoom, int player) voidglDoStartFrame(int w, int h, float zoom, int player, boolean isTextFrame) voidglDoStartFrameFlipY(int int0, int int1, float float0, int int2) voidglDoStartFrameFx(int w, int h, int player) voidglDoStartFrameNoZoom(int int0, int int1, float float0, int int2) voidglEnable(int a) voidglGenerateMipMaps(int a) voidglIgnoreStyles(boolean b) voidvoidglStencilFunc(int a, int b, int c) voidglStencilMask(int a) voidglStencilOp(int a, int b, int c) voidglTexParameteri(int a, int b, int c) voidglViewport(int x, int y, int width, int height) voidinitFromIsoCamera(int nPlayer) booleanbooleanbooleanvoidNewFrame()voidvoidvoidvoidvoidvoidpushIsoView(float float0, float float1, float float2, float float3, boolean boolean0) voidvoidrender(imgui.ImDrawData imDrawData) voidrender(Texture texture, double double0, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9, double double10, double double11, double double12, double double13, double double14, double double15, float float0, float float1, float float2, float float3) voidrender(Texture tex, double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2, float r3, float g3, float b3, float a3, float r4, float g4, float b4, float a4, Consumer<TextureDraw> texdModifier) voidrender(Texture tex, double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, float r, float g, float b, float a, Consumer<TextureDraw> texdModifier) voidrender(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a, float u1, float v1, float u2, float v2, float u3, float v3, float u4, float v4) voidrender(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a, float u1, float v1, float u2, float v2, float u3, float v3, float u4, float v4, Consumer<TextureDraw> texdModifier) voidrender(Texture tex, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, int c1, int c2, int c3, int c4) voidrender(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a, Consumer<TextureDraw> texdModifier) voidrender(Texture texture0, Texture texture1, float float0, float float1, float float2, float float3, float float4, float float5, float float6, float float7, Consumer<TextureDraw> consumer) voidrenderClamped(Texture tex, int x, int y, int width, int height, int clampX, int clampY, int clampW, int clampH, float r, float g, float b, float a, Consumer<TextureDraw> texdModifier) voidrenderdebug(Texture tex, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2, float r3, float g3, float b3, float a3, float r4, float g4, float b4, float a4, Consumer<TextureDraw> texdModifier) voidrenderflipped(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a, Consumer<TextureDraw> texdModifier) voidrenderi(Texture tex, int x, int y, int width, int height, float r, float g, float b, float a, Consumer<TextureDraw> texdModifier) voidrenderline(Texture tex, int x1, int y1, int x2, int y2, float r, float g, float b, float a) voidrenderline(Texture texture, int int3, int int2, int int1, int int0, float float0, float float1, float float2, float float3, float float4) voidrenderlinef(Texture texture, float float0, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9) voidrenderlinef(Texture texture, float float0, float float1, float float2, float float3, float float4, float float5, float float6, float float7, int int0) voidrenderPoly(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float r, float g, float b, float a) voidrenderPoly(Texture tex, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float r, float g, float b, float a) voidrenderPoly(Texture tex, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float r, float g, float b, float a, float u1, float v1, float u2, float v2, float u3, float v3, float u4, float v4) voidvoidrenderRect(int x, int y, int width, int height, float r, float g, float b, float a) voidsetCutawayTexture(Texture tex, int x, int y, int w, int h) voidsetCutawayTexture2(Texture texture, int int0, int int1, int int2, int int3) voidsetDefaultStyle(AbstractStyle style) voidsetDoAdditive(boolean bDoAdditive) voidsetExtraWallShaderParams(SpriteRenderer.WallShaderTexRender wallTexRender) voidsetRenderingPlayerIndex(int player) voidsetUseVertColorsArray(byte whichShader, int c0, int c1, int c2, int c3) voidShaderUpdate1f(int shaderID, int uniform, float uniformValue) voidShaderUpdate1i(int shaderID, int uniform, int uniformValue) voidShaderUpdate2f(int shaderID, int uniform, float value1, float value2) voidShaderUpdate3f(int shaderID, int uniform, float value1, float value2, float value3) voidShaderUpdate4f(int shaderID, int uniform, float value1, float value2, float value3, float value4) voidvoidStartShader(int iD, int playerIndex) voidStartShader(int int0, int int1, ShaderUniformSetter shaderUniformSetter) void
-
Field Details
-
instance
-
ringBuffer
-
NUM_RENDER_STATES
public static final int NUM_RENDER_STATES- See Also:
-
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 b) -
renderflipped
public void renderflipped(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a, Consumer<TextureDraw> texdModifier) -
drawModel
-
renderQueued
public void renderQueued() -
beginProfile
-
endProfile
-
drawSkyBox
-
drawWater
-
drawPuddles
public void drawPuddles(int int0, int int1, int int2, int int3) -
drawParticles
public void drawParticles(int playerIndex, int var1, int var2) -
drawGeneric
-
glDisable
public void glDisable(int a) -
glEnable
public void glEnable(int a) -
NewFrame
public void NewFrame() -
glDepthFunc
public void glDepthFunc(int int0) -
glStencilMask
public void glStencilMask(int a) -
glClear
public void glClear(int a) -
glBindFramebuffer
public void glBindFramebuffer(int int0, int int1) -
glClearColor
public void glClearColor(int r, int g, int b, int a) -
glClearDepth
public void glClearDepth(float float0) -
glStencilFunc
public void glStencilFunc(int a, int b, int c) -
glStencilOp
public void glStencilOp(int a, int b, int c) -
glColorMask
public void glColorMask(int a, int b, int c, int d) -
glAlphaFunc
public void glAlphaFunc(int a, float b) -
glBlendFunc
public void glBlendFunc(int a, int b) -
glBlendFuncSeparate
public void glBlendFuncSeparate(int a, int b, int c, int d) -
glBlendEquation
public void glBlendEquation(int a) -
render
public void render(Texture tex, double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, float r, float g, float b, float a, Consumer<TextureDraw> texdModifier) -
render
public void render(Texture tex, double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2, float r3, float g3, float b3, float a3, float r4, float g4, float b4, float a4, Consumer<TextureDraw> texdModifier) -
render
public void render(Texture texture, double double0, double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9, double double10, double double11, double double12, double double13, double double14, double double15, float float0, float float1, float float2, float float3) -
renderdebug
public void renderdebug(Texture tex, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2, float r3, float g3, float b3, float a3, float r4, float g4, float b4, float a4, Consumer<TextureDraw> texdModifier) -
renderline
public void renderline(Texture texture, int int3, int int2, int int1, int int0, float float0, float float1, float float2, float float3, float float4) -
renderline
public void renderline(Texture tex, int x1, int y1, int x2, int y2, float r, float g, float b, float a) -
renderlinef
public void renderlinef(Texture texture, float float0, float float1, float float2, float float3, float float4, float float5, float float6, float float7, int int0) -
renderlinef
public void renderlinef(Texture texture, float float0, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9) -
render
public void render(Texture tex, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, int c1, int c2, int c3, int c4) -
render
public void render(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a, Consumer<TextureDraw> texdModifier) -
render
public void render(Texture texture0, Texture texture1, float float0, float float1, float float2, float float3, float float4, float float5, float float6, float float7, Consumer<TextureDraw> consumer) -
renderi
public void renderi(Texture tex, int x, int y, int width, int height, float r, float g, float b, float a, Consumer<TextureDraw> texdModifier) -
renderClamped
public void renderClamped(Texture tex, int x, int y, int width, int height, int clampX, int clampY, int clampW, int clampH, float r, float g, float b, float a, Consumer<TextureDraw> texdModifier) -
renderRect
public void renderRect(int x, int y, int width, int height, float r, float g, float b, float a) -
renderPoly
public void renderPoly(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float r, float g, float b, float a) -
renderPoly
public void renderPoly(Texture tex, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float r, float g, float b, float a) -
renderPoly
public void renderPoly(Texture tex, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float r, float g, float b, float a, float u1, float v1, float u2, float v2, float u3, float v3, float u4, float v4) -
render
public void render(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a, float u1, float v1, float u2, float v2, float u3, float v3, float u4, float v4) -
render
public void render(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a, float u1, float v1, float u2, float v2, float u3, float v3, float u4, float v4, Consumer<TextureDraw> texdModifier) -
prePopulating
public void prePopulating() -
postRender
public void postRender() -
notifyRenderStateQueue
public void notifyRenderStateQueue() -
glBuffer
public void glBuffer(int i, int p) -
glDoStartFrame
public void glDoStartFrame(int w, int h, float zoom, int player) -
FBORenderChunkStart
public void FBORenderChunkStart(int int0, boolean boolean0) -
FBORenderChunkEnd
public void FBORenderChunkEnd() -
glDoStartFrame
public void glDoStartFrame(int w, int h, float zoom, int player, boolean isTextFrame) -
glDoStartFrameFlipY
public void glDoStartFrameFlipY(int int0, int int1, float float0, int int2) -
glDoStartFrameNoZoom
public void glDoStartFrameNoZoom(int int0, int int1, float float0, int int2) -
glDoStartFrameFx
public void glDoStartFrameFx(int w, int h, int player) -
glIgnoreStyles
public void glIgnoreStyles(boolean b) -
glDoEndFrame
public void glDoEndFrame() -
pushIsoView
public void pushIsoView(float float0, float float1, float float2, float float3, boolean boolean0) -
popIsoView
public void popIsoView() -
glDoEndFrameFx
public void glDoEndFrameFx(int player) -
doCoreIntParam
public void doCoreIntParam(int id, float val) -
glTexParameteri
public void glTexParameteri(int a, int b, int c) -
StartShader
public void StartShader(int iD, int playerIndex) -
StartShader
-
EndShader
public void EndShader() -
setCutawayTexture
-
clearCutawayTexture
public void clearCutawayTexture() -
setCutawayTexture2
-
setUseVertColorsArray
public void setUseVertColorsArray(byte whichShader, int c0, int c1, int c2, int c3) -
clearUseVertColorsArray
public void clearUseVertColorsArray() -
setExtraWallShaderParams
-
ShaderUpdate1i
public void ShaderUpdate1i(int shaderID, int uniform, int uniformValue) -
ShaderUpdate1f
public void ShaderUpdate1f(int shaderID, int uniform, float uniformValue) -
ShaderUpdate2f
public void ShaderUpdate2f(int shaderID, int uniform, float value1, float value2) -
ShaderUpdate3f
public void ShaderUpdate3f(int shaderID, int uniform, float value1, float value2, float value3) -
ShaderUpdate4f
public void ShaderUpdate4f(int shaderID, int uniform, float value1, float value2, float value3, float value4) -
glLoadIdentity
public void glLoadIdentity() -
glGenerateMipMaps
public void glGenerateMipMaps(int a) -
glBind
public void glBind(int a) -
releaseFBORenderChunkLock
public void releaseFBORenderChunkLock() -
glViewport
public void glViewport(int x, int y, int width, int height) -
render
public void render(imgui.ImDrawData imDrawData) -
startOffscreenUI
public void startOffscreenUI() -
stopOffscreenUI
public void stopOffscreenUI() -
getWaitTime
public static long getWaitTime() -
pushFrameDown
public void pushFrameDown() -
acquireStateForRendering
-
getMainStateIndex
public int getMainStateIndex() -
getRenderStateIndex
public int getRenderStateIndex() -
getDoAdditive
public boolean getDoAdditive() -
setDefaultStyle
-
setDoAdditive
public void setDoAdditive(boolean bDoAdditive) -
initFromIsoCamera
public void initFromIsoCamera(int nPlayer) -
setRenderingPlayerIndex
public void setRenderingPlayerIndex(int player) -
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()
-