-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- offered a static GlfwWindow constructor counterpart for the constructors using inline classes (for Java) - added a test - fixed previous tests
- Loading branch information
Showing
5 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import glm_.vec2.Vec2i; | ||
import org.lwjgl.system.MemoryUtil; | ||
import uno.glfw.GlfwWindow; | ||
import uno.glfw.glfw; | ||
|
||
|
||
public class Test { | ||
|
||
|
||
@org.junit.jupiter.api.Test | ||
void javaGlfwWindow() { | ||
glfw glfw = uno.glfw.glfw.INSTANCE; | ||
glfw.init(); | ||
GlfwWindow window = GlfwWindow.create(1280, 720, "Dear ImGui GLFW+OpenGL3 OpenGL example", MemoryUtil.NULL, null, new Vec2i(30)); | ||
assert(window.getHandle() != MemoryUtil.NULL); | ||
} | ||
// GlfwWindow w1 = GlfwWindow.Companion.(1280, 720, "Dear ImGui GLFW+OpenGL3 OpenGL example", MemoryUtil.NULL, null, new Vec2i(30)); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters