scene.h

来自「Lido PXA270平台开发板的最新BSP,包括源代码」· C头文件 代码 · 共 56 行

H
56
字号
/*****************************************************************************
 Name			: scene.h
 
 Title			: scene handling header
* Author(s)		: Imagination Technologies
* Created		: 2 March 2004
*
* Copyright		: 2004 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	: scene handling header
*
* Platform		: Windows CE
*
</module>

 $Log: scene.h $
*****************************************************************************/
#if !defined(_SCENE_H_)
#define _SCENE_H_

void D3DMQueueRender(LPD3DM_CONTEXT	psContext,
					 DWORD			dwNum3DRegs,
					 PVRSRV_HWREG	*ps3DRegs);
void TAStart(LPD3DM_CONTEXT psContext);
void DoBeginScene(LPD3DM_CONTEXT psContext);
void DoMidScene(LPD3DM_CONTEXT psContext);
void DoEndScene(LPD3DM_CONTEXT psContext);
void ResubmitHWState(LPD3DM_CONTEXT psContext);
void SetViewPort(LPD3DM_CONTEXT psContext, LPD3DMRECT psRect);
void SendBackgroundObject(LPD3DM_CONTEXT psContext);
void SetupBGO(PVRSRV_BGOBJ_INFO	*psBGObjInfo, LPD3DM_SURFACE psRenderTarget);
void SetRenderTarget(LPD3DM_CONTEXT psContext, 
					 LPD3DM_SURFACE psNewRenderTarget,
					 LPD3DM_SURFACE psNewDepthBuffer,
					 IMG_BOOL		bDisallowEndScene);
IMG_VOID FlushGeometryOnSurface(LPD3DM_SURFACE psTarget);
IMG_VOID SortOutFogColour(LPD3DM_CONTEXT psContext);

#define SCENE_IS_INVALID(x)	 ((x)->sDescription.sSurface.psTARenderInfo->psSharedData->bSceneInvalidated)
#define IS_RENDER_TARGET(x)	 ((x)->dwUsage & D3DMUSAGE_RENDERTARGET)
#define SCENE_HAS_STARTED(x) ((x)->psCurrentRenderTarget->dwFlags & D3DM_SURFACE_FLAGS_SCENE_STARTED)

#endif /* #if !defined(_SCENE_H_) */
/*****************************************************************************
 End of file (scene.h)
*****************************************************************************/

⌨️ 快捷键说明

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