OpenGL Demo Build Error


#1

I’m trying to include the OpenGL Demo from the jucedemo into my project but getting some build errors!. I have all the modules required, created my project with the latest introjucer.

[code]class DemoOpenGLCanvas : public Component,
public OpenGLRenderer,
public Timer
{

ect…

[/code]

Above code is from the juce opengl demo, but getting the following errors in my project

error C2504: ‘OpenGLRenderer’ : base class undefined
error C2259: ‘juce::OpenGLContext’ : cannot instantiate abstract class

Any ideas? Cheers.


#2

If it’s not defined, then you either haven’t added the opengl module, or haven’t included its header somehow.


#3

my mistake, i was adding the modules from an older version. Thanks jules