equal
deleted
inserted
replaced
|
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 "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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /*! |
|
20 * \file \brief Symbian Java bindings |
|
21 * |
|
22 */ |
|
23 |
|
24 #include <M3G/m3g_core.h> // Please check if this header is needed |
|
25 |
|
26 #include <jni.h> |
|
27 |
|
28 #include <math.h> |
|
29 #include <stdlib.h> |
|
30 #include <string.h> |
|
31 #include "graphics.h" |
|
32 #include <QDebug> |
|
33 //#include "gdi.h" // CFbsBitmap |
|
34 #include "fbs.h" |
|
35 |
|
36 #include <GLES/egl.h> |
|
37 |
|
38 struct ImageStruct |
|
39 { |
|
40 CFbsBitmap* color; |
|
41 CFbsBitmap* mask; |
|
42 }; |
|
43 |
|
44 |
|
45 |
|
46 #define M3G_ASSERT(a) ((void)(a)) |
|
47 #define M3G_BEGIN_PROFILE(a) ((void)(a)) |
|
48 #define M3G_END_PROFILE(a) ((void)(a)) |
|
49 |
|
50 #define Matrix M3GMatrix |
|
51 #define Quat M3GQuat |
|
52 #define Vec4 M3GVec4 |
|
53 |
|
54 #define M3G_JAVA_INCLUDE |
|
55 extern "C" |
|
56 { |
|
57 #include "m3g_kvm_api.inl" |
|
58 } |
|
59 #undef M3G_JAVA_INCLUDE |
|
60 |