The example regarding splitting the top screen into 2 separate windows in devkitPro is a great start for something I'm wanting to accomplish, but I'm afraid I don't understand some things.
1. In the example, the author only initializes the top screen console, and splits it into two windows. The code is as follows:
How exactly would I type the PrintConsole and consoleinit sections if I wanted to put four different windows, in a 2x2 configuration, on the bottom screen? The top screen is also going to be used in the final product.
2. If I were to do this 2x2 configuration, what exactly would the dimensions be? The example is as follows:
I guess I just don't completely understand the numbers.
I would greatly appreciate it if someone would shed some light on the subject. And please, be gentle. I'm just getting started.
1. In the example, the author only initializes the top screen console, and splits it into two windows. The code is as follows:
Code:
//In this example we need three PrintConsole, one for each window and one for the whole top screen
PrintConsole leftWindow, rightWindow, topScreen;
//Initialize console for each window
consoleInit(GFX_TOP, &leftWindow);
consoleInit(GFX_TOP, &rightWindow);
consoleInit(GFX_TOP, &topScreen);
How exactly would I type the PrintConsole and consoleinit sections if I wanted to put four different windows, in a 2x2 configuration, on the bottom screen? The top screen is also going to be used in the final product.
2. If I were to do this 2x2 configuration, what exactly would the dimensions be? The example is as follows:
Code:
//Now we specify the window position and dimension for each console window using consoleSetWindow(PrintConsole* console, int x, int y, int width, int height);
//x, y, width and height are in terms of cells, not pixel, where each cell is composed by 8x8 pixels.
consoleSetWindow(&leftWindow, 1, 1, 23, 28);
consoleSetWindow(&rightWindow, 26, 1, 23, 28);
I guess I just don't completely understand the numbers.
I would greatly appreciate it if someone would shed some light on the subject. And please, be gentle. I'm just getting started.