![]() |
Jo Engine 2026.11.28
Jo Sega Saturn Engine
|
Jo Engine render to image: the VDP1 draws 3D polygons and sprites into an image instead of the screen (a monitor, a rear-view mirror, a portrait in a menu, a texture made at run time). More...
Go to the source code of this file.
Functions | |
| bool | jo_3d_render_to_image_init (const int width, const int height) |
| Start the render to image (or change its size). | |
| int | jo_3d_render_to_image_add_sprite (void) |
| Add a sprite of the size of the image: its texture receives the image at each VBLANK. | |
| const jo_img * | jo_3d_render_to_image_get (void) |
| The image (32768 colors, the background transparent): the frame drawn before, updated when the VDP1 finishes a frame (show it on NBG1 with jo_vdp2_set_nbg1_image(), read its pixels). | |
| void | jo_3d_render_to_image_begin (void) |
| Start drawing into the image: the next polygons and sprites of the master CPU go into it (until jo_3d_render_to_image_end()). The first call of a frame clears the image. | |
| void | jo_3d_render_to_image_end (void) |
| End drawing into the image (see jo_3d_render_to_image_begin()). | |
| void | jo_3d_render_to_image_stop (void) |
| Stop the render to image: the memory and the level 1 of the SCU DMA given back, the drawing of the VDP1 clipped to the screen again (the sprite of jo_3d_render_to_image_add_sprite() stays: free it if needed). | |
Jo Engine render to image: the VDP1 draws 3D polygons and sprites into an image instead of the screen (a monitor, a rear-view mirror, a portrait in a menu, a texture made at run time).
Usage:
| int jo_3d_render_to_image_add_sprite | ( | void | ) |
Add a sprite of the size of the image: its texture receives the image at each VBLANK.
| void jo_3d_render_to_image_begin | ( | void | ) |
Start drawing into the image: the next polygons and sprites of the master CPU go into it (until jo_3d_render_to_image_end()). The first call of a frame clears the image.
| void jo_3d_render_to_image_end | ( | void | ) |
End drawing into the image (see jo_3d_render_to_image_begin()).
| const jo_img * jo_3d_render_to_image_get | ( | void | ) |
The image (32768 colors, the background transparent): the frame drawn before, updated when the VDP1 finishes a frame (show it on NBG1 with jo_vdp2_set_nbg1_image(), read its pixels).
| bool jo_3d_render_to_image_init | ( | const int | width, |
| const int | height ) |
Start the render to image (or change its size).
| width | Width of the image (pixels, even): at most the free width of the frame buffer beside the screen (192 in 320, 160 in 352) |
| height | Height of the image (lines): at most the height of the screen |
| void jo_3d_render_to_image_stop | ( | void | ) |
Stop the render to image: the memory and the level 1 of the SCU DMA given back, the drawing of the VDP1 clipped to the screen again (the sprite of jo_3d_render_to_image_add_sprite() stays: free it if needed).