mirror of
https://github.com/libretro/RACE.git
synced 2024-11-27 02:50:37 +00:00
79 lines
2.5 KiB
C
79 lines
2.5 KiB
C
//---------------------------------------------------------------------------
|
|
// 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. See also the license.txt file for
|
|
// additional informations.
|
|
//---------------------------------------------------------------------------
|
|
|
|
// graphics.h: interface for the graphics class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_GRAPHICS_H__EE4B1FE1_8EB2_11D3_8644_00A0241D2A65__INCLUDED_)
|
|
#define AFX_GRAPHICS_H__EE4B1FE1_8EB2_11D3_8644_00A0241D2A65__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
//actual NGPC
|
|
#define NGPC_SIZEX 160
|
|
#define NGPC_SIZEY 152
|
|
|
|
//render screen 260x152 is good for NGPC
|
|
#define SIZEX 260//480//368//320//480
|
|
#define SIZEY 152//272//207//240//272
|
|
|
|
//extern unsigned char bwPaletteDirty, spritePaletteDirty, frontPaletteDirty, backPaletteDirty;
|
|
//extern unsigned char bgoowDirty;
|
|
//extern unsigned int spritesDirty;
|
|
|
|
|
|
// graphics buffer will hold the screen transformed to full RGB colors used by the emulated system
|
|
//extern int *graphics_buffer;
|
|
//extern unsigned short *drawBuffer;
|
|
//extern unsigned short drawBuffer[SIZEX*SIZEY];
|
|
//extern unsigned char *drawBuffer;
|
|
//extern BITMAP myBitmap;
|
|
|
|
BOOL graphics_init(void);
|
|
void graphics_blit(void);
|
|
void graphics_paint();
|
|
void graphics_cleanup();
|
|
// new renderer (NeoGeo Pocket (Color))
|
|
void incFrameCount();
|
|
void graphicsBlitInit();
|
|
void graphicsBlitLine(unsigned char render);
|
|
void myGraphicsBlitLine(unsigned char render);
|
|
void graphicsBlitEnd();
|
|
void graphicsSetDarkFilterLevel(unsigned filterLevel);
|
|
// renderer for Gameboy Color
|
|
void gbcGraphicsBlitInit();
|
|
void gbcGraphicsBlitLine();
|
|
|
|
void setColPaletteEntry(unsigned char addr, unsigned short data);
|
|
void setBWPaletteEntry(unsigned char addr, unsigned short data);
|
|
|
|
|
|
//
|
|
// adventure vision stuff
|
|
//
|
|
|
|
extern unsigned short palettes[16*4+16*4+16*4]; // placeholder for the converted palette
|
|
extern int totalpalette[32*32*32];
|
|
#define NGPC_TO_SDL16(col) totalpalette[col & 0x0FFF]
|
|
|
|
#define setColPaletteEntry(addr, data) palettes[(addr)] = NGPC_TO_SDL16(data)
|
|
#define setBWPaletteEntry(addr, data) palettes[(addr)] = NGPC_TO_SDL16(data)
|
|
|
|
extern unsigned char *scanlineY;
|
|
|
|
struct ngp_screen
|
|
{
|
|
int w, h;
|
|
void *pixels;
|
|
};
|
|
|
|
#endif // !defined(AFX_GRAPHICS_H__EE4B1FE1_8EB2_11D3_8644_00A0241D2A65__INCLUDED_)
|