[CHG] Now talking about 3D

This commit is contained in:
Crayon2000 2009-12-14 23:14:17 +00:00
parent d6f2677fe9
commit c3abfa5247
4 changed files with 9 additions and 12 deletions

View file

@ -141,7 +141,7 @@ void GRRLIB_BMFX_Blur (const GRRLIB_texImg *texsrc,
int numba = (1+(factor<<1))*(1+(factor<<1)); int numba = (1+(factor<<1))*(1+(factor<<1));
u32 x, y; u32 x, y;
s32 k, l; s32 k, l;
int tmp = 0; int tmp;
int newr, newg, newb, newa; int newr, newg, newb, newa;
u32 colours[numba]; u32 colours[numba];
u32 thiscol; u32 thiscol;

View file

@ -234,7 +234,7 @@ GRR_EXTERN u32 fb GRR_INIT(0);
* Welcome to the GRRLIB documentation. * Welcome to the GRRLIB documentation.
* *
* @section Introduction * @section Introduction
* GRRLIB is a C/C++ 2D Graphics library for Wii application developers. * GRRLIB is a C/C++ 2D/3D graphics library for Wii application developers.
* It is essentially a wrapper which presents a friendly interface to the Nintendo GX core. * It is essentially a wrapper which presents a friendly interface to the Nintendo GX core.
* *
* @section Links * @section Links

View file

@ -37,7 +37,7 @@ Licence
Introduction Introduction
------------ ------------
GRRLIB is a C/C++ 2D Graphics library for Wii application developers. It is GRRLIB is a C/C++ 2D/3D graphics library for Wii application developers. It is
essentially a wrapper which presents a friendly interface to the Nintendo GX essentially a wrapper which presents a friendly interface to the Nintendo GX
core. core.
@ -51,7 +51,7 @@ requires 'libpng' and 'libpng' requires 'libz'. GRRLIB also has FileIO
functions to allow real-time loading and saving of graphical data, and thus also functions to allow real-time loading and saving of graphical data, and thus also
requires 'libfat'. requires 'libfat'.
libgrrlib &lt;- 2D graphics library libgrrlib &lt;- 2D/3D graphics library
+-- libfat &lt;- File I/O +-- libfat &lt;- File I/O
+-- libjpeg &lt;- JPEG image processor +-- libjpeg &lt;- JPEG image processor
+-- libpngu &lt;- Wii wrapper for libpng +-- libpngu &lt;- Wii wrapper for libpng
@ -144,7 +144,7 @@ Using GRRLIB
After everything is installed, simply put After everything is installed, simply put
#include &lt;grrlib.h> <!-- #include <grrlib.h> --> #include &lt;grrlib.h> <!-- #include <grrlib.h> -->
at the top of your .c file and use the functions as required at the top of your .c/.cpp file and use the functions as required
You will also need to add You will also need to add
-lgrrlib -lfat -ljpeg -lpngu -lpng -lz -lgrrlib -lfat -ljpeg -lpngu -lpng -lz
@ -157,10 +157,7 @@ here.
You do NOT need to place /anything/ in your application directory. You do NOT need to place /anything/ in your application directory.
If you would like to see a working example of this, you can look at the example If you would like to see a working example of this, you can look at the example
found in: C:\grr\trunk\examples\bluechip\composition found in: C:\grr\trunk\examples\template\source
...This example also includes a "Makefile" which tries to make it clear what is
happening (unlike the more comprehensive cross-platform Makefile supplied with
the devkitPro 'template' application).
Upgrading to v4.1.0 From Previous Versions of GRRLIB Upgrading to v4.1.0 From Previous Versions of GRRLIB

View file

@ -9,7 +9,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <wiiuse/wpad.h> #include <wiiuse/wpad.h>
int main() { int main(int argc, char **argv) {
// Initialise the Graphics & Video subsystem // Initialise the Graphics & Video subsystem
GRRLIB_Init(); GRRLIB_Init();
@ -19,7 +19,7 @@ int main() {
// Loop forever // Loop forever
while(1) { while(1) {
WPAD_ScanPads(); // Scan the wiimotes WPAD_ScanPads(); // Scan the Wiimotes
// If [HOME] was pressed on the first Wiimote, break out of the loop // If [HOME] was pressed on the first Wiimote, break out of the loop
if (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME) break; if (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME) break;