1 /* Project 16 Source Code~
\r
2 * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
\r
4 * This file is part of Project 16.
\r
6 * Project 16 is free software; you can redistribute it and/or modify
\r
7 * it under the terms of the GNU General Public License as published by
\r
8 * the Free Software Foundation; either version 3 of the License, or
\r
9 * (at your option) any later version.
\r
11 * Project 16 is distributed in the hope that it will be useful,
\r
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 * GNU General Public License for more details.
\r
16 * You should have received a copy of the GNU General Public License
\r
17 * along with this program. If not, see <http://www.gnu.org/licenses/>, or
\r
18 * write to the Free Software Foundation, Inc., 51 Franklin Street,
\r
19 * Fifth Floor, Boston, MA 02110-1301 USA.
\r
25 #ifndef __BAKAPI_H__
\r
26 #define __BAKAPI_H__
\r
28 #include "src/lib/bakapee.h"
\r
29 #include "src/lib/wcpu/16_wcpu.h"
\r
31 //project 16 testing define switch for veiwing the contents of the video memory --sparky4
\r
32 #define BOINK // what does this mean? --J.C.
\r
33 //#define BDOFSCONV (unsigned __near) defed in 16_tdef
\r
34 #define BOFSS BDOFSCONV (gvar.video.BOFS)//gvar.video.ofs.bufferofs
\r
35 #define DOFSS BDOFSCONV (gvar.video.DOFS)//gvar.video.ofs.displayofs
\r
37 #define SETUPPAGEBAKAPI \
\r
38 PALPROGRAMSNEWPAGE \
\r
39 gvar.video.page[1] = modexNextPage(&gvar.video.page[0]);
\r
41 #ifdef BAKAFIZZUNSIGNED
\r
42 #define FIZZFADEFUN baka_FizzleFade (BOFSS, DOFSS, gvar.video.page[0].width, gvar.video.page[0].height, 70, true, &gvar);
\r
44 #define FIZZFADEFUN baka_FizzleFade (&gvar.video.page[1], &gvar.video.page[0], vga_state.vga_width, vga_state.vga_height, 70, true, &gvar);
\r
47 #define BAKAPIINITFIZZTEST \
\r
48 modexClearRegion(&(gvar.video.page[0]), 0, 0, gvar.video.page[0].width, gvar.video.page[0].height, 0); \
\r
49 modexClearRegion(&(gvar.video.page[1]), 0, 0, gvar.video.page[0].width, gvar.video.page[0].height, 14); \
\r
51 //{ word w; for(w=0;w<(gvar.video.page[0].width*gvar.video.page[0].height);w++) { ding(&gvar.video.page[0], &bakapee, 2); }
\r
53 #endif /*__BAKAPI_H__*/
\r