ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
Go to the source code of this file.
Alpha Blending
Definition at line 20 of file draw_environment.c.
References blend_t::alpha, blend_t::color1, blend_t::color2, blend_t::color3, context, blend_t::fixed_alpha, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_ALPHA, GS_SET_ALPHA, and PACK_GIFTAG.
Alpha Correction
Definition at line 176 of file draw_environment.c.
References context, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_FBA, GS_SET_FBA, and PACK_GIFTAG.
CLUT Storage Mode 2 Information
Definition at line 95 of file draw_environment.c.
References GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_TEXCLUT, GS_SET_TEXCLUT, and PACK_GIFTAG.
qword_t* draw_clutbuffer | ( | qword_t * | q, |
int | context, | ||
int | psm, | ||
clutbuffer_t * | clut | ||
) |
CLUT Storage Mode 1 Information
Definition at line 77 of file draw_environment.c.
References clutbuffer_t::address, clut, CLUT_STORAGE_MODE2, context, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_TEX2, GS_SET_TEX2, clutbuffer_t::load_method, PACK_GIFTAG, clutbuffer_t::psm, clutbuffer_t::start, and clutbuffer_t::storage_mode.
Color Masking/Clamping
Definition at line 163 of file draw_environment.c.
References GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_COLCLAMP, GS_SET_COLCLAMP, and PACK_GIFTAG.
Dithering Matrix
Definition at line 121 of file draw_environment.c.
References GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_DIMX, GS_SET_DIMX, and PACK_GIFTAG.
Dithering Switch
Definition at line 108 of file draw_environment.c.
References GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_DTHE, GS_SET_DTHE, and PACK_GIFTAG.
Fog Color
Definition at line 137 of file draw_environment.c.
References GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_FOGCOL, GS_SET_FOGCOL, and PACK_GIFTAG.
qword_t* draw_framebuffer | ( | qword_t * | q, |
int | context, | ||
framebuffer_t * | frame | ||
) |
Framebuffer Attributes
Definition at line 33 of file draw_environment.c.
References framebuffer_t::address, context, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_FRAME, GS_SET_FRAME, framebuffer_t::mask, PACK_GIFTAG, framebuffer_t::psm, and framebuffer_t::width.
Referenced by flip_buffers().
Mipmap levels 1-3
Definition at line 243 of file draw_environment.c.
References mipmap_t::address1, mipmap_t::address2, mipmap_t::address3, context, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_MIPTBP1, GS_SET_MIPTBP1, PACK_GIFTAG, mipmap_t::width1, mipmap_t::width2, and mipmap_t::width3.
Mipmap levels 4-6
Definition at line 258 of file draw_environment.c.
References mipmap_t::address1, mipmap_t::address2, mipmap_t::address3, context, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_MIPTBP2, GS_SET_MIPTBP2, PACK_GIFTAG, mipmap_t::width1, mipmap_t::width2, and mipmap_t::width3.
Alpha Blending Per-Pixel MSB Control
Definition at line 8 of file draw_environment.c.
References GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_PABE, GS_SET_PABE, and PACK_GIFTAG.
qword_t* draw_pixel_test | ( | qword_t * | q, |
int | context, | ||
atest_t * | atest, | ||
dtest_t * | dtest, | ||
ztest_t * | ztest | ||
) |
Pixel Testing
Definition at line 286 of file draw_environment.c.
References atest_t::compval, context, atest_t::enable, dtest_t::enable, ztest_t::enable, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_TEST, GS_SET_TEST, atest_t::keep, atest_t::method, ztest_t::method, PACK_GIFTAG, and dtest_t::pass.
Primitive Control
Definition at line 202 of file draw_environment.c.
References GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_PRMODECONT, GS_SET_PRMODECONT, mode, and PACK_GIFTAG.
Overridden Primitive Attributes
Definition at line 215 of file draw_environment.c.
References prim_t::antialiasing, prim_t::blending, prim_t::colorfix, context, prim_t::fogging, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_PRMODE, GS_SET_PRMODE, prim_t::mapping, prim_t::mapping_type, PACK_GIFTAG, prim, and prim_t::shading.
Primitive Coordinate System offset
Definition at line 189 of file draw_environment.c.
References context, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_XYOFFSET, GS_SET_XYOFFSET, PACK_GIFTAG, x, and y.
Referenced by init_drawing_environment().
Scanline Masking (framebuffer)
Definition at line 150 of file draw_environment.c.
References GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_SCANMSK, GS_SET_SCANMSK, and PACK_GIFTAG.
Scissoring pixel test area
Definition at line 273 of file draw_environment.c.
References context, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_SCISSOR, GS_SET_SCISSOR, and PACK_GIFTAG.
qword_t* draw_texture_expand_alpha | ( | qword_t * | q, |
unsigned char | zero_value, | ||
int | expand, | ||
unsigned char | one_value | ||
) |
Alpha Expansion Values
Definition at line 315 of file draw_environment.c.
References GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_TEXA, GS_SET_TEXA, and PACK_GIFTAG.
Texture Sampling, Level-of-Detail, and Filtering
Definition at line 230 of file draw_environment.c.
References lod_t::calculation, context, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_TEX1, GS_SET_TEX1, lod_t::k, lod_t::l, lod, lod_t::mag_filter, lod_t::max_level, lod_t::min_filter, lod_t::mipmap_select, and PACK_GIFTAG.
Referenced by run_demo(), and setup_texture().
Texture Clamping
Definition at line 301 of file draw_environment.c.
References context, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_CLAMP, GS_SET_CLAMP, texwrap_t::horizontal, texwrap_t::maxu, texwrap_t::maxv, texwrap_t::minu, texwrap_t::minv, PACK_GIFTAG, and texwrap_t::vertical.
qword_t* draw_texturebuffer | ( | qword_t * | q, |
int | context, | ||
texbuffer_t * | texbuffer, | ||
clutbuffer_t * | clut | ||
) |
TextureBuffer Attributes
Definition at line 57 of file draw_environment.c.
References texbuffer_t::address, clutbuffer_t::address, clut, CLUT_STORAGE_MODE2, texinfo_t::components, context, texinfo_t::function, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_TEX0, GS_SET_TEX0, texinfo_t::height, texbuffer_t::info, clutbuffer_t::load_method, PACK_GIFTAG, texbuffer_t::psm, clutbuffer_t::psm, clutbuffer_t::start, clutbuffer_t::storage_mode, texinfo_t::width, and texbuffer_t::width.
Referenced by run_demo(), and setup_texture().
ZBuffer Attributes
Definition at line 45 of file draw_environment.c.
References zbuffer_t::address, context, GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_ZBUF, GS_SET_ZBUF, zbuffer_t::mask, PACK_GIFTAG, and zbuffer_t::zsm.