2009-05-21 17:48:31 +02:00
|
|
|
/* gameplaySP
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Exophase <exophase@gmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VIDEO_H
|
|
|
|
#define VIDEO_H
|
|
|
|
|
2014-12-11 19:12:09 +01:00
|
|
|
void update_scanline(void);
|
2014-12-10 11:06:17 +01:00
|
|
|
void video_write_savestate(void);
|
|
|
|
void video_read_savestate(void);
|
2009-05-21 17:48:31 +02:00
|
|
|
|
|
|
|
extern s32 affine_reference_x[2];
|
|
|
|
extern s32 affine_reference_y[2];
|
|
|
|
|
|
|
|
typedef void (* tile_render_function)(u32 layer_number, u32 start, u32 end,
|
|
|
|
void *dest_ptr);
|
|
|
|
typedef void (* bitmap_render_function)(u32 start, u32 end, void *dest_ptr);
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
tile_render_function normal_render_base;
|
|
|
|
tile_render_function normal_render_transparent;
|
|
|
|
tile_render_function alpha_render_base;
|
|
|
|
tile_render_function alpha_render_transparent;
|
|
|
|
tile_render_function color16_render_base;
|
|
|
|
tile_render_function color16_render_transparent;
|
|
|
|
tile_render_function color32_render_base;
|
|
|
|
tile_render_function color32_render_transparent;
|
|
|
|
} tile_layer_render_struct;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
bitmap_render_function normal_render;
|
|
|
|
} bitmap_layer_render_struct;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
filter_nearest,
|
|
|
|
filter_bilinear
|
|
|
|
} video_filter_type;
|
|
|
|
|
2014-12-09 00:17:28 +01:00
|
|
|
extern u16 gba_screen_pixels[GBA_SCREEN_PITCH * GBA_SCREEN_HEIGHT];
|
|
|
|
|
2009-05-21 17:48:31 +02:00
|
|
|
#endif
|