grrlib.h File Reference

GRRLIB user include file. More...

#include <gccore.h>
#include "grrlib/GRRLIB__lib.h"
#include "grrlib/GRRLIB__inline.h"

Data Structures

struct  GRRLIB_drawSettings
 Structure to hold the current drawing settings. More...
struct  GRRLIB_texImg
 Structure to hold the texture informations. More...
struct  GRRLIB_bytemapChar
 Structure to hold the bytemap character informations. More...
struct  GRRLIB_bytemapFont
 Structure to hold the bytemap font informations. More...

Defines

#define __HAVE_GRRLIB__
#define R(c)   (((c) >>24) &0xFF)
 Exract Red component of colour.
#define G(c)   (((c) >>16) &0xFF)
 Exract Green component of colour.
#define B(c)   (((c) >> 8) &0xFF)
 Exract Blue component of colour.
#define A(c)   ( (c) &0xFF)
 Exract Alpha component of colour.
#define RGBA(r, g, b, a)
 Build an RGB pixel from components.
#define GRRLIB_BLEND_NONE   (GRRLIB_BLEND_ALPHA)
 Alias for GRRLIB_BLEND_ALPHA.
#define GRRLIB_BLEND_LIGHT   (GRRLIB_BLEND_ADD)
 Alias for GRRLIB_BLEND_ADD.
#define GRRLIB_BLEND_SHADE   (GRRLIB_BLEND_MULTI)
 Alias for GRRLIB_BLEND_MULTI.
#define GRR_EXTERN   extern
#define GRR_INIT(v)
#define GRR_INITS(...)
#define INLINE   inline

Typedefs

typedef Vector guVector
typedef Quaternion guQuaternion
typedef unsigned int uint
typedef enum Composition_Modes GRRLIB_ComposeMode
 Compositions Modes.

Enumerations

enum  Composition_Modes { GRRLIB_COMPOSE_NORMAL }
 

Compositions Modes.

More...
enum  GRRLIB_blendMode {
  GRRLIB_BLEND_ALPHA = 0, GRRLIB_BLEND_ADD = 1, GRRLIB_BLEND_SCREEN = 2, GRRLIB_BLEND_MULTI = 3,
  GRRLIB_BLEND_INV = 4
}
 

GRRLIB Blending Modes.

More...

Functions

GRR_EXTERN void *xfb[2] GRR_INITS (NULL, NULL)
GRR_EXTERN u32 fb GRR_INIT (0)

Variables

GRR_EXTERN GXRModeObj * rmode

Detailed Description

GRRLIB user include file.


Define Documentation

#define A (  )     ( (c) &0xFF)

Exract Alpha component of colour.

#define B (  )     (((c) >> 8) &0xFF)

Exract Blue component of colour.

#define G (  )     (((c) >>16) &0xFF)

Exract 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) >>24) &0xFF)

Exract Red component of colour.

#define RGBA ( r,
g,
b,
 ) 
Value:
( (u32)( ( ((u32)(r))        <<24) |  \
                               ((((u32)(g)) &0xFF) <<16) |  \
                               ((((u32)(b)) &0xFF) << 8) |  \
                               ( ((u32)(a)) &0xFF      ) ) )

Build an RGB pixel from components.


Enumeration Type Documentation

Compositions Modes.

Enumerator:
GRRLIB_COMPOSE_NORMAL 

NORMAL : a-over-b alpha composition (normal).

GRRLIB Blending Modes.

Enumerator:
GRRLIB_BLEND_ALPHA 

Alpha Blending.

GRRLIB_BLEND_ADD 

Additive Blending.

GRRLIB_BLEND_SCREEN 

Alpha Light Blending.

GRRLIB_BLEND_MULTI 

Multiply Blending.

GRRLIB_BLEND_INV 

Invert Color Blending.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Fri Sep 25 14:44:35 2009 for GRRLIB by  doxygen 1.6.1