Well, my openGl options is ok (1),
i tried to make my own code and to make this made by Jucer,
i got it, which seems to me ok :
[quote]/*
This is an automatically generated file created by the Jucer!
Creation date: 25 Sep 2008 2:53:20 pm
Be careful when adding custom code to these files, as only the code within
the “//[xyz]” and “//[/xyz]” sections will be retained when the file is loaded
and re-saved.
Jucer version: 1.11
The Jucer is part of the JUCE library - "Jules’ Utility Class Extensions"
Copyright 2004-6 by Raw Material Software ltd.
==============================================================================
*/
//[Headers] You can add your own extra header files here…
//[/Headers]
#include “myComp.h”
//[MiscUserDefs] You can add your own user definitions and misc code here…
//[/MiscUserDefs]
//==============================================================================
myComp::myComp ()
: viewport (0)
{
addAndMakeVisible (viewport = new Viewport (T(“SeqWindow”)));
viewport->setViewedComponent (new myOpenGLComp());
//[UserPreSize]
//[/UserPreSize]
setSize (200, 200);
//[Constructor] You can add your own custom stuff here..
//[/Constructor]
}
myComp::~myComp()
{
//[Destructor_pre]. You can add your own custom destruction code here…
//[/Destructor_pre]
deleteAndZero (viewport);
//[Destructor]. You can add your own custom destruction code here..
//[/Destructor]
}
//==============================================================================
void myComp::paint (Graphics& g)
{
//[UserPrePaint] Add your own custom painting code here…
//[/UserPrePaint]
g.fillAll (Colours::white);
//[UserPaint] Add your own custom painting code here..
//[/UserPaint]
}
void myComp::resized()
{
viewport->setBounds (0, 0, proportionOfWidth (1.0000f), proportionOfHeight (1.0000f));
//[UserResized] Add your own custom resize handling here…
//[/UserResized]
}
//[MiscUserCode] You can add your own definitions of your custom methods or any other code here…
//[/MiscUserCode]
//==============================================================================
#if 0
/* – Jucer information section –
This is where the Jucer puts all of its metadata, so don't change anything in here!
BEGIN_JUCER_METADATA
<JUCER_COMPONENT documentType=“Component” className=“myComp” componentName="“
parentClasses=“public Component” constructorParams=”" variableInitialisers=""
snapPixels=“8” snapActive=“1” snapShown=“1” overlayOpacity="0.330000013"
fixedSize=“0” initialWidth=“200” initialHeight=“200”>
</JUCER_COMPONENT>
END_JUCER_METADATA
*/
#endif
[/quote]
however nothing appears but a coloured square, like the colour specified in the paint method.
If i do the same withour viewport and by putting direclyt my openGl comp inside the tab, the openGl comp appears.[/quote]