162#define BJ_SHADER_STANDARD_FLAGS (BJ_SHADER_INVERT_Y | BJ_SHADER_CLAMP_COLOR | BJ_SHADER_NORMALIZE_COORDS | BJ_SHADER_CENTER_COORDS)
General-purpose definitions for Banjo API.
bj_audio_play_note_data data
Header file for Bitmap type.
struct bj_bitmap bj_bitmap
2D vector of bj_real components.
3D vector of bj_real components.
void bj_shader_bitmap(struct bj_bitmap *bitmap, bj_bitmap_shading_fn shader, void *data, uint8_t flags)
Applies a shader function to every pixel in a bitmap.
bj_shader_flag
Shader input control flags.
int(* bj_bitmap_shading_fn)(struct bj_vec3 *out_color, const struct bj_vec2 pixel_coord, void *user_data)
Function type for a bitmap shading operation.
@ BJ_SHADER_CENTER_COORDS
Centre pixel coordinates around the origin.
@ BJ_SHADER_CLAMP_COLOR
Clamp the output colour to the range [0.0, 1.0].
@ BJ_SHADER_INVERT_Y
Invert the Y coordinate of the input pixel.
@ BJ_SHADER_NORMALIZE_COORDS
Normalise pixel coordinates to the [0.0, 1.0] range.
@ BJ_SHADER_INVERT_X
Invert the X coordinate of the input pixel.
Fixed-size vector types (2D, 3D, 4D) and inline operations.