ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
draw_dithering.h File Reference
#include <tamtypes.h>
+ Include dependency graph for draw_dithering.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef signed char dithermx_t[16]
 

Functions

qword_tdraw_dithering (qword_t *q, int enable)
 
qword_tdraw_dither_matrix (qword_t *q, char *dm)
 

Detailed Description

Draw library dithering functions

Definition in file draw_dithering.h.

Typedef Documentation

◆ dithermx_t

typedef signed char dithermx_t[16]

Definition at line 11 of file draw_dithering.h.

Function Documentation

◆ draw_dither_matrix()

qword_t* draw_dither_matrix ( qword_t q,
char *  dm 
)

Dithering Matrix

Definition at line 121 of file draw_environment.c.

122 {
123 
125  q++;
126 
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],
130  dm[12],dm[13],dm[14],dm[15]), GS_REG_DIMX);
131  q++;
132 
133  return q;
134 
135 }
#define PACK_GIFTAG(Q, D0, D1)
Definition: gif_tags.h:76
#define GIF_SET_TAG(NLOOP, EOP, PRE, PRIM, FLG, NREG)
Definition: gif_tags.h:80
#define GIF_REG_AD
Definition: gif_tags.h:72
#define GIF_FLG_PACKED
Definition: gif_tags.h:35
#define GS_SET_DIMX(D00, D01, D02, D03, D10, D11, D12, D13, D20, D21, D22, D23, D30, D31, D32, D33)
Definition: gs_gp.h:187
#define GS_REG_DIMX
Definition: gs_gp.h:99

References GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_DIMX, GS_SET_DIMX, and PACK_GIFTAG.

◆ draw_dithering()

qword_t* draw_dithering ( qword_t q,
int  enable 
)

Dithering Switch

Definition at line 108 of file draw_environment.c.

109 {
110 
112  q++;
113 
114  PACK_GIFTAG(q, GS_SET_DTHE(enable), GS_REG_DTHE);
115  q++;
116 
117  return q;
118 
119 }
#define GS_REG_DTHE
Definition: gs_gp.h:101
#define GS_SET_DTHE(ENABLE)
Definition: gs_gp.h:197

References GIF_FLG_PACKED, GIF_REG_AD, GIF_SET_TAG, GS_REG_DTHE, GS_SET_DTHE, and PACK_GIFTAG.