The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.7KB

  1. /*
  2. ==============================================================================
  3. This file was auto-generated!
  4. ==============================================================================
  5. */
  6. INCLUDE_JUCE
  7. //==============================================================================
  8. /*
  9. This component lives inside our window, and this is where you should put all
  10. your controls and content.
  11. */
  12. class MainContentComponent : public OpenGLAppComponent
  13. {
  14. public:
  15. //==============================================================================
  16. MainContentComponent()
  17. {
  18. setSize (800, 600);
  19. }
  20. ~MainContentComponent()
  21. {
  22. shutdownOpenGL();
  23. }
  24. void initialise() override
  25. {
  26. }
  27. void shutdown() override
  28. {
  29. }
  30. void render() override
  31. {
  32. OpenGLHelpers::clear (Colours::black);
  33. }
  34. void paint (Graphics& g) override
  35. {
  36. // You can add your component specific drawing code here!
  37. // This will draw over the top of the openGL background.
  38. }
  39. void resized() override
  40. {
  41. // This is called when the MainContentComponent is resized.
  42. // If you add any child components, this is where you should
  43. // update their positions.
  44. }
  45. private:
  46. //==============================================================================
  47. // private member variables
  48. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)
  49. };
  50. // (This function is called by the app startup code to create our main component)
  51. Component* createMainContentComponent() { return new MainContentComponent(); }