forked from clojure-emacs/clojure-ts-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
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 clojure-emacs#23 for future work and jank-lang/jank#24 for the expressed desire to support nested c++
- Loading branch information
1 parent
b8ff460
commit a6f1a02
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 })));")) |