53#ifdef JO_COMPILE_WITH_3D_SUPPORT
56# define JO_3D_GLOW_MAX (48)
68 const unsigned char b,
const int radius,
const int intensity);
88void jo_3d_glow_set_color(
const int id,
const unsigned char r,
const unsigned char g,
const unsigned char b);
A rectangle of the screen (pixels, the edges are in it).
Definition 3d.h:1383
void jo_3d_glow_set_intensity(const int id, const int intensity)
Change the intensity of a glow (a lamp that flickers, an alarm).
void jo_3d_glows_set_occlusion(bool(*hit)(const jo_pos3D_fixed *const origin, const jo_pos3D_fixed *const dir, const jo_fixed max_t))
The walls hide the glows behind them (a ray from the camera to the lamp, a few each frame).
void jo_3d_glows_set_rays(const int light, const int diagonal_light)
The light of the rays of the glows (the star around the disc), before jo_3d_glows_enable() (its chara...
void jo_3d_glows_clear(void)
Remove all the glows.
bool jo_3d_glows_enable(const bool enabled)
Turn the glows on or off: the VDP2 layers (see the remarks of this file: the 3D planes are hidden whi...
void jo_3d_glow_set_position(const int id, const jo_pos3D_fixed *const position)
Move a glow.
int jo_3d_glow_add(const jo_pos3D_fixed *const position, const unsigned char r, const unsigned char g, const unsigned char b, const int radius, const int intensity)
Add a glow.
void jo_3d_glows_draw(const jo_pos3D_fixed *const camera)
Place the glows seen from the camera (once per frame, after the camera: its matrix is the current mat...
void jo_3d_glows_set_clip(bool(*clip)(const jo_pos3D_fixed *const position, jo_3d_rect *const rect))
The glows are seen only in a rectangle of the screen: the rectangle where the place of the lamp is se...
void jo_3d_glow_set_color(const int id, const unsigned char r, const unsigned char g, const unsigned char b)
Change the color of a glow.
int jo_fixed
Fixed point Q16.16 number.
Definition types.h:48
3D position using fixed numbers
Definition types.h:92