56#ifdef JO_COMPILE_WITH_3D_SUPPORT
59# define JO_3D_GLOW_MAX (48)
89 const unsigned char b,
const int radius,
const int intensity);
158# define JO_3D_GLOW_LAYER_SHOWN (24)
161# define JO_3D_GLOW_LAYER_RECTS (4)
A rectangle of the screen (pixels, the edges are in it).
Definition 3d.h:1624
int radius
Definition entity.h:3
int height
Definition entity.h:4
jo_pos3D_fixed position
Definition entity.h:2
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_mode(const jo_3d_glow_mode mode)
Where the glows are drawn, before jo_3d_glows_enable() (or the glows turned off and on again).
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_glow_set_shape(const int id, const jo_3d_glow_shape shape, const int width, const int height)
Change the shape of a glow.
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.
jo_3d_glow_mode
Where the glows are drawn (see jo_3d_glows_set_mode()).
Definition glow.h:74
@ JO_3D_GLOW_LAYER
Definition glow.h:76
@ JO_3D_GLOW_VDP2
Definition glow.h:75
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...
jo_3d_glow_shape
Shapes of the glows (see jo_3d_glow_set_shape()).
Definition glow.h:64
@ JO_3D_GLOW_DISC
Definition glow.h:66
@ JO_3D_GLOW_STAR
Definition glow.h:65
@ JO_3D_GLOW_RECT
Definition glow.h:67
@ JO_3D_GLOW_FRAME
Definition glow.h:68
void jo_3d_glow_set_radius(const int id, const int radius)
Change the size of a glow.
void jo_3d_glow_set_anchor(const int id, const bool anchor)
Place a glow to the pixel: the scroll of the layer puts the grid of the cells on it (the glow seen th...
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:59
3D position using fixed numbers
Definition types.h:103