55 uint32_t color_control;
56 uint32_t alpha_control;
79 GX_TEV_IO_PREVIOUS = 0x0,
80 GX_TEV_IO_REGISTER_0 = 0x2,
81 GX_TEV_IO_REGISTER_1 = 0x4,
82 GX_TEV_IO_REGISTER_2 = 0x6,
83 GX_TEV_IO_TEXTURE = 0x8,
84 GX_TEV_IO_RASTERIZER = 0xA,
87 GX_TEV_IO_CONSTANT = 0xE,
90 GX_TEV_IO_ALPHA = 0x1,
102 GX_TEV_BIAS_ADD_HALF,
107 GX_TEV_COMPARE_R8_GREATER = 0x0,
108 GX_TEV_COMPARE_R8_EQUAL = 0x1,
109 GX_TEV_COMPARE_GR16_GREATER = 0x2,
110 GX_TEV_COMPARE_GR16_EQUAL = 0x3,
111 GX_TEV_COMPARE_BGR24_GREATER = 0x4,
112 GX_TEV_COMPARE_BGR24_EQUAL = 0x5,
113 GX_TEV_COMPARE_RGB8_GT = 0x6,
114 GX_TEV_COMPARE_RGB8_EQ = 0x7,
115 GX_TEV_COMPARE_A8_GREATER = 0x6,
116 GX_TEV_COMPARE_A8_EQUAL = 0x7
void gx_set_tev_stage_color_output(gx_tev_stage_t *tev, gx_tev_io_t out, bool clamp)
Sets the color output to a TEV stage.
Definition gx.c:1459
void gx_set_tev_stages(int count)
Sets the number of tev stages.
Definition gx.c:1413
void gx_set_tev_stage_alpha_output(gx_tev_stage_t *tev, gx_tev_io_t out, bool clamp)
Sets the alpha output to a TEV stage.
Definition gx.c:1464
void gx_initialize_tev_stage(gx_tev_stage_t *tev)
Generates a empty TEV stage.
Definition gx.c:1419
void gx_set_tev_stage_alpha_biasing(gx_tev_stage_t *tev, bool subtract, gx_tev_bias_t bias, gx_tev_scale_t scale)
Sets the TEV alpha stage into biasing mode.
Definition gx.c:1482
void gx_set_tev_stage_color_input(gx_tev_stage_t *tev, gx_tev_io_t a, gx_tev_io_t b, gx_tev_io_t c, gx_tev_io_t d)
Sets the color inputs to a TEV stage.
Definition gx.c:1443
void gx_set_tev_stage_color_biasing(gx_tev_stage_t *tev, bool subtract, gx_tev_bias_t bias, gx_tev_scale_t scale)
Sets the TEV color stage into biasing mode.
Definition gx.c:1471
void gx_set_tev_stage_color_comparison(gx_tev_stage_t *tev, gx_tev_compare_t comparison)
Sets the TEV color stage into comparison mode.
Definition gx.c:1476
void gx_set_tev_stage_alpha_input(gx_tev_stage_t *tev, gx_tev_io_t a, gx_tev_io_t b, gx_tev_io_t c, gx_tev_io_t d)
Sets the color inputs to a TEV stage.
Definition gx.c:1448
void gx_set_tev_stage_alpha_comparison(gx_tev_stage_t *tev, gx_tev_compare_t comparison)
Sets the TEV alpha stage into comparison mode.
Definition gx.c:1487
void gx_flash_tev_stage(gx_tev_stage_id id, const gx_tev_stage_t *tev)
Flashes a TEV stage onto the BP.
Definition gx.c:1435
void gx_flash_tev_register_color(gx_tev_io_t reg, int r, int g, int b, int a)
Set the value of one of the TEVs internal registers.
Definition gx.c:1493