📄 mrl.h
字号:
/* ************************************************************************* *\
**
** 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.
**
** ************************************************************************* **
FILE: HXForm.h
DESCRIPTION: Defines the public interface for the HXForm library.
Defines Creation, Destruction, and processing functions.
AUTHOR: Cian Montgomery
DATE: June 06, 2003
\* ************************************************************************* */
#ifndef __MRL_H__
#define __MRL_H__
#include "HXFTypes.h"
#include "XPL.h"
#include "CTL.h"
//
typedef struct GLESHWContext_TAG GLESHWContext;
/* ************************************************************************* *\
** ************************************************************************* **
** Various consants
** ************************************************************************* **
\* ************************************************************************* */
#define HXF_HAS_PRIMITIVE_SIZE (0x00000001)
#define HXF_INVERT_NORMALS (0x00000002) // indicates that Two sided lighting is on and the Culling is set to front faces
#define HXF_SPECULAR_ENABLE (0x00000004)
#define HXF_CULL_NONE (0x00000000)
#define HXF_CULL_CCW (0x00000010)
#define HXF_CULL_CW (0x00000020)
#define HXF_CULL_BAD (0x00000030) // extra combination not used
#define HXF_CULL_MASK (0x00000030)
/* ************************************************************************* *\
** ************************************************************************* **
** Function prototypes
** ************************************************************************* **
\* ************************************************************************* */
// Slave port DrawVertex3 functions
typedef void* (*HXFSPProc)(void*, void*, void*, void*);
extern HXFSPProc s_SPProcs[];
/* ************************************************************************* *\
** ************************************************************************* **
** MRLState - This entire structure must be 8 byte aligned.
** ************************************************************************* **
\* ************************************************************************* */
typedef struct _MRLState
{
/* 00*/ HUINT32 reserved0[2];
/* 08*/ HUINT32 Flags; // General State Flags
/* 0c*/ HUINT32 reserved1[53];
/* ********************************************************************* *\
Slaveport Interface Variables
\* ********************************************************************* */
/*0e0*/ HUINT32 SPAddr; // Must be DWORD(8 byte) aligned.
/*0e4*/ HUINT32 SPReservedSpace;
/*0e8*/ GLESHWContext* pHWState;
/*0ec*/ HUINT32 SPBaseAddr;
/*0f0*/ HUINT32 SPTermAddr;
/*0f4*/ HUINT32 PrimitiveHeader;
/*0f8*/ float PrimitiveSize; // Size for Points and Lines
/*0fc*/ HXFSPProc pSPProc;
/*100*/
} MRLState;
CT_ASSERT( 0 == ( sizeof( MRLState ) & 7 ));
CT_ASSERT( 0 == ( __offsetof( MRLState, SPAddr ) & 7 ));
/* ************************************************************************* *\
** ************************************************************************* **
** EOF
** ************************************************************************* **
\* ************************************************************************* */
#endif // __HXFORM_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -