Update contrib.
2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Rendering context interface
18 #ifndef __M3G_RENDERCONTEXT_H__
19 #define __M3G_RENDERCONTEXT_H__
24 * \brief Rendering context data structure definition and
25 * function declarations
28 static void m3gDrawMesh(RenderContext *ctx,
29 const VertexBuffer *vb,
30 const IndexBuffer *ib,
31 const Appearance *app,
32 const M3GMatrix *modelTransform,
36 static void m3gPushScreenSpace(RenderContext *ctx, M3Gbool realPixels);
37 static void m3gPopSpace(RenderContext *ctx);
39 static const Camera *m3gGetCurrentCamera(const RenderContext *ctx);
41 static M3Gbool m3gIsAccelerated(const RenderContext *ctx);
43 #if !defined(M3G_NGL_CONTEXT_API)
44 static void m3gBlitFrameBufferPixels(RenderContext *ctx,
45 M3Gint xOffset, M3Gint yOffset,
46 M3Gint width, M3Gint height,
47 M3GPixelFormat internalFormat,
49 const M3Gubyte *pixels);
52 static void m3gUpdateColorMaskStatus(RenderContext *ctx,
53 M3Gbool newColorWrite,
54 M3Gbool newAlphaWrite);
56 #endif /*__M3G_RENDERCONTEXT_H__*/