-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This creates a new derived mode for the clojure dialect jank https://jank-lang.org/ See issue #23 for future work and jank-lang/jank#24 for the expressed desire to support nested c++
- Loading branch information
1 parent
5e7506e
commit a7b9654
Showing
2 changed files
with
23 additions
and
1 deletion.
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,10 @@ | ||
(defn create-vertex-shader! [] | ||
(native/raw "__value = make_box(glCreateShader(GL_VERTEX_SHADER));")) | ||
|
||
(defn set-shader-source! [shader source] | ||
(native/raw "auto const shader(detail::to_int(~{ shader })); | ||
auto const &source(detail::to_string(~{ source })); | ||
__value = make_box(glShaderSource(shader, 1, &source.data, nullptr));")) | ||
|
||
(defn compile-shader! [shader] | ||
(native/raw "__value = make_box(glCompileShader(detail::to_int(~{ shader })));")) |