summaryrefslogtreecommitdiffstats
path: root/src/render/Sprite2d.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-07 17:19:12 +0200
committerGitHub <noreply@github.com>2020-06-07 17:19:12 +0200
commit3f5ecbe007d5fef238e4f0f10ace9fac4deabaa6 (patch)
tree5ddffd6e6bf8e81ae0d9962117355844a6eea399 /src/render/Sprite2d.h
parentfix (diff)
parentcleanup (diff)
downloadre3-3f5ecbe007d5fef238e4f0f10ace9fac4deabaa6.tar
re3-3f5ecbe007d5fef238e4f0f10ace9fac4deabaa6.tar.gz
re3-3f5ecbe007d5fef238e4f0f10ace9fac4deabaa6.tar.bz2
re3-3f5ecbe007d5fef238e4f0f10ace9fac4deabaa6.tar.lz
re3-3f5ecbe007d5fef238e4f0f10ace9fac4deabaa6.tar.xz
re3-3f5ecbe007d5fef238e4f0f10ace9fac4deabaa6.tar.zst
re3-3f5ecbe007d5fef238e4f0f10ace9fac4deabaa6.zip
Diffstat (limited to 'src/render/Sprite2d.h')
-rw-r--r--src/render/Sprite2d.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/render/Sprite2d.h b/src/render/Sprite2d.h
index 04b40591..1adb5d49 100644
--- a/src/render/Sprite2d.h
+++ b/src/render/Sprite2d.h
@@ -3,21 +3,15 @@
class CSprite2d
{
static float RecipNearClip;
- static int32 mCurrentBank;
- static RwTexture *mpBankTextures[10];
- static int32 mCurrentSprite[10];
- static int32 mBankStart[10];
- static RwIm2DVertex maBankVertices[500];
+ static float NearScreenZ;
+ static int nextBufferVertex;
+ static int nextBufferIndex;
static RwIm2DVertex maVertices[8];
public:
RwTexture *m_pTexture;
static void SetRecipNearClip(void);
static void InitPerFrame(void);
- static int32 GetBank(int32 n, RwTexture *tex);
- static void AddSpriteToBank(int32 bank, const CRect &rect, const CRGBA &col,
- float u0, float v0, float u1, float v1, float u3, float v3, float u2, float v2);
- static void DrawBank(int32 bank);
CSprite2d(void) : m_pTexture(nil) {};
~CSprite2d(void) { Delete(); };
@@ -52,4 +46,8 @@ public:
static void Draw2DPolygon(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, const CRGBA &color);
static RwIm2DVertex* GetVertices() { return maVertices; };
+
+ static bool IsVertexBufferFull();
+ static void AddToBuffer(const CRect &a1, const CRGBA &a2, float a3, float a4, float a5, float a6, float a7, float a8, float a9, float a10);
+ static void RenderVertexBuffer();
};