Skip to content

Commit

Permalink
[OpenGL] Rewrite OpenGL
Browse files Browse the repository at this point in the history
  • Loading branch information
squid233 committed Jan 30, 2024
1 parent b106663 commit 3d87612
Show file tree
Hide file tree
Showing 14 changed files with 132 additions and 680 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* MIT License
*
* Copyright (c) 2022-2023 Overrun Organization
* Copyright (c) 2022-2024 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
Expand Down Expand Up @@ -69,12 +69,6 @@ public final class Configurations {
* The default value is {@code true}.
*/
public static final Entry<Boolean> CHECKS = new Entry<>(() -> true);
/**
* Forcing to check all method handles for OpenGL.
* <p>
* The default value is {@code false}.
*/
public static final Entry<Boolean> GL_FORCE_CHECK_ALL = new Entry<>(() -> false);
/**
* The symbol lookup of GLFW.
* The returned value must not be null.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* MIT License
*
* Copyright (c) 2023 Overrun Organization
* Copyright (c) 2023-2024 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
Expand Down Expand Up @@ -62,7 +62,7 @@ fun amd() {
("glDebugMessageCallbackAMD"(void, address("callback", "GLDEBUGPROCAMD"), address("userParam", "void *"))) {
"glDebugMessageCallbackAMD"(
void,
"glDebugMessageCallbackAMD(callback.address(arena), userParam);",
"glDebugMessageCallbackAMD(callback.stub(arena), userParam);",
arena("arena"),
Type("GLDebugProcAMD", null)("callback"),
address("userParam", "void *")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* MIT License
*
* Copyright (c) 2023 Overrun Organization
* Copyright (c) 2023-2024 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
Expand Down Expand Up @@ -153,7 +153,7 @@ fun arb() {
)) {
"glDebugMessageCallbackARB"(
void,
"glDebugMessageCallbackARB(callback.address(arena), userParam);",
"glDebugMessageCallbackARB(callback.stub(arena), userParam);",
arena("arena"),
Type("GLDebugProc", null)("callback"),
address("userParam", "const void *")
Expand Down
Loading

0 comments on commit 3d87612

Please sign in to comment.