Skip to content

Commit

Permalink
[OpenGL] Update extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
squid233 committed Nov 18, 2023
1 parent 201ea6a commit 94efe40
Show file tree
Hide file tree
Showing 30 changed files with 6,461 additions and 2,637 deletions.

Large diffs are not rendered by default.

1,641 changes: 1,641 additions & 0 deletions modules/overrungl.opengl/src/generator/kotlin/overrungl/opengl/GLARB.kt

Large diffs are not rendered by default.

1,631 changes: 1,631 additions & 0 deletions modules/overrungl.opengl/src/generator/kotlin/overrungl/opengl/GLNV.kt

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/*
* MIT License
*
* Copyright (c) 2022-present Overrun Organization
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*/

// This file is auto-generated. DO NOT EDIT!
package overrungl.opengl.ext.nv;

import overrungl.*;
import overrungl.opengl.*;
import java.lang.foreign.*;
import static java.lang.foreign.FunctionDescriptor.*;
import static java.lang.foreign.ValueLayout.*;
import static overrungl.opengl.GLLoader.*;

/**
* {@code GL_NV_fence}
*/
public final class GLNVFence {
public static final int GL_ALL_COMPLETED_NV = 0x84F2;
public static final int GL_FENCE_STATUS_NV = 0x84F3;
public static final int GL_FENCE_CONDITION_NV = 0x84F4;
public static void load(GLExtCaps ext, GLLoadFunc load) {
if (!ext.GL_NV_fence) return;
ext.glDeleteFencesNV = load.invoke("glDeleteFencesNV", ofVoid(JAVA_INT, ADDRESS));
ext.glGenFencesNV = load.invoke("glGenFencesNV", ofVoid(JAVA_INT, ADDRESS));
ext.glIsFenceNV = load.invoke("glIsFenceNV", of(JAVA_BYTE, JAVA_INT));
ext.glTestFenceNV = load.invoke("glTestFenceNV", of(JAVA_BYTE, JAVA_INT));
ext.glGetFenceivNV = load.invoke("glGetFenceivNV", ofVoid(JAVA_INT, JAVA_INT, ADDRESS));
ext.glFinishFenceNV = load.invoke("glFinishFenceNV", ofVoid(JAVA_INT));
ext.glSetFenceNV = load.invoke("glSetFenceNV", ofVoid(JAVA_INT, JAVA_INT));
}

public static void glDeleteFencesNV(int n, @NativeType("const GLuint *") MemorySegment fences) {
final var ext = getExtCapabilities();
try {
check(ext.glDeleteFencesNV).invokeExact(n, fences);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

public static void glGenFencesNV(int n, @NativeType("GLuint *") MemorySegment fences) {
final var ext = getExtCapabilities();
try {
check(ext.glGenFencesNV).invokeExact(n, fences);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

public static boolean glIsFenceNV(int fence) {
final var ext = getExtCapabilities();
try {
return (boolean)
check(ext.glIsFenceNV).invokeExact(fence);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

public static boolean glTestFenceNV(int fence) {
final var ext = getExtCapabilities();
try {
return (boolean)
check(ext.glTestFenceNV).invokeExact(fence);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

public static void glGetFenceivNV(int fence, int pname, @NativeType("GLint *") MemorySegment params) {
final var ext = getExtCapabilities();
try {
check(ext.glGetFenceivNV).invokeExact(fence, pname, params);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

public static void glFinishFenceNV(int fence) {
final var ext = getExtCapabilities();
try {
check(ext.glFinishFenceNV).invokeExact(fence);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

public static void glSetFenceNV(int fence, int condition) {
final var ext = getExtCapabilities();
try {
check(ext.glSetFenceNV).invokeExact(fence, condition);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* MIT License
*
* Copyright (c) 2022-present Overrun Organization
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*/

// This file is auto-generated. DO NOT EDIT!
package overrungl.opengl.ext.nv;

import overrungl.*;
import overrungl.opengl.*;
import java.lang.foreign.*;
import static java.lang.foreign.FunctionDescriptor.*;
import static java.lang.foreign.ValueLayout.*;
import static overrungl.opengl.GLLoader.*;

/**
* {@code GL_NV_fill_rectangle}
*/
public final class GLNVFillRectangle {
public static final int GL_FILL_RECTANGLE_NV = 0x933C;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* MIT License
*
* Copyright (c) 2022-present Overrun Organization
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*/

// This file is auto-generated. DO NOT EDIT!
package overrungl.opengl.ext.nv;

import overrungl.*;
import overrungl.opengl.*;
import java.lang.foreign.*;
import static java.lang.foreign.FunctionDescriptor.*;
import static java.lang.foreign.ValueLayout.*;
import static overrungl.opengl.GLLoader.*;

/**
* {@code GL_NV_float_buffer}
*/
public final class GLNVFloatBuffer {
public static final int GL_FLOAT_R_NV = 0x8880;
public static final int GL_FLOAT_RG_NV = 0x8881;
public static final int GL_FLOAT_RGB_NV = 0x8882;
public static final int GL_FLOAT_RGBA_NV = 0x8883;
public static final int GL_FLOAT_R16_NV = 0x8884;
public static final int GL_FLOAT_R32_NV = 0x8885;
public static final int GL_FLOAT_RG16_NV = 0x8886;
public static final int GL_FLOAT_RG32_NV = 0x8887;
public static final int GL_FLOAT_RGB16_NV = 0x8888;
public static final int GL_FLOAT_RGB32_NV = 0x8889;
public static final int GL_FLOAT_RGBA16_NV = 0x888A;
public static final int GL_FLOAT_RGBA32_NV = 0x888B;
public static final int GL_TEXTURE_FLOAT_COMPONENTS_NV = 0x888C;
public static final int GL_FLOAT_CLEAR_COLOR_VALUE_NV = 0x888D;
public static final int GL_FLOAT_RGBA_MODE_NV = 0x888E;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* MIT License
*
* Copyright (c) 2022-present Overrun Organization
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*/

// This file is auto-generated. DO NOT EDIT!
package overrungl.opengl.ext.nv;

import overrungl.*;
import overrungl.opengl.*;
import java.lang.foreign.*;
import static java.lang.foreign.FunctionDescriptor.*;
import static java.lang.foreign.ValueLayout.*;
import static overrungl.opengl.GLLoader.*;

/**
* {@code GL_NV_fog_distance}
*/
public final class GLNVFogDistance {
public static final int GL_FOG_DISTANCE_MODE_NV = 0x855A;
public static final int GL_EYE_RADIAL_NV = 0x855B;
public static final int GL_EYE_PLANE_ABSOLUTE_NV = 0x855C;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* MIT License
*
* Copyright (c) 2022-present Overrun Organization
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*/

// This file is auto-generated. DO NOT EDIT!
package overrungl.opengl.ext.nv;

import overrungl.*;
import overrungl.opengl.*;
import java.lang.foreign.*;
import static java.lang.foreign.FunctionDescriptor.*;
import static java.lang.foreign.ValueLayout.*;
import static overrungl.opengl.GLLoader.*;

/**
* {@code GL_NV_fragment_coverage_to_color}
*/
public final class GLNVFragmentCoverageToColor {
public static final int GL_FRAGMENT_COVERAGE_TO_COLOR_NV = 0x92DD;
public static final int GL_FRAGMENT_COVERAGE_COLOR_NV = 0x92DE;
public static void load(GLExtCaps ext, GLLoadFunc load) {
if (!ext.GL_NV_fragment_coverage_to_color) return;
ext.glFragmentCoverageColorNV = load.invoke("glFragmentCoverageColorNV", ofVoid(JAVA_INT));
}

public static void glFragmentCoverageColorNV(int color) {
final var ext = getExtCapabilities();
try {
check(ext.glFragmentCoverageColorNV).invokeExact(color);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
* MIT License
*
* Copyright (c) 2022-present Overrun Organization
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*/

// This file is auto-generated. DO NOT EDIT!
package overrungl.opengl.ext.nv;

import overrungl.*;
import overrungl.opengl.*;
import java.lang.foreign.*;
import static java.lang.foreign.FunctionDescriptor.*;
import static java.lang.foreign.ValueLayout.*;
import static overrungl.opengl.GLLoader.*;

/**
* {@code GL_NV_fragment_program}
*/
public final class GLNVFragmentProgram {
public static final int GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868;
public static final int GL_FRAGMENT_PROGRAM_NV = 0x8870;
public static final int GL_MAX_TEXTURE_COORDS_NV = 0x8871;
public static final int GL_MAX_TEXTURE_IMAGE_UNITS_NV = 0x8872;
public static final int GL_FRAGMENT_PROGRAM_BINDING_NV = 0x8873;
public static final int GL_PROGRAM_ERROR_STRING_NV = 0x8874;
public static void load(GLExtCaps ext, GLLoadFunc load) {
if (!ext.GL_NV_fragment_program) return;
ext.glProgramNamedParameter4fNV = load.invoke("glProgramNamedParameter4fNV", ofVoid(JAVA_INT, JAVA_INT, ADDRESS, JAVA_FLOAT, JAVA_FLOAT, JAVA_FLOAT, JAVA_FLOAT));
ext.glProgramNamedParameter4fvNV = load.invoke("glProgramNamedParameter4fvNV", ofVoid(JAVA_INT, JAVA_INT, ADDRESS, ADDRESS));
ext.glProgramNamedParameter4dNV = load.invoke("glProgramNamedParameter4dNV", ofVoid(JAVA_INT, JAVA_INT, ADDRESS, JAVA_DOUBLE, JAVA_DOUBLE, JAVA_DOUBLE, JAVA_DOUBLE));
ext.glProgramNamedParameter4dvNV = load.invoke("glProgramNamedParameter4dvNV", ofVoid(JAVA_INT, JAVA_INT, ADDRESS, ADDRESS));
ext.glGetProgramNamedParameterfvNV = load.invoke("glGetProgramNamedParameterfvNV", ofVoid(JAVA_INT, JAVA_INT, ADDRESS, ADDRESS));
ext.glGetProgramNamedParameterdvNV = load.invoke("glGetProgramNamedParameterdvNV", ofVoid(JAVA_INT, JAVA_INT, ADDRESS, ADDRESS));
}

public static void glProgramNamedParameter4fNV(int id, int len, @NativeType("const GLubyte *") MemorySegment name, float x, float y, float z, float w) {
final var ext = getExtCapabilities();
try {
check(ext.glProgramNamedParameter4fNV).invokeExact(id, len, name, x, y, z, w);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

public static void glProgramNamedParameter4fvNV(int id, int len, @NativeType("const GLubyte *") MemorySegment name, @NativeType("const GLfloat *") MemorySegment v) {
final var ext = getExtCapabilities();
try {
check(ext.glProgramNamedParameter4fvNV).invokeExact(id, len, name, v);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

public static void glProgramNamedParameter4dNV(int id, int len, @NativeType("const GLubyte *") MemorySegment name, double x, double y, double z, double w) {
final var ext = getExtCapabilities();
try {
check(ext.glProgramNamedParameter4dNV).invokeExact(id, len, name, x, y, z, w);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

public static void glProgramNamedParameter4dvNV(int id, int len, @NativeType("const GLubyte *") MemorySegment name, @NativeType("const GLdouble *") MemorySegment v) {
final var ext = getExtCapabilities();
try {
check(ext.glProgramNamedParameter4dvNV).invokeExact(id, len, name, v);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

public static void glGetProgramNamedParameterfvNV(int id, int len, @NativeType("const GLubyte *") MemorySegment name, @NativeType("GLfloat *") MemorySegment params) {
final var ext = getExtCapabilities();
try {
check(ext.glGetProgramNamedParameterfvNV).invokeExact(id, len, name, params);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

public static void glGetProgramNamedParameterdvNV(int id, int len, @NativeType("const GLubyte *") MemorySegment name, @NativeType("GLdouble *") MemorySegment params) {
final var ext = getExtCapabilities();
try {
check(ext.glGetProgramNamedParameterdvNV).invokeExact(id, len, name, params);
} catch (Throwable e) { throw new AssertionError("should not reach here", e); }
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* MIT License
*
* Copyright (c) 2022-present Overrun Organization
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*/

// This file is auto-generated. DO NOT EDIT!
package overrungl.opengl.ext.nv;

import overrungl.*;
import overrungl.opengl.*;
import java.lang.foreign.*;
import static java.lang.foreign.FunctionDescriptor.*;
import static java.lang.foreign.ValueLayout.*;
import static overrungl.opengl.GLLoader.*;

/**
* {@code GL_NV_fragment_program2}
*/
public final class GLNVFragmentProgram2 {
public static final int GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4;
public static final int GL_MAX_PROGRAM_CALL_DEPTH_NV = 0x88F5;
public static final int GL_MAX_PROGRAM_IF_DEPTH_NV = 0x88F6;
public static final int GL_MAX_PROGRAM_LOOP_DEPTH_NV = 0x88F7;
public static final int GL_MAX_PROGRAM_LOOP_COUNT_NV = 0x88F8;
}
Loading

0 comments on commit 94efe40

Please sign in to comment.