1
0

Remove no effect code

This commit is contained in:
otya128
2016-12-14 20:10:02 +09:00
parent 9b485d8999
commit 39d43995a7
2 changed files with 0 additions and 23 deletions

View File

@@ -294,7 +294,6 @@ class Console
{ {
glMatrixMode(GL_MODELVIEW); glMatrixMode(GL_MODELVIEW);
glLoadIdentity(); glLoadIdentity();
petitcom.chScreen(0, 0, 400, 240);
} }
synchronized(this) synchronized(this)
{ {

View File

@@ -376,13 +376,6 @@ class PetitComputer
{ {
glViewport(cast(int)(x * scaleX), cast(int)(y * scaleY), cast(int)(w * scaleX), cast(int)(h * scaleY)); glViewport(cast(int)(x * scaleX), cast(int)(y * scaleY), cast(int)(w * scaleX), cast(int)(h * scaleY));
} }
void chScreen(int x, int y, int w, int h)
{
glViewport2(x, y, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, w, h, 0, 1024, -2048);
}
void chScreen2(int x, int y, int w, int h) void chScreen2(int x, int y, int w, int h)
{ {
glViewport2(x, currentDisplay.yoffset - h - y, w, h); glViewport2(x, currentDisplay.yoffset - h - y, w, h);
@@ -634,7 +627,6 @@ class PetitComputer
graphic.GRPFWidth = console.GRPF.surface.w; graphic.GRPFWidth = console.GRPF.surface.w;
graphic.GRPFHeight = console.GRPF.surface.h; graphic.GRPFHeight = console.GRPF.surface.h;
console.GRPF.createTexture(renderer, textureScaleMode); console.GRPF.createTexture(renderer, textureScaleMode);
chScreen(0, 0, 400, 240);
glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
version(Windows) version(Windows)
@@ -683,16 +675,6 @@ class PetitComputer
synchronized(renderSync) synchronized(renderSync)
{ {
glLoadIdentity(); glLoadIdentity();
//graphic.draw();
chScreen(0, 0, 400, 240);
if(xscreenmode == 1)
{
chScreen(0, 240, 400, 240);
}
if(xscreenmode == 2)
{
chScreen(0, 0, 320, 480);
}
{ {
ubyte r, g, b, a; ubyte r, g, b, a;
RGBRead(petitcomBackcolor, r, g, b, a); RGBRead(petitcomBackcolor, r, g, b, a);
@@ -731,10 +713,6 @@ class PetitComputer
version(test) glLoadIdentity(); version(test) glLoadIdentity();
version(test) glRotatef(rot_test_deg, rot_test_x, rot_test_y, rot_test_z); version(test) glRotatef(rot_test_deg, rot_test_x, rot_test_y, rot_test_z);
if(xscreenmode == 1)
{
chScreen(0, 240, 400, 240);
}
//http://marina.sys.wakayama-u.ac.jp/~tokoi/?date=20081122 みたいな方法もあるけどとりあえず //http://marina.sys.wakayama-u.ac.jp/~tokoi/?date=20081122 みたいな方法もあるけどとりあえず
//とりあえず一番楽な方法 //とりあえず一番楽な方法
//これだと同一Zでスプライトが一番下に来てしまうのでZ値を補正する必要がある->やった //これだと同一Zでスプライトが一番下に来てしまうのでZ値を補正する必要がある->やった