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.

77 lines
1.8KB

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