diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2017-01-16 18:29:19 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2017-01-16 18:29:19 -0300 |
commit | 3eb31548f52bcc2dd1fc189dc4151f2e905420b8 (patch) | |
tree | a19cfa14592a4a878e55582653a7cf75bd4775d2 | |
parent | 0c324f564b42d403882fd031ab6bbb100229ac4c (diff) |
Update graphics modes (mali400)
-rw-r--r-- | src/hardware_data/graphics/gpu_mali400mp2-4kUHDtv.lua (renamed from src/hardware_data/graphics/gpu_mali400mp2-4k.lua) | 126 |
1 files changed, 61 insertions, 65 deletions
diff --git a/src/hardware_data/graphics/gpu_mali400mp2-4k.lua b/src/hardware_data/graphics/gpu_mali400mp2-4kUHDtv.lua index deeb5d4..ddda8b7 100644 --- a/src/hardware_data/graphics/gpu_mali400mp2-4k.lua +++ b/src/hardware_data/graphics/gpu_mali400mp2-4kUHDtv.lua @@ -13,7 +13,7 @@ return { }, -- Total of unique texels, pixels and vertices on VRAM -- pixels = 2*350*10^(3*2), - texels = 2*350*10^(3*2)/80^2, + texels = 2*350*10^(3*2)/(30*24), vertices = (38+1/3)*10^(3*2), }, colours = { @@ -23,7 +23,7 @@ return { sprite = 'alphaChannel', tile = 'alphaChannel', }, - tileDepth = 'colourKey', + tileDepth = true, palettes = { { total = 1, @@ -56,24 +56,31 @@ return { shear = true, affine = true, }, - -- Sprite sizes in pixels -- - sizes = { - { - width = 80, - height = 80, + size = { + -- Default sprite size in pixels -- + width = 30, + height = 24, + -- Diferent sprite sizes by scale allowed -- + modes = { + { + minimumX = 1, + minimumY = 1, + maximumX = 128, + maximumY = 128, + }, }, }, }, tiles = { layers = { - { + main = { -- Total tiles and pixels on VRAM -- onVRAM = { screenSections = { all = { - Xtiles = 16*48, - Ytiles = 16*27, - tiles = 331776, + Xtiles = 16*128, + Ytiles = 16* 90, + tiles = 2949120, pixels = 2123366400, }, }, @@ -86,10 +93,10 @@ return { -- On screen section with support scrolling X and/or Y, -- -- will be include one tile by axis -- all = { - Xtiles = 48+1, - Ytiles = 27+1, - tiles = 1296+48+27+1, - pixels = 8294400, + Xtiles = 128+1, + Ytiles = 90+1, + tiles = 11520+128+90+1, + pixels = 8452080, }, }, tiles = 'screenSections', @@ -101,20 +108,22 @@ return { background = 'data', total = 65536, }, - maximum = 331776, + maximum = (11520+128+90+1)*5, mirror = { switchable = true, nametables = 16^2, - 'horizontal', - 'vertical', - '1 screen', - '4 screen', - 'diagonal', - 'l shaped', - '3 screen vertical', - '3 screen horizontal', - '3 screen diagonal', - 'free tiles' + modes = { + 'horizontal', + 'vertical', + '1screen', + '4screen', + 'diagonal', + 'lshaped', + '3screenVertical', + '3screenHorizontal', + '3screenDiagonal', + 'freeTiles' + }, }, screenSections = { main = { @@ -130,9 +139,18 @@ return { y = 'endVRAM', }, size = { - -- Tile size in pixels -- - width = 80, - height = 80, + -- Default tile size in pixels -- + width = 30, + height = 24, + -- Diferent tile sizes by scale allowed -- + modes = { + { + minimumX = 1, + minimumY = 1, + maximumX = 128, + maximumY = 128, + }, + }, }, transform = { move = true, @@ -155,18 +173,8 @@ return { x = 'free', y = 'free', }, - size = { - -- Tile size in pixels -- - width = 80, - height = 80, - }, - transform = { - move = true, - rotate = true, - scale = true, - shear = true, - affine = true, - }, + size = 'likeMainSection', + transform = 'likeMainSection', }, }, overlay1 = { @@ -181,18 +189,8 @@ return { x = 'free', y = 'free', }, - size = { - -- Tile size in pixels -- - width = 80, - height = 80, - }, - transform = { - move = true, - rotate = true, - scale = true, - shear = true, - affine = true, - }, + size = 'likeMainSection', + transform = 'likeMainSection', }, }, overlay2 = { @@ -207,22 +205,20 @@ return { x = 'free', y = 'free', }, - size = { - -- Tile size in pixels -- - width = 80, - height = 80, - }, - transform = { - move = true, - rotate = true, - scale = true, - shear = true, - affine = true, - }, + size = 'likeMainSection', + transform = 'likeMainSection', }, }, }, }, + background0 = 'likeMainLayer', + background1 = 'likeMainLayer', + background2 = 'likeMainLayer', + background3 = 'likeMainLayer', + foreground0 = 'likeMainLayer', + foreground1 = 'likeMainLayer', + foreground2 = 'likeMainLayer', + foreground3 = 'likeMainLayer', }, }, } |