--- java3d-1.5.2/j3d-core/src/classes/build.xml 2018-01-10 11:36:06.373594244 +0100 +++ java3d-1.5.2/j3d-core/src/classes/build.xml 2018-01-10 11:36:32.369594343 +0100 @@ -44,7 +44,7 @@ @@ -90,7 +90,8 @@ - @@ -387,7 +389,7 @@ * @see #setDepthTestFunction * @see #setStencilFunction(int,int,int) */ - public static final int ALWAYS = 0; + @Native public static final int ALWAYS = 0; /** * Specifies that pixels are never drawn irrespective of the @@ -399,7 +401,7 @@ * @see #setDepthTestFunction * @see #setStencilFunction(int,int,int) */ - public static final int NEVER = 1; + @Native public static final int NEVER = 1; /** * Specifies that pixels are drawn if the two values being tested are equal. @@ -410,7 +412,7 @@ * @see #setDepthTestFunction * @see #setStencilFunction(int,int,int) */ - public static final int EQUAL = 2; + @Native public static final int EQUAL = 2; /** * Specifies that pixels are drawn if the two values being tested are not equal. @@ -421,7 +423,7 @@ * @see #setDepthTestFunction * @see #setStencilFunction(int,int,int) */ - public static final int NOT_EQUAL = 3; + @Native public static final int NOT_EQUAL = 3; /** * Specifies that pixels are drawn if the source/reference value is less @@ -433,7 +435,7 @@ * @see #setDepthTestFunction * @see #setStencilFunction(int,int,int) */ - public static final int LESS = 4; + @Native public static final int LESS = 4; /** * Specifies that pixels are drawn if the source/reference value is less @@ -445,7 +447,7 @@ * @see #setDepthTestFunction * @see #setStencilFunction(int,int,int) */ - public static final int LESS_OR_EQUAL = 5; + @Native public static final int LESS_OR_EQUAL = 5; /** * Specifies that pixels are drawn if the source/reference value is greater @@ -457,7 +459,7 @@ * @see #setDepthTestFunction * @see #setStencilFunction(int,int,int) */ - public static final int GREATER = 6; + @Native public static final int GREATER = 6; /** * Specifies that pixels are drawn if the source/reference value is greater @@ -469,7 +471,7 @@ * @see #setDepthTestFunction * @see #setStencilFunction(int,int,int) */ - public static final int GREATER_OR_EQUAL = 7; + @Native public static final int GREATER_OR_EQUAL = 7; // @@ -482,7 +484,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_CLEAR = 0x0; + @Native public static final int ROP_CLEAR = 0x0; /** * Raster operation: DST = SRC & DST. @@ -490,7 +492,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_AND = 0x1; + @Native public static final int ROP_AND = 0x1; /** * Raster operation: DST = SRC & ~DST. @@ -498,7 +500,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_AND_REVERSE = 0x2; + @Native public static final int ROP_AND_REVERSE = 0x2; /** * Raster operation: DST = SRC. @@ -506,7 +508,7 @@ * * @since Java 3D 1.2 */ - public static final int ROP_COPY = 0x3; + @Native public static final int ROP_COPY = 0x3; /** * Raster operation: DST = ~SRC & DST. @@ -514,7 +516,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_AND_INVERTED = 0x4; + @Native public static final int ROP_AND_INVERTED = 0x4; /** * Raster operation: DST = DST. @@ -522,7 +524,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_NOOP = 0x5; + @Native public static final int ROP_NOOP = 0x5; /** * Raster operation: DST = SRC ^ DST. @@ -530,7 +532,7 @@ * * @since Java 3D 1.2 */ - public static final int ROP_XOR = 0x6; + @Native public static final int ROP_XOR = 0x6; /** * Raster operation: DST = DST | SRC. @@ -538,7 +540,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_OR = 0x7; + @Native public static final int ROP_OR = 0x7; /** * Raster operation: DST = ~( DST | SRC ). @@ -546,7 +548,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_NOR = 0x8; + @Native public static final int ROP_NOR = 0x8; /** * Raster operation: DST = ~( DST ^ SRC ). @@ -554,7 +556,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_EQUIV = 0x9; + @Native public static final int ROP_EQUIV = 0x9; /** * Raster operation: DST = ~DST. @@ -562,7 +564,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_INVERT = 0xA; + @Native public static final int ROP_INVERT = 0xA; /** * Raster operation: DST = src | ~DST. @@ -570,7 +572,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_OR_REVERSE = 0xB; + @Native public static final int ROP_OR_REVERSE = 0xB; /** * Raster operation: DST = ~SRC. @@ -578,7 +580,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_COPY_INVERTED = 0xC; + @Native public static final int ROP_COPY_INVERTED = 0xC; /** * Raster operation: DST = ~SRC | DST. @@ -586,7 +588,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_OR_INVERTED = 0xD; + @Native public static final int ROP_OR_INVERTED = 0xD; /** * Raster operation: DST = ~(SRC & DST). @@ -594,7 +596,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_NAND = 0xE; + @Native public static final int ROP_NAND = 0xE; /** * Raster operation: DST = 1. @@ -602,7 +604,7 @@ * * @since Java 3D 1.4 */ - public static final int ROP_SET = 0xF; + @Native public static final int ROP_SET = 0xF; // @@ -615,7 +617,7 @@ * * @since Java 3D 1.4 */ - public static final int STENCIL_KEEP = 1; + @Native public static final int STENCIL_KEEP = 1; /** * Stencil operation: DST = 0 @@ -623,7 +625,7 @@ * * @since Java 3D 1.4 */ - public static final int STENCIL_ZERO = 2; + @Native public static final int STENCIL_ZERO = 2; /** * Stencil operation: DST = REF @@ -631,7 +633,7 @@ * * @since Java 3D 1.4 */ - public static final int STENCIL_REPLACE = 3; + @Native public static final int STENCIL_REPLACE = 3; /** * Stencil operation: DST = DST + 1 @@ -639,7 +641,7 @@ * * @since Java 3D 1.4 */ - public static final int STENCIL_INCR = 4; + @Native public static final int STENCIL_INCR = 4; /** * Stencil operation: DST = DST - 1 @@ -647,7 +649,7 @@ * * @since Java 3D 1.4 */ - public static final int STENCIL_DECR = 5; + @Native public static final int STENCIL_DECR = 5; /** * Stencil operation: DST = ~DST @@ -655,7 +657,7 @@ * * @since Java 3D 1.4 */ - public static final int STENCIL_INVERT = 6; + @Native public static final int STENCIL_INVERT = 6; // Array for setting default read capabilities private static final int[] readCapabilities = { --- java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/RenderingAttributesRetained.java 2018-01-10 11:36:06.341594244 +0100 +++ java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/RenderingAttributesRetained.java 2018-01-10 17:40:40.006908144 +0100 @@ -31,6 +31,7 @@ package javax.media.j3d; +import java.lang.annotation.Native; import java.util.ArrayList; /** @@ -97,8 +98,8 @@ // depth buffer comparison function. Used by multi-texturing only //[PEPE] NOTE: they are both unused. Candidates for removal. - static final int LESS = 0; - static final int LEQUAL = 1; + @Native static final int LESS = 0; + @Native static final int LEQUAL = 1; /** * Sets the visibility flag for this RenderingAttributes component object. --- java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/RenderMolecule.java 2018-01-10 11:36:06.365594244 +0100 +++ java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/RenderMolecule.java 2018-01-10 17:43:01.366908678 +0100 @@ -32,6 +32,7 @@ package javax.media.j3d; import javax.vecmath.*; +import java.lang.annotation.Native; import java.util.*; /** @@ -51,8 +52,8 @@ /** * Values for the geometryType field */ - static final int POINT = 0x01; - static final int LINE = 0x02; + @Native static final int POINT = 0x01; + @Native static final int LINE = 0x02; static final int SURFACE = 0x04; static final int RASTER = 0x08; static final int COMPRESSED = 0x10; --- java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/ShaderAttributeObjectRetained.java 2018-01-10 11:36:06.365594244 +0100 +++ java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/ShaderAttributeObjectRetained.java 2018-01-10 19:15:10.501542031 +0100 @@ -31,6 +31,7 @@ package javax.media.j3d; +import java.lang.annotation.Native; import java.util.ArrayList; import javax.vecmath.*; @@ -184,16 +185,16 @@ // the tables of classes, so the values must start at 0 and // increment by 1. Also, the order must be the same as the order // of the entries in each of the two class tables. - static final int TYPE_INTEGER = 0; - static final int TYPE_FLOAT = 1; - static final int TYPE_TUPLE2I = 2; - static final int TYPE_TUPLE2F = 3; - static final int TYPE_TUPLE3I = 4; - static final int TYPE_TUPLE3F = 5; - static final int TYPE_TUPLE4I = 6; - static final int TYPE_TUPLE4F = 7; - static final int TYPE_MATRIX3F = 8; - static final int TYPE_MATRIX4F = 9; + @Native static final int TYPE_INTEGER = 0; + @Native static final int TYPE_FLOAT = 1; + @Native static final int TYPE_TUPLE2I = 2; + @Native static final int TYPE_TUPLE2F = 3; + @Native static final int TYPE_TUPLE3I = 4; + @Native static final int TYPE_TUPLE3F = 5; + @Native static final int TYPE_TUPLE4I = 6; + @Native static final int TYPE_TUPLE4F = 7; + @Native static final int TYPE_MATRIX3F = 8; + @Native static final int TYPE_MATRIX4F = 9; // Double-precision is not supported in the current version. Uncomment the // following if future support is done. --- java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/ShaderError.java 2018-01-10 11:36:06.369594244 +0100 +++ java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/ShaderError.java 2018-01-10 19:13:54.319859877 +0100 @@ -32,6 +32,7 @@ package javax.media.j3d; import java.io.PrintStream; +import java.lang.annotation.Native; /** * ShaderError is a container object that holds the details of @@ -56,48 +57,48 @@ /** * Indicates that no error occurred. */ - public static final int NO_ERROR = 0; + @Native public static final int NO_ERROR = 0; /** * Indicates that an error occurred while compiling a shader. */ - public static final int COMPILE_ERROR = 1; + @Native public static final int COMPILE_ERROR = 1; /** * Indicates that an error occurred while linking a shader. */ - public static final int LINK_ERROR = 2; + @Native public static final int LINK_ERROR = 2; /** * Indicates a error in looking up a vertex attribute * name within a given shader program. */ - public static final int VERTEX_ATTRIBUTE_LOOKUP_ERROR = 3; + @Native public static final int VERTEX_ATTRIBUTE_LOOKUP_ERROR = 3; /** * Indicates a error in looking up the location of a uniform * shader attribute name within a given shader program. */ - public static final int SHADER_ATTRIBUTE_LOOKUP_ERROR = 4; + @Native public static final int SHADER_ATTRIBUTE_LOOKUP_ERROR = 4; /** * Indicates a error caused by a ShaderAttribute whose name does not * appear in the list of shader attribute names in the corresponding * ShaderProgram object. */ - public static final int SHADER_ATTRIBUTE_NAME_NOT_SET_ERROR = 5; + @Native public static final int SHADER_ATTRIBUTE_NAME_NOT_SET_ERROR = 5; /** * Indicates a error in the type of the attribute versus what the shader * program was expecting. */ - public static final int SHADER_ATTRIBUTE_TYPE_ERROR = 6; + @Native public static final int SHADER_ATTRIBUTE_TYPE_ERROR = 6; /** * Indicates that the specified shading language is not supported * on the screen display device. */ - public static final int UNSUPPORTED_LANGUAGE_ERROR = 7; + @Native public static final int UNSUPPORTED_LANGUAGE_ERROR = 7; /** --- java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/Shader.java 2018-01-10 11:36:06.349594244 +0100 +++ java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/Shader.java 2018-01-10 19:12:44.463859613 +0100 @@ -31,6 +31,8 @@ package javax.media.j3d; +import java.lang.annotation.Native; + /** * The Shader object is the abstract base class for programmable * shader code. Currently, only text-based source code shaders are @@ -101,14 +103,14 @@ * shader. It is one of the possible values of the shaderType * parameter. */ - public static final int SHADER_TYPE_VERTEX = 1; + @Native public static final int SHADER_TYPE_VERTEX = 1; /** * This constant indicates that the shader type is a fragment * shader. It is one of the possible values of the shaderType * parameter. */ - public static final int SHADER_TYPE_FRAGMENT = 2; + @Native public static final int SHADER_TYPE_FRAGMENT = 2; /** --- java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/TexCoordGeneration.java 2018-01-10 11:36:06.345594244 +0100 +++ java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/TexCoordGeneration.java 2018-01-10 17:46:17.321869285 +0100 @@ -32,6 +32,7 @@ package javax.media.j3d; import javax.vecmath.Vector4f; +import java.lang.annotation.Native; /** * The TexCoordGeneration object contains all parameters needed for @@ -191,21 +192,21 @@ * * @see #setGenMode */ - public static final int OBJECT_LINEAR = 0; + @Native public static final int OBJECT_LINEAR = 0; /** * Generates texture coordinates as a linear function in * eye coordinates. * * @see #setGenMode */ - public static final int EYE_LINEAR = 1; + @Native public static final int EYE_LINEAR = 1; /** * Generates texture coordinates using a spherical reflection * mapping in eye coordinates. * * @see #setGenMode */ - public static final int SPHERE_MAP = 2; + @Native public static final int SPHERE_MAP = 2; /** * Generates texture coordinates that match vertices' normals in * eye coordinates. @@ -215,7 +216,7 @@ * * @since Java 3D 1.3 */ - public static final int NORMAL_MAP = 3; + @Native public static final int NORMAL_MAP = 3; /** * Generates texture coordinates that match vertices' reflection * vectors in eye coordinates. @@ -225,7 +226,7 @@ * * @since Java 3D 1.3 */ - public static final int REFLECTION_MAP = 4; + @Native public static final int REFLECTION_MAP = 4; // Definitions for format /** @@ -233,13 +234,13 @@ * * @see #setFormat */ - public static final int TEXTURE_COORDINATE_2 = 0; + @Native public static final int TEXTURE_COORDINATE_2 = 0; /** * Generates 3D texture coordinates (S, T, and R). * * @see #setFormat */ - public static final int TEXTURE_COORDINATE_3 = 1; + @Native public static final int TEXTURE_COORDINATE_3 = 1; /** * Generates 4D texture coordinates (S, T, R, and Q). * @@ -247,7 +248,7 @@ * * @since Java 3D 1.3 */ - public static final int TEXTURE_COORDINATE_4 = 2; + @Native public static final int TEXTURE_COORDINATE_4 = 2; // Array for setting default read capabilities private static final int[] readCapabilities = { --- java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/Texture2D.java 2018-01-10 11:36:06.357594244 +0100 +++ java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/Texture2D.java 2018-01-10 19:20:33.058079119 +0100 @@ -32,7 +32,7 @@ package javax.media.j3d; import javax.vecmath.*; - +import java.lang.annotation.Native; /** * Texture2D is a subclass of Texture class. It extends Texture @@ -72,7 +72,7 @@ * @since Java 3D 1.3 * @see #setMagFilter */ - public static final int LINEAR_DETAIL = 6; + @Native public static final int LINEAR_DETAIL = 6; /** * @deprecated As of Java 3D 1.5 the optional detail texture feature is no @@ -84,7 +84,7 @@ * @since Java 3D 1.3 * @see #setMagFilter */ - public static final int LINEAR_DETAIL_RGB = 7; + @Native public static final int LINEAR_DETAIL_RGB = 7; /** * @deprecated As of Java 3D 1.5 the optional detail texture feature is no @@ -96,7 +96,7 @@ * @since Java 3D 1.3 * @see #setMagFilter */ - public static final int LINEAR_DETAIL_ALPHA = 8; + @Native public static final int LINEAR_DETAIL_ALPHA = 8; /** * @deprecated As of Java 3D 1.5 the optional detail texture feature is no --- java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/TextureAttributes.java 2018-01-10 11:36:06.365594244 +0100 +++ java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/TextureAttributes.java 2018-01-10 17:53:55.272670880 +0100 @@ -32,6 +32,7 @@ package javax.media.j3d; import javax.vecmath.Color4f; +import java.lang.annotation.Native; /** * The TextureAttributes object defines attributes that apply to @@ -253,38 +254,38 @@ * Use the fastest available method for perspective correction. * @see #setPerspectiveCorrectionMode */ - public static final int FASTEST = 0; + @Native public static final int FASTEST = 0; /** * Use the nicest (highest quality) available method for texture * mapping perspective correction. * @see #setPerspectiveCorrectionMode */ - public static final int NICEST = 1; + @Native public static final int NICEST = 1; /** * Modulate the object color with the texture color. * @see #setTextureMode */ - public static final int MODULATE = 2; + @Native public static final int MODULATE = 2; /** * Apply the texture color to the object as a decal. * @see #setTextureMode */ - public static final int DECAL = 3; + @Native public static final int DECAL = 3; /** * Blend the texture blend color with the object color. * @see #setTextureMode */ - public static final int BLEND = 4; + @Native public static final int BLEND = 4; /** * Replace the object color with the texture color. * @see #setTextureMode */ - public static final int REPLACE = 5; + @Native public static final int REPLACE = 5; /** * Combine the object color with texture color as specified in @@ -293,7 +294,7 @@ * @see #setTextureMode * @since Java 3D 1.3 */ - public static final int COMBINE = 6; + @Native public static final int COMBINE = 6; /** @@ -303,7 +304,7 @@ * @see #setCombineRgbMode * @see #setCombineAlphaMode */ - public static final int COMBINE_REPLACE = 0; + @Native public static final int COMBINE_REPLACE = 0; /** * Modulates one color with another color. @@ -312,7 +313,7 @@ * @see #setCombineRgbMode * @see #setCombineAlphaMode */ - public static final int COMBINE_MODULATE = 1; + @Native public static final int COMBINE_MODULATE = 1; /** * Add two colors. @@ -321,7 +322,7 @@ * @see #setCombineRgbMode * @see #setCombineAlphaMode */ - public static final int COMBINE_ADD = 2; + @Native public static final int COMBINE_ADD = 2; /** * Add two colors plus an implicit offset. @@ -330,7 +331,7 @@ * @see #setCombineRgbMode * @see #setCombineAlphaMode */ - public static final int COMBINE_ADD_SIGNED = 3; + @Native public static final int COMBINE_ADD_SIGNED = 3; /** * Subtract one color from another color. @@ -339,7 +340,7 @@ * @see #setCombineRgbMode * @see #setCombineAlphaMode */ - public static final int COMBINE_SUBTRACT = 4; + @Native public static final int COMBINE_SUBTRACT = 4; /** * Interpolate two colors with a factor. @@ -348,7 +349,7 @@ * @see #setCombineRgbMode * @see #setCombineAlphaMode */ - public static final int COMBINE_INTERPOLATE = 5; + @Native public static final int COMBINE_INTERPOLATE = 5; /** * Dot product of two colors. @@ -357,7 +358,7 @@ * @see #setCombineRgbMode * @see #setCombineAlphaMode */ - public static final int COMBINE_DOT3 = 6; + @Native public static final int COMBINE_DOT3 = 6; /** @@ -367,7 +368,7 @@ * @see #setCombineRgbSource * @see #setCombineAlphaSource */ - public static final int COMBINE_OBJECT_COLOR = 0; + @Native public static final int COMBINE_OBJECT_COLOR = 0; /** * Texture color of the corresponding texture unit state. @@ -376,7 +377,7 @@ * @see #setCombineRgbSource * @see #setCombineAlphaSource */ - public static final int COMBINE_TEXTURE_COLOR = 1; + @Native public static final int COMBINE_TEXTURE_COLOR = 1; /** * Texture blend color. @@ -385,7 +386,7 @@ * @see #setCombineRgbSource * @see #setCombineAlphaSource */ - public static final int COMBINE_CONSTANT_COLOR = 2; + @Native public static final int COMBINE_CONSTANT_COLOR = 2; /** * Color from the previous texture unit state. @@ -394,7 +395,7 @@ * @see #setCombineRgbSource * @see #setCombineAlphaSource */ - public static final int COMBINE_PREVIOUS_TEXTURE_UNIT_STATE = 3; + @Native public static final int COMBINE_PREVIOUS_TEXTURE_UNIT_STATE = 3; /** * Color function is f = Crgb @@ -402,7 +403,7 @@ * @since Java 3D 1.3 * @see #setCombineRgbFunction */ - public static final int COMBINE_SRC_COLOR = 0; + @Native public static final int COMBINE_SRC_COLOR = 0; /** * Color function is f = (1 - Crgb) @@ -410,7 +411,7 @@ * @since Java 3D 1.3 * @see #setCombineRgbFunction */ - public static final int COMBINE_ONE_MINUS_SRC_COLOR = 1; + @Native public static final int COMBINE_ONE_MINUS_SRC_COLOR = 1; /** * Color function is f = Ca @@ -419,7 +420,7 @@ * @see #setCombineRgbFunction * @see #setCombineAlphaFunction */ - public static final int COMBINE_SRC_ALPHA = 2; + @Native public static final int COMBINE_SRC_ALPHA = 2; /** * Color function is f = (1 - Ca) @@ -428,7 +429,7 @@ * @see #setCombineRgbFunction * @see #setCombineAlphaFunction */ - public static final int COMBINE_ONE_MINUS_SRC_ALPHA = 3; + @Native public static final int COMBINE_ONE_MINUS_SRC_ALPHA = 3; // Array for setting default read capabilities private static final int[] readCapabilities = { --- java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/Texture.java 2018-01-10 11:36:06.353594244 +0100 +++ java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/Texture.java 2018-01-10 17:51:56.852670433 +0100 @@ -32,6 +32,7 @@ package javax.media.j3d; import javax.vecmath.*; +import java.lang.annotation.Native; import java.util.Hashtable; /** @@ -378,7 +379,7 @@ * @see #setMinFilter * @see #setMagFilter */ - public static final int FASTEST = 0; + @Native public static final int FASTEST = 0; /** * Uses the nicest available method for processing geometry. * This value can be used as a parameter to setMinFilter and @@ -386,7 +387,7 @@ * @see #setMinFilter * @see #setMagFilter */ - public static final int NICEST = 1; + @Native public static final int NICEST = 1; /** * Select the nearest texel in level 0 texture map. @@ -394,7 +395,7 @@ * @see #setMinFilter * @see #setMagFilter */ - public static final int BASE_LEVEL_POINT = 2; + @Native public static final int BASE_LEVEL_POINT = 2; /** * Performs bilinear interpolation on the four nearest texels @@ -403,14 +404,14 @@ * @see #setMinFilter * @see #setMagFilter */ - public static final int BASE_LEVEL_LINEAR = 3; + @Native public static final int BASE_LEVEL_LINEAR = 3; /** * Selects the nearest texel in the nearest mipmap. * Maps to NEAREST_MIPMAP_NEAREST. * @see #setMinFilter */ - public static final int MULTI_LEVEL_POINT = 4; + @Native public static final int MULTI_LEVEL_POINT = 4; /** * Performs tri-linear interpolation of texels between four @@ -419,7 +420,7 @@ * fall back to LINEAR_MIPMAP_NEAREST or NEAREST_MIPMAP_LINEAR. * @see #setMinFilter */ - public static final int MULTI_LEVEL_LINEAR = 5; + @Native public static final int MULTI_LEVEL_LINEAR = 5; // NOTE: values 6, 7, and 8 are reserved for the LINEAR_DETAIL* // filter modes in Texture2D @@ -432,7 +433,7 @@ * @since Java 3D 1.3 * @see #setMagFilter */ - public static final int LINEAR_SHARPEN = 9; + @Native public static final int LINEAR_SHARPEN = 9; /** * Performs linear sharpen filter for the rgb @@ -442,7 +443,7 @@ * @since Java 3D 1.3 * @see #setMagFilter */ - public static final int LINEAR_SHARPEN_RGB = 10; + @Native public static final int LINEAR_SHARPEN_RGB = 10; /** * Performs linear sharpen filter for the alpha @@ -452,7 +453,7 @@ * @since Java 3D 1.3 * @see #setMagFilter */ - public static final int LINEAR_SHARPEN_ALPHA = 11; + @Native public static final int LINEAR_SHARPEN_ALPHA = 11; /** * Applies an application-supplied weight function @@ -462,7 +463,7 @@ * @see #setMinFilter * @see #setMagFilter */ - public static final int FILTER4 = 12; + @Native public static final int FILTER4 = 12; // Texture boundary mode parameter values /** @@ -471,13 +472,13 @@ * width is 0 will be used for U,V values that fall * outside this range. */ - public static final int CLAMP = 2; + @Native public static final int CLAMP = 2; /** * Repeats the texture by wrapping texture coordinates that are outside * the range [0,1]. Only the fractional portion of the texture * coordinates is used; the integer portion is discarded. */ - public static final int WRAP = 3; + @Native public static final int WRAP = 3; /** * Clamps texture coordinates such that filtering * will not sample a texture boundary texel. Texels at the edge of the @@ -485,7 +486,7 @@ * * @since Java 3D 1.3 */ - public static final int CLAMP_TO_EDGE = 4; + @Native public static final int CLAMP_TO_EDGE = 4; /** * Clamps texture coordinates such that filtering * will sample only texture boundary texels. If the texture does not @@ -494,14 +495,14 @@ * * @since Java 3D 1.3 */ - public static final int CLAMP_TO_BOUNDARY = 5; + @Native public static final int CLAMP_TO_BOUNDARY = 5; /** * Indicates that Texture object only has one level. If multiple * levels are needed, they will be implicitly computed. */ - public static final int BASE_LEVEL = 1; + @Native public static final int BASE_LEVEL = 1; /** * Indicates that this Texture object has multiple images, one for @@ -509,40 +510,40 @@ * log2(max(width,height))+1 * separate images. */ - public static final int MULTI_LEVEL_MIPMAP = 2; + @Native public static final int MULTI_LEVEL_MIPMAP = 2; // Texture format parameter values /** * Specifies Texture contains only Intensity values. */ - public static final int INTENSITY = 1; + @Native public static final int INTENSITY = 1; /** * Specifies Texture contains only luminance values. */ - public static final int LUMINANCE = 2; + @Native public static final int LUMINANCE = 2; /** * Specifies Texture contains only Alpha values. */ - public static final int ALPHA = 3; + @Native public static final int ALPHA = 3; /** * Specifies Texture contains Luminance and Alpha values. */ - public static final int LUMINANCE_ALPHA = 4; + @Native public static final int LUMINANCE_ALPHA = 4; /** * Specifies Texture contains Red, Green and Blue color values. */ - public static final int RGB = 5; + @Native public static final int RGB = 5; /** * Specifies Texture contains Red, Green, Blue color values * and Alpha value. */ - public static final int RGBA = 6; + @Native public static final int RGBA = 6; /** * No anisotropic filter. @@ -550,7 +551,7 @@ * @since Java 3D 1.3 * @see #setAnisotropicFilterMode */ - public static final int ANISOTROPIC_NONE = 0; + @Native public static final int ANISOTROPIC_NONE = 0; /** * Uses the degree of anisotropy in both the minification and @@ -559,7 +560,7 @@ * @since Java 3D 1.3 * @see #setAnisotropicFilterMode */ - public static final int ANISOTROPIC_SINGLE_VALUE = 1; + @Native public static final int ANISOTROPIC_SINGLE_VALUE = 1; // Array for setting default read capabilities private static final int[] readCapabilities = { --- java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/TransparencyAttributes.java 2018-01-10 11:36:06.369594244 +0100 +++ java3d-1.5.2/j3d-core/src/classes/share/javax/media/j3d/TransparencyAttributes.java 2018-01-10 19:16:28.949542327 +0100 @@ -31,6 +31,8 @@ package javax.media.j3d; +import java.lang.annotation.Native; + /** * The TransparencyAttributes object defines all attributes affecting * transparency of the object. The transparency attributes are:

@@ -146,13 +148,13 @@ * Use the fastest available method for transparency. * @see #setTransparencyMode */ - public static final int FASTEST = 0; + @Native public static final int FASTEST = 0; /** * Use the nicest available method for transparency. * @see #setTransparencyMode */ - public static final int NICEST = 1; + @Native public static final int NICEST = 1; /** * Use alpha blended transparency. The blend equation is @@ -180,7 +182,7 @@ * @see #setSrcBlendFunction * @see #setDstBlendFunction */ - public static final int BLENDED = 2; + @Native public static final int BLENDED = 2; /** * Use screen-door transparency. This is done using an on/off stipple @@ -189,13 +191,13 @@ * parameter. * @see #setTransparencyMode */ - public static final int SCREEN_DOOR = 3; + @Native public static final int SCREEN_DOOR = 3; /** * No transparency, opaque object. * @see #setTransparencyMode */ - public static final int NONE = 4; + @Native public static final int NONE = 4; /** * Blend function: f = 0. @@ -204,7 +206,7 @@ * * @since Java 3D 1.2 */ - public static final int BLEND_ZERO = 0; + @Native public static final int BLEND_ZERO = 0; /** * Blend function: f = 1. @@ -213,7 +215,7 @@ * * @since Java 3D 1.2 */ - public static final int BLEND_ONE = 1; + @Native public static final int BLEND_ONE = 1; /** * Blend function: @@ -223,7 +225,7 @@ * * @since Java 3D 1.2 */ - public static final int BLEND_SRC_ALPHA = 2; + @Native public static final int BLEND_SRC_ALPHA = 2; /** * Blend function: @@ -233,7 +235,7 @@ * * @since Java 3D 1.2 */ - public static final int BLEND_ONE_MINUS_SRC_ALPHA = 3; + @Native public static final int BLEND_ONE_MINUS_SRC_ALPHA = 3; /** * Blend function: @@ -244,7 +246,7 @@ * * @since Java 3D 1.4 */ - public static final int BLEND_DST_COLOR = 4; + @Native public static final int BLEND_DST_COLOR = 4; /** * Blend function: @@ -255,7 +257,7 @@ * * @since Java 3D 1.4 */ - public static final int BLEND_ONE_MINUS_DST_COLOR = 5; + @Native public static final int BLEND_ONE_MINUS_DST_COLOR = 5; /** * Blend function: @@ -266,7 +268,7 @@ * * @since Java 3D 1.4 */ - public static final int BLEND_SRC_COLOR = 6; + @Native public static final int BLEND_SRC_COLOR = 6; /** * Blend function: @@ -277,11 +279,11 @@ * * @since Java 3D 1.4 */ - public static final int BLEND_ONE_MINUS_SRC_COLOR = 7; + @Native public static final int BLEND_ONE_MINUS_SRC_COLOR = 7; - static final int BLEND_CONSTANT_COLOR = 8; + @Native static final int BLEND_CONSTANT_COLOR = 8; - static final int MAX_BLEND_FUNC_TABLE_SIZE = 9; + @Native static final int MAX_BLEND_FUNC_TABLE_SIZE = 9; // Array for setting default read capabilities private static final int[] readCapabilities = { --- java3d-1.5.2/j3d-core/src/native/build.xml 2018-01-10 11:36:06.373594244 +0100 +++ java3d-1.5.2/j3d-core/src/native/build.xml 2018-01-10 19:24:53.194080101 +0100 @@ -67,7 +67,7 @@ + location="${build}/${platform}/native/javah/j3dcore"/> @@ -133,292 +133,14 @@ + location="${build}/${platform}/native/javah/j3dcore"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - --- java3d-1.5.2/j3d-core/src/native/ogl/gldefs.h 2018-01-10 11:36:06.373594244 +0100 +++ java3d-1.5.2/j3d-core/src/native/ogl/gldefs.h 2018-01-10 19:22:26.594079547 +0100 @@ -125,59 +125,29 @@ #endif /* WIN32 */ /* include those .h files generated by javah */ -#include "javax_media_j3d_Background.h" #include "javax_media_j3d_Canvas3D.h" #include "javax_media_j3d_ColoringAttributes.h" -#include "javax_media_j3d_ColoringAttributesRetained.h" #include "javax_media_j3d_DepthComponentRetained.h" -#include "javax_media_j3d_DirectionalLightRetained.h" -#include "javax_media_j3d_DisplayListRenderMethod.h" #include "javax_media_j3d_DrawingSurfaceObjectAWT.h" -#include "javax_media_j3d_ExponentialFogRetained.h" #include "javax_media_j3d_GeometryRetained.h" #include "javax_media_j3d_GeometryArray.h" #include "javax_media_j3d_GeometryArrayRetained.h" -#include "javax_media_j3d_GraphicsContext3D.h" #include "javax_media_j3d_ImageComponent.h" #include "javax_media_j3d_ImageComponentRetained.h" -#include "javax_media_j3d_ImageComponent2DRetained.h" -#include "javax_media_j3d_IndexedGeometryArrayRetained.h" #include "javax_media_j3d_LineAttributes.h" -#include "javax_media_j3d_LineAttributesRetained.h" -#include "javax_media_j3d_LinearFogRetained.h" -#include "javax_media_j3d_MasterControl.h" #include "javax_media_j3d_Material.h" -#include "javax_media_j3d_MaterialRetained.h" -#include "javax_media_j3d_ModelClipRetained.h" #include "javax_media_j3d_NativeConfigTemplate3D.h" #include "javax_media_j3d_NativePipeline.h" -#include "javax_media_j3d_NodeRetained.h" -#include "javax_media_j3d_PointAttributesRetained.h" -#include "javax_media_j3d_PointLightRetained.h" #include "javax_media_j3d_PolygonAttributes.h" -#include "javax_media_j3d_PolygonAttributesRetained.h" #include "javax_media_j3d_Raster.h" -#include "javax_media_j3d_RasterRetained.h" -#include "javax_media_j3d_Renderer.h" #include "javax_media_j3d_RenderingAttributes.h" #include "javax_media_j3d_RenderingAttributesRetained.h" #include "javax_media_j3d_RenderMolecule.h" -#include "javax_media_j3d_SpotLightRetained.h" #include "javax_media_j3d_TexCoordGeneration.h" -#include "javax_media_j3d_TexCoordGenerationRetained.h" #include "javax_media_j3d_Texture.h" #include "javax_media_j3d_Texture2D.h" -#include "javax_media_j3d_Texture2DRetained.h" -#include "javax_media_j3d_Texture3DRetained.h" #include "javax_media_j3d_TextureAttributes.h" -#include "javax_media_j3d_TextureAttributesRetained.h" -#include "javax_media_j3d_TextureCubeMapRetained.h" -#include "javax_media_j3d_TextureRetained.h" -#include "javax_media_j3d_TextureUnitStateRetained.h" #include "javax_media_j3d_TransparencyAttributes.h" -#include "javax_media_j3d_TransparencyAttributesRetained.h" -#include "javax_media_j3d_GLSLShaderProgramRetained.h" -#include "javax_media_j3d_CgShaderProgramRetained.h" #include "javax_media_j3d_Shader.h" #include "javax_media_j3d_ShaderAttributeObjectRetained.h" #include "javax_media_j3d_ShaderError.h"