From 343b658c32a6473c545187c1e276ee5d06c2686a Mon Sep 17 00:00:00 2001 From: Kevin Rushforth Date: Wed, 9 Jun 2004 04:25:41 +0000 Subject: Initial creation of j3d-core-utils sources in CVS repository git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@7 ba19aa83-45c5-6ac9-afd3-db810772062c --- src/native/d3d/CompressedGeometryRetained.cpp | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/native/d3d/CompressedGeometryRetained.cpp (limited to 'src/native/d3d/CompressedGeometryRetained.cpp') diff --git a/src/native/d3d/CompressedGeometryRetained.cpp b/src/native/d3d/CompressedGeometryRetained.cpp new file mode 100644 index 0000000..413b33d --- /dev/null +++ b/src/native/d3d/CompressedGeometryRetained.cpp @@ -0,0 +1,39 @@ +/* + * $RCSfile$ + * + * Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved. + * + * Use is subject to license terms. + * + * $Revision$ + * $Date$ + * $State$ + */ + +#include "StdAfx.h" + +extern "C" JNIEXPORT +void JNICALL Java_javax_media_j3d_CompressedGeometryRetained_execute + (JNIEnv *env, jobject obj, jlong ctx, jint version, jint bufferType, + jint bufferContents, jint renderFlags, jint offset, jint size, + jbyteArray geometry) +{ + // Not support by D3D, problem should not call this. + printf("Error: CompressedGeometryRetained execute should not invoke by D3D"); +} + +extern "C" JNIEXPORT +jboolean JNICALL Java_javax_media_j3d_CompressedGeometryRetained_decompressByRef + (JNIEnv *env, jobject obj, jlong ctx) +{ + // Not support by D3D + return JNI_FALSE ; +} + +extern "C" JNIEXPORT +jboolean JNICALL Java_javax_media_j3d_CompressedGeometryRetained_decompressHW + (JNIEnv *env, jobject obj, jlong ctx, jint majorVersion, jint minorVersion) +{ + // Not support by D3D + return JNI_FALSE ; +} -- cgit v1.2.3