diff options
author | Kenneth Russel <[email protected]> | 2005-02-07 07:01:48 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-02-07 07:01:48 +0000 |
commit | f303d66c1a5c33fa4e392117919af87665dedc2b (patch) | |
tree | d750242fb098e376fafd1f712b1b034c760ff7e2 /make/glu-common.cfg | |
parent | 1a4a48f2b5fc3ba7eed815bf1920801f4b0b429d (diff) |
Hooked in GKW's Java port of the GLU library's mipmap and image
scaling operations. Added new ForceProcAddressGen directive to GlueGen
to force the addresses of the C routines to be fetched even though the
functions were being ignored by the core JavaEmitter. Cut down on the
number of variants of gluScaleImage and associated routines. Changed
the Java signatures of the affected methods to take Buffer again
instead of ByteBuffer (as was done during prototyping) to attempt to
maintain binary compatibility with current JOGL programs. Fixed bug /
problem in gluScaleImage implementation where incorrect scaling of
pixel values was being applied in Image.empty_image(); there may be
additional problems here for other pixel types. Put debugging code in
BuildMipmap under jogl.debug.BuildMipmap System property.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@215 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/glu-common.cfg')
-rw-r--r-- | make/glu-common.cfg | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/make/glu-common.cfg b/make/glu-common.cfg index 65919e410..917a95a62 100644 --- a/make/glu-common.cfg +++ b/make/glu-common.cfg @@ -176,3 +176,31 @@ ManuallyImplement gluOrtho2D ManuallyImplement gluPerspective ManuallyImplement gluLookAt ManuallyImplement gluPickMatrix + +# +# ------------------------ +# Mipmaps +# ------------------------ +# +# Ignore the mipmap routines and use GKW's Java port instead. +# Currently the Java and native code have fallback paths to the +# C code, but this will be removed in a future release. + +Ignore gluBuild1DMipmapLevels +Ignore gluBuild1DMipmaps +Ignore gluBuild2DMipmapLevels +Ignore gluBuild2DMipmaps +Ignore gluBuild3DMipmapLevels +Ignore gluBuild3DMipmaps +Ignore gluScaleImage + +# Must force proc address generation for these routines, though, since +# we still fall back on the C implementations + +ForceProcAddressGen gluBuild1DMipmapLevels +ForceProcAddressGen gluBuild1DMipmaps +ForceProcAddressGen gluBuild2DMipmapLevels +ForceProcAddressGen gluBuild2DMipmaps +ForceProcAddressGen gluBuild3DMipmapLevels +ForceProcAddressGen gluBuild3DMipmaps +ForceProcAddressGen gluScaleImage |