Jo Engine
2026.11.28
Jo Sega Saturn Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
jo_engine
jo
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
62
extern
"C"
{
63
#endif
64
65
#ifdef JO_COMPILE_WITH_3D_SUPPORT
66
76
bool
jo_3d_render_to_image_init
(
const
int
width,
const
int
height
);
77
83
int
jo_3d_render_to_image_add_sprite
(
void
);
84
89
const
jo_img
*
jo_3d_render_to_image_get
(
void
);
90
96
void
jo_3d_render_to_image_begin
(
void
);
97
99
void
jo_3d_render_to_image_end
(
void
);
100
103
void
jo_3d_render_to_image_stop
(
void
);
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
*/
height
int height
Definition
entity.h:4
jo_3d_render_to_image_init
bool jo_3d_render_to_image_init(const int width, const int height)
Start the render to image (or change its size).
jo_3d_render_to_image_begin
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...
jo_3d_render_to_image_add_sprite
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.
jo_3d_render_to_image_get
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...
jo_3d_render_to_image_stop
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...
jo_3d_render_to_image_end
void jo_3d_render_to_image_end(void)
End drawing into the image (see jo_3d_render_to_image_begin()).
jo_img
15 bits image struct
Definition
types.h:277
Generated by
1.18.0