|
1 /* |
|
2 * Copyright (c) 2009 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 #include "javax_microedition_m3g_AnimationTrack.h" |
|
19 |
|
20 JNIEXPORT jint JNICALL Java_javax_microedition_m3g_AnimationTrack__1getTargetProperty |
|
21 (JNIEnv* aEnv, jclass, jint aHandle) |
|
22 { |
|
23 M3G_DO_LOCK |
|
24 jint props = (jint)m3gGetTargetProperty((M3GAnimationTrack)aHandle); |
|
25 M3G_DO_UNLOCK(aEnv) |
|
26 return props; |
|
27 } |
|
28 |
|
29 JNIEXPORT jint JNICALL Java_javax_microedition_m3g_AnimationTrack__1getSequence |
|
30 (JNIEnv* aEnv, jclass, jint aHandle) |
|
31 { |
|
32 M3G_DO_LOCK |
|
33 jint sequence = (jint)m3gGetSequence((M3GAnimationTrack)aHandle); |
|
34 M3G_DO_UNLOCK(aEnv) |
|
35 return sequence; |
|
36 } |
|
37 |
|
38 JNIEXPORT jint JNICALL Java_javax_microedition_m3g_AnimationTrack__1ctor |
|
39 (JNIEnv* aEnv, jclass, jint aM3g, jint aHSequence, jint aProperty) |
|
40 { |
|
41 M3G_DO_LOCK |
|
42 jint handle = (jint)m3gCreateAnimationTrack((M3GInterface)aM3g, (M3GKeyframeSequence)aHSequence, (M3Gint)aProperty); |
|
43 M3G_DO_UNLOCK(aEnv) |
|
44 return handle; |
|
45 } |
|
46 |
|
47 JNIEXPORT jint JNICALL Java_javax_microedition_m3g_AnimationTrack__1getController |
|
48 (JNIEnv* aEnv, jclass, jint aHandle) |
|
49 { |
|
50 M3G_DO_LOCK |
|
51 jint controller = (jint)m3gGetController((M3GAnimationTrack)aHandle); |
|
52 M3G_DO_UNLOCK(aEnv) |
|
53 return controller; |
|
54 } |
|
55 |
|
56 JNIEXPORT void JNICALL Java_javax_microedition_m3g_AnimationTrack__1setController |
|
57 (JNIEnv* aEnv, jclass, jint aHandle, jint aHController) |
|
58 { |
|
59 M3G_DO_LOCK |
|
60 m3gSetController((M3GAnimationTrack)aHandle, (M3GAnimationController)aHController); |
|
61 M3G_DO_UNLOCK(aEnv) |
|
62 } |