myang12 / cpp-graphics

Simple C++ wrapper around standard graphics APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpp-graphics

This started as a C++ wrapper around Apple's Metal API, but then I wanted to expand it to also use OpenGL as a backend to compile the same application on other platforms with (preferably) no code changes.

NOTE: The OpenGL backend is not complete.

Examples

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 does not seem to create a view capable of rendering OpenGL on macOS mojave.

About

Simple C++ wrapper around standard graphics APIs


Languages

Language:C 73.3%Language:C++ 18.3%Language:Objective-C++ 7.6%Language:CMake 0.8%