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

📄 osglue.h

📁 Lido PXA270平台开发板的最新BSP,包括源代码
💻 H
字号:
/**************************************************************************
 * Name         : osglue.h
 * Author       : BCB
 * Created      : 08/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/08 18:56:34 $ $Revision: 1.8 $
 * $Log: osglue.h $
 **************************************************************************/

#ifndef _OSGLUE_
#define _OSGLUE_

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


/* Every thread needing TLS must use a unique tls_id as defined below */
#define TLS_ID_OGL	((IMG_UINT)(0))
#define	TLS_ID_EGL	((IMG_UINT)(1))

IMG_VOID* ENV_GetTLSValue(IMG_UINT uTLS_ID);

IMG_BOOL ENV_SetTLSValue(IMG_UINT uTLS_ID, IMG_VOID *pvA);


#ifdef __linux__

#if DEBUG

#define	GLESMalloc(X,Y)		HostAllocUserModeMemTracking (Y, __FILE__, __LINE__)
#define	GLESCalloc(X,Y)		HostCallocUserModeMemTracking (Y, __FILE__, __LINE__)
#define	GLESRealloc(R,C,B)	HostReallocUserModeMemTracking (C, B, __FILE__, __LINE__)
#define	GLESFree(X,Y)		HostFreeUserModeMemTracking (Y)

#else /* DEBUG */

#define	GLESMalloc(X,Y)		HostAllocUserModeMem (Y)
#define	GLESCalloc(X,Y)		HostCallocUserModeMem (Y)
#define	GLESRealloc(X,Y,Z)	HostReallocUserModeMem (Y, Z)
#define	GLESFree(X,Y)		HostFreeUserModeMem (Y)

#endif /* DEBUG */

#else /* __linux__ */

IMG_VOID *GLESMalloc(GLESContext *gc, IMG_UINT32 ui32Size);
IMG_VOID GLESFree(GLESContext *gc, IMG_VOID *pvAddress);
IMG_VOID *GLESCalloc(GLESContext *gc, IMG_UINT32 ui32Size);
IMG_VOID *GLESRealloc(GLESContext *gc, IMG_VOID *pvAddress, IMG_UINT32 ui32Size);

#endif /* __linux__ */


IMG_FLOAT GLESGetCPUFreq(GLESContext *gc);

IMG_VOID GLESSleep(IMG_UINT32 ui32MilliSeconds);

PVRSRV_ERROR GLESServicesConnect(IMG_HANDLE *phServices);

IMG_VOID GLESInitProfileOutput(GLESContext *gc);

IMG_VOID GLESDeInitProfileOutput(GLESContext *gc);

IMG_VOID GLESProfileOutput(GLESContext *gc, IMG_CHAR *psString);

#if defined (__cplusplus)
}
#endif

#endif /* _OSGLUE_ */

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



⌨️ 快捷键说明

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