|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
Go to the source code of this file.
Classes | |
| struct | MG_PICKZ |
Functions | |
| void | MGSetBGColor (float *color) |
| void | MGBeginDrawShadow (sceGsTex0 tex0) |
| void | MGEndDrawShadow (unsigned char alpha) |
| void | MGSetBGColor (float red, float green, float blue, float alpha) |
| int | MGGetVSyncCount () |
| void | MGClearScreen (u_char r, u_char g, u_char b, u_char a) |
| void | MGClearZBuffer (int mode) |
| sceVif1Packet * | GetVif1Packet () |
| void | MGGetAmbient (float *ambient) |
| void | MGSetAmbient (float *ambient) |
| void | MGSetPLight (float(*direction)[4], float(*color)[4]) |
| void | MGGetPLight (float(*direction)[4], float(*color)[4]) |
| int | MGRotTransPers (int *screen, float *position, int fog) |
| int | MGRotTransPers3DSprite (int *top_left, int *bottom_right, float *position, float width, float height, int fog) |
| void | MGDraw (CFrame *frame) |
| void | MGDrawShadowFast (CFrame *frame, float *position, float *normal) |
| void | MGDrawShadowFast2 (CFrame *frame, float *position, float *normal) |
| void | MGDrawShadow (CFrame *frame, float *position, float *normal) |
| void | MGDrawShade (CFrame *frame) |
| void | MGGetFBuffTex (sceGsTex0 *tex0) |
| void | MGSetGsZBUF (sceGsZbuf *zbuf) |
| void | MGSetGsTEST (sceGsTest *test) |
| void | MGFillBox (const CRect_i_ &rect, unsigned char r, unsigned char g, unsigned char b, unsigned char a) |
| void | MGSetFogParm (float near_z, float far_z, unsigned char r, unsigned char g, unsigned char b, float far_fog, float near_fog) |
| void | MGSetGsALPHA (sceGsAlpha *alpha) |
| void | MGMoveImage (sceGsTex0 *src, const CRect_i_ &rect, sceGsTex0 *dst, int dst_x, int dst_y, int direction) |
| void | MGMoveFrameBuffImage (sceGsTex0 *dst, int x, int y, int direction) |
| void | MGSetViewMatrix (float(*view)[4], float *position) |
| void | MGInit () |
| void | MGInitVSyncCallBack (int(*callback)(int)) |
| void | MGInitVif1Packet (u_long128 *buffer0, u_long128 *buffer1) |
| void | MGBeginFrame () |
| void | MGEndFrame () |
| void | MGFlipWaitVSync (int wait) |
| void | MGSetRenderInfo (float scale, float near_z, float far_z) |
| void | MGSetProjection (float scale) |
| float | MGGetProjection () |
| void | MGSetWindowRect () |
| void | MGSetWindowRect (CRect_i_ rect) |
| void | MGGetBGColor (float *color) |
| void | MGScisioringForce (int force) |
| int | MGRotTransPers2D (int *screen, float *position, int fog) |
| void | LensFlare (CTexture *texture, float *position, unsigned char red, unsigned char green, unsigned char blue) |
| void | MGCalcColor (float *color, float *normal) |
| int | MGClipVertex (float *position) |
| int | MGClipBox (class CBoxVu0 *box) |
| void | MGSetGsTEXA (sceGsTexa *texa) |
| void | MGGetFBuffBackTex (sceGsTex0 *tex0) |
| void | MGStretchMoveImage (sceGsTex0 *src, const CRect_i_ &src_rect, sceGsTex0 *dst, const CRect_i_ &dst_rect) |
Variables | |
| sceGifTag | GiftagAD |
| RenderInfo | mgRenderInfo |
| int | DBuffID |
| sceDmaChan * | DmaCH1 |
| sceDmaChan * | DmaCH2 |
| sceDmaChan * | DmaCH8 |
| sceVif1Packet * | Vif1Packet |
| s32 | VSyncField__2 |
| sceGsTex1 | mgTEX1Env |
| s32 | mgClearBackFlag |
| MG_PICKZ | mgPickZBuff [16] |
| sceGsDBuff | mgDBuff |
| sceVu0FVECTOR | mgBackColor |
| sceVu0FMATRIX | mgZeroMatrix |
| CRect_i_ | mgWindowRect |
| sceGsTexa | mgTexa |
| sceGsZbuf | mgZBuffer |
| sceGsAlpha | mgAlpha |
| sceGsTest | mgPixelTest |
| float | mgUnitMatrix [4][4] |
Declares the graphics library that the game draws every model through.
Definition in file mglib.hpp.
| void MGSetBGColor | ( | float * | color | ) |
| void MGBeginDrawShadow | ( | sceGsTex0 | tex0 | ) |
| void MGEndDrawShadow | ( | unsigned char | alpha | ) |
| void MGSetBGColor | ( | float | red, |
| float | green, | ||
| float | blue, | ||
| float | alpha | ||
| ) |
| int MGGetVSyncCount | ( | ) |
| void MGClearScreen | ( | u_char | r, |
| u_char | g, | ||
| u_char | b, | ||
| u_char | a | ||
| ) |
| sceVif1Packet * GetVif1Packet | ( | ) |
| void MGGetAmbient | ( | float * | ambient | ) |
| void MGSetAmbient | ( | float * | ambient | ) |
| void MGSetPLight | ( | float(*) | direction[4], |
| float(*) | color[4] | ||
| ) |
Sets the direction and the colour of each of the four point lights.
| void MGGetPLight | ( | float(*) | direction[4], |
| float(*) | color[4] | ||
| ) |
Reads the lighting direction and colour matrices.
| int MGRotTransPers | ( | int * | screen, |
| float * | position, | ||
| int | fog | ||
| ) |
| int MGRotTransPers3DSprite | ( | int * | top_left, |
| int * | bottom_right, | ||
| float * | position, | ||
| float | width, | ||
| float | height, | ||
| int | fog | ||
| ) |
Turns one world position into the two screen corners of a sprite that faces the eye, and gives back 1 while the sprite is on the screen.
| void MGDraw | ( | CFrame * | frame | ) |
| void MGDrawShadowFast | ( | CFrame * | frame, |
| float * | position, | ||
| float * | normal | ||
| ) |
| void MGDrawShadowFast2 | ( | CFrame * | frame, |
| float * | position, | ||
| float * | normal | ||
| ) |
| void MGDrawShadow | ( | CFrame * | frame, |
| float * | position, | ||
| float * | normal | ||
| ) |
| void MGDrawShade | ( | CFrame * | frame | ) |
| void MGGetFBuffTex | ( | sceGsTex0 * | tex0 | ) |
| void MGSetGsZBUF | ( | sceGsZbuf * | zbuf | ) |
| void MGSetGsTEST | ( | sceGsTest * | test | ) |
| void MGFillBox | ( | const CRect_i_ & | rect, |
| unsigned char | r, | ||
| unsigned char | g, | ||
| unsigned char | b, | ||
| unsigned char | a | ||
| ) |
| void MGSetFogParm | ( | float | near_z, |
| float | far_z, | ||
| unsigned char | r, | ||
| unsigned char | g, | ||
| unsigned char | b, | ||
| float | far_fog, | ||
| float | near_fog | ||
| ) |
| void MGSetGsALPHA | ( | sceGsAlpha * | alpha | ) |
| void MGMoveFrameBuffImage | ( | sceGsTex0 * | dst, |
| int | x, | ||
| int | y, | ||
| int | direction | ||
| ) |
| void MGSetViewMatrix | ( | float(*) | view[4], |
| float * | position | ||
| ) |
Sets the matrix that puts the world in front of the eye, and where the eye stands.
| void MGInit | ( | ) |
| void MGInitVSyncCallBack | ( | int(*)(int) | callback | ) |
| void MGInitVif1Packet | ( | u_long128 * | buffer0, |
| u_long128 * | buffer1 | ||
| ) |
| void MGBeginFrame | ( | ) |
| void MGEndFrame | ( | ) |
| void MGFlipWaitVSync | ( | int | wait | ) |
| void MGSetRenderInfo | ( | float | scale, |
| float | near_z, | ||
| float | far_z | ||
| ) |
| void MGSetProjection | ( | float | scale | ) |
| float MGGetProjection | ( | ) |
| void MGSetWindowRect | ( | ) |
| void MGSetWindowRect | ( | CRect_i_ | rect | ) |
| void MGGetBGColor | ( | float * | color | ) |
| void MGScisioringForce | ( | int | force | ) |
| int MGRotTransPers2D | ( | int * | screen, |
| float * | position, | ||
| int | fog | ||
| ) |
| void LensFlare | ( | CTexture * | texture, |
| float * | position, | ||
| unsigned char | red, | ||
| unsigned char | green, | ||
| unsigned char | blue | ||
| ) |
| void MGCalcColor | ( | float * | color, |
| float * | normal | ||
| ) |
Calculates a lit vertex colour from a surface normal.
| int MGClipVertex | ( | float * | position | ) |
| int MGClipBox | ( | class CBoxVu0 * | box | ) |
| void MGSetGsTEXA | ( | sceGsTexa * | texa | ) |
| void MGGetFBuffBackTex | ( | sceGsTex0 * | tex0 | ) |
| RenderInfo mgRenderInfo |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |