/***************************************************************************************1* Genesis Plus2* Video Display Processor (Modes 0, 1, 2, 3, 4 & 5 rendering)3*4* Support for SG-1000, Master System (315-5124 & 315-5246), Game Gear & Mega Drive VDP5*6* Copyright (C) 1998-2007 Charles Mac Donald (original code)7* Copyright (C) 2007-2013 Eke-Eke (Genesis Plus GX)8*9* Redistribution and use of this code or any derivative works are permitted10* provided that the following conditions are met:11*12* - Redistributions may not be sold, nor may they be used in a commercial13* product or activity.14*15* - Redistributions that are modified from the original source must include the16* complete source code, including the source code for all components used by a17* binary built from the modified sources. However, as a special exception, the18* source code distributed need not include anything that is normally distributed19* (in either source or binary form) with the major components (compiler, kernel,20* and so on) of the operating system on which the executable runs, unless that21* component itself accompanies the executable.22*23* - Redistributions must reproduce the above copyright notice, this list of24* conditions and the following disclaimer in the documentation and/or other25* materials provided with the distribution.26*27* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"28* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE29* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE30* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE31* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR32* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF33* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS34* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN35* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)36* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE37* POSSIBILITY OF SUCH DAMAGE.38*39****************************************************************************************/4041#ifndef _RENDER_H_42#define _RENDER_H_4344/* Global variables */45extern uint16 spr_col;4647/* Function prototypes */48extern void render_init(void);49extern void render_reset(void);50extern void render_line(int line);51extern void blank_line(int line, int offset, int width);52extern void remap_line(int line);53extern void window_clip(unsigned int data, unsigned int sw);54extern void render_bg_m0(int line);55extern void render_bg_m1(int line);56extern void render_bg_m1x(int line);57extern void render_bg_m2(int line);58extern void render_bg_m3(int line);59extern void render_bg_m3x(int line);60extern void render_bg_inv(int line);61extern void render_bg_m4(int line);62extern void render_bg_m5(int line);63extern void render_bg_m5_vs(int line);64extern void render_bg_m5_im2(int line);65extern void render_bg_m5_im2_vs(int line);66extern void render_obj_tms(int line);67extern void render_obj_m4(int line);68extern void render_obj_m5(int line);69extern void render_obj_m5_ste(int line);70extern void render_obj_m5_im2(int line);71extern void render_obj_m5_im2_ste(int line);72extern void parse_satb_tms(int line);73extern void parse_satb_m4(int line);74extern void parse_satb_m5(int line);75extern void update_bg_pattern_cache_m4(int index);76extern void update_bg_pattern_cache_m5(int index);77extern void color_update_m4(int index, unsigned int data);78extern void color_update_m5(int index, unsigned int data);7980/* Function pointers */81extern void (*render_bg)(int line);82extern void (*render_obj)(int line);83extern void (*parse_satb)(int line);84extern void (*update_bg_pattern_cache)(int index);8586extern uint32 *vdp_bp_lut;87extern uint8 **vdp_lut;8889#endif /* _RENDER_H_ */90919293