Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.
/ opengl-explorer Public archive

A project to explore OpenGL (in C++, on a M1 mac)

Notifications You must be signed in to change notification settings

k0pernicus/opengl-explorer

Repository files navigation

OpenGL-Explorer

A toy example to explore both C++17 and OpenGL (4.1) on an m1 mac, for ARM specifically (no rosetta2 here).

This repository was just a test example for the blog post, and does not have a "future".
I archived it then, as I don't plan to improve the code or add more features in the future.

How to build

First, please to make sure that:

  • you have a clang version that supports C++17 (I used Apple clang version 13.0.0 (clang-1300.0.29.30) for this exercise),
  • the following tools: make, cmake, c++,
  • a macintosh computer (this exercise does not supports other platforms yet).

Now, in the root folder: cmake . && make && ./opengl-explorer.

I wrote a blog post about this exercise here, please take a look for the troubleshootings: blog post.

Interaction

  • Esc to quit the program (or ctrl-c in your terminal),
  • r to reload the shaders, if you modify the fragment_shader.glsl or vertex_shader.glsl files.

Screenshot

rgb_triangle.png

About

A project to explore OpenGL (in C++, on a M1 mac)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published