aboutsummaryrefslogtreecommitdiffstats
path: root/make/cg-common.cfg
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2003-06-26 14:26:23 +0000
committerKenneth Russel <[email protected]>2003-06-26 14:26:23 +0000
commitf4a185237882ec73e5a9ec948102c4fd7d6c4c45 (patch)
treea88000731ad08c4e2d30e8a41152c678e3a79ab5 /make/cg-common.cfg
parent4f1304e3d4039b6388f7ac7886894b5fc280b089 (diff)
Checked in experimental Cg support and a couple of small demos. By
default it is not built and javadoc is not generated for it. The demos are not compiled by the jogl-demos project makefile since there are issues to be thought through with operations like cgCreateProgramFromFile and their interaction with launching over the web via Java Web Start. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@15 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/cg-common.cfg')
-rw-r--r--make/cg-common.cfg65
1 files changed, 65 insertions, 0 deletions
diff --git a/make/cg-common.cfg b/make/cg-common.cfg
new file mode 100644
index 000000000..d866ed860
--- /dev/null
+++ b/make/cg-common.cfg
@@ -0,0 +1,65 @@
+# This .cfg file provides common options used among all Cg glue code
+# generated for Jogl on all platforms.
+Package net.java.games.cg
+ImplPackage net.java.games.cg.impl
+JavaClass CgGL
+Style AllStatic
+JavaOutputDir ../build/gensrc/classes
+NativeOutputDir ../build/gensrc/native/jogl_cg
+HierarchicalNativeOutput false
+
+#
+# Map const char* return values to Java strings for these functions
+#
+ReturnsString cgGetErrorString
+ReturnsString cgGetLastListing
+ReturnsString cgGetParameterName
+ReturnsString cgGetParameterSemantic
+ReturnsString cgGetProfileString
+ReturnsString cgGetProgramString
+ReturnsString cgGetResourceString
+ReturnsString cgGetTypeString
+
+ArgumentIsString cgCreateProgram 2 4 5
+ArgumentIsString cgCreateProgramFromFile 2 4 5
+ArgumentIsString cgGetNamedParameter 1
+ArgumentIsString cgGetType 0
+ArgumentIsString cgGetResource 0
+ArgumentIsString cgGetProfile 0
+
+# Opaque definitions
+Opaque boolean CGbool
+
+#
+# FIXME!!!! Ignore these functions for now because we can't
+# automatically handle C callbacks
+#
+Ignore cgGetErrorCallback
+Ignore cgSetErrorCallback
+
+#
+# FIXME!!!! Ignore these functions for now because bugs in the
+# emitter code can't handle them
+#
+Ignore cgGetParameterValues
+
+#
+# Need to import New IO for Buffer classes
+#
+Import java.nio.*
+
+# Raise CgException instead of RuntimeException in glue code
+RuntimeExceptionType CgException
+
+#
+# Make sure the right definitions and include files are added to the
+# generated C code
+#
+
+CustomCCode #include <CG/CgGL.h>
+
+ArgumentIsString fooString 0
+ArgumentIsString fooString1 0
+NioOnly fooFloat2
+
+CustomJavaCode CgGL static { System.loadLibrary("jogl_cg");}