| @@ -195,6 +195,7 @@ | |||
| 2820D74789660269902DB93A = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_Uuid.cpp"; path = "../../../../modules/juce_core/misc/juce_Uuid.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| 282C1DA3A161FEF2AD6F94A6 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_CodeTokeniser.h"; path = "../../../../modules/juce_gui_extra/code_editor/juce_CodeTokeniser.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| 2954678FE7AB78F318FBD4F7 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_FileInputStream.h"; path = "../../../../modules/juce_core/files/juce_FileInputStream.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| 295A470694011EBCA802822B = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_OpenGLGraphicsContext.cpp"; path = "../../../../modules/juce_opengl/opengl/juce_OpenGLGraphicsContext.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| 2968B26144E09D6A6659E739 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_DirectShowComponent.h"; path = "../../../../modules/juce_video/playback/juce_DirectShowComponent.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| 2A835EF38887CAB750B49AC6 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_RelativePointPath.h"; path = "../../../../modules/juce_gui_basics/positioning/juce_RelativePointPath.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| 2ACD67859FBC33EB743708CB = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_TextButton.h"; path = "../../../../modules/juce_gui_basics/buttons/juce_TextButton.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| @@ -624,6 +625,7 @@ | |||
| A6FCBC9721E7FC9DE30B6DC4 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_linux_Midi.cpp"; path = "../../../../modules/juce_audio_devices/native/juce_linux_Midi.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| A72FB74D13AA5C6A472E9E82 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_ChangeBroadcaster.cpp"; path = "../../../../modules/juce_events/broadcasters/juce_ChangeBroadcaster.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| A763E7AF50D548D8C4A4C3D1 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_AudioDeviceManager.h"; path = "../../../../modules/juce_audio_devices/audio_io/juce_AudioDeviceManager.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| A7B3B265DACC82D9E9CFB3DA = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_OpenGLGraphicsContext.h"; path = "../../../../modules/juce_opengl/opengl/juce_OpenGLGraphicsContext.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| A7BD5AB895B2531A75FE0268 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_BufferingAudioSource.h"; path = "../../../../modules/juce_audio_basics/sources/juce_BufferingAudioSource.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| A7F413D4C880363878469E5A = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_JSON.h"; path = "../../../../modules/juce_core/json/juce_JSON.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| A80CC48B8215D447643CA411 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_ToolbarItemFactory.h"; path = "../../../../modules/juce_gui_basics/widgets/juce_ToolbarItemFactory.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| @@ -1869,6 +1871,8 @@ | |||
| 8878426C7F58CB22969E7133, | |||
| AC3EFDDC80761A45E8BE0624, | |||
| 43E4604C39E9A992216F6B98, | |||
| 295A470694011EBCA802822B, | |||
| A7B3B265DACC82D9E9CFB3DA, | |||
| D7239D5B984E07808E2DB28C, | |||
| D2C40CDF46D894BFC72BDC56, | |||
| E46977801F19277F4D3B324B, | |||
| @@ -4220,6 +4220,17 @@ | |||
| </FileConfiguration> | |||
| </File> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.h"/> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.cpp"> | |||
| <FileConfiguration Name="Debug|Win32" | |||
| ExcludedFromBuild="true"> | |||
| <Tool Name="VCCLCompilerTool"/> | |||
| </FileConfiguration> | |||
| <FileConfiguration Name="Release|Win32" | |||
| ExcludedFromBuild="true"> | |||
| <Tool Name="VCCLCompilerTool"/> | |||
| </FileConfiguration> | |||
| </File> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.h"/> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.cpp"> | |||
| <FileConfiguration Name="Debug|Win32" | |||
| ExcludedFromBuild="true"> | |||
| @@ -4220,6 +4220,17 @@ | |||
| </FileConfiguration> | |||
| </File> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.h"/> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.cpp"> | |||
| <FileConfiguration Name="Debug|Win32" | |||
| ExcludedFromBuild="true"> | |||
| <Tool Name="VCCLCompilerTool"/> | |||
| </FileConfiguration> | |||
| <FileConfiguration Name="Release|Win32" | |||
| ExcludedFromBuild="true"> | |||
| <Tool Name="VCCLCompilerTool"/> | |||
| </FileConfiguration> | |||
| </File> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.h"/> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.cpp"> | |||
| <FileConfiguration Name="Debug|Win32" | |||
| ExcludedFromBuild="true"> | |||
| @@ -1133,6 +1133,9 @@ | |||
| <ClCompile Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.cpp"> | |||
| <ExcludedFromBuild>true</ExcludedFromBuild> | |||
| </ClCompile> | |||
| <ClCompile Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.cpp"> | |||
| <ExcludedFromBuild>true</ExcludedFromBuild> | |||
| </ClCompile> | |||
| <ClCompile Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.cpp"> | |||
| <ExcludedFromBuild>true</ExcludedFromBuild> | |||
| </ClCompile> | |||
| @@ -1578,6 +1581,7 @@ | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLComponent.h"/> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLContext.h"/> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.h"/> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.h"/> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.h"/> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLImage.h"/> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLPixelFormat.h"/> | |||
| @@ -1486,6 +1486,9 @@ | |||
| <ClCompile Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.cpp"> | |||
| <Filter>Juce Modules\juce_opengl\opengl</Filter> | |||
| </ClCompile> | |||
| <ClCompile Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.cpp"> | |||
| <Filter>Juce Modules\juce_opengl\opengl</Filter> | |||
| </ClCompile> | |||
| <ClCompile Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.cpp"> | |||
| <Filter>Juce Modules\juce_opengl\opengl</Filter> | |||
| </ClCompile> | |||
| @@ -2775,6 +2778,9 @@ | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.h"> | |||
| <Filter>Juce Modules\juce_opengl\opengl</Filter> | |||
| </ClInclude> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.h"> | |||
| <Filter>Juce Modules\juce_opengl\opengl</Filter> | |||
| </ClInclude> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.h"> | |||
| <Filter>Juce Modules\juce_opengl\opengl</Filter> | |||
| </ClInclude> | |||
| @@ -188,6 +188,7 @@ | |||
| 2820D74789660269902DB93A = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_Uuid.cpp"; path = "../../../../modules/juce_core/misc/juce_Uuid.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| 282C1DA3A161FEF2AD6F94A6 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_CodeTokeniser.h"; path = "../../../../modules/juce_gui_extra/code_editor/juce_CodeTokeniser.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| 2954678FE7AB78F318FBD4F7 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_FileInputStream.h"; path = "../../../../modules/juce_core/files/juce_FileInputStream.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| 295A470694011EBCA802822B = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_OpenGLGraphicsContext.cpp"; path = "../../../../modules/juce_opengl/opengl/juce_OpenGLGraphicsContext.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| 2968B26144E09D6A6659E739 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_DirectShowComponent.h"; path = "../../../../modules/juce_video/playback/juce_DirectShowComponent.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| 2A835EF38887CAB750B49AC6 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_RelativePointPath.h"; path = "../../../../modules/juce_gui_basics/positioning/juce_RelativePointPath.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| 2ACD67859FBC33EB743708CB = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_TextButton.h"; path = "../../../../modules/juce_gui_basics/buttons/juce_TextButton.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| @@ -616,6 +617,7 @@ | |||
| A6FCBC9721E7FC9DE30B6DC4 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_linux_Midi.cpp"; path = "../../../../modules/juce_audio_devices/native/juce_linux_Midi.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| A72FB74D13AA5C6A472E9E82 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_ChangeBroadcaster.cpp"; path = "../../../../modules/juce_events/broadcasters/juce_ChangeBroadcaster.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| A763E7AF50D548D8C4A4C3D1 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_AudioDeviceManager.h"; path = "../../../../modules/juce_audio_devices/audio_io/juce_AudioDeviceManager.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| A7B3B265DACC82D9E9CFB3DA = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_OpenGLGraphicsContext.h"; path = "../../../../modules/juce_opengl/opengl/juce_OpenGLGraphicsContext.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| A7BD5AB895B2531A75FE0268 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_BufferingAudioSource.h"; path = "../../../../modules/juce_audio_basics/sources/juce_BufferingAudioSource.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| A7F413D4C880363878469E5A = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_JSON.h"; path = "../../../../modules/juce_core/json/juce_JSON.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| A80CC48B8215D447643CA411 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_ToolbarItemFactory.h"; path = "../../../../modules/juce_gui_basics/widgets/juce_ToolbarItemFactory.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| @@ -1859,6 +1861,8 @@ | |||
| 8878426C7F58CB22969E7133, | |||
| AC3EFDDC80761A45E8BE0624, | |||
| 43E4604C39E9A992216F6B98, | |||
| 295A470694011EBCA802822B, | |||
| A7B3B265DACC82D9E9CFB3DA, | |||
| D7239D5B984E07808E2DB28C, | |||
| D2C40CDF46D894BFC72BDC56, | |||
| E46977801F19277F4D3B324B, | |||
| @@ -133,7 +133,7 @@ private: | |||
| // Functions to create a couple of images to use as textures.. | |||
| static Image createImage1() | |||
| { | |||
| Image image (new OpenGLFrameBufferImage (Image::ARGB, 256, 256)); | |||
| Image image (new OpenGLFrameBufferImage (256, 256)); | |||
| Graphics g (image); | |||
| @@ -148,7 +148,7 @@ private: | |||
| static Image createImage2() | |||
| { | |||
| Image image (new OpenGLFrameBufferImage (Image::ARGB, 128, 128)); | |||
| Image image (new OpenGLFrameBufferImage (128, 128)); | |||
| Graphics g (image); | |||
| g.fillAll (Colours::darkred.withAlpha (0.7f)); | |||
| @@ -260,6 +260,7 @@ | |||
| 3ED29A00C88C8C3B8B3DE56D = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_ShapeButton.h"; path = "../../../../modules/juce_gui_basics/buttons/juce_ShapeButton.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| 3ED373A6B2C53518BAA012E6 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_RelativeRectangle.cpp"; path = "../../../../modules/juce_gui_basics/positioning/juce_RelativeRectangle.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| 3EFBFA5735C496DC209ED1CE = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_win32_HiddenMessageWindow.h"; path = "../../../../modules/juce_events/native/juce_win32_HiddenMessageWindow.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| 3F263028F4926C6F3318E6A4 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_OpenGLGraphicsContext.cpp"; path = "../../../../modules/juce_opengl/opengl/juce_OpenGLGraphicsContext.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| 3F924E9D75C642D0A14828E8 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_RelativePointPath.cpp"; path = "../../../../modules/juce_gui_basics/positioning/juce_RelativePointPath.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| 3F963B869D58A34E97922E97 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_RelativePointPath.h"; path = "../../../../modules/juce_gui_basics/positioning/juce_RelativePointPath.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| 410A767D64DBE4AB92D56251 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_TextButton.h"; path = "../../../../modules/juce_gui_basics/buttons/juce_TextButton.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| @@ -856,6 +857,7 @@ | |||
| FE79AFFDB5029AC6AE7F4CFC = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_RecentlyOpenedFilesList.h"; path = "../../../../modules/juce_gui_extra/misc/juce_RecentlyOpenedFilesList.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| FE7C03DACFC725D712D9F508 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = "juce_audio_utils.mm"; path = "../../../../modules/juce_audio_utils/juce_audio_utils.mm"; sourceTree = "SOURCE_ROOT"; }; | |||
| FEB2517E7420B23086B6580B = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_MenuBarModel.cpp"; path = "../../../../modules/juce_gui_basics/menus/juce_MenuBarModel.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| FF28173366C5BCF1BAE2CEA9 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_OpenGLGraphicsContext.h"; path = "../../../../modules/juce_opengl/opengl/juce_OpenGLGraphicsContext.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| FFC1C8C289D7D3FF39865E40 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_ImageComponent.cpp"; path = "../../../../modules/juce_gui_basics/widgets/juce_ImageComponent.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| FFD8E80D93D1005D5983C057 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_ToolbarItemFactory.h"; path = "../../../../modules/juce_gui_basics/widgets/juce_ToolbarItemFactory.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| FFFA6E3ECEFDF1DE95D0F632 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_linux_JackAudio.cpp"; path = "../../../../modules/juce_audio_devices/native/juce_linux_JackAudio.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| @@ -1791,6 +1793,8 @@ | |||
| BE0231D93CBB02BBC2704D1D, | |||
| 43D23C18695F24F9A3DFA7B4, | |||
| 438CA87567F47F9AF39788D1, | |||
| 3F263028F4926C6F3318E6A4, | |||
| FF28173366C5BCF1BAE2CEA9, | |||
| 153D339EB2CCEC711215AD04, | |||
| 9B4278735225CBEED635FF03, | |||
| C0EECABDA5446EAD76E2578F, | |||
| @@ -4143,6 +4143,17 @@ | |||
| </FileConfiguration> | |||
| </File> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.h"/> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.cpp"> | |||
| <FileConfiguration Name="Debug|Win32" | |||
| ExcludedFromBuild="true"> | |||
| <Tool Name="VCCLCompilerTool"/> | |||
| </FileConfiguration> | |||
| <FileConfiguration Name="Release|Win32" | |||
| ExcludedFromBuild="true"> | |||
| <Tool Name="VCCLCompilerTool"/> | |||
| </FileConfiguration> | |||
| </File> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.h"/> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.cpp"> | |||
| <FileConfiguration Name="Debug|Win32" | |||
| ExcludedFromBuild="true"> | |||
| @@ -4143,6 +4143,17 @@ | |||
| </FileConfiguration> | |||
| </File> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.h"/> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.cpp"> | |||
| <FileConfiguration Name="Debug|Win32" | |||
| ExcludedFromBuild="true"> | |||
| <Tool Name="VCCLCompilerTool"/> | |||
| </FileConfiguration> | |||
| <FileConfiguration Name="Release|Win32" | |||
| ExcludedFromBuild="true"> | |||
| <Tool Name="VCCLCompilerTool"/> | |||
| </FileConfiguration> | |||
| </File> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.h"/> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.cpp"> | |||
| <FileConfiguration Name="Debug|Win32" | |||
| ExcludedFromBuild="true"> | |||
| @@ -642,6 +642,7 @@ | |||
| CDF3D87F97FF1526499CC3A1 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_win32_Registry.cpp"; path = "../../../../modules/juce_core/native/juce_win32_Registry.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| CE55DEAD4829A44E6F68EBA3 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = "juce_opengl.mm"; path = "../../../../modules/juce_opengl/juce_opengl.mm"; sourceTree = "SOURCE_ROOT"; }; | |||
| CE598F0D6317056C9958D8DD = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_ChangeListener.h"; path = "../../../../modules/juce_events/broadcasters/juce_ChangeListener.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| CEBE83A5D278021237C24D66 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_OpenGLGraphicsContext.cpp"; path = "../../../../modules/juce_opengl/opengl/juce_OpenGLGraphicsContext.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| CEEB08E0152E40C0F7F7D9ED = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_DynamicLibrary.h"; path = "../../../../modules/juce_core/threads/juce_DynamicLibrary.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| CF16F0D87956060986A260CE = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_TreeView.h"; path = "../../../../modules/juce_gui_basics/widgets/juce_TreeView.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| CF234664EFB623E0E51BF84F = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_AudioUnitPluginFormat.h"; path = "../../../../modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| @@ -683,6 +684,7 @@ | |||
| D9725F490FFF28EE21FAE674 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_ImageEffectFilter.h"; path = "../../../../modules/juce_graphics/effects/juce_ImageEffectFilter.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| D974DED975BAB28D7E4DD088 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_AudioTransportSource.h"; path = "../../../../modules/juce_audio_devices/sources/juce_AudioTransportSource.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| D9A6F0D617C0DFE739401654 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_ButtonPropertyComponent.h"; path = "../../../../modules/juce_gui_basics/properties/juce_ButtonPropertyComponent.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| D9A93A1A24319A4E650E53B2 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_OpenGLGraphicsContext.h"; path = "../../../../modules/juce_opengl/opengl/juce_OpenGLGraphicsContext.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| D9C8927A19B0A1D2AF2304B8 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_android_Messaging.cpp"; path = "../../../../modules/juce_events/native/juce_android_Messaging.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| D9D8C7CDA1EA11E65E539C00 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "juce_ResizableCornerComponent.h"; path = "../../../../modules/juce_gui_basics/layout/juce_ResizableCornerComponent.h"; sourceTree = "SOURCE_ROOT"; }; | |||
| D9F02568E68C40FADFE9210F = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "juce_FlacAudioFormat.cpp"; path = "../../../../modules/juce_audio_formats/codecs/juce_FlacAudioFormat.cpp"; sourceTree = "SOURCE_ROOT"; }; | |||
| @@ -1710,6 +1712,8 @@ | |||
| 6096E343983724F254B268C3, | |||
| 73C6ABF23C4B143DB2BC7226, | |||
| 9D4FC9BEE122256B2557D088, | |||
| CEBE83A5D278021237C24D66, | |||
| D9A93A1A24319A4E650E53B2, | |||
| 92346B7BA7AFD6750405F6F3, | |||
| AEB9A6FBC99A1C710C51D799, | |||
| 6DCD8800E380DB691DC9D467, | |||
| @@ -4034,6 +4034,17 @@ | |||
| </FileConfiguration> | |||
| </File> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.h"/> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.cpp"> | |||
| <FileConfiguration Name="Debug|Win32" | |||
| ExcludedFromBuild="true"> | |||
| <Tool Name="VCCLCompilerTool"/> | |||
| </FileConfiguration> | |||
| <FileConfiguration Name="Release|Win32" | |||
| ExcludedFromBuild="true"> | |||
| <Tool Name="VCCLCompilerTool"/> | |||
| </FileConfiguration> | |||
| </File> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.h"/> | |||
| <File RelativePath="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.cpp"> | |||
| <FileConfiguration Name="Debug|Win32" | |||
| ExcludedFromBuild="true"> | |||
| @@ -1096,6 +1096,9 @@ | |||
| <ClCompile Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.cpp"> | |||
| <ExcludedFromBuild>true</ExcludedFromBuild> | |||
| </ClCompile> | |||
| <ClCompile Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.cpp"> | |||
| <ExcludedFromBuild>true</ExcludedFromBuild> | |||
| </ClCompile> | |||
| <ClCompile Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.cpp"> | |||
| <ExcludedFromBuild>true</ExcludedFromBuild> | |||
| </ClCompile> | |||
| @@ -1524,6 +1527,7 @@ | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLComponent.h"/> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLContext.h"/> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.h"/> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.h"/> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.h"/> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLImage.h"/> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLPixelFormat.h"/> | |||
| @@ -1372,6 +1372,9 @@ | |||
| <ClCompile Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.cpp"> | |||
| <Filter>Juce Modules\juce_opengl\opengl</Filter> | |||
| </ClCompile> | |||
| <ClCompile Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.cpp"> | |||
| <Filter>Juce Modules\juce_opengl\opengl</Filter> | |||
| </ClCompile> | |||
| <ClCompile Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.cpp"> | |||
| <Filter>Juce Modules\juce_opengl\opengl</Filter> | |||
| </ClCompile> | |||
| @@ -2610,6 +2613,9 @@ | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLFrameBuffer.h"> | |||
| <Filter>Juce Modules\juce_opengl\opengl</Filter> | |||
| </ClInclude> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLGraphicsContext.h"> | |||
| <Filter>Juce Modules\juce_opengl\opengl</Filter> | |||
| </ClInclude> | |||
| <ClInclude Include="..\..\..\..\modules\juce_opengl\opengl\juce_OpenGLHelpers.h"> | |||
| <Filter>Juce Modules\juce_opengl\opengl</Filter> | |||
| </ClInclude> | |||
| @@ -132,6 +132,7 @@ | |||
| // START_AUTOINCLUDE opengl/*.cpp | |||
| #include "opengl/juce_OpenGLComponent.cpp" | |||
| #include "opengl/juce_OpenGLFrameBuffer.cpp" | |||
| #include "opengl/juce_OpenGLGraphicsContext.cpp" | |||
| #include "opengl/juce_OpenGLHelpers.cpp" | |||
| #include "opengl/juce_OpenGLImage.cpp" | |||
| #include "opengl/juce_OpenGLTexture.cpp" | |||
| @@ -29,10 +29,7 @@ | |||
| #include "../juce_gui_extra/juce_gui_extra.h" | |||
| #undef JUCE_OPENGL | |||
| #if ! JUCE_ANDROID | |||
| #define JUCE_OPENGL 1 | |||
| #endif | |||
| #define JUCE_OPENGL 1 | |||
| #if JUCE_IOS || JUCE_ANDROID | |||
| #define JUCE_OPENGL_ES 1 | |||
| @@ -95,6 +92,9 @@ BEGIN_JUCE_NAMESPACE | |||
| #ifndef __JUCE_OPENGLFRAMEBUFFER_JUCEHEADER__ | |||
| #include "opengl/juce_OpenGLFrameBuffer.h" | |||
| #endif | |||
| #ifndef __JUCE_OPENGLGRAPHICSCONTEXT_JUCEHEADER__ | |||
| #include "opengl/juce_OpenGLGraphicsContext.h" | |||
| #endif | |||
| #ifndef __JUCE_OPENGLHELPERS_JUCEHEADER__ | |||
| #include "opengl/juce_OpenGLHelpers.h" | |||
| #endif | |||
| @@ -0,0 +1,83 @@ | |||
| /* | |||
| ============================================================================== | |||
| This file is part of the JUCE library - "Jules' Utility Class Extensions" | |||
| Copyright 2004-11 by Raw Material Software Ltd. | |||
| ------------------------------------------------------------------------------ | |||
| JUCE can be redistributed and/or modified under the terms of the GNU General | |||
| Public License (Version 2), as published by the Free Software Foundation. | |||
| A copy of the license is included in the JUCE distribution, or can be found | |||
| online at www.gnu.org/licenses. | |||
| JUCE is distributed in the hope that it will be useful, but WITHOUT ANY | |||
| WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR | |||
| A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |||
| ------------------------------------------------------------------------------ | |||
| To release a closed-source product which uses JUCE, commercial licenses are | |||
| available: visit www.rawmaterialsoftware.com/juce for more information. | |||
| ============================================================================== | |||
| */ | |||
| #ifndef __JUCE_OPENGLGRAPHICSCONTEXT_JUCEHEADER__ | |||
| #define __JUCE_OPENGLGRAPHICSCONTEXT_JUCEHEADER__ | |||
| //============================================================================== | |||
| /** A LowLevelGraphicsContext for rendering into an OpenGL framebuffer or window. | |||
| */ | |||
| class JUCE_API OpenGLRenderer : public LowLevelGraphicsContext | |||
| { | |||
| public: | |||
| explicit OpenGLRenderer (OpenGLComponent& target); | |||
| explicit OpenGLRenderer (OpenGLFrameBuffer& target); | |||
| ~OpenGLRenderer(); | |||
| bool isVectorDevice() const; | |||
| void setOrigin (int x, int y); | |||
| void addTransform (const AffineTransform&); | |||
| float getScaleFactor(); | |||
| bool clipToRectangle (const Rectangle<int>&); | |||
| bool clipToRectangleList (const RectangleList&); | |||
| void excludeClipRectangle (const Rectangle<int>&); | |||
| void clipToPath (const Path& path, const AffineTransform&); | |||
| void clipToImageAlpha (const Image& sourceImage, const AffineTransform&); | |||
| bool clipRegionIntersects (const Rectangle<int>&); | |||
| Rectangle<int> getClipBounds() const; | |||
| bool isClipEmpty() const; | |||
| void saveState(); | |||
| void restoreState(); | |||
| void beginTransparencyLayer (float opacity); | |||
| void endTransparencyLayer(); | |||
| void setFill (const FillType& fillType); | |||
| void setOpacity (float newOpacity); | |||
| void setInterpolationQuality (Graphics::ResamplingQuality); | |||
| void fillRect (const Rectangle<int>& r, bool replaceExistingContents); | |||
| void fillPath (const Path& path, const AffineTransform& transform); | |||
| void drawImage (const Image& sourceImage, const AffineTransform& transform); | |||
| void drawLine (const Line <float>& line); | |||
| void drawVerticalLine (int x, float top, float bottom); | |||
| void drawHorizontalLine (int y, float left, float right); | |||
| void setFont (const Font&); | |||
| Font getFont(); | |||
| void drawGlyph (int glyphNumber, const AffineTransform&); | |||
| #ifndef DOXYGEN | |||
| class SavedState; | |||
| #endif | |||
| private: | |||
| RenderingHelpers::SavedStateStack<SavedState> stack; | |||
| }; | |||
| #endif // __JUCE_OPENGLGRAPHICSCONTEXT_JUCEHEADER__ | |||
| @@ -35,13 +35,11 @@ void* OpenGLHelpers::getExtensionFunction (const char* functionName) | |||
| { | |||
| #if JUCE_WINDOWS | |||
| return (void*) wglGetProcAddress (functionName); | |||
| #elif JUCE_MAC | |||
| static void* handle = dlopen (nullptr, RTLD_LAZY); | |||
| return dlsym (handle, functionName); | |||
| #elif JUCE_LINUX | |||
| return (void*) glXGetProcAddress ((const GLubyte*) functionName); | |||
| #else | |||
| static void* handle = dlopen (nullptr, RTLD_LAZY); | |||
| return dlsym (handle, functionName); | |||
| #endif | |||
| } | |||
| @@ -38,7 +38,7 @@ OpenGLFrameBufferImage::~OpenGLFrameBufferImage() {} | |||
| LowLevelGraphicsContext* OpenGLFrameBufferImage::createLowLevelContext() | |||
| { | |||
| return new LowLevelGraphicsSoftwareRenderer (Image (this)); | |||
| return new OpenGLRenderer (frameBuffer); | |||
| } | |||
| Image::SharedImage* OpenGLFrameBufferImage::clone() | |||
| @@ -75,7 +75,24 @@ namespace OpenGLImageHelpers | |||
| static void read (OpenGLFrameBuffer& frameBuffer, Image::BitmapData& bitmapData, int x, int y) | |||
| { | |||
| frameBuffer.readPixels ((PixelARGB*) bitmapData.data, | |||
| Rectangle<int> (x, y, bitmapData.width, bitmapData.height)); | |||
| Rectangle<int> (x, frameBuffer.getHeight() - (y + bitmapData.height), bitmapData.width, bitmapData.height)); | |||
| verticalRowFlip ((PixelARGB*) bitmapData.data, bitmapData.width, bitmapData.height); | |||
| } | |||
| static void verticalRowFlip (PixelARGB* const data, const int w, const int h) | |||
| { | |||
| HeapBlock<PixelARGB> tempRow (w); | |||
| const int rowSize = sizeof (PixelARGB) * w; | |||
| for (int y = 0; y < h / 2; ++y) | |||
| { | |||
| PixelARGB* const row1 = data + y * w; | |||
| PixelARGB* const row2 = data + (h - 1 - y) * w; | |||
| memcpy (tempRow, row1, rowSize); | |||
| memcpy (row1, row2, rowSize); | |||
| memcpy (row2, tempRow, rowSize); | |||
| } | |||
| } | |||
| }; | |||
| @@ -87,7 +104,14 @@ namespace OpenGLImageHelpers | |||
| void write (const PixelARGB* const data) const noexcept | |||
| { | |||
| frameBuffer.writePixels (data, area); | |||
| HeapBlock<PixelARGB> invertedCopy (area.getWidth() * area.getHeight()); | |||
| const int rowSize = sizeof (PixelARGB) * area.getWidth(); | |||
| for (int y = 0; y < area.getHeight(); ++y) | |||
| memcpy (invertedCopy + area.getWidth() * y, | |||
| data + area.getWidth() * (area.getHeight() - 1 - y), rowSize); | |||
| frameBuffer.writePixels (invertedCopy, area); | |||
| } | |||
| OpenGLFrameBuffer& frameBuffer; | |||