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 class
SpriteRenderer.RenderState
static class
SpriteRenderer.RingBuffer
-
Field Summary
Fields Modifier and Type Field Description boolean
bDoAdditive
boolean
DoingRender
int
drawNumSprites
TextureDraw[]
drawsprite
Style[]
drawstyle
static SpriteRenderer
instance
int
numSprites
static SpriteRenderer.RingBuffer
ringBuffer
TextureDraw[]
sprite
SpriteRenderer.RenderState
state
SpriteRenderer.RenderState[]
states
Style[]
style
-
Constructor Summary
Constructors Constructor Description SpriteRenderer()
-
Method Summary
Modifier and Type Method Description void
CheckSpriteSlots()
void
clearAltSprites()
void
clearSprites()
void
create()
void
doAdditive(boolean b)
void
drawModel(ModelManager.ModelSlot model)
void
glAlphaFunc(int a, float b)
void
glBind(int a)
void
glBlendFunc(int a, int b)
void
glBuffer(int i, int p)
void
glClear(int a)
void
glColorMask(int a, int b, int c, int d)
void
glDisable(int a)
void
glDoEndFrame()
void
glDoStartFrame(int w, int h, int player)
void
glDoStartFrame(int w, int h, int player, boolean isTextFrame)
void
glEnable(int a)
void
glGenerateMipMaps(int a)
void
glLoadIdentity()
void
glStencilFunc(int a, int b, int c)
void
glStencilMask(int a)
void
glStencilOp(int a, int b, int c)
void
glTexParameteri(int a, int b, int c)
void
glViewport(int a, int b, int c, int d)
void
PopIso()
void
postRender()
void
preRender()
void
pushFrameDown()
void
PushIso()
void
render(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a)
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)
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)
void
render(Texture tex, float x, float y, float width, float height, int c)
void
render(Texture tex, int x, int y, int width, int height, float r, float g, float b, float a)
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)
void
render(Texture tex, int x, int y, int width, int height, int c)
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)
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)
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)
void
renderflipped(Texture tex, float x, float y, float width, float height, float r, float g, float b, float a)
void
renderflipped(Texture tex, float x, float y, int width, int height, int c)
void
renderflipped(Texture tex, int x, int y, int width, int height, float r, float g, float b, float a)
void
renderflipped(Texture tex, int x, int y, int width, int height, int c)
void
renderline(Texture tex, int x1, int y1, int x2, int y2, float r, float g, float b, float a)
void
renderline(Texture tex, int x1, int y1, int x2, int y2, float r, float g, float b, float a, int thickness)
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)
void
renderRect(int x, int y, int width, int height, float r, float g, float b, float a)
void
ShaderUpdate(int shaderID, int uniform, float uniformValue)
void
StartShader(int iD, int playerIndex)
void
toBodyAtlas(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 -
bDoAdditive
public boolean bDoAdditive -
DoingRender
public boolean DoingRender -
state
-
states
-
-
Constructor Details
-
SpriteRenderer
public SpriteRenderer()
-
-
Method Details
-
CheckSpriteSlots
public void CheckSpriteSlots() -
create
public void create() -
clearAltSprites
public void clearAltSprites() -
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
-
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) -
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) -
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()
-