timart / juce-opengl-template Goto Github PK
View Code? Open in Web Editor NEWTemplate project for rendering 3D graphics using OpenGL in a JUCE application. Includes useful utility classes in Source/OpenGLUtil
Template project for rendering 3D graphics using OpenGL in a JUCE application. Includes useful utility classes in Source/OpenGLUtil
I'm trying to compile this with JUCE 6.0.8, on Debian 11, but compilation fails:
Compiling OpenGLComponent.cpp
Compiling Main.cpp
Compiling BinaryData.cpp
Compiling include_juce_core.cpp
Compiling include_juce_data_structures.cpp
Compiling include_juce_events.cpp
Compiling include_juce_graphics.cpp
Compiling include_juce_gui_basics.cpp
Compiling include_juce_gui_extra.cpp
Compiling include_juce_opengl.cpp
In file included from ../../Source/OpenGLComponent.cpp:9:
../../Source/OpenGLComponent.hpp:20:7: warning: ‘OpenGLComponent’ has a field ‘OpenGLComponent::projectionMatrix’ whose type uses the anonymous namespace [-Wsubobject-linkage]
20 | class OpenGLComponent : public Component,
| ^~~~~~~~~~~~~~~
../../Source/OpenGLComponent.hpp:20:7: warning: ‘OpenGLComponent’ has a field ‘OpenGLComponent::viewMatrix’ whose type uses the anonymous namespace [-Wsubobject-linkage]
../../Source/OpenGLComponent.cpp: In member function ‘virtual void OpenGLComponent::newOpenGLContextCreated()’:
../../Source/OpenGLComponent.cpp:45:30: error: ‘struct juce::OpenGLExtensionFunctions’ has no member named ‘glGenVertexArrays’
45 | openGLContext.extensions.glGenVertexArrays(1, &VAO); // Vertex Array Object
| ^~~~~~~~~~~~~~~~~
../../Source/OpenGLComponent.cpp:50:30: error: ‘struct juce::OpenGLExtensionFunctions’ has no member named ‘glBindVertexArray’
50 | openGLContext.extensions.glBindVertexArray (VAO);
| ^~~~~~~~~~~~~~~~~
../../Source/OpenGLComponent.cpp: In member function ‘virtual void OpenGLComponent::renderOpenGL()’:
../../Source/OpenGLComponent.cpp:100:30: error: ‘struct juce::OpenGLExtensionFunctions’ has no member named ‘glBindVertexArray’
100 | openGLContext.extensions.glBindVertexArray (VAO);
| ^~~~~~~~~~~~~~~~~
../../Source/OpenGLComponent.cpp:102:30: error: ‘struct juce::OpenGLExtensionFunctions’ has no member named ‘glBindVertexArray’
102 | openGLContext.extensions.glBindVertexArray (0);
| ^~~~~~~~~~~~~~~~~
make: *** [Makefile:103: build/intermediate/Debug/OpenGLComponent_fe08fa6f.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ../../Source/MainContentComponent.hpp:11,
from ../../Source/Main.cpp:10:
../../Source/OpenGLComponent.hpp:20:7: warning: ‘OpenGLComponent’ has a field ‘OpenGLComponent::projectionMatrix’ whose type uses the anonymous namespace [-Wsubobject-linkage]
20 | class OpenGLComponent : public Component,
| ^~~~~~~~~~~~~~~
../../Source/OpenGLComponent.hpp:20:7: warning: ‘OpenGLComponent’ has a field ‘OpenGLComponent::viewMatrix’ whose type uses the anonymous namespace [-Wsubobject-linkage]
I am assuming something is deprecated as of this JUCE version? Or maybe I'm missing something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.