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

📄 servicesglue.h

📁 Lido PXA270平台开发板的最新BSP,包括源代码
💻 H
字号:
/**************************************************************************
 * Name         : servicesglue.h
 * Author       : BCB
 * Created      : 14/08/2003
 *
 * Copyright    : 2003 by Imagination Technologies Limited. All rights reserved.
 *              : No part of this software, either material or conceptual 
 *              : may be copied or distributed, transmitted, transcribed,
 *              : stored in a retrieval system or translated into any 
 *              : human or computer language in any form by any means,
 *              : electronic, mechanical, manual or other-wise, or 
 *              : disclosed to third parties without the express written
 *              : permission of Imagination Technologies Limited, Unit 8, HomePark
 *              : Industrial Estate, King's Langley, Hertfordshire,
 *              : WD4 8LZ, U.K.
 *
 * Platform     : ANSI
 *
 * $Date: 2004/10/27 16:16:42 $ $Revision: 1.11.1.1 $
 * $Log: servicesglue.h $
 **************************************************************************/

#ifndef _SERVICESGLUE_
#define _SERVICESGLUE_

#if defined (__cplusplus)
extern "C" {
#endif

#include "services.h"
#include "hostfunc_um.h"

#if defined(__SH4__)
#define GLES_MAX_PARAMBUFF_SIZE (2 * 1024 * 1024)
#else
#define GLES_MAX_PARAMBUFF_SIZE (8 * 1024 * 1024)
#endif

typedef struct GLESSysContext_TAG {
	
	IMG_HANDLE hServices;
	PVRSRV_DEV_DATA s3D;
	PVRSRV_DEV_DATA sDisplay;
	PVRSRV_HW_INFO sHWInfo;

}GLESSysContext;

typedef struct GLESRenderSurface_TAG {

	PVRSRV_TARENDERINFO *psTARenderInfo;
	PVRSRV_MEM_INFO *psZBufferMemInfo;
	IMG_UINT32 ui32Width;
	IMG_UINT32 ui32Height;
	IMG_UINT32 ui32AAFlags;
	IMG_BOOL bInFrame;
	IMG_BOOL bSceneInvalid;

}GLESRenderSurface;

IMG_BOOL GLESServicesInit(GLESSysContext *psSysContext);

IMG_BOOL GLESServicesDeInit(GLESSysContext *psSysContext);

IMG_BOOL GLESCreateParameterBuffer(GLESContext *gc);

IMG_VOID GLESInitRegs(GLESContext *gc);

IMG_BOOL GLESCreateRenderTarget(GLESContext *gc);

IMG_BOOL GLESDiscardScene(GLESSysContext *psSysContext, GLESRenderSurface *psRenderSurface);

IMG_BOOL GLESDestroyRenderTarget(GLESSysContext *psSysContext, GLESRenderSurface *psRenderSurface);

IMG_BOOL GLESAllocateDeviceMemory(GLESContext *gc, IMG_UINT32 ui32Size, IMG_UINT32 ui32Alignment, PVRSRV_MEM_INFO **ppsMemInfo);

IMG_BOOL GLESFreeDeviceMemory(GLESContext *gc, PVRSRV_MEM_INFO *psMemInfo);

IMG_BOOL GLESAcquireTA(GLESContext *gc, GLESRenderSurface *psRenderSurface);

IMG_BOOL GLESReleaseTA(GLESContext *gc, IMG_BOOL bIsTerminate);

IMG_BOOL GLESCreateDepthBuffer(GLESContext *gc);

IMG_BOOL GLESDestroyDepthBuffer(GLESSysContext *psSysContext, GLESRenderSurface *psRenderSurface);

IMG_VOID SysKickCmdProc(IMG_UINT32 *pui32KickerAddr);

#if defined (__cplusplus)
}
#endif
#endif /* _SERVICESGLUE_ */

/*****************************************************************************
 End of file (servicesglue.h)
*****************************************************************************/

⌨️ 快捷键说明

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