#include <pspgu.h>
#include "pgeTexture.h"
#include "pgeObj.h"
Data Structures | |
struct | pgeVertV |
struct | pgeVertNV |
struct | pgeVertCV |
struct | pgeVertCNV |
struct | pgeVertTV |
struct | pgeVertTNV |
struct | pgeVertTCV |
struct | pgeVertTCNV |
struct | pgeRect |
struct | pgeCamera |
Defines | |
#define | ARGB(a, r, g, b) ((a << 24) | (r << 16) | (g << 8) | b) |
#define | RGBA(r, g, b, a) ((a << 24) | (b << 16) | (g << 8) | r) |
#define | PGE_GFX_PROJECTION GU_PROJECTION |
#define | PGE_GFX_VIEW GU_VIEW |
#define | PGE_GFX_MODEL GU_MODEL |
Enumerations | |
enum | pgeGfxVertexType { PGE_VERT_V = GU_VERTEX_32BITF, PGE_VERT_NV = GU_NORMAL_32BITF|GU_VERTEX_32BITF, PGE_VERT_CV = GU_COLOR_8888|GU_VERTEX_32BITF, PGE_VERT_CNV = GU_COLOR_8888|GU_NORMAL_32BITF|GU_VERTEX_32BITF, PGE_VERT_TV = GU_TEXTURE_32BITF|GU_VERTEX_32BITF, PGE_VERT_TNV = GU_TEXTURE_32BITF|GU_NORMAL_32BITF|GU_VERTEX_32BITF, PGE_VERT_TCV = GU_TEXTURE_32BITF|GU_COLOR_8888|GU_VERTEX_32BITF, PGE_VERT_TCNV = GU_TEXTURE_32BITF|GU_COLOR_8888|GU_NORMAL_32BITF|GU_VERTEX_32BITF } |
enum | pgeGfxPrim { PGE_PRIM_POINTS, PGE_PRIM_LINES, PGE_PRIM_LINE_STRIP, PGE_PRIM_TRIANGLES, PGE_PRIM_TRIANGLE_STRIP, PGE_PRIM_TRIANGLE_FAN, PGE_PRIM_SPRITES } |
enum | pgeBlendMode { PGE_BLEND_MODE_TRANSPARENT, PGE_BLEND_MODE_REGULAR } |
enum | pgeWaitVsync { PGE_NO_WAIT_VSYNC = 0, PGE_WAIT_VSYNC } |
Functions | |
unsigned int * | pgeGfxGetFramebuffer (void) |
int | pgeGfxInit (enum pgePixelFormat pixelformat) |
void | pgeGfxShutdown (void) |
void | pgeGfxStartDrawing (void) |
void | pgeGfxEndDrawing (void) |
void | pgeGfxSwapBuffers (enum pgeWaitVsync vsync) |
void | pgeGfxClearScreen (unsigned int color) |
unsigned int | pgeGfxCreateColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a) |
void | pgeGfxRenderToTexture (pgeTexture *texture) |
void | pgeGfxRenderToScreen (void) |
int | pgeGfxSetBlendMode (enum pgeBlendMode mode) |
void | pgeGfxSetMode3DCamera (float fov, pgeCamera *cam) |
void | pgeGfxDrawLine (float startx, float starty, float endx, float endy, unsigned int color) |
void | pgeGfxDrawStar (float x, float y, float outerradius, float innerradius, unsigned int numpoints, unsigned int color, float angle) |
void | pgeGfxDrawStarOutline (float x, float y, float outerradius, float innerradius, unsigned int numpoints, unsigned int color, float angle) |
void | pgeGfxDrawCircle (float x, float y, float radius, unsigned int numsteps, unsigned int color) |
void | pgeGfxDrawCircleOutline (float x, float y, float radius, unsigned int numsteps, unsigned int color) |
void | pgeGfxDrawRect (pgeRect *destrect, unsigned int color, float angle) |
void | pgeGfxDrawRectOutline (pgeRect *destrect, unsigned int color, float angle) |
void | pgeGfxDrawRectGrad (pgeRect *destrect, unsigned int color1, unsigned int color2, unsigned int color3, unsigned int color4, float angle) |
void | pgeGfxDrawTextureEasy (pgeTexture *texture, float x, float y, float angle, unsigned char alpha) |
void | pgeGfxDrawTexture (pgeRect *destrect, pgeRect *sourcerect, float angle, unsigned char alpha) |
void | pgeGfxDrawTextureColored (pgeRect *destrect, pgeRect *sourcerect, float angle, unsigned int color) |
void * | pgeGfxGetVertexMemory (int size) |
void | pgeGfxDrawCustom2D (enum pgeGfxPrim prim, enum pgeGfxVertexType vtype, int count, const void *vertices) |
void | pgeGfxDrawCustom3D (ScePspFVector3 *position, ScePspFVector3 *rotation, enum pgeGfxPrim prim, enum pgeGfxVertexType vtype, int count, const void *vertices) |
void | pgeGfxDrawTexture3D (ScePspFVector3 *position, ScePspFVector3 *rotation, float width, float height) |
void | pgeGfxDrawTexture3DColored (ScePspFVector3 *position, ScePspFVector3 *rotation, float width, float height, unsigned int color) |
void | pgeGfxDrawCube (ScePspFVector3 *position, ScePspFVector3 *rotation, float width, float height, float depth, unsigned int color) |
void | pgeGfxDrawCubeTexture (ScePspFVector3 *position, ScePspFVector3 *rotation, float width, float height, float depth) |
void | pgeGfxDrawObj (pgeObj *obj, ScePspFVector3 *position, ScePspFVector3 *rotation) |
int | pgeGfxGetMatrix (ScePspFMatrix4 *m, int mode) |
void | pgeGfxRotateY (float angle) |
void | pgeGfxRotateX (float angle) |
void | pgeGfxLookAt (ScePspFVector3 *eye, ScePspFVector3 *center, ScePspFVector3 *up) |
void | pgeGfxPerspective (float fovy, float aspect, float near, float far) |
void | pgeGfxMatrixMode (int mode) |
void | pgeGfxLoadIdentity (void) |
int | pgeGfxProject (ScePspFVector3 *object, ScePspFVector3 *screen) |
int | pgeGfxUnproject (ScePspFVector3 *screen, ScePspFVector3 *object) |
void | pgeGfxSetTransparent (unsigned int color) |
void | pgeGfxUnsetTransparent (void) |
unsigned int | pgeGfxColorSub (unsigned int color1, unsigned int color2) |
unsigned int | pgeGfxColorAdd (unsigned int color1, unsigned int color2) |
unsigned int | pgeGfxColorMul (unsigned int color1, unsigned int color2) |
unsigned int | pgeGfxColorMulScalar (unsigned int color, float scalar) |
unsigned int | pgeGfxColorDivScalar (unsigned int color, float scalar) |
int | pgeGfxColorCompare (unsigned int color1, unsigned int color2) |
unsigned int | pgeGfxColorClamp (unsigned int color) |