/******************************************************************************
	[ScreenDD.h]

		Define DirectDraw screen interface.

	Copyright (C) 2004 Ki

    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.
******************************************************************************/
#ifndef SCREENDD_H_INCLUDED
#define SCREENDD_H_INCLUDED

#include "TypeDefs.h"


BOOL
SCREENDD_Init(
	Sint32		width,
	Sint32		height,
	Sint32		magnification, //Kitao追加
	Uint32		flags); //Kitao追加

BOOL
SCREENDD_ChangeMode(
	Sint32		width,
	Sint32		height,
	Sint32		magnification, //Kitao追加
	Uint32		flags);

//Kitao更新
BOOL
SCREENDD_WaitVBlank(
	BOOL	bDraw);

void*
SCREENDD_GetBuffer();

const Sint32
SCREENDD_GetBufferPitch();

//Kitao追加
void
SCREENDD_Clear(
	byte	r,
	byte	g,
	byte	b);

//Kitao更新
void
SCREENDD_Fill(
	Uint32		color,
	BOOL		bDraw);

//Kitao更新
void
SCREENDD_Blt(
	Uint32*		pSrc,
	Sint32		srcX,
	Sint32		srcY,
	Uint16*		pTvW,
	Sint32		srcH,
	Sint32		executeCode);

void
SCREENDD_Deinit();

//Kitao追加
void
SCREENDD_SetVSyncScreen(
	BOOL	bVSyncScreen);

//Kitao追加
BOOL
SCREENDD_GetVSyncScreen();

//Kitao追加
void
SCREENDD_SetShowFPS(
	Sint32	showFPS);

//Kitao追加
Sint32
SCREENDD_GetShowFPS();

//Kitao追加
void
SCREENDD_SetMessageText(
	char*	pText);

//Kitao追加
void
SCREENDD_SetCenterText(
	char*	pText);

//Kitao追加
Sint64
SCREENDD_GetLastTimeSyncTime();

//Kitao追加
void
SCREENDD_WriteScreenshot(
	FILE*	fp);

//Kitao追加
void
SCREENDD_SetMagnification(
	Sint32	magnification);

//Kitao追加
Sint32
SCREENDD_GetMagnification();


#endif // SCREENDD_H_INCLUDED
