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

📄 extensions.c

📁 Lido PXA270平台开发板的最新BSP,包括源代码
💻 C
字号:
/* ************************************************************************* *\
** ************************************************************************* **
**
**    INTEL Corporation Proprietary Information
**
**    This listing is supplied under the terms of a license
**    agreement with INTEL Corporation and may not be copied
**    nor disclosed except in accordance with the terms of
**    that agreement.
**
**    Copyright (c) 2003 Intel Corporation.
**    All Rights Reserved.
**
** ************************************************************************* **
 * $Date: 2/13/04 9:07a $ $Revision: 5 $
 * $Log: /Intel_Development/Drivers/Marathon/WinCE42/opengles/extensions.c $
 * 
 * 5     2/13/04 9:07a Clmontgo
 * Removed extension not ready for prime time
 *
 * 4     1/26/04 6:46p Clmontgo
 * Added Profiler, Converted Lighting procs to Fixed point, Worked on
 * screen rotation code, Added wMMX debug Macros to Lighting.
 *
 * 3     1/19/04 5:34p Clmontgo
 * Added Fog Functionality
 *
 * 2     12/21/03 12:45p Clmontgo
\* ************************************************************************* */

/**************************************************************************
 * Name         : extensions.c
 * Author       : Vlad Stamate
 * Created      : 17/12/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
 *
 *
 * $Log: /Intel_Development/Drivers/Marathon/WinCE42/opengles/extensions.c $
 * 
 * 5     2/13/04 9:07a Clmontgo
 * Removed extension not ready for prime time
 *
 * 4     1/26/04 6:46p Clmontgo
 * Added Profiler, Converted Lighting procs to Fixed point, Worked on
 * screen rotation code, Added wMMX debug Macros to Lighting.
 *
 * 3     1/19/04 5:34p Clmontgo
 * Added Fog Functionality
 *
 * 2     12/21/03 12:45p Clmontgo
 **************************************************************************/
#include "img_types.h"
#include "string.h"
#include "context.h"

static const IMG_CHAR *pszExternalExtensions = ""
//"GL_EXT_draw_range_elements "
#ifdef DLL_METRICS
"HXFPROFILE"
#endif // DLL_METRICS
// "GL_EXT_secondary_color"
// "GL_EXT_separate_specular_color "
;

typedef void (*GL_PROC)();

/* ************************************************************************* *\
**
\* ************************************************************************* */
void glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count,
						GLenum type, const GLvoid *indices);

#ifdef HXF_PROFILE
// FIXME Add profile entry point
#endif // HXF_PROFILE

/***********************************************************************************
 Function Name      : __GetExternalExtensionString
 Inputs             : -
 Outputs            : -
 Returns            : string
 Description        : UTILITY: It returns a string represeting extension names
************************************************************************************/
const IMG_CHAR *GetExternalExtensionString()
{
	return pszExternalExtensions;
}

/***********************************************************************************
 Function Name      : __GetExternalProcAddress
 Inputs             : procname
 Outputs            : -
 Returns            : function pointer
 Description        : UTILITY: It returns a pointer to a function whose name is procname
************************************************************************************/

IMG_VOID (* GetExternalProcAddress (const IMG_CHAR *procname))()
{
	/* search through the extensions and if we find it, return the function pointer */
/*	if(!strcmp("glSecondaryColor4x", procname))
	{
		return (PROC)glSecondaryColor4x;
	}
	else if(!strcmp("glSecondaryColorPointer", procname))
	{
		return (PROC)glSecondaryColorPointer
	}
*/
/*	if(!strcmp("glDrawRangeElementsEXT", procname))
	{
		return (GL_PROC)glDrawRangeElements;
	}
*/
#ifdef DLL_METRICS
	else if(!strcmp("HXFProfile", procname))
	{
		return (GL_PROC)HXFProfile;
	}
#endif // DLL_METRICS
	return 0;
}


/* ************************************************************************* *\
** ************************************************************************* **
** EOF
** ************************************************************************* **
\* ************************************************************************* */

⌨️ 快捷键说明

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