[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));
u32 x, y;
s32 k, l;
int tmp = 0;
int tmp;
int newr, newg, newb, newa;
u32 colours[numba];
u32 thiscol;

View file

@ -234,7 +234,7 @@ GRR_EXTERN u32 fb GRR_INIT(0);
* Welcome to the GRRLIB documentation.
*
* @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.
*
* @section Links

View file

@ -37,7 +37,7 @@ Licence
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
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
requires 'libfat'.
libgrrlib &lt;- 2D graphics library
libgrrlib &lt;- 2D/3D graphics library
+-- libfat &lt;- File I/O
+-- libjpeg &lt;- JPEG image processor
+-- libpngu &lt;- Wii wrapper for libpng
@ -144,7 +144,7 @@ Using GRRLIB
After everything is installed, simply put
#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
-lgrrlib -lfat -ljpeg -lpngu -lpng -lz
@ -157,10 +157,7 @@ here.
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
found in: C:\grr\trunk\examples\bluechip\composition
...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).
found in: C:\grr\trunk\examples\template\source
Upgrading to v4.1.0 From Previous Versions of GRRLIB

View file

@ -9,7 +9,7 @@
#include <stdlib.h>
#include <wiiuse/wpad.h>
int main() {
int main(int argc, char **argv) {
// Initialise the Graphics & Video subsystem
GRRLIB_Init();
@ -19,10 +19,10 @@ int main() {
// Loop forever
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 (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME) break ;
if (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME) break;
// ---------------------------------------------------------------------
// Place your drawing code here