mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-10-31 15:45:06 -04:00
apply suggestions by @Erotemic and @Emill
This commit is contained in:
parent
edc20b637d
commit
16bdea14c1
@ -32,7 +32,7 @@ void OTRExporter_Array::Save(ZResource* res, const fs::path& outPath, BinaryWrit
|
|||||||
writer->Write((uint32_t)vec->scalarType);
|
writer->Write((uint32_t)vec->scalarType);
|
||||||
writer->Write((uint32_t)vec->dimensions);
|
writer->Write((uint32_t)vec->dimensions);
|
||||||
|
|
||||||
for (uint32_t k = 0; k < vec->dimensions; k++)
|
for (size_t k = 0; k < vec->dimensions; k++)
|
||||||
{
|
{
|
||||||
// OTRTODO: Duplicate code here. Cleanup at a later date...
|
// OTRTODO: Duplicate code here. Cleanup at a later date...
|
||||||
switch (vec->scalarType)
|
switch (vec->scalarType)
|
||||||
|
@ -19,9 +19,9 @@ Gfx __sCircleDList[] = {
|
|||||||
G_AC_NONE | G_ZS_PIXEL | G_RM_XLU_SURF | G_RM_XLU_SURF2), // 4
|
G_AC_NONE | G_ZS_PIXEL | G_RM_XLU_SURF | G_RM_XLU_SURF2), // 4
|
||||||
gsDPSetCombineMode(G_CC_BLENDPEDECALA, G_CC_BLENDPEDECALA), // 5
|
gsDPSetCombineMode(G_CC_BLENDPEDECALA, G_CC_BLENDPEDECALA), // 5
|
||||||
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON), // 6
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON), // 6
|
||||||
gsDPLoadTextureBlock(0x08000001, G_IM_FMT_I, G_IM_SIZ_8b, 16, 64, 0, G_TX_NOMIRROR | G_TX_WRAP, // 7
|
gsDPLoadTextureBlock(SEG_ADDR(8, 0), G_IM_FMT_I, G_IM_SIZ_8b, 16, 64, 0, G_TX_NOMIRROR | G_TX_WRAP, // 7
|
||||||
G_TX_NOMIRROR | G_TX_CLAMP, 4, 6, G_TX_NOLOD, G_TX_NOLOD),
|
G_TX_NOMIRROR | G_TX_CLAMP, 4, 6, G_TX_NOLOD, G_TX_NOLOD),
|
||||||
gsSPDisplayList(0x09000001), // 8
|
gsSPDisplayList(SEG_ADDR(9, 0)), // 8
|
||||||
gsSPVertex(sCircleWipeVtx, 32, 0), // 9
|
gsSPVertex(sCircleWipeVtx, 32, 0), // 9
|
||||||
gsSP2Triangles(0, 1, 2, 0, 1, 3, 4, 0), // 10
|
gsSP2Triangles(0, 1, 2, 0, 1, 3, 4, 0), // 10
|
||||||
gsSP2Triangles(3, 5, 6, 0, 5, 7, 8, 0), // 11
|
gsSP2Triangles(3, 5, 6, 0, 5, 7, 8, 0), // 11
|
||||||
|
Loading…
Reference in New Issue
Block a user