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

📄 xos_videos_vtbl.h.svn-base

📁 brew头文件分析
💻 SVN-BASE
字号:
//**************************************************************
//Copyright (C), 2008-2008, AnyLook Co., Ltd.
//File name:    xBIOS_Video_VTBL.h
//Author:       AnyLook
//Version:      1.0
//Date:        2008/07/31
//Description:
//    xOS Include file
//Others: 
//Function List: 
//<Name>        <desc>
//Simple        
//History: 
//<author>      <time>      <version >  <desc>
// AnyLook		2008/07/31      1.0       build this moudle  
//**************************************************************


#ifndef _xOS_VIDEOS_VTBL_H
#define _xOS_VIDEOS_VTBL_H

#include "xOS.h"
//#include "xOS_video.h"
#include "xOS_OutTypedef.h"


INTERFACE(Video)
{  
	  char *                (*VideoDriverName)(void *pWindow, char *namebuf, int maxlen);
	  
	  void          	   *(*GetVideoSurface)(void *pWindow);
	  
	  xOS_VideoInfo        *(*GetVideoInfo)(void *pWindow);
	  
//**************************************************************************************************
  
	  //int                   (*Flip)(void *pWindow);
	  
	  int                   (*SetGamma)(void *pWindow, float red, float green, float blue);
	  
	  int                   (*SetGammaRamp)(void *pWindow, const Uint16 *red, const Uint16 *green, const Uint16 *blue);
	  
	  int                   (*GetGammaRamp)(void *pWindow, Uint16 *red, Uint16 *green, Uint16 *blue);
	  

//**************************************************************************************************

      //Uint32                (*MapRGB)(void *pWindow, const xOS_PixelFormat * const format, const Uint8 r, const Uint8 g, const Uint8 b);

	  //Uint32                (*MapRGBA)(void *pWindow, const xOS_PixelFormat * const format,const Uint8 r, const Uint8 g, const Uint8 b, const Uint8 a);

	  //void                  (*GetRGB)(void *pWindow, Uint32 pixel, xOS_PixelFormat *fmt, Uint8 *r, Uint8 *g, Uint8 *b);

	  //void                  (*GetRGBA)(void *pWindow, Uint32 pixel, xOS_PixelFormat *fmt,Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a);

	  //void                 *(*AllocSurface)(void *pWindow, Uint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);

	  //void          	   *(*CreateRGBSurface)(void *pWindow, Uint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);

	  //void         	 	   *(*CreateRGBSurfaceFrom)(void *pWindow, void *pixels,int width, int height, int depth, int pitch,
				                     				//Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);

//*******************************************************************************************************

	  //void          	   *(*ConvertSurface)(void *pWindow, xOS_PixelFormat *fmt, Uint32 flags);
	  
	  //int                   (*FillRect)(void *pWindow, xOS_Rect *dstrect, Uint32 color);

	  //void                 *(*DisplayFormat)(void *pWindow);

	  //void          	   *(*DisplayFormatAlpha)(void *pWindow);

	  
//*****************************************************************************************
      

	  //xOS_Overlay          *(*CreateYUVOverlay)(void *pWindow, int width, int height,Uint32 format, void *display);

	  //int                   (*LockYUVOverlay)(void *pWindow, xOS_Overlay *overlay);

	  //void                  (*UnlockYUVOverlay)(void *pWindow, xOS_Overlay *overlay);

	  //int                   (*DisplayYUVOverlay)(void *pWindow, xOS_Overlay *overlay, xOS_Rect *dstrect);

	  //void                  (*FreeYUVOverlay)(void *pWindow, xOS_Overlay *overlay);


//**********************************************************************************************


	  //int                   (*GL_LoadLibrary)(void *pWindow, const char *path);

	  //void                 *(*GL_GetProcAddress)(void *pWindow, const char* proc);

	  //int                   (*GL_SetAttribute)(void *pWindow, xOS_GLattr attr, int value);

	  //int                   (*GL_GetAttribute)(void *pWindow, xOS_GLattr attr, int* value);

	  //void                  (*GL_SwapBuffers)(void *pWindow);

	  //void                  (*GL_UpdateRects)(void *pWindow, int numrects, xOS_Rect* rects);

	  //void                  (*GL_Lock)(void *pWindow);

	  //void                  (*GL_Unlock)(void *pWindow);


//***************************************************************************************************      


	  //int                   (*SoftStretch)(void *pSrcWindow, xOS_Rect *srcrect,
										   //void *pDstWindow, xOS_Rect *dstrect);

	  //GetGlobalScreen,the GlobalScreen is must only one						

	  //void                 *(*GetGlobalScreen)(void *pWindow);

	  void           	   *(*CreateWindow)(char *name,int w,int h,int x,int y,int (*fn)(void *));

	  void					(*DestroyWindow)(void *pWindow);

	  void					(*UpdateWindow)(xOS_bool bFlag);


//Added By Zzg at 9.11


	  int				    (*Show)(void *pWindow);

	  int				    (*Hidden)(void *pWindow);

	  int				    (*SetColors)(void *pWindow, xOS_Color *colors, int firstcolor, int ncolors);

	  int				    (*SetPalette)(void *pWindow, int flags, xOS_Color *colors, int firstcolor, int ncolors);
		
	  void  				(*FreeSurface)(void *pWindow);

	  int   				(*LockSurface)(void *pWindow);

	  void  				(*UnlockSurface)(void *pWindow);

	  int   				(*LoadBgBMP)(void *pWindow, const char *file);

	  int					(*LoadBMP)(void *pWindow, void *pSurface, xOS_Rect *pSrcrect, xOS_Rect *pDstrect, const char *file);

	  int					(*FreeBMP)(void *pSurface);

	  int   				(*SaveBMP)(void *pWindow, const char *file);

	  int   				(*SetColorKey)(void *pWindow, Uint32 flag, Uint32 key);

	  int   				(*SetAlpha)(void *pWindow, Uint32 flag, Uint8 alpha);

	  xOS_bool   			(*SetClipRect)(void *pWindow, const xOS_Rect *rect);

	  void  				(*GetClipRect)(void *pWindow, xOS_Rect *rect);
	  

	  int   				(*EventFunc)(void *pWindow,int (*fn)(void *));

	  xOS_bool 				(*EnableWindow)(void *pWindow);

	  xOS_bool 				(*IsWindowEnable)(void *pWindow);

	  xOS_bool 				(*IsWindowVisible)(void *pWindow);

	  void     				(*MoveWindow)(void *pWindow, int X, int Y, int nWidth, int nHeight, xOS_bool bRepaint);


//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<NULL Functions<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

	  xOS_bool 				(*IsChild)(void *pWindow);

	  Handler  				(*GetParent)(void *pWindow);

	  Handler  				(*GetDlgItem)(void *pWindow);

	  void	 				(*OnSize)(void *pWindow);

	  void     				(*OnMove)(void *pWindow);	

	  void	 				(*OnChar)(void *pWindow);

	  void 	 				(*OnKeyDown)(void *pWindow);

	  void     				(*OnKeyUp)(void *pWindow);

	  void   				(*OnLButtonDown)(void *pWindow);

	  void	 				(*OnRButtonDown)(void *pWindow);

	  void	 				(*OnLButtonUp)(void *pWindow);

	  void	 				(*OnRButtonUp)(void *pWindow);

	  void	 				(*OnLButtonDblClk)(void *pWindow);

	  void 	 				(*OnRButtonDblClk)(void *pWindow);		

//追加部分
	  int                   (*BlitSurface)(void *pSrcWindow, xOS_Rect *srcrect,
				                           void *pDstWindow, xOS_Rect *dstrect);
	  int					(*SurfaceBlitWindow)(void *pSrcSurface, xOS_Rect *srcrect,
												 void *pDstWindow, xOS_Rect *dstrect);
	  int                   (*SurfaceBlitSurface)(void *pSrcSurface, xOS_Rect *srcrect,
				                           		  void *pDstSurface, xOS_Rect *dstrect);


	  int					(*CheckWindowState)(void *pWindow);

	  int                   (*VideoDriverID)(void *pWindow);

};


#endif //_xBIOS_VIDEOS_VTBL_H

⌨️ 快捷键说明

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