Jo Engine 2026.11.28
Jo Sega Saturn Engine
Loading...
Searching...
No Matches
render_to_image.h
Go to the documentation of this file.
1/*
2** Jo Sega Saturn Engine
3** Copyright (c) 2012-2026, Johannes Fetz (johannesfetz@gmail.com)
4** All rights reserved.
5**
6** Redistribution and use in source and binary forms, with or without
7** modification, are permitted provided that the following conditions are met:
8** * Redistributions of source code must retain the above copyright
9** notice, this list of conditions and the following disclaimer.
10** * Redistributions in binary form must reproduce the above copyright
11** notice, this list of conditions and the following disclaimer in the
12** documentation and/or other materials provided with the distribution.
13** * Neither the name of the Johannes Fetz nor the
14** names of its contributors may be used to endorse or promote products
15** derived from this software without specific prior written permission.
16**
17** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20** DISCLAIMED. IN NO EVENT SHALL Johannes Fetz BE LIABLE FOR ANY
21** DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27*/
57
58#ifndef __JO_RENDER_TO_IMAGE_H__
59# define __JO_RENDER_TO_IMAGE_H__
60
61#ifdef __cplusplus
62extern "C" {
63#endif
64
65#ifdef JO_COMPILE_WITH_3D_SUPPORT
66
76bool jo_3d_render_to_image_init(const int width, const int height);
77
84
90
97
100
104
105#endif /* !JO_COMPILE_WITH_3D_SUPPORT */
106
107#ifdef __cplusplus
108}
109#endif
110
111#endif /* !__JO_RENDER_TO_IMAGE_H__ */
112
113/*
114** END OF FILE
115*/
int height
Definition entity.h:4
bool jo_3d_render_to_image_init(const int width, const int height)
Start the render to image (or change its size).
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...
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 f...
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 VD...
void jo_3d_render_to_image_end(void)
End drawing into the image (see jo_3d_render_to_image_begin()).
15 bits image struct
Definition types.h:277