aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/ogl/NativeAPIInfo.c
blob: 8cd0841b1c1303f7210e482076d2479b3fa5cda3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * $RCSfile$
 *
 * Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved.
 *
 * Use is subject to license terms.
 *
 * $Revision$
 * $Date$
 * $State$
 */

/*
 * Portions of this code were derived from work done by the Blackdown
 * group (www.blackdown.org), who did the initial Linux implementation
 * of the Java 3D API.
 */

#include <jni.h>

#include "javax_media_j3d_MasterControl.h"

JNIEXPORT
jint JNICALL Java_javax_media_j3d_NativeAPIInfo_getRenderingAPI(
    JNIEnv *env, jobject obj)
{
#ifdef WIN32
    return (jint)javax_media_j3d_MasterControl_RENDER_OPENGL_WIN32;
#endif /* WIN32 */

#ifdef SOLARIS
    return (jint)javax_media_j3d_MasterControl_RENDER_OPENGL_SOLARIS;
#endif /* SOLARIS */

#ifdef __linux__
    return (jint)javax_media_j3d_MasterControl_RENDER_OPENGL_LINUX;
#endif /* __linux__ */
}