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.5KB

  1. /*
  2. ==============================================================================
  3. This file was auto-generated!
  4. ==============================================================================
  5. */
  6. INCLUDE_CORRESPONDING_HEADER
  7. //==============================================================================
  8. CONTENTCOMPCLASS::CONTENTCOMPCLASS()
  9. {
  10. // Make sure you set the size of the component after
  11. // you add any child components.
  12. setSize (800, 600);
  13. }
  14. CONTENTCOMPCLASS::~CONTENTCOMPCLASS()
  15. {
  16. // This shuts down the GL system and stops the rendering calls.
  17. shutdownOpenGL();
  18. }
  19. //==============================================================================
  20. void CONTENTCOMPCLASS::initialise()
  21. {
  22. // Initialise GL objects for rendering here.
  23. }
  24. void CONTENTCOMPCLASS::shutdown()
  25. {
  26. // Free any GL objects created for rendering here.
  27. }
  28. void CONTENTCOMPCLASS::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 CONTENTCOMPCLASS::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 CONTENTCOMPCLASS::resized()
  41. {
  42. // This is called when the MainContentComponent is resized.
  43. // If you add any child components, this is where you should
  44. // update their positions.
  45. }