javauis/m3g_qt/src/m3g_symbian_java_api.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:33:44 +0300
changeset 35 85266cc22c7f
permissions -rw-r--r--
Revision: v2.2.1 Kit: 2010123

/*
* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/


/*!
 * \file \brief Symbian Java bindings
 *
 */

#include <M3G/m3g_core.h> // Please check if this header is needed

#include <jni.h>

#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "graphics.h"
#include <QDebug>
//#include "gdi.h" // CFbsBitmap
#include "fbs.h"

#include <GLES/egl.h>

struct ImageStruct
{
    CFbsBitmap* color;
    CFbsBitmap* mask;
};



#define M3G_ASSERT(a)           ((void)(a))
#define M3G_BEGIN_PROFILE(a)    ((void)(a))
#define M3G_END_PROFILE(a)      ((void)(a))

#define Matrix  M3GMatrix
#define Quat    M3GQuat
#define Vec4    M3GVec4

#define M3G_JAVA_INCLUDE
extern "C"
{
#include "m3g_kvm_api.inl"
}
#undef M3G_JAVA_INCLUDE