Viewport size is currently defined by two macros in both glOric_vXY.s and glOric_vXY.h files:
Code: Select all
#define SCREEN_WIDTH 40 #define SCREEN_HEIGHT 26
If you do so, you'll have to create your own buffer2screen function to copy the content of fbuffer [SCREEN_WIDTH*SCREEN_HEIGHT] to the proper display adress area in memory. Because you cannot use the buffer2screen contained in glOric.
Other way to add a user interface surrounding the view port is to write it right in the glOric's fbuffer before copying this buffer to screen. Just consider fbuffer as your screen start adress.
That way, you can easily provide the user with the possibility to swithc between full screen mode (where no interface is displayed) and a normal mode in which you draw the interface.
It is not possible (and I don't think it will one day be possible) to dynamically change the viewport size because it would drastically alter the performance.
A 1.2 version will soon be released and i'll try to describe these approach a bit further.