亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sdl_video.h

?? 一個非常有用的開源代碼
?? H
?? 第 1 頁 / 共 3 頁
字號:
/*    SDL - Simple DirectMedia Layer    Copyright (C) 1997-2004 Sam Lantinga    This library is free software; you can redistribute it and/or    modify it under the terms of the GNU Library General Public    License as published by the Free Software Foundation; either    version 2 of the License, or (at your option) any later version.    This library 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    Library General Public License for more details.    You should have received a copy of the GNU Library General Public    License along with this library; if not, write to the Free    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    Sam Lantinga    slouken@libsdl.org*/#ifdef SAVE_RCSIDstatic char rcsid = "@(#) $Id: SDL_video.h,v 1.19 2005/01/02 05:11:16 slouken Exp $";#endif/* Header file for access to the SDL raw framebuffer window */#ifndef _SDL_video_h#define _SDL_video_h#include <stdio.h>#include "SDL_types.h"#include "SDL_mutex.h"#include "SDL_rwops.h"#include "begin_code.h"/* Set up for C function definitions, even when using C++ */#ifdef __cplusplusextern "C" {#endif/* Transparency definitions: These define alpha as the opacity of a surface */#define SDL_ALPHA_OPAQUE 255#define SDL_ALPHA_TRANSPARENT 0/* Useful data types */typedef struct SDL_Rect {	Sint16 x, y;	Uint16 w, h;} SDL_Rect;typedef struct SDL_Color {	Uint8 r;	Uint8 g;	Uint8 b;	Uint8 unused;} SDL_Color;#define SDL_Colour SDL_Colortypedef struct SDL_Palette {	int       ncolors;	SDL_Color *colors;} SDL_Palette;/* Everything in the pixel format structure is read-only */typedef struct SDL_PixelFormat {	SDL_Palette *palette;	Uint8  BitsPerPixel;	Uint8  BytesPerPixel;	Uint8  Rloss;	Uint8  Gloss;	Uint8  Bloss;	Uint8  Aloss;	Uint8  Rshift;	Uint8  Gshift;	Uint8  Bshift;	Uint8  Ashift;	Uint32 Rmask;	Uint32 Gmask;	Uint32 Bmask;	Uint32 Amask;	/* RGB color key information */	Uint32 colorkey;	/* Alpha value information (per-surface alpha) */	Uint8  alpha;} SDL_PixelFormat;/* This structure should be treated as read-only, except for 'pixels',   which, if not NULL, contains the raw pixel data for the surface.*/typedef struct SDL_Surface {	Uint32 flags;				/* Read-only */	SDL_PixelFormat *format;		/* Read-only */	int w, h;				/* Read-only */	Uint16 pitch;				/* Read-only */	void *pixels;				/* Read-write */	int offset;				/* Private */	/* Hardware-specific surface info */	struct private_hwdata *hwdata;	/* clipping information */	SDL_Rect clip_rect;			/* Read-only */	Uint32 unused1;				/* for binary compatibility */	/* Allow recursive locks */	Uint32 locked;				/* Private */	/* info for fast blit mapping to other surfaces */	struct SDL_BlitMap *map;		/* Private */	/* format version, bumped at every change to invalidate blit maps */	unsigned int format_version;		/* Private */	/* Reference count -- used when freeing surface */	int refcount;				/* Read-mostly */} SDL_Surface;/* These are the currently supported flags for the SDL_surface *//* Available for SDL_CreateRGBSurface() or SDL_SetVideoMode() */#define SDL_SWSURFACE	0x00000000	/* Surface is in system memory */#define SDL_HWSURFACE	0x00000001	/* Surface is in video memory */#define SDL_ASYNCBLIT	0x00000004	/* Use asynchronous blits if possible *//* Available for SDL_SetVideoMode() */#define SDL_ANYFORMAT	0x10000000	/* Allow any video depth/pixel-format */#define SDL_HWPALETTE	0x20000000	/* Surface has exclusive palette */#define SDL_DOUBLEBUF	0x40000000	/* Set up double-buffered video mode */#define SDL_FULLSCREEN	0x80000000	/* Surface is a full screen display */#define SDL_OPENGL      0x00000002      /* Create an OpenGL rendering context */#define SDL_OPENGLBLIT	0x0000000A	/* Create an OpenGL rendering context and use it for blitting */#define SDL_RESIZABLE	0x00000010	/* This video mode may be resized */#define SDL_NOFRAME	0x00000020	/* No window caption or edge frame *//* Used internally (read-only) */#define SDL_HWACCEL	0x00000100	/* Blit uses hardware acceleration */#define SDL_SRCCOLORKEY	0x00001000	/* Blit uses a source color key */#define SDL_RLEACCELOK	0x00002000	/* Private flag */#define SDL_RLEACCEL	0x00004000	/* Surface is RLE encoded */#define SDL_SRCALPHA	0x00010000	/* Blit uses source alpha blending */#define SDL_PREALLOC	0x01000000	/* Surface uses preallocated memory *//* Evaluates to true if the surface needs to be locked before access */#define SDL_MUSTLOCK(surface)	\  (surface->offset ||		\  ((surface->flags & (SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_RLEACCEL)) != 0))/* typedef for private surface blitting functions */typedef int (*SDL_blit)(struct SDL_Surface *src, SDL_Rect *srcrect,			struct SDL_Surface *dst, SDL_Rect *dstrect);/* Useful for determining the video hardware capabilities */typedef struct SDL_VideoInfo {	Uint32 hw_available :1;	/* Flag: Can you create hardware surfaces? */	Uint32 wm_available :1;	/* Flag: Can you talk to a window manager? */	Uint32 UnusedBits1  :6;	Uint32 UnusedBits2  :1;	Uint32 blit_hw      :1;	/* Flag: Accelerated blits HW --> HW */	Uint32 blit_hw_CC   :1;	/* Flag: Accelerated blits with Colorkey */	Uint32 blit_hw_A    :1;	/* Flag: Accelerated blits with Alpha */	Uint32 blit_sw      :1;	/* Flag: Accelerated blits SW --> HW */	Uint32 blit_sw_CC   :1;	/* Flag: Accelerated blits with Colorkey */	Uint32 blit_sw_A    :1;	/* Flag: Accelerated blits with Alpha */	Uint32 blit_fill    :1;	/* Flag: Accelerated color fill */	Uint32 UnusedBits3  :16;	Uint32 video_mem;	/* The total amount of video memory (in K) */	SDL_PixelFormat *vfmt;	/* Value: The format of the video surface */} SDL_VideoInfo;/* The most common video overlay formats.   For an explanation of these pixel formats, see:	http://www.webartz.com/fourcc/indexyuv.htm   For information on the relationship between color spaces, see:   http://www.neuro.sfc.keio.ac.jp/~aly/polygon/info/color-space-faq.html */#define SDL_YV12_OVERLAY  0x32315659	/* Planar mode: Y + V + U  (3 planes) */#define SDL_IYUV_OVERLAY  0x56555949	/* Planar mode: Y + U + V  (3 planes) */#define SDL_YUY2_OVERLAY  0x32595559	/* Packed mode: Y0+U0+Y1+V0 (1 plane) */#define SDL_UYVY_OVERLAY  0x59565955	/* Packed mode: U0+Y0+V0+Y1 (1 plane) */#define SDL_YVYU_OVERLAY  0x55595659	/* Packed mode: Y0+V0+Y1+U0 (1 plane) *//* The YUV hardware video overlay */typedef struct SDL_Overlay {	Uint32 format;				/* Read-only */	int w, h;				/* Read-only */	int planes;				/* Read-only */	Uint16 *pitches;			/* Read-only */	Uint8 **pixels;				/* Read-write */	/* Hardware-specific surface info */	struct private_yuvhwfuncs *hwfuncs;	struct private_yuvhwdata *hwdata;	/* Special flags */	Uint32 hw_overlay :1;	/* Flag: This overlay hardware accelerated? */	Uint32 UnusedBits :31;} SDL_Overlay;/* Public enumeration for setting the OpenGL window attributes. */typedef enum {    SDL_GL_RED_SIZE,    SDL_GL_GREEN_SIZE,    SDL_GL_BLUE_SIZE,    SDL_GL_ALPHA_SIZE,    SDL_GL_BUFFER_SIZE,    SDL_GL_DOUBLEBUFFER,    SDL_GL_DEPTH_SIZE,    SDL_GL_STENCIL_SIZE,    SDL_GL_ACCUM_RED_SIZE,    SDL_GL_ACCUM_GREEN_SIZE,    SDL_GL_ACCUM_BLUE_SIZE,    SDL_GL_ACCUM_ALPHA_SIZE,    SDL_GL_STEREO,    SDL_GL_MULTISAMPLEBUFFERS,    SDL_GL_MULTISAMPLESAMPLES} SDL_GLattr;/* flags for SDL_SetPalette() */#define SDL_LOGPAL 0x01#define SDL_PHYSPAL 0x02/* Function prototypes *//* These functions are used internally, and should not be used unless you * have a specific need to specify the video driver you want to use. * You should normally use SDL_Init() or SDL_InitSubSystem(). * * SDL_VideoInit() initializes the video subsystem -- sets up a connection * to the window manager, etc, and determines the current video mode and * pixel format, but does not initialize a window or graphics mode. * Note that event handling is activated by this routine. * * If you use both sound and video in your application, you need to call * SDL_Init() before opening the sound device, otherwise under Win32 DirectX, * you won't be able to set full-screen display modes. */extern DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name, Uint32 flags);extern DECLSPEC void SDLCALL SDL_VideoQuit(void);/* This function fills the given character buffer with the name of the * video driver, and returns a pointer to it if the video driver has * been initialized.  It returns NULL if no driver has been initialized. */extern DECLSPEC char * SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);/* * This function returns a pointer to the current display surface. * If SDL is doing format conversion on the display surface, this * function returns the publicly visible surface, not the real video * surface. */extern DECLSPEC SDL_Surface * SDLCALL SDL_GetVideoSurface(void);/* * This function returns a read-only pointer to information about the * video hardware.  If this is called before SDL_SetVideoMode(), the 'vfmt' * member of the returned structure will contain the pixel format of the * "best" video mode. */extern DECLSPEC const SDL_VideoInfo * SDLCALL SDL_GetVideoInfo(void);/*  * Check to see if a particular video mode is supported. * It returns 0 if the requested mode is not supported under any bit depth, * or returns the bits-per-pixel of the closest available mode with the * given width and height.  If this bits-per-pixel is different from the * one used when setting the video mode, SDL_SetVideoMode() will succeed, * but will emulate the requested bits-per-pixel with a shadow surface. * * The arguments to SDL_VideoModeOK() are the same ones you would pass to * SDL_SetVideoMode() */extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, int height, int bpp, Uint32 flags);/* * Return a pointer to an array of available screen dimensions for the * given format and video flags, sorted largest to smallest.  Returns  * NULL if there are no dimensions available for a particular format,  * or (SDL_Rect **)-1 if any dimension is okay for the given format. * * If 'format' is NULL, the mode list will be for the format given  * by SDL_GetVideoInfo()->vfmt */extern DECLSPEC SDL_Rect ** SDLCALL SDL_ListModes(SDL_PixelFormat *format, Uint32 flags);/* * Set up a video mode with the specified width, height and bits-per-pixel. * * If 'bpp' is 0, it is treated as the current display bits per pixel. * * If SDL_ANYFORMAT is set in 'flags', the SDL library will try to set the * requested bits-per-pixel, but will return whatever video pixel format is * available.  The default is to emulate the requested pixel format if it

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合天天综合狠狠| 日韩和欧美一区二区三区| 美国十次了思思久久精品导航| 欧美日韩一区久久| 日韩成人精品在线观看| 亚洲国产精品av| 色综合久久久久综合99| 琪琪久久久久日韩精品| 亚洲欧美日韩国产手机在线| 在线视频一区二区免费| 美女视频一区二区| 精品无人区卡一卡二卡三乱码免费卡| 国产精品欧美一级免费| 91精品国产欧美日韩| 国产电影一区二区三区| 天天色 色综合| 国产精品久久三| 欧美一区二区精美| 精品久久久久99| 91精品1区2区| 国产一区亚洲一区| 亚洲女女做受ⅹxx高潮| 亚洲国产一区视频| 中文字幕欧美激情| 亚洲欧美乱综合| 日本欧美久久久久免费播放网| 捆绑调教一区二区三区| 欧美aⅴ一区二区三区视频| 久久国产综合精品| 99精品国产91久久久久久| 久久成人免费网站| 99久久综合狠狠综合久久| 久久99蜜桃精品| 成人美女在线观看| 国产91露脸合集magnet | 色香蕉成人二区免费| 欧美视频一区二区三区在线观看| 成人av在线播放网站| 精品一区二区日韩| 91蜜桃婷婷狠狠久久综合9色| 丰满亚洲少妇av| 欧美日韩中字一区| 久久久综合视频| 精品国一区二区三区| 日韩精品一区二区三区中文精品| 欧美一区二区三区视频免费播放 | 日本大香伊一区二区三区| 日韩欧美国产精品一区| 自拍偷拍欧美激情| 国产精品网站在线播放| 日韩成人一级片| 91美女在线看| 国产日韩欧美麻豆| 国产精品沙发午睡系列990531| 亚洲超碰97人人做人人爱| 亚洲成人综合视频| 99久久精品费精品国产一区二区 | 欧美唯美清纯偷拍| 国产欧美日韩综合| 九色|91porny| 91精品午夜视频| 日韩网站在线看片你懂的| 精品捆绑美女sm三区| 午夜精品一区在线观看| eeuss国产一区二区三区| 久久久久久久久久看片| 美国一区二区三区在线播放| 欧美日韩综合不卡| 亚洲福利视频导航| 91久久精品一区二区三| 17c精品麻豆一区二区免费| 亚洲一二三区不卡| 91蝌蚪porny九色| 国产精品视频一二三| 国产999精品久久久久久绿帽| 精品久久久久久久人人人人传媒| 日本成人在线看| 日韩你懂的在线观看| 免费成人在线影院| 欧美人与z0zoxxxx视频| 精品对白一区国产伦| 日韩精品一卡二卡三卡四卡无卡| 欧美性色综合网| 三级欧美在线一区| 欧美伦理视频网站| 欧美韩日一区二区三区四区| 国产传媒一区在线| 国产午夜精品一区二区三区视频| 亚洲最大成人综合| 精品午夜久久福利影院| 精品日韩在线一区| 国产sm精品调教视频网站| 久久久亚洲国产美女国产盗摄| 亚洲国产精品久久不卡毛片| 3d动漫精品啪啪一区二区竹菊| 免费xxxx性欧美18vr| 精品黑人一区二区三区久久 | 成人av网在线| 玉米视频成人免费看| 久久精品国产成人一区二区三区| 日韩欧美区一区二| 国产成人自拍网| 亚洲色图第一区| 5566中文字幕一区二区电影| 激情五月播播久久久精品| 欧美老肥妇做.爰bbww| 日本不卡的三区四区五区| 精品国产一区二区三区久久久蜜月| 国产精品一区二区视频| 91精品久久久久久久99蜜桃| 久久成人久久爱| 亚洲欧洲www| 日韩视频不卡中文| 成人不卡免费av| 亚洲国产日韩a在线播放| 精品久久久久久久久久久久久久久 | **欧美大码日韩| 日韩一区二区免费在线电影| 国产精品亚洲一区二区三区在线| 亚洲免费av高清| 日韩一区二区免费视频| 99热国产精品| 激情综合五月婷婷| 亚洲午夜久久久久中文字幕久| 精品国产亚洲一区二区三区在线观看| av亚洲精华国产精华精华| 免费在线视频一区| 亚洲欧美日韩在线不卡| 久久在线观看免费| 国内精品免费**视频| 一区二区三区四区在线播放| 久久久久久麻豆| 欧美一级高清片在线观看| 91麻豆精品秘密| 国产福利视频一区二区三区| 亚洲国产精品自拍| 国产精品国产馆在线真实露脸 | 一区二区视频在线看| 精品国精品自拍自在线| 欧美性感一区二区三区| 不卡免费追剧大全电视剧网站| 激情文学综合网| 日本不卡视频在线| 亚洲123区在线观看| 综合在线观看色| 国产精品视频一区二区三区不卡| 日韩精品一区二区三区视频在线观看| 在线影视一区二区三区| 91视频精品在这里| 精品亚洲成av人在线观看| 三级在线观看一区二区| 亚洲成国产人片在线观看| 亚洲欧美电影院| 亚洲欧美日本韩国| 亚洲美女在线国产| 亚洲欧美日韩国产手机在线 | 亚洲一区免费观看| 制服丝袜国产精品| 欧美在线观看视频一区二区三区| 91网站视频在线观看| 99热精品国产| 91啪在线观看| 色网站国产精品| 一本一道久久a久久精品| 色综合久久中文字幕| 99re6这里只有精品视频在线观看| 国产精品996| 国v精品久久久网| 高清视频一区二区| 波多野结衣在线一区| 91视频观看视频| 欧美视频一区二| 欧美一级高清片在线观看| 精品剧情v国产在线观看在线| 精品国产第一区二区三区观看体验| 日韩一区二区视频在线观看| 日韩一区二区三免费高清| 久久久午夜电影| 中文子幕无线码一区tr| 亚洲人妖av一区二区| 一区二区三区美女视频| 日本aⅴ免费视频一区二区三区 | 久久综合一区二区| 国产欧美日本一区视频| 亚洲欧美另类综合偷拍| 午夜视频在线观看一区二区 | 亚洲成在人线免费| 免费在线观看视频一区| 国产一区二区三区免费在线观看| 3d成人动漫网站| 国产偷国产偷精品高清尤物| 国产精品久久久久一区| 亚洲国产精品一区二区尤物区| 玖玖九九国产精品| 成人黄页在线观看| 欧美三级中文字幕| 久久亚洲一级片| 洋洋av久久久久久久一区| 老司机精品视频导航| 99精品视频在线观看|