diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-12-23 04:43:29 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-12-23 04:43:29 -0300 |
commit | 006c32d7c3884171c14838b649eedba2db2dda6e (patch) | |
tree | 8f56cd1e654dee504fdfdec4592d0e71407e5815 | |
parent | 6be2c82d3dd5e23759020d76e085b2bb4d8ebd9a (diff) |
Update graphics modes
l---------[-rw-r--r--] | src/hardware_data/graphics/uze_atmega644_mode1.lua | 89 | ||||
-rw-r--r-- | src/hardware_data/graphics/uze_atmega644_mode1_tile-size-6x8px.lua | 124 | ||||
-rw-r--r-- | src/hardware_data/graphics/uze_atmega644_mode1_tile-size-8x8px.lua | 124 |
3 files changed, 249 insertions, 88 deletions
diff --git a/src/hardware_data/graphics/uze_atmega644_mode1.lua b/src/hardware_data/graphics/uze_atmega644_mode1.lua index 5c163f8..b2b9224 100644..120000 --- a/src/hardware_data/graphics/uze_atmega644_mode1.lua +++ b/src/hardware_data/graphics/uze_atmega644_mode1.lua @@ -1,88 +1 @@ -return { - screen = { - { - width = 240, - height = 224, - refresh = 60, - origin = { - x = 0, - y = 0, - }, - }, - pixels = 3145728, - texels = 65536, - vertices = false, - }, - colours = { - total = 256, - limit = false, - background = true, - transparent = { - sprite = false, - tile = false, - }, - palettes = false, - }, - meshes = false, - shaders = { - api = false, - version = false, - fragment = false, - vectex = false, - geometry = false, - tessellation = false, - }, - physic = false, - sprites = false, - tiles = { - layers = { - { - total = { - x = 40, - y = 224, - 8960, - }, - onScreen = { - { - width6 = 8960, - width8 = 6720, - }, - }, - unique = 65536, - screenSections = { - mirror = false, - main = { - optional = false, - { - startCut = { - x = 0, - y = 0, - }, - endCut = { - x = 0, - y = 0, - }, - sizes = { - width6 = { - width = 6, - height = 'free', - }, - width8 = { - width = 8, - height = 'free', - }, - }, - transform = { - move = 'simulate', - rotate = false, - scale = false, - shear = false, - affine = false, - }, - }, - }, - }, - }, - }, - }, -} +uze_atmega644_mode1_tile-size-6x8px.lua
\ No newline at end of file diff --git a/src/hardware_data/graphics/uze_atmega644_mode1_tile-size-6x8px.lua b/src/hardware_data/graphics/uze_atmega644_mode1_tile-size-6x8px.lua new file mode 100644 index 0000000..5ebbc9c --- /dev/null +++ b/src/hardware_data/graphics/uze_atmega644_mode1_tile-size-6x8px.lua @@ -0,0 +1,124 @@ +-- Information: -- +-- -- +-- Vertical tiles on screen and VRAM, -- +-- can be changed by compilation, -- +-- but is not recomended. -- +-- Default value is: -- +-- {VRAM,SCREEN}_TILES_V=224/TILE_HEIGHT -- +-- -- +-- Horizontal tiles on screen and VRAM, -- +-- can not be changed by compilation. -- +-- Default value is: -- +-- {VRAM,SCREEN}_TILES_H=40 if TILE_WIDTH=6 -- +-- {VRAM,SCREEN}_TILES_H=30 if TILE_WIDTH=8 -- +-- -- +-- Tile width size in pixels, -- +-- can be changed by compilation. -- +-- Default value is: -- +-- TILE_WIDTH=6 -- +-- Available value is: -- +-- TILE_WIDTH=6 or TILE_WIDTH=8 -- +-- -- +-- Tile height size in pixels, -- +-- can be changed by compilation, -- +-- more that 224 pixels is not recommended. -- +-- Default value is: -- +-- TILE_HEIGHT=8 -- +-- Available value is: -- +-- TILE_WIDTH=1 to TILE_WIDTH=224 -- +-- -- +-- Vertical synchronization, -- +-- can be changed by compilation. -- +-- Default value is: -- +-- MODE1_FAST_VSYNC=1 (60Mhz) -- +-- Available value is: -- +-- MODE1_FAST_VSYNC=1 (60Mhz) -- +-- MODE1_FAST_VSYNC=0 (30Mhz) -- +-- -- +-- More options: -- +-- FIRST_RENDER_LINE=20 -- +-- FRAME_LINES=SCREEN_TILES_V*TILE_HEIGHT -- + +return { + screen = { + width = 240, + height = 224, + vsync = 60, + origin = { + x = 0, + y = 0, + }, + pixels = 3145728, + texels = 65536, + vertices = false, + }, + colours = { + total = 256, + limit = false, + transparent = { + sprite = false, + tile = false, + }, + palettes = false, + }, + meshes = false, + shaders = { + api = false, + version = false, + fragment = false, + vectex = false, + geometry = false, + tessellation = false, + }, + physic = false, + sprites = false, + tiles = { + layers = { + { + -- Total tiles on VRAM -- + onVRAM = { + screenSections = { + all = { + x = 40, + y = 28, + total = 1600, + }, + }, + total = 'screenSections', + }, + -- Total tiles on screen is same as VRAM tiles -- + onScreen = 'vram', + -- Total of unique tiles on VRAM -- + unique = 65536, + screenSections = { + mirror = false, + main = { + optional = false, + { + startCut = { + x = 0, + y = 0, + }, + endCut = { + x = 0, + y = 0, + }, + size = { + -- Tile size in pixels -- + width = 6, + height = 8, + }, + transform = { + move = 'simulate', + rotate = false, + scale = false, + shear = false, + affine = false, + }, + }, + }, + }, + }, + }, + }, +} diff --git a/src/hardware_data/graphics/uze_atmega644_mode1_tile-size-8x8px.lua b/src/hardware_data/graphics/uze_atmega644_mode1_tile-size-8x8px.lua new file mode 100644 index 0000000..1e047e4 --- /dev/null +++ b/src/hardware_data/graphics/uze_atmega644_mode1_tile-size-8x8px.lua @@ -0,0 +1,124 @@ +-- Information: -- +-- -- +-- Vertical tiles on screen and VRAM, -- +-- can be changed by compilation, -- +-- but is not recomended. -- +-- Default value is: -- +-- {VRAM,SCREEN}_TILES_V=224/TILE_HEIGHT -- +-- -- +-- Horizontal tiles on screen and VRAM, -- +-- can not be changed by compilation. -- +-- Default value is: -- +-- {VRAM,SCREEN}_TILES_H=40 if TILE_WIDTH=6 -- +-- {VRAM,SCREEN}_TILES_H=30 if TILE_WIDTH=8 -- +-- -- +-- Tile width size in pixels, -- +-- can be changed by compilation. -- +-- Default value is: -- +-- TILE_WIDTH=6 -- +-- Available value is: -- +-- TILE_WIDTH=6 or TILE_WIDTH=8 -- +-- -- +-- Tile height size in pixels, -- +-- can be changed by compilation, -- +-- more that 224 pixels is not recommended. -- +-- Default value is: -- +-- TILE_HEIGHT=8 -- +-- Available value is: -- +-- TILE_WIDTH=1 to TILE_WIDTH=224 -- +-- -- +-- Vertical synchronization, -- +-- can be changed by compilation. -- +-- Default value is: -- +-- MODE1_FAST_VSYNC=1 (60Mhz) -- +-- Available value is: -- +-- MODE1_FAST_VSYNC=1 (60Mhz) -- +-- MODE1_FAST_VSYNC=0 (30Mhz) -- +-- -- +-- More options: -- +-- FIRST_RENDER_LINE=20 -- +-- FRAME_LINES=SCREEN_TILES_V*TILE_HEIGHT -- + +return { + screen = { + width = 240, + height = 224, + vsync = 60, + origin = { + x = 0, + y = 0, + }, + pixels = 3145728, + texels = 65536, + vertices = false, + }, + colours = { + total = 256, + limit = false, + transparent = { + sprite = false, + tile = false, + }, + palettes = false, + }, + meshes = false, + shaders = { + api = false, + version = false, + fragment = false, + vectex = false, + geometry = false, + tessellation = false, + }, + physic = false, + sprites = false, + tiles = { + layers = { + { + -- Total tiles on VRAM -- + onVRAM = { + screenSections = { + all = { + x = 30, + y = 28, + total = 900, + }, + }, + total = 'screenSections', + }, + -- Total tiles on screen is same as VRAM tiles -- + onScreen = 'vram', + -- Total of unique tiles on VRAM -- + unique = 65536, + screenSections = { + mirror = false, + main = { + optional = false, + { + startCut = { + x = 0, + y = 0, + }, + endCut = { + x = 0, + y = 0, + }, + size = { + -- Tile size in pixels -- + width = 8, + height = 8, + }, + transform = { + move = 'simulate', + rotate = false, + scale = false, + shear = false, + affine = false, + }, + }, + }, + }, + }, + }, + }, +} |