25 PACK_GIFTAG(q, GS_SET_ALPHA(blend->color1,blend->color2,blend->alpha,
26 blend->color3,blend->fixed_alpha),
GS_REG_ALPHA + context);
38 PACK_GIFTAG(q, GS_SET_FRAME(frame->address>>11,frame->width>>6,frame->psm,frame->mask),
GS_REG_FRAME + context);
50 PACK_GIFTAG(q, GS_SET_ZBUF(zbuffer->address>>11,zbuffer->zsm,zbuffer->mask),
GS_REG_ZBUF + context);
60 if(clut->storage_mode == CLUT_STORAGE_MODE2)
68 PACK_GIFTAG(q, GS_SET_TEX0(texture->address>>6,texture->width>>6,texture->psm,
69 texture->info.width,texture->info.height,texture->info.components,texture->info.function,
70 clut->address>>6,clut->psm,clut->storage_mode,clut->start,clut->load_method),
GS_REG_TEX0 + context);
80 if (clut->storage_mode == CLUT_STORAGE_MODE2)
88 PACK_GIFTAG(q, GS_SET_TEX2(psm,clut->address>>6,clut->psm,clut->storage_mode,clut->start,clut->load_method),
GS_REG_TEX2 + context);
127 PACK_GIFTAG(q, GS_SET_DIMX(dm[0], dm[1], dm[2], dm[3],
128 dm[4], dm[5], dm[6], dm[7],
129 dm[8], dm[9], dm[10],dm[11],
137qword_t *
draw_fog_color(qword_t *q,
unsigned char r,
unsigned char g,
unsigned char b)
182 PACK_GIFTAG(q,GS_SET_FBA(alpha),
GS_REG_FBA + context);
195 PACK_GIFTAG(q, GS_SET_XYOFFSET((
int)(x*16.0f),(
int)(y*16.0f)),
GS_REG_XYOFFSET + context);
221 PACK_GIFTAG(q, GS_SET_PRMODE(prim->shading,prim->mapping,prim->fogging,
222 prim->blending,prim->antialiasing,prim->mapping_type,
236 PACK_GIFTAG(q, GS_SET_TEX1(lod->calculation,lod->max_level,lod->mag_filter,lod->min_filter,lod->mipmap_select,lod->l,(
int)(lod->k*16.0f)),
GS_REG_TEX1 + context);
249 PACK_GIFTAG(q, GS_SET_MIPTBP1(mipmap->address1,mipmap->width1,
250 mipmap->address2,mipmap->width2,
264 PACK_GIFTAG(q, GS_SET_MIPTBP2(mipmap->address1,mipmap->width1,
265 mipmap->address2,mipmap->width2,
279 PACK_GIFTAG(q, GS_SET_SCISSOR(x0,x1,y0,y1),
GS_REG_SCISSOR + context);
292 PACK_GIFTAG(q, GS_SET_TEST(atest->enable,atest->method,atest->compval,atest->keep,
293 dtest->enable,dtest->pass,
294 ztest->enable,ztest->method),
GS_REG_TEST + context);
307 PACK_GIFTAG(q, GS_SET_CLAMP(wrap->horizontal,wrap->vertical,wrap->minu,
308 wrap->maxu,wrap->minv,wrap->maxv),
GS_REG_CLAMP + context);
321 PACK_GIFTAG(q, GS_SET_TEXA(zero_value,expand,one_value),
GS_REG_TEXA);
qword_t * draw_pixel_alpha_control(qword_t *q, int enable)
qword_t * draw_alpha_correction(qword_t *q, int context, int alpha)
qword_t * draw_alpha_blending(qword_t *q, int context, blend_t *blend)
qword_t * draw_framebuffer(qword_t *q, int context, framebuffer_t *frame)
qword_t * draw_clut_offset(qword_t *q, int cbw, int u, int v)
qword_t * draw_zbuffer(qword_t *q, int context, zbuffer_t *zbuffer)
qword_t * draw_texturebuffer(qword_t *q, int context, texbuffer_t *texbuffer, clutbuffer_t *clut)
qword_t * draw_clutbuffer(qword_t *q, int context, int psm, clutbuffer_t *clut)
qword_t * draw_dithering(qword_t *q, int enable)
qword_t * draw_dither_matrix(qword_t *q, char *dm)
qword_t * draw_fog_color(qword_t *q, unsigned char r, unsigned char g, unsigned char b)
qword_t * draw_color_clamping(qword_t *q, int enable)
qword_t * draw_scan_masking(qword_t *q, int mask)
qword_t * draw_primitive_override(qword_t *q, int mode)
qword_t * draw_primitive_override_setting(qword_t *q, int context, prim_t *prim)
qword_t * draw_primitive_xyoffset(qword_t *q, int context, float x, float y)
qword_t * draw_texture_expand_alpha(qword_t *q, unsigned char zero_value, int expand, unsigned char one_value)
qword_t * draw_mipmap1(qword_t *q, int context, mipmap_t *mipmap)
qword_t * draw_texture_wrapping(qword_t *q, int context, texwrap_t *wrap)
qword_t * draw_texture_sampling(qword_t *q, int context, lod_t *lod)
qword_t * draw_mipmap2(qword_t *q, int context, mipmap_t *mipmap)
qword_t * draw_scissor_area(qword_t *q, int context, int x0, int x1, int y0, int y1)
qword_t * draw_pixel_test(qword_t *q, int context, atest_t *atest, dtest_t *dtest, ztest_t *ztest)
#define GS_REG_PRMODECONT