Advertisement
Guest User

H File

a guest
Aug 23rd, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. /*
  2. ==============================================================================
  3.  
  4. This is an automatically generated GUI class created by the Introjucer!
  5.  
  6. Be careful when adding custom code to these files, as only the code within
  7. the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
  8. and re-saved.
  9.  
  10. Created with Introjucer version: 3.1.1
  11.  
  12. ------------------------------------------------------------------------------
  13.  
  14. The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions"
  15. Copyright 2004-13 by Raw Material Software Ltd.
  16.  
  17. ==============================================================================
  18. */
  19.  
  20. #ifndef __JUCE_HEADER_F4EEA1EAFD405FD4__
  21. #define __JUCE_HEADER_F4EEA1EAFD405FD4__
  22.  
  23. //[Headers] -- You can add your own extra header files here --
  24. #include "JuceHeader.h"
  25. #include "CPIComponent.h"
  26. #include "WavefrontObjParser.h"
  27.  
  28. struct Attributes;
  29. struct Uniforms;
  30. struct Shape;
  31.  
  32. //[/Headers]
  33.  
  34.  
  35.  
  36. //==============================================================================
  37. /**
  38. //[Comments]
  39. An auto-generated component, created by the Introjucer.
  40.  
  41. Describe your class and how it works here!
  42. //[/Comments]
  43. */
  44. class HeadAnimation : public CPIComponent
  45. {
  46. public:
  47. //==============================================================================
  48. HeadAnimation ();
  49. ~HeadAnimation();
  50.  
  51. //==============================================================================
  52. //[UserMethods] -- You can add your own custom methods in this section.
  53. //[/UserMethods]
  54.  
  55. void paint (Graphics& g);
  56. void resized();
  57.  
  58.  
  59.  
  60. private:
  61. //[UserVariables] -- You can add your own custom variables in this section.
  62.  
  63. void renderOpenGL() override;
  64. void newOpenGLContextCreated() override;
  65. void openGLContextClosing() override;
  66. void freeAllContextObjects();
  67.  
  68. Matrix3D<float> getProjectionMatrix() const;
  69. Matrix3D<float> getViewMatrix() const;
  70.  
  71. ScopedPointer<OpenGLShaderProgram> shader;
  72. ScopedPointer<Shape> shape;
  73. ScopedPointer<Attributes> attributes;
  74. ScopedPointer<Uniforms> uniforms;
  75.  
  76. OpenGLContext openGLContext;
  77. OpenGLTexture texture, *textureToUse, *lastTexture;
  78.  
  79. float scale, rotationSpeed;
  80. float rotation;
  81. Draggable3DOrientation draggableOrientation;
  82.  
  83. //[/UserVariables]
  84.  
  85. //==============================================================================
  86.  
  87.  
  88. //==============================================================================
  89. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (HeadAnimation)
  90. };
  91.  
  92. //[EndFile] You can add extra defines here...
  93. //[/EndFile]
  94.  
  95. #endif // __JUCE_HEADER_F4EEA1EAFD405FD4__
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement