I finished a new driver today, completing the initial four color driver set. Currently Morpheus has three released video drivers:
- XGA 1024×768 (4 colors from 256)
- SVGA 800×600 (4 colors from 256)
- VGA 640×480 (4 colors from 256)
All existing resolutions are supported by my XMM_GPU graphics engine cog, which currently implements:
In Pasm:
- Pen(c)
- Plot(x,y)
- Plotc(x,y,c)
- Cls(c)
- HLine(x,y,x2)
In Spin, calling Pasm:
- Line(x1,y1,x2,y2)
- DrawRect(x,y,w,h)
- FilledRect(x,y,w,h)
- DrawCircle(x,y,r)
- FilledCircle(x,y,r)
Coming Soon:
- PutChar(x,y,ch)
- PutStr(x,y,str)
All drivers now also come with the same demo program, that demonstrates the XMM_GPU cog’s features.
The drivers will soon be updated to have a unique 4 color palette for each scan line, and calls will be added to XMM_GPU to set the whole palette or individual entries:
- FillPalette(c,r,g,b)
- SetPalette(y,c,r,g,b)
This will allow some pretty colorful “4 color” images, and will also allow for color cycle based animation.
(you can always find the latest drivers and demo’s on my Downloads page)