Functions | |
static uint32_t | hal_gfx_blending_mode (uint32_t src_bf, uint32_t dst_bf, uint32_t blops) |
Return blending mode given source and destination blending factors and additional blending operations. More... | |
void | hal_gfx_set_blend (uint32_t blending_mode, hal_gfx_tex_t dst_tex, hal_gfx_tex_t fg_tex, hal_gfx_tex_t bg_tex) |
Set blending mode. More... | |
static void | hal_gfx_set_blend_fill (uint32_t blending_mode) |
Set blending mode for filling. More... | |
static void | hal_gfx_set_blend_fill_compose (uint32_t blending_mode) |
Set blending mode for filling with composing. More... | |
static void | hal_gfx_set_blend_blit (uint32_t blending_mode) |
Set blending mode for blitting. More... | |
static void | hal_gfx_set_blend_blit_compose (uint32_t blending_mode) |
Set blending mode for blitting with composing. More... | |
void | hal_gfx_set_const_color (uint32_t rgba) |
Set constant color. More... | |
void | hal_gfx_set_src_color_key (uint32_t rgba) |
Set source color key. More... | |
void | hal_gfx_set_dst_color_key (uint32_t rgba) |
Set destination color key. More... | |
void | hal_gfx_debug_overdraws (uint32_t enable) |
Enable/disable ovedraw debugging. Disables gradient and texture, forces blending mode to HAL_GFX_BL_ADD. More... | |
|
inlinestatic |
Return blending mode given source and destination blending factors and additional blending operations.
[in] | src | Source Blending Factor |
[in] | dst | Destination Blending Factor |
[in] | ops | Additional Blending Operations |
Definition at line 84 of file hal_gfx_blender.h.
References HAL_GFX_BLOP_MASK.
void hal_gfx_debug_overdraws | ( | uint32_t | enable | ) |
Enable/disable ovedraw debugging. Disables gradient and texture, forces blending mode to HAL_GFX_BL_ADD.
[in] | enable | Enables overdraw debugging if non-zero |
void hal_gfx_set_blend | ( | uint32_t | blending_mode, |
hal_gfx_tex_t | dst_tex, | ||
hal_gfx_tex_t | fg_tex, | ||
hal_gfx_tex_t | bg_tex | ||
) |
Set blending mode.
[in] | blending_mode | Blending mode to be set |
[in] | dst_tex | Destination Texture |
[in] | fg_tex | Foreground (source) Texture |
[in] | bg_tex | Background (source2) Texture |
Referenced by hal_gfx_set_blend_blit(), hal_gfx_set_blend_blit_compose(), hal_gfx_set_blend_fill(), and hal_gfx_set_blend_fill_compose().
|
inlinestatic |
Set blending mode for blitting.
[in] | blending_mode | Blending mode to be set |
Definition at line 134 of file hal_gfx_blender.h.
References HAL_GFX_NOTEX, hal_gfx_set_blend(), HAL_GFX_TEX0, and HAL_GFX_TEX1.
|
inlinestatic |
Set blending mode for blitting with composing.
[in] | blending_mode | Blending mode to be set |
Definition at line 146 of file hal_gfx_blender.h.
References hal_gfx_set_blend(), HAL_GFX_TEX0, HAL_GFX_TEX1, and HAL_GFX_TEX2.
|
inlinestatic |
Set blending mode for filling.
[in] | blending_mode | Blending mode to be set |
Definition at line 110 of file hal_gfx_blender.h.
References HAL_GFX_NOTEX, hal_gfx_set_blend(), and HAL_GFX_TEX0.
|
inlinestatic |
Set blending mode for filling with composing.
[in] | blending_mode | Blending mode to be set |
Definition at line 122 of file hal_gfx_blender.h.
References HAL_GFX_NOTEX, hal_gfx_set_blend(), HAL_GFX_TEX0, and HAL_GFX_TEX2.
void hal_gfx_set_const_color | ( | uint32_t | rgba | ) |
Set constant color.
[in] | rgba | RGBA color (format: R[0,7] G[8,15] B[16,23] A[24,31]) |
void hal_gfx_set_dst_color_key | ( | uint32_t | rgba | ) |
Set destination color key.
[in] | rgba | RGBA color key (format: R[0,7] G[8,15] B[16,23] A[24,31]) |
void hal_gfx_set_src_color_key | ( | uint32_t | rgba | ) |
Set source color key.
[in] | rgba | RGBA color key (format: R[0,7] G[8,15] B[16,23] A[24,31]) |