mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
70 lines
1.7 KiB
C++
70 lines
1.7 KiB
C++
/*
|
|
==============================================================================
|
|
|
|
This file was auto-generated!
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
INCLUDE_JUCE
|
|
|
|
//==============================================================================
|
|
/*
|
|
This component lives inside our window, and this is where you should put all
|
|
your controls and content.
|
|
*/
|
|
class MainContentComponent : public OpenGLAppComponent
|
|
{
|
|
public:
|
|
//==============================================================================
|
|
MainContentComponent()
|
|
{
|
|
setSize (800, 600);
|
|
}
|
|
|
|
~MainContentComponent()
|
|
{
|
|
shutdownOpenGL();
|
|
}
|
|
|
|
void initialise() override
|
|
{
|
|
}
|
|
|
|
void shutdown() override
|
|
{
|
|
}
|
|
|
|
void render() override
|
|
{
|
|
OpenGLHelpers::clear (Colours::black);
|
|
|
|
}
|
|
|
|
void paint (Graphics& g) override
|
|
{
|
|
// You can add your component specific drawing code here!
|
|
// This will draw over the top of the openGL background.
|
|
}
|
|
|
|
void resized() override
|
|
{
|
|
// This is called when the MainContentComponent is resized.
|
|
// If you add any child components, this is where you should
|
|
// update their positions.
|
|
}
|
|
|
|
|
|
private:
|
|
//==============================================================================
|
|
|
|
// private member variables
|
|
|
|
|
|
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)
|
|
};
|
|
|
|
|
|
// (This function is called by the app startup code to create our main component)
|
|
Component* createMainContentComponent() { return new MainContentComponent(); }
|