GLFW-CMake-starter
ModernGL
GLFW-CMake-starter | ModernGL | |
---|---|---|
1 | 9 | |
135 | 4 | |
- | - | |
4.0 | 6.7 | |
2 months ago | 3 months ago | |
CMake | C++ | |
zlib License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
GLFW-CMake-starter
-
Good 3D Library for M1 (arm64) mac?
For a quick start cmake project we made this starter: https://github.com/juliettef/GLFW-CMake-starter
ModernGL
-
Understanding OpenGL setup & compilation on Windows
Also have a look at this repo https://github.com/NCCA/ModernGL/ which has a load of different demos using different libraries for Context generation and extension loading.
-
I have spent two whole work days trying to install GLEW
If you follow the instructions I give to my students here https://github.com/NCCA/NGL/blob/main/Windows.md up to the vcpkg install. You can then install GLEW via vcpkg and try something like this https://github.com/NCCA/ModernGL/tree/master for your OpenGL demos.
-
Version 330 is not supported (m1 mac)
See if these simple demos work for you https://github.com/NCCA/ModernGL/tree/master (I write these on a mac first if I can, you just need vcpkg and cmake to build).
-
OpenGL not working on Mac with sdl
Also a full working demo to draw a triangle https://github.com/NCCA/ModernGL/tree/master/SDL2TriangleGLEW It uses GLEW on Windows and Linux but defines it out on the Mac, You need CMake and SDL2 installed using vcpkg but you can adapt to your install
-
Trying to draw a triangle, outputs an empty window
I have a number of demos here that use various libs to create a modern OpenGL triangle https://github.com/NCCA/ModernGL
-
Linking error
I use glfw with vcpkg which will download and build it for you. Makes things a little easier as you can do it all with CMake. This example (showing OpenGL and GLEW with GLFW) should give you all you need if you want to do it this way. https://github.com/NCCA/ModernGL/tree/master/GLFWTriangleGLEW
-
Using Metal framework
You need to ensure you use either a full core profile context or an old compatibility OpenGL 2.1 context, you can't mix and match (Like in Windows / linux). Also Vertex Array Objects are mandatory for core profile on the mac (on some older systems you can get away without using them). Personally I use either Qt or SDL2 for creating the context but you can also use other frameworks. I've got a load of simple demos using different frameworks here https://github.com/NCCA/ModernGL Including one that uses the Objective C / coca for creating the window / context.
-
dealing with multiple point clouds
Here is a basic example drawing a coloured triangle using two buffers, https://github.com/NCCA/ModernGL/blob/master/PyQtTriangle/PyQtTriangle.py You can modify this to draw points quite easily by changing the glDrawArrays(GL_TRIANGLES, 0, 3) call to use GL_POINTS
-
Good 3D Library for M1 (arm64) mac?
Creating the context you have a few options, SDL2, GLFW Qt or native mac. I wrote a series of demos to draw a basic triangle https://github.com/NCCA/ModernGL Each one uses a different tool / library. It uses cmake and vcpkg to install all the libs you need etc.
What are some alternatives?
MoltenVK - MoltenVK is a Vulkan Portability implementation. It layers a subset of the high-performance, industry-standard Vulkan graphics and compute API over Apple's Metal graphics framework, enabling Vulkan applications to run on macOS, iOS and tvOS.
meshlab - The open source mesh processing system
Vcpkg - C++ Library Manager for Windows, Linux, and MacOS
ninja - a small build system with a focus on speed
Ultralight - Lightweight, high-performance HTML renderer for game and app developers.
MGL - OpenGL 4.6 on Metal
NGL - The NCCA Graphics Library
GLFW - A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input
PowerShell - PowerShell for every system!
CPP20-Cross-Platform-Template - A template for a cross-platform C++20 project including CMake, unit-testing with Catch, cross-platform CI with Travis-CI/Github Actions and cross-platform release builds using Github Actions.