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

📄 ogles_types.h

📁 Lido PXA270平台开发板的最新BSP,包括源代码
💻 H
字号:
/**************************************************************************
 * Name         : types.h
 * Author       : BCB
 * Created      : 02/05/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/01 16:32:19 $ $Revision: 1.10 $
 * $Log: ogles_types.h $
 * 
 *  --- Revision Logs Removed --- 
 **************************************************************************/
#ifndef _OGLES_TYPES_
#define _OGLES_TYPES_

#if 1
#include "img_defs.h"
#else
/* This is required because the mbx13ddef.h incorrectly uses the non-portable DWORD type */
typedef unsigned long DWORD;


typedef signed char 		IMG_INT8;
typedef unsigned char 		IMG_UINT8;
typedef signed short int 	IMG_INT16;
typedef unsigned short int 	IMG_UINT16;
typedef signed long int 	IMG_INT32;
typedef unsigned long		IMG_UINT32;
typedef	unsigned int		IMG_UINT;
typedef float				IMG_FLOAT;
typedef void				IMG_VOID;
typedef signed char			IMG_CHAR;

typedef	enum TAG_IMG_BOOL
{
	IMG_FALSE,
	IMG_TRUE
} IMG_BOOL;
#endif
typedef struct GLESContext_TAG GLESContext;
typedef struct GLEStextureRec GLEStexture;
typedef struct GLESprocsRec GLESprocs;
typedef struct GLESmatrixRec GLESmatrix;
typedef struct GLESlightSourceMachineRec GLESlightSourceMachine;
typedef IMG_UINT8 GLEStextureBuffer;
typedef IMG_VOID * GLESDrawableHandle;
typedef IMG_VOID * GLESContextHandle;


/*
** Coordinate structure.  Coordinates contain x, y, z and w.
*/
typedef struct GLEScoordRec {
    IMG_FLOAT fX, fY, fZ, fW;
} GLEScoord;

/*
** Color structure.  Colors are composed of red, green, blue and alpha.
*/
typedef struct GLEScolorRec {
    IMG_FLOAT fRed, fGreen, fBlue, fAlpha;
} GLEScolor;

typedef struct GLESDrawMaskRect_TAG {
	IMG_INT32  i32X;
	IMG_INT32  i32Y;
	IMG_UINT32 ui32Width;
	IMG_UINT32 ui32Height;
} GLESDrawMaskRect;

typedef struct GLESpixelSpanInfoRec {
    IMG_INT32  i32ReadX, i32ReadY;						/* Reading coords (ReadPixels) */
    IMG_UINT32 ui32Width, ui32Height;					/* Size of image */
    IMG_UINT32 ui32DstSkipPixels, ui32DstSkipLines;		/* Skip some pixels (probably due to window clip) */
    
	IMG_INT32 i32SrcRowIncrement;						/* Add this much to get to the next row */
    IMG_INT32 i32SrcGroupIncrement;						/* Add this much to get to the next group */
	IMG_INT32 i32DstRowIncrement;						/* Add this much to get to the next row */
    IMG_INT32 i32DstGroupIncrement;						/* Add this much to get to the next group */
	IMG_VOID   *pvInData, *pvOutData;					/* Temp pointers for input and output */
}GLESpixelSpanInfo;

#define FLOAT_TO_LONG(x)	(* (long *)( & x)) 
#define LONG_TO_FLOAT(x)	(* (float *)( & x))
#define FIXED_TO_LONG(x)	((long)(x) >> 16)
#define LONG_TO_FIXED(x)	((long)(x) << 16)

#define FIXED_TO_FLOAT(x)	((float)(x) * (1.0f / 65536.0f))

#define FLOAT_TO_FIXED(x)	(long)((x) * 65536.0f)

#define IMG_NULL			0
#endif /* _OGLES_TYPES_ */

⌨️ 快捷键说明

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