Revision: 3285
http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3285&view=rev
Author: spasi
Date: 2010-03-13 00:45:44 +0000 (Sat, 13 Mar 2010)
Log Message:
-----------
String support for ProgramStringARB.
Modified Paths:
--------------
trunk/LWJGL/src/templates/org/lwjgl/opengl/ARB_program.java
Modified: trunk/LWJGL/src/templates/org/lwjgl/opengl/ARB_program.java
===================================================================
--- trunk/LWJGL/src/templates/org/lwjgl/opengl/ARB_program.java 2010-03-12 23:35:55 UTC (rev 3284)
+++ trunk/LWJGL/src/templates/org/lwjgl/opengl/ARB_program.java 2010-03-13 00:45:44 UTC (rev 3285)
@@ -33,19 +33,18 @@
import org.lwjgl.util.generator.*;
-import java.nio.*;
+import java.nio.Buffer;
+import java.nio.DoubleBuffer;
+import java.nio.FloatBuffer;
+import java.nio.IntBuffer;
@Extension(postfix = "ARB", isFinal = false)
public interface ARB_program {
- /**
- * Accepted by the <format> parameter of ProgramStringARB:
- */
+ /** Accepted by the <format> parameter of ProgramStringARB: */
int GL_PROGRAM_FORMAT_ASCII_ARB = 0x8875;
- /**
- * Accepted by the <pname> parameter of GetProgramivARB:
- */
+ /** Accepted by the <pname> parameter of GetProgramivARB: */
int GL_PROGRAM_LENGTH_ARB = 0x8627;
int GL_PROGRAM_FORMAT_ARB = 0x8876;
int GL_PROGRAM_BINDING_ARB = 0x8677;
@@ -69,9 +68,7 @@
int GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5;
int GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88B6;
- /**
- * Accepted by the <pname> parameter of GetProgramStringARB:
- */
+ /** Accepted by the <pname> parameter of GetProgramStringARB: */
int GL_PROGRAM_STRING_ARB = 0x8628;
/**
@@ -85,14 +82,10 @@
int GL_MAX_PROGRAM_MATRICES_ARB = 0x862F;
int GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862E;
- /**
- * Accepted by the <name> parameter of GetString:
- */
+ /** Accepted by the <name> parameter of GetString: */
int GL_PROGRAM_ERROR_STRING_ARB = 0x8874;
- /**
- * Accepted by the <mode> parameter of MatrixMode:
- */
+ /** Accepted by the <mode> parameter of MatrixMode: */
int GL_MATRIX0_ARB = 0x88C0;
int GL_MATRIX1_ARB = 0x88C1;
int GL_MATRIX2_ARB = 0x88C2;
@@ -128,6 +121,9 @@
void glProgramStringARB(@GLenum int target, @GLenum int format, @AutoSize("string") @GLsizei int length, @Const @GLbyte Buffer string);
+ @Alternate("glProgramStringARB")
+ void glProgramStringARB(@GLenum int target, @GLenum int format, @Constant("string.length()") @GLsizei int length, CharSequence string);
+
void glBindProgramARB(@GLenum int target, @GLuint int program);
void glDeleteProgramsARB(@AutoSize("programs") @GLsizei int n, @Const @GLuint IntBuffer programs);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|