⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 display.h

📁 傅立叶变换和小波变换是图像压缩的重要工具。该代大戏是利用小波变换进行图像压缩。
💻 H
字号:
/****************************************************************************************/
/*  Display.H                                                                           */
/*                                                                                      */
/*  Author:  Mike Sandige                                                               */
/*  Description:  Abstracts all low-level display surfaces into a single API            */
/*                                                                                      */
/*  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           */
/*                                                                                      */
/****************************************************************************************/
// Display
//   display manager 
//
//   manages 
//     DIB format window displays
//     DDRAW format fullscreen displays


#ifndef Display_H
#define Display_H

#include "basetype.h"
#include "DisplayModeInfo.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef enum { DISPLAY_DIB_WINDOW, DISPLAY_DDRAW_FULLSCREEN, DISPLAY_COUNT } Display_Type;

typedef struct Display Display;

bool Display_GetDisplayInfo(		Display_Type	 DisplayType,
										char			*DescriptionString, 
										unsigned int	 DescriptionStringMaxLength,
										DisplayModeInfo *Info);

bool Display_GetPixelFormat	(	const Display *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);

void	Display_GetDisplayFormat(		const Display *D,
										Display_Type *DisplayType,
										int   *Width, 
										int   *Height,
										int   *BitsPerPixel,
										uint  *Flags);

bool Display_Blit		(	Display *D);

bool Display_Wipe		(	Display *D,	
								uint        color);

bool Display_Lock		(	Display *D,
								ubyte       **ptr,
								int       *pitch);

bool Display_Unlock	(	Display *D);

void Display_Destroy		(	Display **pDisplay);

bool Display_SetActive	(	Display *D, bool Active );

						 
#ifdef _INC_WINDOWS						                             

bool Display_UpdateWindow( Display *D);

Display *Display_Create	(	HWND hWindow,
							Display_Type DisplayType,
							int   RenderSizeAcross, 
							int   RenderSizeDown,
							int   Display_BitsPerPixel,
							uint  Display_Flags);
#endif

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -