Skip to content

Commit a63133e

Browse files
committed
Added a readme
1 parent 70a6576 commit a63133e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# cpp-graphics
2+
3+
This started as a C++ wrapper around Apple's [Metal API](https://developer.apple.com/documentation/metal), but then I wanted to expand it to also use [OpenGL](https://en.wikipedia.org/wiki/OpenGL) as a backend to compile the same application on other platforms with _(preferably)_ no code changes.
4+
5+
_NOTE: The OpenGL backend is **not** complete._
6+
7+
## Examples
8+
9+
I've included some examples to show usage. The `hello_metal` example must use the Xcode generator in order to compile the metal shaders. The `hello_macgl` example uses a `NSOpenGLView` for rendering, as [glfw3](https://www.glfw.org/) does not seem to create a view capable of rendering OpenGL on macOS mojave.

0 commit comments

Comments
 (0)