os/graphics/m3g/m3gcore11/inc/m3g_rendercontext.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: Rendering context interface
    15 *
    16 */
    17 
    18 #ifndef __M3G_RENDERCONTEXT_H__
    19 #define __M3G_RENDERCONTEXT_H__
    20 
    21 /*!
    22  * \internal
    23  * \file
    24  * \brief Rendering context data structure definition and
    25  * function declarations
    26  */
    27 
    28 static void m3gDrawMesh(RenderContext *ctx,
    29                         const VertexBuffer *vb,
    30                         const IndexBuffer *ib,
    31                         const Appearance *app,
    32                         const M3GMatrix *modelTransform,
    33                         M3Gint alphaFactor,
    34                         M3Gint scope);
    35 
    36 static void m3gPushScreenSpace(RenderContext *ctx, M3Gbool realPixels);
    37 static void m3gPopSpace(RenderContext *ctx);
    38 
    39 static const Camera *m3gGetCurrentCamera(const RenderContext *ctx);
    40 
    41 static M3Gbool m3gIsAccelerated(const RenderContext *ctx);
    42 
    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,
    48                                      M3Gsizei stride,
    49                                      const M3Gubyte *pixels);
    50 #endif
    51 
    52 static void m3gUpdateColorMaskStatus(RenderContext *ctx,
    53                                      M3Gbool newColorWrite,
    54                                      M3Gbool newAlphaWrite);
    55 
    56 #endif /*__M3G_RENDERCONTEXT_H__*/