📄 ddrawdisplay.h
字号:
/****************************************************************************************/
/* DDRAWDisplay.H */
/* */
/* Author: Mike Sandige */
/* Description: display surface manager for full screen Direct Draw using a direct */
/* draw surface for the the frame buffer */
/* */
/* The contents of this file are subject to the Genesis3D Public License */
/* Version 1.0 (the "License"); you may not use this file except in */
/* compliance with the License. You may obtain a copy of the License at */
/* http://www.genesis3d.com */
/* */
/* Software distributed under the License is distributed on an "AS IS" */
/* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See */
/* the License for the specific language governing rights and limitations */
/* under the License. */
/* */
/* The Original Code is Genesis3D, released March 25, 1999. */
/* Copyright (C) 1996-1999 Eclipse Entertainment, L.L.C. All Rights Reserved */
/* */
/****************************************************************************************/
#ifndef DDRAWDISPLAY_H
#define DDRAWDISPLAY_H
#include "basetype.h"
#include "DisplayModeInfo.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct DDRAWDisplay DDRAWDisplay;
void DDRAWDisplay_GetDisplayFormat( const DDRAWDisplay *D,
int *Width,
int *Height,
int *BitsPerPixel,
uint *Flags);
bool DDRAWDisplay_GetDisplayInfo( char *DescriptionString,
unsigned int DescriptionStringMaxLength,
DisplayModeInfo *Info);
bool DDRAWDisplay_GetPixelFormat( DDRAWDisplay *D,
//int *pixel_pitch,
int *bytes_per_pixel,
int *R_shift,
uint *R_mask,
int *R_width,
int *G_shift,
uint *G_mask,
int *G_width,
int *B_shift,
uint *B_mask,
int *B_width);
bool DDRAWDisplay_Lock( DDRAWDisplay *D,ubyte **Buffer, int *Pitch);
bool DDRAWDisplay_Unlock( DDRAWDisplay *D);
bool DDRAWDisplay_Blit( DDRAWDisplay *D);
bool DDRAWDisplay_Wipe( DDRAWDisplay *D,uint color);
bool DDRAWDisplay_SetActive( DDRAWDisplay *D, bool Active);
void DDRAWDisplay_Destroy( DDRAWDisplay **D);
#ifdef _INC_WINDOWS
bool DDRAWDisplay_UpdateWindow( DDRAWDisplay *D );
DDRAWDisplay *DDRAWDisplay_Create( HWND hwnd, int Width, int Height, int BBP, uint Flags);
#endif
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -