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.

78 lines
1.9KB

  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. // (Your class must call this in its destructor to stop the
  25. // rendering callbacks happening after your class has been deleted)
  26. shutdownOpenGL();
  27. }
  28. void initialise() override
  29. {
  30. }
  31. void shutdown() override
  32. {
  33. }
  34. void render() override
  35. {
  36. OpenGLHelpers::clear (Colours::lightblue);
  37. }
  38. void paint (Graphics& g) override
  39. {
  40. // You can add normal 2D drawing code here, which will be
  41. // drawn over the GL content.
  42. }
  43. void resized() override
  44. {
  45. // This is called when the MainContentComponent is resized.
  46. // If you add any child components, this is where you should
  47. // update their positions.
  48. }
  49. private:
  50. //==============================================================================
  51. // private member variables
  52. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)
  53. };
  54. // (This function is called by the app startup code to create our main component)
  55. Component* createMainContentComponent() { return new MainContentComponent(); }
  56. #endif // MAINCOMPONENT_H_INCLUDED