Skip to content

Commit

Permalink
Add GLAD initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
borodust committed Mar 25, 2017
1 parent 840db40 commit 02b3440
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ Required foreign libraries:
| `ODE` | 0.14 | `cl-bodge/physics`
| `libsndfile` | 1.0 | `cl-bodge/resources`
| `OpenGL` | 4.1 | `cl-bodge/graphics`
| `libepoxy` | ?.? | `bodge-nanovg`
| `NanoVG` | ?.? | `bodge-nanovg`
| `Nuklear` | 1.20 | `bodge-nuklear`

Expand All @@ -117,6 +116,7 @@ You need few CL dependencies installed manually:
* [`bodge-sndfile`](https://github.com/borodust/bodge-sndfile)
* [`bodge-nuklear`](https://github.com/borodust/bodge-nuklear)
* [`bodge-nanovg`](https://github.com/borodust/bodge-nanovg)
* [`bodge-glad`](https://github.com/borodust/bodge-glad)

Finally, you need to clone this repository to your local machine and setup
[Quicklisp](https://www.quicklisp.org/), so it could find engine's source code.
Expand Down
2 changes: 1 addition & 1 deletion cl-bodge.asd
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
:mailto "dev@borodust.org"
:license "MIT"
:depends-on (cl-bodge/engine cl-bodge/utils cl-bodge/host cl-bodge/assets cl-opengl
log4cl local-time cffi)
bodge-glad log4cl local-time cffi)
:pathname "graphics"
:serial t
:components ((:file "packages")
Expand Down
1 change: 1 addition & 0 deletions graphics/system.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
(gl:get* :shading-language-version)
(gl:get* :vendor)
(gl:get* :renderer))
(glad:init)

(let ((ctx (make-graphics-context)))
(with-current-state-slice ((ctx-state ctx))
Expand Down

0 comments on commit 02b3440

Please sign in to comment.