diff --git a/PDF-documentation.pdf b/PDF-documentation.pdf index 67d772b..0037314 100644 Binary files a/PDF-documentation.pdf and b/PDF-documentation.pdf differ diff --git a/_g_r_r_l_i_b____inline_8h.html b/_g_r_r_l_i_b____inline_8h.html index 04de0e8..834c9c0 100644 --- a/_g_r_r_l_i_b____inline_8h.html +++ b/_g_r_r_l_i_b____inline_8h.html @@ -1,9 +1,9 @@ - +
- +GRRLIB inline function prototypes. -More...
#include <grrlib/GRRLIB_clipping.h>
#include <grrlib/GRRLIB_collision.h>
#include <grrlib/GRRLIB_fbComplex.h>
GRRLIB inline function prototypes.
-Do not include GRRLIB__inline.h directly, include only GRRLIB.h.
+GRRLIB inline function prototypes. Do not include GRRLIB__inline.h directly, include only GRRLIB.h.
GRRLIB library function prototypes. -More...
Functions | GRRLIB_SetLightOff (void) |
Set all lights off, like at init. | |
GRRLIB_ttfFont * | GRRLIB_LoadTTF (const u8 *file_base, s32 file_size) |
GRRLIB_ttfFont * | GRRLIB_LoadTTF (const u8 *file_base, s32 file_size) |
Load a TTF from a buffer. More... | |
void | GRRLIB_FreeTTF (GRRLIB_ttfFont *myFont) |
void | GRRLIB_FreeTTF (GRRLIB_ttfFont *myFont) |
Free memory allocated by TTF fonts. More... | |
void | GRRLIB_PrintfTTF (int x, int y, GRRLIB_ttfFont *myFont, const char *string, unsigned int fontSize, const u32 color) |
void | GRRLIB_PrintfTTF (int x, int y, GRRLIB_ttfFont *myFont, const char *string, unsigned int fontSize, const u32 color) |
Print function for TTF font. More... | |
void | GRRLIB_PrintfTTFW (int x, int y, GRRLIB_ttfFont *myFont, const wchar_t *string, unsigned int fontSize, const u32 color) |
void | GRRLIB_PrintfTTFW (int x, int y, GRRLIB_ttfFont *myFont, const wchar_t *string, unsigned int fontSize, const u32 color) |
Print function for TTF font. More... | |
u32 | GRRLIB_WidthTTF (GRRLIB_ttfFont *myFont, const char *, unsigned int) |
u32 | GRRLIB_WidthTTF (GRRLIB_ttfFont *myFont, const char *, unsigned int) |
Get the width of a text in pixel. More... | |
u32 | GRRLIB_WidthTTFW (GRRLIB_ttfFont *myFont, const wchar_t *, unsigned int) |
u32 | GRRLIB_WidthTTFW (GRRLIB_ttfFont *myFont, const wchar_t *, unsigned int) |
Get the width of a text in pixel. More... | |
GRRLIB library function prototypes.
-Do not include GRRLIB__lib.h directly, include only GRRLIB.h.
+GRRLIB library function prototypes. Do not include GRRLIB__lib.h directly, include only GRRLIB.h.
| GRRLIB_bytemapFont | GRRLIB_Font | ||
GRRLIB_drawSettings | GRRLIB_texImg | |||
GRRLIB_bytemapChar | GRRLIB_bytemapFont | +GRRLIB_Font | ++ | |
GRRLIB_drawSettings | +GRRLIB_texImg | +|||
GRRLIB_bytemapChar | +||||
grrlib.h | GRRLIB user include file |
GRRLIB__inline.h | GRRLIB inline function prototypes |
GRRLIB__lib.h | GRRLIB library function prototypes |
grrlib.h | |
GRRLIB__inline.h | |
GRRLIB__lib.h |
This is the complete list of functions, structures, defines, typedefs, enumerations and variables you may want to used to make your homebrew with GRRLIB. +
This is the complete list of functions, structures, defines, typedefs, enumerations and variables you may want to used to make your homebrew with GRRLIB. You simply need to include grrlib.h in your project to have access to all of these. More...
@@ -98,29 +101,36 @@ Macros | GRRLIB_VER_STRING "4.4.0" |
Version information for GRRLIB. | |
#define | R(c) (((c) >>24) &0xFF) |
Extract red component of colour. More... | |
+#define | R(c) (((c) >>24) &0xFF) |
Extract red component of colour. | |
#define | G(c) (((c) >>16) &0xFF) |
Extract green component of colour. More... | |
+#define | G(c) (((c) >>16) &0xFF) |
Extract green component of colour. | |
#define | B(c) (((c) >> 8) &0xFF) |
Extract blue component of colour. More... | |
+#define | B(c) (((c) >> 8) &0xFF) |
Extract blue component of colour. | |
#define | A(c) ( (c) &0xFF) |
Extract alpha component of colour. More... | |
+#define | A(c) ( (c) &0xFF) |
Extract alpha component of colour. | |
#define | RGBA(r, g, b, a) |
Build an RGB pixel from components. More... | |
Build an RGB pixel from components. More... | |
#define | GRRLIB_BLEND_NONE (GRRLIB_BLEND_ALPHA) |
Alias for GRRLIB_BLEND_ALPHA. More... | |
+#define | GRRLIB_BLEND_NONE (GRRLIB_BLEND_ALPHA) |
Alias for GRRLIB_BLEND_ALPHA. | |
#define | GRRLIB_BLEND_LIGHT (GRRLIB_BLEND_ADD) |
Alias for GRRLIB_BLEND_ADD. More... | |
+#define | GRRLIB_BLEND_LIGHT (GRRLIB_BLEND_ADD) |
Alias for GRRLIB_BLEND_ADD. | |
#define | GRRLIB_BLEND_SHADE (GRRLIB_BLEND_MULTI) |
Alias for GRRLIB_BLEND_MULTI. More... | |
+#define | GRRLIB_BLEND_SHADE (GRRLIB_BLEND_MULTI) |
Alias for GRRLIB_BLEND_MULTI. | |
#define | GRR_EXTERN extern |
Typedefs | |
-typedef enum GRRLIB_blendMode | GRRLIB_blendMode |
GRRLIB Blending Modes. | |
-typedef struct GRRLIB_drawSettings | GRRLIB_drawSettings |
Structure to hold the current drawing settings. | |
-typedef struct GRRLIB_texImg | GRRLIB_texImg |
Structure to hold the texture information. | |
-typedef struct GRRLIB_bytemapChar | GRRLIB_bytemapChar |
Structure to hold the bytemap character information. | |
-typedef struct GRRLIB_bytemapFont | GRRLIB_bytemapFont |
Structure to hold the bytemap font information. | |
-typedef struct GRRLIB_Font | GRRLIB_ttfFont |
Structure to hold the TTF information. | |
+typedef enum GRRLIB_blendMode | GRRLIB_blendMode |
GRRLIB Blending Modes. | |
+typedef struct GRRLIB_drawSettings | GRRLIB_drawSettings |
Structure to hold the current drawing settings. | |
+typedef struct GRRLIB_texImg | GRRLIB_texImg |
Structure to hold the texture information. | |
+typedef struct GRRLIB_bytemapChar | GRRLIB_bytemapChar |
Structure to hold the bytemap character information. | |
+typedef struct GRRLIB_bytemapFont | GRRLIB_bytemapFont |
Structure to hold the bytemap font information. | |
+typedef struct GRRLIB_Font | GRRLIB_ttfFont |
Structure to hold the TTF information. | |
Enumerations | |
GRRLIB Blending Modes. More... | |
GRRLIB Blending Modes. More... | |
Functions | |
-GRR_EXTERN void *xfb [2] | GRR_INITS (NULL, NULL) | GRR_INITS (NULL, NULL) |
GRR_EXTERN u32 fb | GRR_INIT (0) | Reset the clipping to normal. |
INLINE void | GRRLIB_ClipDrawing (const int x, const int y, const int width, const int height) |
Clip the drawing area to an rectangle. More... | |
Clip the drawing area to an rectangle. More... | |
INLINE bool | GRRLIB_PtInRect (const int hotx, const int hoty, const int hotw, const int hoth, const int wpadx, const int wpady) |
Determine whether the specified point lies within the specified rectangle. More... | |
Determine whether the specified point lies within the specified rectangle. More... | |
INLINE bool | GRRLIB_RectInRect (const int rect1x, const int rect1y, const int rect1w, const int rect1h, const int rect2x, const int rect2y, const int rect2w, const int rect2h) |
Determine whether a specified rectangle lies within another rectangle. More... | |
Determine whether a specified rectangle lies within another rectangle. More... | |
INLINE bool | GRRLIB_RectOnRect (const int rect1x, const int rect1y, const int rect1w, const int rect1h, const int rect2x, const int rect2y, const int rect2w, const int rect2h) |
Determine whether a part of a specified rectangle lies on another rectangle. More... | |
Determine whether a part of a specified rectangle lies on another rectangle. More... | |
INLINE void | GRRLIB_NPlot (const guVector v[], const u32 color[], const long n) |
Draw an array of points. More... | |
Draw an array of points. More... | |
INLINE void | GRRLIB_NGone (const guVector v[], const u32 color[], const long n) |
Draw a polygon. More... | |
Draw a polygon. More... | |
INLINE void | GRRLIB_NGoneFilled (const guVector v[], const u32 color[], const long n) |
Draw a filled polygon. More... | |
Draw a filled polygon. More... | |
INLINE void | GRRLIB_GXEngine (const guVector v[], const u32 color[], const long n, const u8 fmt) |
Draws a vector. More... | |
Draws a vector. More... | |
INLINE void | GRRLIB_FillScreen (const u32 color) |
Clear screen with a specific color. More... | |
Clear screen with a specific color. More... | |
INLINE void | GRRLIB_Plot (const f32 x, const f32 y, const u32 color) |
Draw a dot. More... | |
Draw a dot. More... | |
INLINE void | GRRLIB_Line (const f32 x1, const f32 y1, const f32 x2, const f32 y2, const u32 color) |
Draw a line. More... | |
Draw a line. More... | |
INLINE void | GRRLIB_Rectangle (const f32 x, const f32 y, const f32 width, const f32 height, const u32 color, const bool filled) |
Draw a rectangle. More... | |
Draw a rectangle. More... | |
INLINE void | GRRLIB_SetHandle (GRRLIB_texImg *tex, const int x, const int y) |
Set a texture's X and Y handles. More... | |
Set a texture's X and Y handles. More... | |
INLINE void | GRRLIB_SetMidHandle (GRRLIB_texImg *tex, const bool enabled) |
Center a texture's handles. More... | |
Center a texture's handles. More... | |
INLINE u32 | GRRLIB_GetPixelFromtexImg (const int x, const int y, const GRRLIB_texImg *tex) |
Return the color value of a pixel from a GRRLIB_texImg. More... | |
Return the color value of a pixel from a GRRLIB_texImg. More... | |
INLINE void | GRRLIB_SetPixelTotexImg (const int x, const int y, GRRLIB_texImg *tex, const u32 color) |
Set the color value of a pixel to a GRRLIB_texImg. More... | |
Set the color value of a pixel to a GRRLIB_texImg. More... | |
INLINE u32 | GRRLIB_GetPixelFromFB (int x, int y) |
Reads a pixel directly from the FrontBuffer. More... | |
Reads a pixel directly from the FrontBuffer. More... | |
INLINE void | GRRLIB_SetPixelToFB (int x, int y, u32 pokeColor) |
Writes a pixel directly from the FrontBuffer. More... | |
Writes a pixel directly from the FrontBuffer. More... | |
INLINE void | GRRLIB_SetBlend (const GRRLIB_blendMode blendmode) |
Set a blending mode. More... | |
Set a blending mode. More... | |
INLINE GRRLIB_blendMode | GRRLIB_GetBlend (void) |
Get the current blending mode. More... | |
Get the current blending mode. More... | |
INLINE void | GRRLIB_SetAntiAliasing (const bool aa) |
Turn anti-aliasing on/off. More... | |
Turn anti-aliasing on/off. More... | |
INLINE bool | GRRLIB_GetAntiAliasing (void) |
Get current anti-aliasing setting. More... | |
Get current anti-aliasing setting. More... | |
INLINE void | GRRLIB_ClearTex (GRRLIB_texImg *tex) |
Clear a texture to transparent black. More... | |
Clear a texture to transparent black. More... | |
INLINE void | GRRLIB_FlushTex (GRRLIB_texImg *tex) |
Write the contents of a texture in the data cache down to main memory. More... | |
Write the contents of a texture in the data cache down to main memory. More... | |
INLINE void | GRRLIB_FreeTexture (GRRLIB_texImg *tex) |
Free memory allocated for texture. More... | |
Free memory allocated for texture. More... | |
GRRLIB_bytemapFont * | GRRLIB_LoadBMF (const u8 my_bmf[]) |
Load a ByteMap font structure from a buffer. More... | |
Load a ByteMap font structure from a buffer. More... | |
void | GRRLIB_FreeBMF (GRRLIB_bytemapFont *bmf) |
Free memory allocated by ByteMap fonts. More... | |
Free memory allocated by ByteMap fonts. More... | |
void | GRRLIB_InitTileSet (GRRLIB_texImg *tex, const u32 tilew, const u32 tileh, const u32 tilestart) |
Initialize a tile set. More... | |
Initialize a tile set. More... | |
void | GRRLIB_BMFX_FlipH (const GRRLIB_texImg *texsrc, GRRLIB_texImg *texdest) |
Flip texture horizontal. More... | |
Flip texture horizontal. More... | |
void | GRRLIB_BMFX_FlipV (const GRRLIB_texImg *texsrc, GRRLIB_texImg *texdest) |
Flip texture vertical. More... | |
Flip texture vertical. More... | |
void | GRRLIB_BMFX_Grayscale (const GRRLIB_texImg *texsrc, GRRLIB_texImg *texdest) |
Change a texture to gray scale. More... | |
Change a texture to gray scale. More... | |
void | GRRLIB_BMFX_Sepia (const GRRLIB_texImg *texsrc, GRRLIB_texImg *texdest) |
Change a texture to sepia (old photo style). More... | |
Change a texture to sepia (old photo style). More... | |
void | GRRLIB_BMFX_Invert (const GRRLIB_texImg *texsrc, GRRLIB_texImg *texdest) |
Invert colors of the texture. More... | |
Invert colors of the texture. More... | |
void | GRRLIB_BMFX_Blur (const GRRLIB_texImg *texsrc, GRRLIB_texImg *texdest, const u32 factor) |
A texture effect (Blur). More... | |
A texture effect (Blur). More... | |
void | GRRLIB_BMFX_Scatter (const GRRLIB_texImg *texsrc, GRRLIB_texImg *texdest, const u32 factor) |
A texture effect (Scatter). More... | |
A texture effect (Scatter). More... | |
void | GRRLIB_BMFX_Pixelate (const GRRLIB_texImg *texsrc, GRRLIB_texImg *texdest, const u32 factor) |
A texture effect (Pixelate). More... | |
A texture effect (Pixelate). More... | |
int | GRRLIB_Init (void) |
Initialize GRRLIB. More... | |
Initialize GRRLIB. More... | |
void | GRRLIB_Exit (void) |
Call this before exiting your application. More... | |
Call this before exiting your application. More... | |
void | GRRLIB_Circle (const f32 x, const f32 y, const f32 radius, const u32 color, const u8 filled) |
Draw a circle. More... | |
Draw a circle. More... | |
int | GRRLIB_LoadFile (const char *filename, u8 **data) |
Load a file to memory. More... | |
Load a file to memory. More... | |
GRRLIB_texImg * | GRRLIB_LoadTextureFromFile (const char *filename) |
Load a texture from a file. More... | |
Load a texture from a file. More... | |
bool | GRRLIB_ScrShot (const char *filename) |
Make a PNG screenshot. More... | |
Make a PNG screenshot. More... | |
void | GRRLIB_Printf (const f32 xpos, const f32 ypos, const GRRLIB_texImg *tex, const u32 color, const f32 zoom, const char *text,...) |
Print formatted output. More... | |
Print formatted output. More... | |
void | GRRLIB_PrintBMF (const f32 xpos, const f32 ypos, const GRRLIB_bytemapFont *bmf, const char *text,...) |
Print formatted output with a ByteMap font. More... | |
Print formatted output with a ByteMap font. More... | |
void | GRRLIB_DrawImg (const f32 xpos, const f32 ypos, const GRRLIB_texImg *tex, const f32 degrees, const f32 scaleX, const f32 scaleY, const u32 color) |
Draw a texture. More... | |
Draw a texture. More... | |
void | GRRLIB_DrawImgQuad (const guVector pos[4], GRRLIB_texImg *tex, const u32 color) |
Draw a textured quad. More... | |
Draw a textured quad. More... | |
void | GRRLIB_DrawTile (const f32 xpos, const f32 ypos, const GRRLIB_texImg *tex, const f32 degrees, const f32 scaleX, const f32 scaleY, const u32 color, const int frame) |
Draw a tile. More... | |
Draw a tile. More... | |
void | GRRLIB_DrawPart (const f32 xpos, const f32 ypos, const f32 partx, const f32 party, const f32 partw, const f32 parth, const GRRLIB_texImg *tex, const f32 degrees, const f32 scaleX, const f32 scaleY, const u32 color) |
Draw a part of a texture. More... | |
Draw a part of a texture. More... | |
void | GRRLIB_DrawTileQuad (const guVector pos[4], GRRLIB_texImg *tex, const u32 color, const int frame) |
Draw a tile in a quad. More... | |
Draw a tile in a quad. More... | |
void | GRRLIB_Render (void) |
Call this function after drawing. | |
void | GRRLIB_Screen2Texture (int posx, int posy, GRRLIB_texImg *tex, bool clear) |
Make a snapshot of the screen in a texture WITHOUT ALPHA LAYER. More... | |
Make a snapshot of the screen in a texture WITHOUT ALPHA LAYER. More... | |
void | GRRLIB_CompoStart (void) |
Start GX compositing process. More... | |
Start GX compositing process. More... | |
void | GRRLIB_CompoEnd (int posx, int posy, GRRLIB_texImg *tex) |
End GX compositing process (Make a snapshot of the screen in a texture WITH ALPHA LAYER). More... | |
End GX compositing process (Make a snapshot of the screen in a texture WITH ALPHA LAYER). More... | |
GRRLIB_texImg * | GRRLIB_CreateEmptyTexture (const u32 w, const u32 h) |
Create an empty texture. More... | |
Create an empty texture. More... | |
GRRLIB_texImg * | GRRLIB_LoadTexture (const u8 *my_img) |
Load a texture from a buffer. More... | |
Load a texture from a buffer. More... | |
GRRLIB_texImg * | GRRLIB_LoadTexturePNG (const u8 *my_png) |
Load a texture from a buffer. More... | |
Load a texture from a buffer. More... | |
GRRLIB_texImg * | GRRLIB_LoadTextureJPG (const u8 *my_jpg) |
Load a texture from a buffer. More... | |
Load a texture from a buffer. More... | |
GRRLIB_texImg * | GRRLIB_LoadTextureJPGEx (const u8 *my_jpg, const int) |
Load a texture from a buffer. More... | |
Load a texture from a buffer. More... | |
GRRLIB_texImg * | GRRLIB_LoadTextureBMP (const u8 *my_bmp) |
Load a texture from a buffer. More... | |
Load a texture from a buffer. More... | |
bool | GRRLIB_GeckoInit () |
Initialize USB Gecko. More... | |
Initialize USB Gecko. More... | |
void | GRRLIB_GeckoPrintf (const char *text,...) |
Print Gecko. More... | |
Print Gecko. More... | |
void | GRRLIB_SetBackgroundColour (u8 r, u8 g, u8 b, u8 a) |
Set the background parameter when screen is cleared. More... | |
Set the background parameter when screen is cleared. More... | |
void | GRRLIB_Camera3dSettings (f32 posx, f32 posy, f32 posz, f32 upx, f32 upy, f32 upz, f32 lookx, f32 looky, f32 lookz) |
Set the camera parameter (contributed my chris_c aka DaShAmAn). More... | |
Set the camera parameter (contributed my chris_c aka DaShAmAn). More... | |
void | GRRLIB_3dMode (f32 minDist, f32 maxDist, f32 fov, bool texturemode, bool normalmode) |
Set up the position matrix (contributed by chris_c aka DaShAmAn). More... | |
Set up the position matrix (contributed by chris_c aka DaShAmAn). More... | |
void | GRRLIB_2dMode () | Init the object matrix to draw object. |
void | GRRLIB_ObjectViewScale (f32 scalx, f32 scaly, f32 scalz) |
Scale the object matrix to draw object. More... | |
Scale the object matrix to draw object. More... | |
void | GRRLIB_ObjectViewRotate (f32 angx, f32 angy, f32 angz) |
Rotate the object matrix to draw object . More... | |
Rotate the object matrix to draw object . More... | |
void | GRRLIB_ObjectViewTrans (f32 posx, f32 posy, f32 posz) |
Translate the object matrix to draw object. More... | |
Translate the object matrix to draw object. More... | |
void | GRRLIB_ObjectViewEnd (void) |
Concat the object and the view matrix and calculate the inverse normal matrix. | |
void | GRRLIB_ObjectView (f32 posx, f32 posy, f32 posz, f32 angx, f32 angy, f32 angz, f32 scalx, f32 scaly, f32 scalz) |
Set the view matrix to draw object (in this order scale, rotate AND trans). More... | |
Set the view matrix to draw object (in this order scale, rotate AND trans). More... | |
void | GRRLIB_ObjectViewInv (f32 posx, f32 posy, f32 posz, f32 angx, f32 angy, f32 angz, f32 scalx, f32 scaly, f32 scalz) |
Set the view matrix to draw object (in this order scale, trans AND rotate). More... | |
Set the view matrix to draw object (in this order scale, trans AND rotate). More... | |
void | GRRLIB_SetTexture (GRRLIB_texImg *tex, bool rep) |
Set the texture to an object (contributed by chris_c aka DaShAmAn). More... | |
Set the texture to an object (contributed by chris_c aka DaShAmAn). More... | |
void | GRRLIB_DrawTorus (f32 r, f32 R, int nsides, int rings, bool filled, u32 col) |
Draw a torus (with normal). More... | |
Draw a torus (with normal). More... | |
void | GRRLIB_DrawSphere (f32 r, int lats, int longs, bool filled, u32 col) |
Draw a sphere (with normal). More... | |
Draw a sphere (with normal). More... | |
void | GRRLIB_DrawCube (f32 size, bool filled, u32 col) |
Draw a cube (with normal). More... | |
Draw a cube (with normal). More... | |
void | GRRLIB_DrawCylinder (f32 r, f32 h, int d, bool filled, u32 col) |
Draw a cylinder (with normal). More... | |
Draw a cylinder (with normal). More... | |
void | GRRLIB_DrawCone (f32 r, f32 h, int d, bool filled, u32 col) |
Draw a cone (with normal). More... | |
Draw a cone (with normal). More... | |
void | GRRLIB_DrawTessPanel (f32 w, f32 wstep, f32 h, f32 hstep, bool filled, u32 col) |
Draw a Tesselated panel (with normal). More... | |
Draw a Tesselated panel (with normal). More... | |
void | GRRLIB_SetLightAmbient (u32 ambientcolor) |
Set ambient color. More... | |
Set ambient color. More... | |
void | GRRLIB_SetLightDiff (u8 num, guVector pos, f32 distattn, f32 brightness, u32 lightcolor) |
Set diffuse light parameters. More... | |
Set diffuse light parameters. More... | |
void | GRRLIB_SetLightSpec (u8 num, guVector dir, f32 shy, u32 lightcolor, u32 speccolor) |
Set specular light parameters. More... | |
Set specular light parameters. More... | |
void | GRRLIB_SetLightSpot (u8 num, guVector pos, guVector lookat, f32 angAttn0, f32 angAttn1, f32 angAttn2, f32 distAttn0, f32 distAttn1, f32 distAttn2, u32 lightcolor) |
Set Spot light parameters. More... | |
Set Spot light parameters. More... | |
void | GRRLIB_SetLightOff (void) |
Set all lights off, like at init. | |
GRRLIB_ttfFont * | GRRLIB_LoadTTF (const u8 *file_base, s32 file_size) |
Load a TTF from a buffer. More... | |
GRRLIB_ttfFont * | GRRLIB_LoadTTF (const u8 *file_base, s32 file_size) |
Load a TTF from a buffer. More... | |
void | GRRLIB_FreeTTF (GRRLIB_ttfFont *myFont) |
Free memory allocated by TTF fonts. More... | |
void | GRRLIB_FreeTTF (GRRLIB_ttfFont *myFont) |
Free memory allocated by TTF fonts. More... | |
void | GRRLIB_PrintfTTF (int x, int y, GRRLIB_ttfFont *myFont, const char *string, unsigned int fontSize, const u32 color) |
Print function for TTF font. More... | |
void | GRRLIB_PrintfTTF (int x, int y, GRRLIB_ttfFont *myFont, const char *string, unsigned int fontSize, const u32 color) |
Print function for TTF font. More... | |
void | GRRLIB_PrintfTTFW (int x, int y, GRRLIB_ttfFont *myFont, const wchar_t *string, unsigned int fontSize, const u32 color) |
Print function for TTF font. More... | |
void | GRRLIB_PrintfTTFW (int x, int y, GRRLIB_ttfFont *myFont, const wchar_t *string, unsigned int fontSize, const u32 color) |
Print function for TTF font. More... | |
u32 | GRRLIB_WidthTTF (GRRLIB_ttfFont *myFont, const char *, unsigned int) |
Get the width of a text in pixel. More... | |
u32 | GRRLIB_WidthTTF (GRRLIB_ttfFont *myFont, const char *, unsigned int) |
Get the width of a text in pixel. More... | |
u32 | GRRLIB_WidthTTFW (GRRLIB_ttfFont *myFont, const wchar_t *, unsigned int) |
Get the width of a text in pixel. More... | |
u32 | GRRLIB_WidthTTFW (GRRLIB_ttfFont *myFont, const wchar_t *, unsigned int) |
Get the width of a text in pixel. More... | |
Variables | |
GRR_EXTERN GXRModeObj * | rmode |
Video mode. More... | |
+GRR_EXTERN GXRModeObj * | rmode |
Video mode. | |
This is the complete list of functions, structures, defines, typedefs, enumerations and variables you may want to used to make your homebrew with GRRLIB.
-You simply need to include grrlib.h in your project to have access to all of these.
+This is the complete list of functions, structures, defines, typedefs, enumerations and variables you may want to used to make your homebrew with GRRLIB. You simply need to include grrlib.h in your project to have access to all of these.
#define A | -( | -- | c | ) | -( (c) &0xFF) | -
Extract alpha component of colour.
- -#define B | -( | -- | c | ) | -(((c) >> 8) &0xFF) | -
Extract blue component of colour.
- -#define G | -( | -- | c | ) | -(((c) >>16) &0xFF) | -
Extract green component of colour.
- -#define GRRLIB_BLEND_LIGHT (GRRLIB_BLEND_ADD) | -
Alias for GRRLIB_BLEND_ADD.
- -#define GRRLIB_BLEND_NONE (GRRLIB_BLEND_ALPHA) | -
Alias for GRRLIB_BLEND_ALPHA.
- -#define GRRLIB_BLEND_SHADE (GRRLIB_BLEND_MULTI) | -
Alias for GRRLIB_BLEND_MULTI.
- -#define R | -( | -- | c | ) | -(((c) >>24) &0xFF) | -
Extract red component of colour.
- -Build an RGB pixel from components.
texsrc | The texture source. |
texsrc | The texture source. |
texsrc | The texture source. |
texsrc | The texture source. |
texsrc | The texture source. |
texsrc | The texture source. |
texsrc | The texture source. |
texsrc | The texture source. |
posx | top left corner of the grabbed part. |
If bmf is a null pointer, the function does nothing.
bmf | A GRRLIB_bytemapFont structure. |
bmf | A GRRLIB_bytemapFont structure. |
If tex is a null pointer, the function does nothing.
tex | A GRRLIB_texImg structure. |
tex | A GRRLIB_texImg structure. |
Return the color value of a pixel from a GRRLIB_texImg.
+Return the color value of a pixel from a GRRLIB_texImg.
x | Specifies the x-coordinate of the pixel in the texture. |
GRRLIB_ttfFont* GRRLIB_LoadTTF | +GRRLIB_ttfFont* GRRLIB_LoadTTF | ( | const u8 * | file_base, | @@ -2894,7 +2780,7 @@ Variables
- | GRRLIB_ttfFont * | +GRRLIB_ttfFont * | myFont, | |
- | GRRLIB_ttfFont * | +GRRLIB_ttfFont * | myFont, | |
Set the color value of a pixel to a GRRLIB_texImg.
-Set the color value of a pixel to a GRRLIB_texImg.
+x | Specifies the x-coordinate of the pixel in the texture. |
tex | Pointer to an image texture (GRRLIB_texImg format). |
tex | Pointer to an image texture (GRRLIB_texImg format). |
rep | Texture Repeat Mode, True will repeat it, False won't. |
GRR_EXTERN GXRModeObj* rmode | -
Video mode.
-GRRLIB user include file. -More...
#include <gccore.h>
#include "grrlib/GRRLIB__lib.h"
#include "grrlib/GRRLIB__inline.h"
Typedefs | |
-typedef enum GRRLIB_blendMode | GRRLIB_blendMode |
GRRLIB Blending Modes. | |
-typedef struct GRRLIB_drawSettings | GRRLIB_drawSettings |
Structure to hold the current drawing settings. | |
-typedef struct GRRLIB_texImg | GRRLIB_texImg |
Structure to hold the texture information. | |
-typedef struct GRRLIB_bytemapChar | GRRLIB_bytemapChar |
Structure to hold the bytemap character information. | |
-typedef struct GRRLIB_bytemapFont | GRRLIB_bytemapFont |
Structure to hold the bytemap font information. | |
-typedef struct GRRLIB_Font | GRRLIB_ttfFont |
Structure to hold the TTF information. | |
+typedef enum GRRLIB_blendMode | GRRLIB_blendMode |
GRRLIB Blending Modes. | |
+typedef struct GRRLIB_drawSettings | GRRLIB_drawSettings |
Structure to hold the current drawing settings. | |
+typedef struct GRRLIB_texImg | GRRLIB_texImg |
Structure to hold the texture information. | |
+typedef struct GRRLIB_bytemapChar | GRRLIB_bytemapChar |
Structure to hold the bytemap character information. | |
+typedef struct GRRLIB_bytemapFont | GRRLIB_bytemapFont |
Structure to hold the bytemap font information. | |
+typedef struct GRRLIB_Font | GRRLIB_ttfFont |
Structure to hold the TTF information. | |
Enumerations | |
GRRLIB Blending Modes. More... | |
GRRLIB Blending Modes. More... | |
Functions | |
-GRR_EXTERN void *xfb [2] | GRR_INITS (NULL, NULL) | GRR_INITS (NULL, NULL) |
GRR_EXTERN u32 fb | GRR_INIT (0) | GRR_INIT |
Variables | |
GRR_EXTERN GXRModeObj * | rmode |
Video mode. More... | |
+GRR_EXTERN GXRModeObj * | rmode |
Video mode. | |
Welcome to the GRRLIB documentation. A complete list of functions is available from this page.
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.
Forum: http://grrlib.santo.fr/forum
-Code: https://github.com/GRRLIB/GRRLIB
+
Forum: http://grrlib.santo.fr/forum
+Code: https://github.com/GRRLIB/GRRLIB
Chat: #GRRLIB on EFnet
Project Leader : NoNameNo
-Documentation : Crayon, BlueChip
-Lead Coder : NoNameNo
-Support Coders : Crayon, Xane, DragonMinded, BlueChip
-Advisors : RedShade, Jespa
+
Project Leader : NoNameNo
+Documentation : Crayon, BlueChip
+Lead Coder : NoNameNo
+Support Coders : Crayon, Xane, DragonMinded, BlueChip
+Advisors : RedShade, Jespa
See the LICENCE file for licence rights and limitations (MIT).
-All notable changes to this project will be documented in this file.
-uint
declaration. The u32
type should be used instead.GRRLIB_CreateEmptyTexture()
function is not inline anymore.GRRLIB_CreateEmptyTexture()
function is not inline anymore.GRRLIB_ClampVar8()
was removed from GRRLIBGRRLIB_LoadBMF()
GRRLIB_LoadBMF()
GRRLIB_ObjectViewInv()
sampleGRRLIB_ObjectViewInv()
sampleGRRLIB_CompoStart()
and GRRLIB_CompoEnd()
for real GX compositing with transparency supportGRRLIB_Screen2Texture()
is now fully optimizedGRRLIB_CompoStart()
and GRRLIB_CompoEnd()
for real GX compositing with transparency supportGRRLIB_Screen2Texture()
is now fully optimizedGRRLIB_Compose()
was deleted since it was not fully using GXGRRLIB_GetColor()
was deleted, the RGBA macro should be used insteadGRRLIB_DrawPart()
to draw a specific part of a textureGRRLIB_Screen2Texture()
GRRLIB_DrawPart()
to draw a specific part of a textureGRRLIB_Screen2Texture()
GXColor
format and use GX_Color1u32
GRRLIB_LoadTexture()
now auto detect PNG or JPEGGRRLIB_LoadTexture()
now auto detect PNG or JPEGGRRLIB_InitTileSet()
to initialize a tile setGRRLIB_DrawImg()
recoded for simpler useGRRLIB_DrawTile()
recoded for simpler useInitVideo()
and GRRLIB_Start()
merge into GRRLIB_Init()
.GRRLIB_PtInRect()
, GRRLIB_RectInRect()
and GRRLIB_RectOnRect()
to detect hot zoneGRRLIB_GetPixelFromtexImg()
and GRRLIB_SetPixelTotexImg()
to directly read/write in textureGRRLIB_CreateEmptyTexture()
and GRRLIB_FlushTex()
GRRLIB_InitTileSet()
to initialize a tile setGRRLIB_DrawImg()
recoded for simpler useGRRLIB_DrawTile()
recoded for simpler useInitVideo()
and GRRLIB_Start()
merge into GRRLIB_Init()
.GRRLIB_PtInRect()
, GRRLIB_RectInRect()
and GRRLIB_RectOnRect()
to detect hot zoneGRRLIB_GetPixelFromtexImg()
and GRRLIB_SetPixelTotexImg()
to directly read/write in textureGRRLIB_CreateEmptyTexture()
and GRRLIB_FlushTex()
GRRLIB_Exit()
to free the memory allocated by GRRLIB GRRLIB_Exit()
to free the memory allocated by GRRLIB