1
0

Implement BG/SPPAGE

This commit is contained in:
otya128
2016-12-07 23:04:20 +09:00
parent 02fad28c82
commit d9161a07e0
3 changed files with 33 additions and 5 deletions

View File

@@ -584,6 +584,7 @@ class Sprite
SpriteBucket[] buckets;
SpriteBucket* listptr;
SpriteBucket* bucketsptr;
int sppage;
void render()
{
if ((!visibles[0] && !visibles[1]) || (petitcom.xscreenmode == 2 && !visibles[0]))
@@ -665,7 +666,7 @@ class Sprite
dish2 = 480f;
dis = -1;
}
auto texture = petitcom.graphic.GRP[petitcom.sppage].glTexture;
auto texture = petitcom.graphic.GRP[sppage].glTexture;
float aspect = disw2 / dish2;
float z = -0.01f;
int spmax = petitcom.xscreenmode == 1 ? this.spmax : 512;//XSCREENが2,3じゃないと下画面は描画しない