I really need some help!
I've just started writing VSTs and it's a fantastic pain to find information, let alone any deeper tutorials.
vstgui4.0 comes with a tiny and broken tutorial (only a tiny piece of one knob showing), which I've managed to fix after stunning adventures into various other pieces of code elsewhere and intense studies.
Not only that, I have managed to figure out how to create sliders and labels by looking around and experimenting. But everything comes to a squeaking hold as I arrive at dealing with DrawContexts.
Looking at the old "drawtest" of vstgui3.0, it's impossible for me to trace back how any of this works and it seems outdated anyway.
Can anybody tell me or give me a decent hint on how to simply create a drawContext within this code...(and maybe draw a line!? Would be awesome!)
Code: Select all
#include "TutorialEditor.h"
//-----------------------------------------------------------------------------------
AEffGUIEditor* createEditor (AudioEffectX* effect)
{
return new TutorialEditor (effect);
}
//-----------------------------------------------------------------------------------
TutorialEditor::TutorialEditor (void* ptr)
: AEffGUIEditor (ptr)
{
}
//-----------------------------------------------------------------------------------
bool TutorialEditor::open (void* ptr)
{
CRect frameSize(0, 0, (VstInt16)512, (VstInt16)256);
CFrame* newFrame = new CFrame(frameSize, ptr, this);
newFrame->setBackgroundColor(CColor(60, 90, 110, 255));
//Is here the right place to create a DrawContext? Is there maybe a totally different thing necessary and what exactly?
frame = newFrame;
}
void TutorialEditor::close ()
{
CFrame* oldFrame = frame;
frame = 0;
oldFrame->forget ();
}
Anyway, THANK YOU in advance!