In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "GRRLIB"

From WiiBrew
Jump to navigation Jump to search
m
Line 30: Line 30:
 
     +-- libpngu        <- Wii wrapper for libpng
 
     +-- libpngu        <- Wii wrapper for libpng
 
         +-- libpng    <- PNG image processor
 
         +-- libpng    <- PNG image processor
             +-- libz  <- Zip (lossless) compsression (for PNG compression)
+
             +-- libz  <- Zip (lossless) compression (for PNG compression)
 
* Installer for vendor libraries (jpeg, png, pngu)
 
* Installer for vendor libraries (jpeg, png, pngu)
 
* Makefile for GRRLIB
 
* Makefile for GRRLIB

Revision as of 08:38, 6 October 2009

GRRLIB
File:Grrlogo.png
General
Author(s)NoNameNo
Contributor(s)Numerous
TypeFramework library
Version4.1.0
LicenceMIT Licence
Links
Download
Website
Discussion
Source

GRRLIB is a C/C++ 2D Graphics library for Wii application developers. It is essentially a wrapper which presents a friendly interface to the Nintendo GX core. With it, coders can quickly and easily start creating graphical applications.

As of v4.1.0, GRRLIB is supplied as a standard C/C++ library (aka. archive) called 'libgrrlib'. Because GRRLIB processes JPEG and PNG images, it requires the installation of the 'libjpeg' and 'libpngu' libraries. 'libpngu', in turn, 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'.

There are currently 130 applications using GRRLIB.

Help can be found on the forum or in #grrlib on EFnet.

Update History

4.1.0 - October 5, 2009

  • Completely new file structure with sub-folders:
   libgrrlib          <- 2D graphics library
   +-- libfat         <- File I/O
   +-- libjpeg        <- JPEG image processor
   +-- libpngu        <- Wii wrapper for libpng
       +-- libpng     <- PNG image processor
           +-- libz   <- Zip (lossless) compression (for PNG compression)
  • Installer for vendor libraries (jpeg, png, pngu)
  • Makefile for GRRLIB
  • Many (all suitable) functions are now inlined
  • Support for the recent changes to libogc
  • Alpha compositor function added
  • Correct use of pointers (no more struct passing)
  • Speed improvement, bug fixing and more...

4.0.0 - March 5, 2009

  • Color format changed for ALL GRRLib functions (now its RGBA) to fit to GX_Color format and use GX_Color1u32
  • GRRLIB_LoadTexture now Auto Detect PNG or JPEG
  • GRRLib introduce a new texture structure (easier to handle texture width, height, etc ...)
  • add void GRRLIB_InitTileSet(struct GRRLIB_texImg *tex, unsigned int tilew, unsigned int tileh, unsigned int tilestart);
  • GRRLIB_DrawImg recoded for simpler use
  • GRRLIB_DrawTile recoded for simpler use
  • InitVideo() and GRRLIB_Start() merge into GRRLIB_Init().
  • add GRRLIB_PtInRect, GRRLIB_RectInRect and GRRLIB_RectOnRect. (to detect hot zone)
  • GRRLIB_GetPixelFromtexImg and GRRLIB_SetPixelTotexImg (to directly read/write in texture)
  • GRRLIB_CreateEmptyTexture and GRRLIB_FlushTex
  • New Bitmap FX
  • add GRRLIB_Exit to free the memory allocated by GRRLIB

Video

Credits

Programming

NoNameNo, Crayon, Xane, DragonMinded, BlueChip, elisherer

Documentation

Crayon, BlueChip

Advising

RedShade, Jespa

Tools

  • WiiBuilder is software for Windows that help you with image conversion/generation and more.