📄 srv.h
字号:
/* -*- c-file-style: "img" -*-
<module>
* Name : srv.h
* Title : Service Interface API.
* Author : Marcus Shawcroft
* Created : 4 Nov 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.
*
* Description : Service interface for Khronos EGL API.
*
* Platform : ALL
*
</module>
*/
#ifndef _srv_h_
#define _srv_h_
#include "drvegl.h"
extern const EGLint SRV_pixel_format_alpha [];
extern const EGLint SRV_pixel_format_red [];
extern const EGLint SRV_pixel_format_green [];
extern const EGLint SRV_pixel_format_blue [];
extern const EGLint SRV_pixel_format_width [];
/*
<function>
FUNCTION : SRV_Initialise
PURPOSE : Open a connection to services.
PARAMETERS : Out: systemContext - Receives system context.
RETURNS : EGL_SUCCESS - Success
Other EGL error code on failure.
</function>
*/
EGLint
SRV_Initialise (GLESSysContext *psSysContext);
/*
<function>
FUNCTION : SRV_Finalise
PURPOSE : Close a connection to services.
PARAMETERS : In: systemContext - System context.
RETURNS : EGL_SUCCESS - Success
Other EGL error code on failure.
</function>
*/
EGLint
SRV_Finalise (GLESSysContext *systemContext);
/*
<function>
FUNCTION : SRV_FindGLESPixelFormat
PURPOSE : Search for a GLES pixel format that matches ARGB pixel widths.
PARAMETERS : In: a - alpha channel width
In: r - red channel width
In: g - green channel width
In: b - blue channel width
Out: pixel_size - receives the pixel width in bytes
RETURNS : pixel format
</function>
*/
EGLint
SRV_FindGLESPixelFormat (EGLint a,
EGLint r,
EGLint g,
EGLint b,
EGLint *pixel_size);
/*
<function>
FUNCTION : SRV_FindPVRPixelFormat
PURPOSE : Search for a GLES pixel format that matches ARGB pixel widths.
PARAMETERS : In: a - alpha channel width
In: r - red channel width
In: g - green channel width
In: b - blue channel width
Out: pixel_format - receives pixel format.
Out: pixel_width - receives pixel width in bytes.
RETURNS : EGL_TRUE - Success.
EGL_FALSE - Failure.
</function>
*/
EGLBoolean
SRV_FindPVRPixelFormat (EGLint a,
EGLint r,
EGLint g,
EGLint b,
PVRSRV_PIXEL_FORMAT *pixel_format,
EGLint *pixel_width);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -