sl@0: /* sl@0: * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: Rendering context interface sl@0: * sl@0: */ sl@0: sl@0: #ifndef __M3G_RENDERCONTEXT_H__ sl@0: #define __M3G_RENDERCONTEXT_H__ sl@0: sl@0: /*! sl@0: * \internal sl@0: * \file sl@0: * \brief Rendering context data structure definition and sl@0: * function declarations sl@0: */ sl@0: sl@0: static void m3gDrawMesh(RenderContext *ctx, sl@0: const VertexBuffer *vb, sl@0: const IndexBuffer *ib, sl@0: const Appearance *app, sl@0: const M3GMatrix *modelTransform, sl@0: M3Gint alphaFactor, sl@0: M3Gint scope); sl@0: sl@0: static void m3gPushScreenSpace(RenderContext *ctx, M3Gbool realPixels); sl@0: static void m3gPopSpace(RenderContext *ctx); sl@0: sl@0: static const Camera *m3gGetCurrentCamera(const RenderContext *ctx); sl@0: sl@0: static M3Gbool m3gIsAccelerated(const RenderContext *ctx); sl@0: sl@0: #if !defined(M3G_NGL_CONTEXT_API) sl@0: static void m3gBlitFrameBufferPixels(RenderContext *ctx, sl@0: M3Gint xOffset, M3Gint yOffset, sl@0: M3Gint width, M3Gint height, sl@0: M3GPixelFormat internalFormat, sl@0: M3Gsizei stride, sl@0: const M3Gubyte *pixels); sl@0: #endif sl@0: sl@0: static void m3gUpdateColorMaskStatus(RenderContext *ctx, sl@0: M3Gbool newColorWrite, sl@0: M3Gbool newAlphaWrite); sl@0: sl@0: #endif /*__M3G_RENDERCONTEXT_H__*/