Package zombie.core
Class SpriteRenderer
java.lang.Object
zombie.core.SpriteRenderer
public class SpriteRenderer
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSpriteRenderer.RenderStatestatic classSpriteRenderer.RingBuffer -
Field Summary
Fields Modifier and Type Field Description booleanbDoAdditivebooleanDoingRenderjava.util.ArrayListdrawnModelsintdrawNumSpritesTextureDraw[]drawspriteStyle[]drawstylestatic SpriteRendererinstancestatic intNUM_RENDER_STATESintnumSpritesstatic SpriteRenderer.RingBufferringBufferTextureDraw[]spriteSpriteRenderer.RenderStatestateSpriteRenderer.RenderState[]statesStyle[]style -
Constructor Summary
Constructors Constructor Description SpriteRenderer() -
Method Summary
Modifier and Type Method Description voidCheckSpriteSlots()voidclearSprites()voidcreate()voiddoAdditive(boolean b)voiddrawGeneric(TextureDraw.GenericDrawer gd)voiddrawModel(ModelManager.ModelSlot model)voidglAlphaFunc(int a, float b)voidglBind(int a)voidglBlendFunc(int a, int b)voidglBuffer(int i, int p)voidglClear(int a)voidglColorMask(int a, int b, int c, int d)voidglDisable(int a)voidglDoEndFrame()voidglDoStartFrame(int w, int h, int player)voidglDoStartFrame(int w, int h, int player, boolean isTextFrame)voidglEnable(int a)voidglGenerateMipMaps(int a)voidglLoadIdentity()voidglStencilFunc(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 a, int b, int c, int d)voidPopIso()voidpostRender()voidpreRender()voidpushFrameDown()voidPushIso()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)voidrender(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a)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 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, int c)voidrender(Texture tex, int x, int y, int width, int height, float r, float g, float b, float a)voidrender(Texture tex, int x, int y, int width, int 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, int x, int y, int width, int height, int c)voidrender(Texture tex, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int 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)voidrender(Texture tex, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, int c1, int c2, int c3, int c4)voidrenderdebug(Texture tex, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int 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)voidrenderflipped(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a)voidrenderflipped(Texture tex, float x, float y, int width, int height, int c)voidrenderflipped(Texture tex, int x, int y, int width, int height, float r, float g, float b, float a)voidrenderflipped(Texture tex, int x, int y, int width, int height, int c)voidrenderline(Texture tex, int x1, int y1, int x2, int y2, float r, float g, float b, float a)voidrenderline(Texture tex, int x1, int y1, int x2, int y2, float r, float g, float b, float a, int thickness)voidrenderPoly(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, float r, float g, float b, float a)voidrenderPoly(Texture tex, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, float r, float g, float b, float a)voidrenderRect(int x, int y, int width, int height, float r, float g, float b, float a)voidShaderUpdate(int shaderID, int uniform, float uniformValue)voidStartShader(int iD, int playerIndex)voidtoBodyAtlas(DeadBodyAtlas.RenderJob job)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
ringBuffer
-
sprite
-
drawsprite
-
style
-
drawstyle
-
numSprites
public volatile int numSprites -
drawNumSprites
public volatile int drawNumSprites -
drawnModels
public java.util.ArrayList drawnModels -
bDoAdditive
public boolean bDoAdditive -
DoingRender
public boolean DoingRender -
NUM_RENDER_STATES
public static final int NUM_RENDER_STATES- See Also:
- Constant Field Values
-
state
-
states
-
-
Constructor Details
-
SpriteRenderer
public SpriteRenderer()
-
-
Method Details
-
CheckSpriteSlots
public void CheckSpriteSlots() -
create
public void create() -
clearSprites
public void clearSprites() -
PushIso
public void PushIso() -
PopIso
public void PopIso() -
renderflipped
public void renderflipped(Texture tex, int x, int y, int width, int height, float r, float g, float b, float a) -
renderflipped
public void renderflipped(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a) -
renderflipped
-
renderflipped
-
drawModel
-
toBodyAtlas
-
drawGeneric
-
glDisable
public void glDisable(int a) -
doAdditive
public void doAdditive(boolean b) -
glEnable
public void glEnable(int a) -
glStencilMask
public void glStencilMask(int a) -
glClear
public void glClear(int a) -
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) -
render
public void render(Texture tex, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int 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) -
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) -
renderdebug
public void renderdebug(Texture tex, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int 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) -
render
public void render(Texture tex, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, int c1, int c2, int c3, int c4) -
renderline
public void renderline(Texture tex, int x1, int y1, int x2, int y2, float r, float g, float b, float a, int thickness) -
renderline
public void renderline(Texture tex, int x1, int y1, int x2, int y2, float r, float g, float b, float a) -
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) -
render
public void render(Texture tex, int x, int y, int width, int height, float r, float g, float b, float a) -
renderRect
public void renderRect(int x, int y, int width, int height, float r, float g, float b, float a) -
renderPoly
public void renderPoly(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, float r, float g, float b, float a) -
renderPoly
public void renderPoly(Texture tex, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, float r, float g, float b, float a) -
render
public void render(Texture tex, int x, int y, int width, int 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) -
render
-
render
-
preRender
public void preRender() -
postRender
public void postRender() -
glBuffer
public void glBuffer(int i, int p) -
glDoStartFrame
public void glDoStartFrame(int w, int h, int player) -
glDoStartFrame
public void glDoStartFrame(int w, int h, int player, boolean isTextFrame) -
glDoEndFrame
public void glDoEndFrame() -
glTexParameteri
public void glTexParameteri(int a, int b, int c) -
StartShader
public void StartShader(int iD, int playerIndex) -
ShaderUpdate
public void ShaderUpdate(int shaderID, int uniform, float uniformValue) -
glLoadIdentity
public void glLoadIdentity() -
glGenerateMipMaps
public void glGenerateMipMaps(int a) -
glBind
public void glBind(int a) -
glViewport
public void glViewport(int a, int b, int c, int d) -
pushFrameDown
public void pushFrameDown()
-