mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
basic update; removing the need of dummy texture pal.png
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -23,14 +23,16 @@ public class AppLoader {
|
||||
appConfig.resizable = false;
|
||||
appConfig.title = appTitle;
|
||||
appConfig.forceExit = true;
|
||||
appConfig.width = 720;//480;
|
||||
appConfig.height = 480;//128;
|
||||
appConfig.width = 720;
|
||||
appConfig.height = 480;
|
||||
|
||||
|
||||
// val vm = VM(64.kB(), TheRealWorld(), arrayOf(GenericBios))
|
||||
//VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{BasicBios.INSTANCE, BasicRom.INSTANCE});
|
||||
//VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{OEMBios.INSTANCE, BasicRom.INSTANCE});
|
||||
VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{TandemBios.INSTANCE, BasicRom.INSTANCE});
|
||||
|
||||
// uncomment to target the TerranBASIC runner
|
||||
//VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{TBASRelBios.INSTANCE});
|
||||
|
||||
EmulInstance reference = new EmulInstance(appConfig, vm, "net.torvald.tsvm.peripheral.ReferenceGraphicsAdapter", "assets/disk0");
|
||||
|
||||
@@ -557,7 +557,7 @@ open class GraphicsAdapter(val vm: VM, val config: AdapterConfig, val sgr: Super
|
||||
}
|
||||
|
||||
override fun dispose() {
|
||||
testTex.dispose()
|
||||
//testTex.dispose()
|
||||
framebuffer.dispose()
|
||||
rendertex.dispose()
|
||||
spriteAndTextArea.destroy()
|
||||
@@ -749,7 +749,7 @@ open class GraphicsAdapter(val vm: VM, val config: AdapterConfig, val sgr: Super
|
||||
|
||||
}
|
||||
|
||||
private val testTex = Texture("./assets/pal.png");
|
||||
//private val testTex = Texture("./assets/pal.png");
|
||||
|
||||
private fun blendNormal(batch: SpriteBatch) {
|
||||
Gdx.gl.glEnable(GL20.GL_TEXTURE_2D)
|
||||
|
||||
@@ -178,7 +178,7 @@ From the start of the memory space:
|
||||
Pointer to raw pixmap data in Scratchpad Memory
|
||||
|
||||
2 bytes
|
||||
Cursor position in: (y*32 + x)
|
||||
Cursor position in: (y*80 + x)
|
||||
2560 bytes
|
||||
Text foreground colours
|
||||
2560 bytes
|
||||
|
||||
Reference in New Issue
Block a user