diff options
author | Kenneth Russel <[email protected]> | 2009-06-15 22:57:38 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-06-15 22:57:38 +0000 |
commit | a959c53b7ac91e489bf0959391e892790b9ff248 (patch) | |
tree | 4664742a4f9f6daa694364292e376ad2e6ee97d1 /make/config/jogl/cg-common.cfg | |
parent | 506b634b780dcd23aa61015c2ceba3e687196abf (diff) |
Copied JOGL_2_SANDBOX r1957 on to trunk; JOGL_2_SANDBOX branch is now closed
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1959 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/config/jogl/cg-common.cfg')
-rw-r--r-- | make/config/jogl/cg-common.cfg | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/make/config/jogl/cg-common.cfg b/make/config/jogl/cg-common.cfg new file mode 100644 index 000000000..9b8dba079 --- /dev/null +++ b/make/config/jogl/cg-common.cfg @@ -0,0 +1,118 @@ +# This .cfg file provides common options used among all Cg glue code +# generated for Jogl on all platforms. +Package com.sun.opengl.cg +JavaClass CgGL +Style AllStatic +JavaOutputDir gensrc/classes +NativeOutputDir gensrc/native/jogl_cg +HierarchicalNativeOutput false + +# +# Map const char* return values to Java strings for these functions +# +ReturnsString cgGetAnnotationName +ReturnsString cgGetEnumString +ReturnsString cgGetErrorString +ReturnsString cgGetLastErrorString +ReturnsString cgGetLastListing +ReturnsString cgGetParameterName +ReturnsString cgGetParameterSemantic +ReturnsString cgGetPassName +ReturnsString cgGetProfileString +ReturnsString cgGetProgramString +ReturnsString cgGetResourceString +ReturnsString cgGetStateName +ReturnsString cgGetString +ReturnsString cgGetStringAnnotationValue +ReturnsString cgGetStringParameterValue +ReturnsString cgGetStringStateAssignmentValue +ReturnsString cgGetTechniqueName +ReturnsString cgGetTypeString + +ArgumentIsString cgAddStateEnumerant 1 +ArgumentIsString cgCreateArrayState 1 +ArgumentIsString cgCreateArraySamplerState 1 +ArgumentIsString cgCreateEffect 1 2 +ArgumentIsString cgCreateEffectFromFile 1 2 +ArgumentIsString cgCreateProgram 2 4 5 +ArgumentIsString cgCreateProgramFromFile 2 4 5 +ArgumentIsString cgCreateProgramFromEffect 2 3 +ArgumentIsString cgCreateSamplerState 1 +ArgumentIsString cgCreateState 1 +ArgumentIsString cgGetEffectParameterBySemantic 1 +ArgumentIsString cgGetEnum 0 +ArgumentIsString cgGetNamedEffectParameter 1 +ArgumentIsString cgGetNamedParameter 1 +ArgumentIsString cgGetNamedPass 1 +ArgumentIsString cgGetNamedProgramParameter 2 +ArgumentIsString cgGetNamedSamplerState 1 +ArgumentIsString cgGetNamedState 1 +ArgumentIsString cgGetNamedSamplerStateAssignment 1 +ArgumentIsString cgGetNamedStateAssignment 1 +ArgumentIsString cgGetNamedStructParameter 1 +ArgumentIsString cgGetNamedTechnique 1 +ArgumentIsString cgGetNamedTechniqueAnnotation 1 +ArgumentIsString cgGetNamedPassAnnotation 1 +ArgumentIsString cgGetNamedParameterAnnotation 1 +ArgumentIsString cgGetNamedProgramAnnotation 1 +ArgumentIsString cgGetNamedUserType 1 +ArgumentIsString cgGetProfile 0 +ArgumentIsString cgGetType 0 +ArgumentIsString cgGetResource 0 +ArgumentIsString cgSetLastListing 1 +ArgumentIsString cgSetParameterSemantic 1 +ArgumentIsString cgSetStringParameterValue 1 + +# Opaque definitions +Opaque boolean CGbool + +# +# FIXME!!!! Ignore these functions for now because we can't +# automatically handle C callbacks +# +Ignore cgSetErrorCallback +Ignore cgGetErrorCallback +Ignore cgSetErrorHandler +Ignore cgGetErrorHandler +Ignore cgSetStateCallbacks +Ignore cgGetStateSetCallback +Ignore cgGetStateResetCallback +Ignore cgGetStateValidateCallback + +# +# FIXME!!!! Ignore these functions for now because bugs in the +# emitter code can't handle them +# +Ignore cgGetBooleanAnnotationValues +Ignore cgGetBoolStateAssignmentValues +Ignore cgGetFloatAnnotationValues +Ignore cgGetFloatStateAssignmentValues +Ignore cgGetIntAnnotationValues +Ignore cgGetIntStateAssignmentValues +Ignore cgGetParameterValues +Ignore cgGetProgramOptions + +# +# Need to import New IO for Buffer classes +# +Import java.nio.* +# And NativeLibLoader for help loading the native libraries +Import com.sun.opengl.impl.* + +# +# NIODirectOnly directives for routines requiring them for semantic reasons +# +NIODirectOnly cgGLSetParameterPointer + +# 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 <stdlib.h> +CustomCCode #include <Cg/cgGL.h> + +IncludeAs CustomJavaCode CgGL cg-common-CustomJavaCode.java |