summaryrefslogtreecommitdiffstats
path: root/src/render/Sprite2d.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-07 03:11:10 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-07 03:11:10 +0200
commit678a19ce3bfa8264dbd151baff7cabddbd65d598 (patch)
tree2458a2ea27a1de57180e52ac595f7d2fce8bb2f3 /src/render/Sprite2d.h
parentMerge branch 'master' into miami (diff)
downloadre3-678a19ce3bfa8264dbd151baff7cabddbd65d598.tar
re3-678a19ce3bfa8264dbd151baff7cabddbd65d598.tar.gz
re3-678a19ce3bfa8264dbd151baff7cabddbd65d598.tar.bz2
re3-678a19ce3bfa8264dbd151baff7cabddbd65d598.tar.lz
re3-678a19ce3bfa8264dbd151baff7cabddbd65d598.tar.xz
re3-678a19ce3bfa8264dbd151baff7cabddbd65d598.tar.zst
re3-678a19ce3bfa8264dbd151baff7cabddbd65d598.zip
Diffstat (limited to '')
-rw-r--r--src/render/Sprite2d.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/render/Sprite2d.h b/src/render/Sprite2d.h
index 04b40591..679ac496 100644
--- a/src/render/Sprite2d.h
+++ b/src/render/Sprite2d.h
@@ -3,21 +3,19 @@
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);
+ //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 +50,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();
};