stapip patch

This commit is contained in:
h4570
2022-08-10 17:46:07 +02:00
parent 420a2d3eae
commit 725c17f9d4
12 changed files with 33 additions and 12 deletions
@@ -42,6 +42,8 @@ class StaPipBagPackagesBBox {
/** @brief Get amount of vertices */
const u32& getVertexCount() const;
const std::vector<CoreBBox>& getParts() const { return *bboxParts; }
/**
* @brief For example if we want to build a bbox from 96-112 vertices, we
* should input index = 3, partsSize = 1
@@ -97,7 +97,6 @@ class StaPipQBufferRenderer {
packet2_t** packets;
StaPipVU1Program** dBufferPrograms;
StaPipQBuffer** buffers;
packet2_t* currentPacket;
packet2_t* staticDataPacket;
packet2_t* objectDataPacket;
@@ -31,6 +31,7 @@ class CoreBBox {
const u32& startIndex, const u32& stopIndex);
const Vec4& operator[](const u8& i) { return _vertices[i]; }
const u8 getVertexCount() { return 8; }
const Vec4& getVertex(const u8& i) { return _vertices[i]; }
Vec4* getVertices() { return _vertices; }