Jo Engine  9
Jo Sega Saturn Engine
conf.h
Go to the documentation of this file.
1 /*
2 ** Jo Sega Saturn Engine
3 ** Copyright (c) 2012-2017, 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 */
35 #ifndef __JO_CONF_H__
36 # define __JO_CONF_H__
37 
38 /*
39  _ _ _ _ _ _ _ _ __ _ _
40  | | ( ) | | | | | | | | | (_) / _(_) |
41  __| | ___ _ __ |/| |_ | |_ ___ _ _ ___| |__ | |_| |__ _ ___ | |_ _| | ___
42  / _` |/ _ \| '_ \ | __| | __/ _ \| | | |/ __| '_ \ | __| '_ \| / __| | _| | |/ _ \
43  | (_| | (_) | | | | | |_ | || (_) | |_| | (__| | | | | |_| | | | \__ \ | | | | | __/
44  \__,_|\___/|_| |_| \__| \__\___/ \__,_|\___|_| |_| \__|_| |_|_|___/ |_| |_|_|\___|
45 
46  All options are now available on your Makefile.
47 
48  makefile sample:
49 
50  JO_COMPILE_WITH_VIDEO_MODULE = 0
51  JO_COMPILE_WITH_BACKUP_MODULE = 1
52  JO_COMPILE_WITH_TGA_MODULE = 1
53  JO_COMPILE_WITH_AUDIO_MODULE = 1
54  JO_COMPILE_WITH_3D_MODULE = 1
55  JO_COMPILE_WITH_PSEUDO_MODE7_MODULE = 1
56  JO_COMPILE_WITH_EFFECTS_MODULE = 1
57  JO_COMPILE_WITH_DUAL_CPU_MODULE = 1
58  JO_COMPILE_WITH_RAM_CARD_MODULE = 1
59  JO_COMPILE_WITH_STORYBOARD_MODULE = 1
60  JO_GLOBAL_MEMORY_SIZE_FOR_MALLOC = 524288
61  JO_PSEUDO_SATURN_KAI_SUPPORT = 1
62  JO_MAX_FS_BACKGROUND_JOBS = 4
63  JO_MAX_SPRITE = 255
64  JO_MAP_MAX_LAYER = 8
65  JO_MAX_SPRITE_ANIM = 16
66  JO_MAX_FILE_IN_IMAGE_PACK = 32
67  JO_DEBUG = 1
68  JO_NTSC = 0
69  JO_COMPILE_USING_SGL = 1
70  SRCS=main.c
71  include ../Compiler/COMMON/jo_engine_makefile
72 */
73 
74 /*
75 ** PARAMS
76 */
77 
78 # if defined(JO_NTSC_VERSION)
79 # if defined(JO_480p)
80 
81 # define JO_TV_RES (TV_704x480)
82 
83 # define JO_TV_WIDTH (704)
84 
85 # define JO_TV_WIDTH_2 (352)
86 
87 # define JO_TV_WIDTH_4 (176)
88 
89 # define JO_TV_HEIGHT (480)
90 
91 # define JO_TV_HEIGHT_2 (240)
92 
93 # define JO_TV_HEIGHT_4 (120)
94 #else
95 
96 # define JO_TV_RES (TV_320x240)
97 
98 # define JO_TV_WIDTH (320)
99 
100 # define JO_TV_WIDTH_2 (160)
101 
102 # define JO_TV_WIDTH_4 (80)
103 
104 # define JO_TV_HEIGHT (240)
105 
106 # define JO_TV_HEIGHT_2 (120)
107 
108 # define JO_TV_HEIGHT_4 (60)
109 #endif
110 
111 #else /* PAL Version */
112 
114 # define JO_TV_RES (TV_320x256)
115 
116 # define JO_TV_WIDTH (320)
117 
118 # define JO_TV_WIDTH_2 (160)
119 
120 # define JO_TV_WIDTH_4 (80)
121 
122 # define JO_TV_HEIGHT (256)
123 
124 # define JO_TV_HEIGHT_2 (128)
125 
126 # define JO_TV_HEIGHT_4 (64)
127 
128 #endif
129 
130 # if defined (JO_480p)
131 
132 # define JO_VDP2_SIZE (BM_1024x512)
133 
134 # define JO_VDP2_WIDTH (1024)
135 
136 # define JO_VDP2_HEIGHT (512)
137 #else
138 
139 # define JO_VDP2_SIZE (BM_512x256)
140 
141 # define JO_VDP2_WIDTH (512)
142 
143 # define JO_VDP2_HEIGHT (256)
144 #endif
145 
147 # define JO_PRINTF_BUF_SIZE (64)
148 
149 # define JO_MAX_FILENAME_LENGTH (13)
150 
151 # define JO_FS_MAX_FILES (256)
152 
154 # define __jo_force_inline __attribute__((always_inline)) inline
155 
156 #if JO_FRAMERATE < 1
157 # error "JO_FRAMERATE must be greater than zero"
158 #endif
159 
160 #endif /* !__JO_CONF_H__ */
161 
162 /*
163 ** END OF FILE
164 */