-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Add an initial integration test for glfw windowing
Can't use events yet because of the callback interoperability issue.
- Loading branch information
1 parent
33b5272
commit a1ede92
Showing
2 changed files
with
17 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
local glfw = require("glfw") | ||
|
||
glfw.bindings.glfw_init() | ||
|
||
local _ = glfw.bindings.glfw_create_window(800, 600, "GLFW Test", nil, nil) | ||
|
||
local ticker = C_Timer.NewTicker(250, function() | ||
print("glfw_poll_events") | ||
glfw.bindings.glfw_poll_events() | ||
end) | ||
|
||
C_Timer.After(2500, function() | ||
print("glfw_terminate") | ||
glfw.bindings.glfw_terminate() | ||
ticker:stop() | ||
end) |
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