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.

49 lines
1.4KB

  1. %%include_corresponding_header%%
  2. //==============================================================================
  3. %%content_component_class%%::%%content_component_class%%()
  4. {
  5. // Make sure you set the size of the component after
  6. // you add any child components.
  7. setSize (800, 600);
  8. }
  9. %%content_component_class%%::~%%content_component_class%%()
  10. {
  11. // This shuts down the GL system and stops the rendering calls.
  12. shutdownOpenGL();
  13. }
  14. //==============================================================================
  15. void %%content_component_class%%::initialise()
  16. {
  17. // Initialise GL objects for rendering here.
  18. }
  19. void %%content_component_class%%::shutdown()
  20. {
  21. // Free any GL objects created for rendering here.
  22. }
  23. void %%content_component_class%%::render()
  24. {
  25. // This clears the context with a black background.
  26. juce::OpenGLHelpers::clear (juce::Colours::black);
  27. // Add your rendering code here...
  28. }
  29. //==============================================================================
  30. void %%content_component_class%%::paint (juce::Graphics& g)
  31. {
  32. // You can add your component specific drawing code here!
  33. // This will draw over the top of the openGL background.
  34. }
  35. void %%content_component_class%%::resized()
  36. {
  37. // This is called when the %%content_component_class%% is resized.
  38. // If you add any child components, this is where you should
  39. // update their positions.
  40. }