📄 sdl_drv.h
字号:
/*
*
* INTEL CORPORATION PROPRIETARY INFORMATION
* This software is supplied under the terms of a license agreement or
* nondisclosure agreement with Intel Corporation and may not be copied
* or disclosed except in accordance with the terms of that agreement.
* Copyright(c) 2001-2006 Intel Corporation. All Rights Reserved.
*
*/
#ifndef __SDL_DRV_H__
#define __SDL_DRV_H__
#include <umc_defs.h>
#ifdef UMC_ENABLE_SDL_VIDEO_RENDER
#include "drv.h"
#include <SDL/SDL.h>
typedef struct SDLDrv
{
SDL_Surface* win;
Ipp32s win_width;
Ipp32s win_height;
Uint32 sdl_fmt;
} SDLDrv;
typedef struct SDLVideoDrvParams
{
VideoDrvParams common; /* common parameters */
Uint32 sdl_fmt;
} SDLVideoDrvParams;
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
extern VIDEO_DRV_INIT_FUNC(umc_sdl_Init, driver, params);
extern VIDEO_DRV_CLOSE_FUNC(umc_sdl_Close, driver);
extern VIDEO_DRV_CREATE_SURFACE_FUNC(umc_sdl_CreateSurface, driver);
extern VIDEO_DRV_FREE_SURFACE_FUNC(umc_sdl_FreeSurface, driver, srf);
extern VIDEO_DRV_LOCK_SURFACE_FUNC(umc_sdl_LockSurface,driver,srf,planes);
extern VIDEO_DRV_UNLOCK_SURFACE_FUNC(umc_sdl_UnlockSurface, driver, srf);
extern VIDEO_DRV_RENDER_FRAME_FUNC(umc_sdl_RenderFrame, driver, frame, rect);
extern VIDEO_DRV_SET_VIDEO_MODE_FUNC(umc_sdl_SetVideoMode,driver,rect,mode);
/* Function returns <SDL_Surface*>. */
extern VIDEO_DRV_GET_WINDOW_FUNC(umc_sdl_GetWindow, driver);
extern VIDEO_DRV_RUN_EVENT_LOOP_FUNC(umc_sdl_RunEventLoop, driver);
extern const VideoDrvSpec SDLVideoDrvSpec;
#ifdef __cplusplus
}
#endif /* __cplusplus */
#define UMC_SDL_GET_WINDOW(void_win) (SDL_Surface*)(void_win)
#endif /* defined(UMC_ENABLE_SDL_VIDEO_RENDER) */
#endif /* __SDL_DRV_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -