Skip to content

Commit

Permalink
Fix supported error in extensions and add example
Browse files Browse the repository at this point in the history
  • Loading branch information
lmariscal committed Nov 3, 2019
1 parent 0eea3b7 commit 81eff3b
Show file tree
Hide file tree
Showing 3 changed files with 1,774 additions and 16 deletions.
14 changes: 13 additions & 1 deletion README.md
Expand Up @@ -65,7 +65,19 @@ The PRs and new feature development will occur in each binding's repo.
```nim
import opengl
# TODO
# Create a context (GLFW recommended)
if glInit():
echo "OpenGL loaded correctly."
glClearColor(0.68f, 1f, 0.34f, 1f)
glClear(GL_COLOR_BUFFER_BIT)
# You can load extensions
loadGL_ARB_gl_spirv()
if glSpecializeShaderARB == nil:
echo "Extension not available"
```

Check out the references and doc in order to understand OpenGL usage.
Expand Down

0 comments on commit 81eff3b

Please sign in to comment.