From 197d6c43d20c4324e0b83d75e74a8f3c131ce65b Mon Sep 17 00:00:00 2001 From: Ioannis Tsakpinis Date: Sat, 13 Mar 2010 00:45:44 +0000 Subject: [PATCH] String support for ProgramStringARB. --- .../org/lwjgl/opengl/ARB_program.java | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/templates/org/lwjgl/opengl/ARB_program.java b/src/templates/org/lwjgl/opengl/ARB_program.java index f3274782..aebe8f1b 100644 --- a/src/templates/org/lwjgl/opengl/ARB_program.java +++ b/src/templates/org/lwjgl/opengl/ARB_program.java @@ -33,19 +33,18 @@ package org.lwjgl.opengl; 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 @@ public interface ARB_program { 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 @@ public interface ARB_program { 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 @@ public interface ARB_program { 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);