Skip to content

Commit

Permalink
[OpenGL] Generate files
Browse files Browse the repository at this point in the history
  • Loading branch information
squid233 committed Sep 23, 2023
1 parent 7e485ab commit f73af88
Show file tree
Hide file tree
Showing 134 changed files with 5,747 additions and 3,837 deletions.

Large diffs are not rendered by default.

807 changes: 72 additions & 735 deletions modules/overrungl.opengl/src/main/java/overrungl/opengl/GLExtCaps.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* MIT License
*
* Copyright (c) 2022-2023 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;

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_3DFX_multisample}
*/
public final class GL3DFXMultisample {
public static final int GL_MULTISAMPLE_3DFX = 0x86B2;
public static final int GL_SAMPLE_BUFFERS_3DFX = 0x86B3;
public static final int GL_SAMPLES_3DFX = 0x86B4;
public static final int GL_MULTISAMPLE_BIT_3DFX = 0x20000000;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,30 @@
* copies or substantial portions of the Software.
*/

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

import overrungl.opengl.GLExtCaps;
import overrungl.opengl.GLLoadFunc;
import overrungl.opengl.GLLoader;
import overrungl.FunctionDescriptors;
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_3DFX_tbuffer}
*
* @author squid233
* @since 0.1.0
*/
* {@code GL_3DFX_tbuffer}
*/
public final class GL3DFXTbuffer {
public static void load(GLExtCaps ext, GLLoadFunc load) {
if (!ext.GL_3DFX_tbuffer) return;
ext.glTbufferMask3DFX = load.invoke("glTbufferMask3DFX", FunctionDescriptors.IV);
ext.glTbufferMask3DFX = load.invoke("glTbufferMask3DFX", ofVoid(JAVA_INT));
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* MIT License
*
* Copyright (c) 2022-2023 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;

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_3DFX_texture_compression_FXT1}
*/
public final class GL3DFXTextureCompressionFXT1 {
public static final int GL_COMPRESSED_RGB_FXT1_3DFX = 0x86B0;
public static final int GL_COMPRESSED_RGBA_FXT1_3DFX = 0x86B1;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,30 @@
* copies or substantial portions of the Software.
*/

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

import overrungl.opengl.GLExtCaps;
import overrungl.opengl.GLLoadFunc;
import overrungl.opengl.GLLoader;
import overrungl.FunctionDescriptors;
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_GREMEDY_frame_terminator}
*
* @author squid233
* @since 0.1.0
*/
* {@code GL_GREMEDY_frame_terminator}
*/
public final class GLGREMEDYFrameTerminator {
public static void load(GLExtCaps ext, GLLoadFunc load) {
if (!ext.GL_GREMEDY_frame_terminator) return;
ext.glFrameTerminatorGREMEDY = load.invoke("glFrameTerminatorGREMEDY", FunctionDescriptors.V);
ext.glFrameTerminatorGREMEDY = load.invoke("glFrameTerminatorGREMEDY", ofVoid());
}

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,30 @@
* copies or substantial portions of the Software.
*/

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

import overrungl.opengl.GLExtCaps;
import overrungl.opengl.GLLoadFunc;
import overrungl.opengl.GLLoader;
import overrungl.FunctionDescriptors;

import java.lang.foreign.MemorySegment;
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_GREMEDY_string_marker}
*
* @author squid233
* @since 0.1.0
*/
* {@code GL_GREMEDY_string_marker}
*/
public final class GLGREMEDYStringMarker {
public static void load(GLExtCaps ext, GLLoadFunc load) {
if (!ext.GL_GREMEDY_string_marker) return;
ext.glStringMarkerGREMEDY = load.invoke("glStringMarkerGREMEDY", FunctionDescriptors.IPV);
ext.glStringMarkerGREMEDY = load.invoke("glStringMarkerGREMEDY", ofVoid(JAVA_INT, ADDRESS));
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* MIT License
*
* Copyright (c) 2022-2023 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;

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_HP_convolution_border_modes}
*/
public final class GLHPConvolutionBorderModes {
public static final int GL_IGNORE_BORDER_HP = 0x8150;
public static final int GL_CONSTANT_BORDER_HP = 0x8151;
public static final int GL_REPLICATE_BORDER_HP = 0x8153;
public static final int GL_CONVOLUTION_BORDER_COLOR_HP = 0x8154;
}
Loading

0 comments on commit f73af88

Please sign in to comment.