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.

57 lines
1.6KB

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