├── .clang-format ├── .gitignore ├── Add.vcxproj ├── Add.vcxproj.filters ├── Add.vcxproj.user ├── AddSubtract.vcxproj ├── AddSubtract.vcxproj.filters ├── AddSubtract.vcxproj.user ├── Alea.vcxproj ├── Alea.vcxproj.filters ├── Alea.vcxproj.user ├── BGR.vcxproj ├── BGR.vcxproj.user ├── BarrelBlur.vcxproj ├── BarrelBlur.vcxproj.filters ├── BarrelBlur.vcxproj.user ├── Bloom.vcxproj ├── Bloom.vcxproj.user ├── CreationSilexars.vcxproj ├── CreationSilexars.vcxproj.filters ├── CreationSilexars.vcxproj.user ├── Dissolve.vcxproj ├── Dissolve.vcxproj.filters ├── Dissolve.vcxproj.user ├── FFGL Plugin.aps ├── FFGL Plugin.sln ├── FFGLPlugins.def ├── MovingGradient.vcxproj ├── MovingGradient.vcxproj.filters ├── MovingGradient.vcxproj.user ├── Polygon.vcxproj ├── Polygon.vcxproj.filters ├── Polygon.vcxproj.user ├── README.md ├── Scanline.vcxproj ├── Scanline.vcxproj.filters ├── Scanline.vcxproj.user ├── Screenshake.vcxproj ├── Screenshake.vcxproj.filters ├── Screenshake.vcxproj.user ├── Strobotime.vcxproj ├── Strobotime.vcxproj.filters ├── Strobotime.vcxproj.user ├── Triskel.vcxproj ├── Triskel.vcxproj.filters ├── Triskel.vcxproj.user ├── lib ├── FFGLSDK.cpp ├── FFGLSDK.h ├── ffgl │ ├── FFGL.cpp │ ├── FFGL.h │ ├── FFGLLib.h │ ├── FFGLPluginInfo.cpp │ ├── FFGLPluginInfo.h │ ├── FFGLPluginInfoData.cpp │ ├── FFGLPluginManager.cpp │ ├── FFGLPluginManager.h │ ├── FFGLPluginSDK.cpp │ └── FFGLPluginSDK.h ├── ffglex │ ├── FFGLFBO.cpp │ ├── FFGLFBO.h │ ├── FFGLScopedBufferBinding.cpp │ ├── FFGLScopedBufferBinding.h │ ├── FFGLScopedSamplerActivation.cpp │ ├── FFGLScopedSamplerActivation.h │ ├── FFGLScopedShaderBinding.cpp │ ├── FFGLScopedShaderBinding.h │ ├── FFGLScopedTextureBinding.cpp │ ├── FFGLScopedTextureBinding.h │ ├── FFGLScopedVAOBinding.cpp │ ├── FFGLScopedVAOBinding.h │ ├── FFGLScreenQuad.cpp │ ├── FFGLScreenQuad.h │ ├── FFGLShader.cpp │ ├── FFGLShader.h │ ├── FFGLUtilities.cpp │ └── FFGLUtilities.h └── glsdk_0_5_2 │ └── glload │ ├── glload.doxy │ ├── glload.lua │ ├── include │ ├── _int_gl_1_0.h │ ├── _int_gl_1_0.hpp │ ├── _int_gl_1_0_rem.h │ ├── _int_gl_1_0_rem.hpp │ ├── _int_gl_1_1.h │ ├── _int_gl_1_1.hpp │ ├── _int_gl_1_1_rem.h │ ├── _int_gl_1_1_rem.hpp │ ├── _int_gl_1_2.h │ ├── _int_gl_1_2.hpp │ ├── _int_gl_1_2_rem.h │ ├── _int_gl_1_2_rem.hpp │ ├── _int_gl_1_3.h │ ├── _int_gl_1_3.hpp │ ├── _int_gl_1_3_rem.h │ ├── _int_gl_1_3_rem.hpp │ ├── _int_gl_1_4.h │ ├── _int_gl_1_4.hpp │ ├── _int_gl_1_4_rem.h │ ├── _int_gl_1_4_rem.hpp │ ├── _int_gl_1_5.h │ ├── _int_gl_1_5.hpp │ ├── _int_gl_1_5_rem.h │ ├── _int_gl_1_5_rem.hpp │ ├── _int_gl_2_0.h │ ├── _int_gl_2_0.hpp │ ├── _int_gl_2_0_rem.h │ ├── _int_gl_2_0_rem.hpp │ ├── _int_gl_2_1.h │ ├── _int_gl_2_1.hpp │ ├── _int_gl_2_1_rem.h │ ├── _int_gl_2_1_rem.hpp │ ├── _int_gl_3_0.h │ ├── _int_gl_3_0.hpp │ ├── _int_gl_3_0_rem.h │ ├── _int_gl_3_0_rem.hpp │ ├── _int_gl_3_1.h │ ├── _int_gl_3_1.hpp │ ├── _int_gl_3_2.h │ ├── _int_gl_3_2.hpp │ ├── _int_gl_3_3.h │ ├── _int_gl_3_3.hpp │ ├── _int_gl_4_0.h │ ├── _int_gl_4_0.hpp │ ├── _int_gl_4_3.h │ ├── _int_gl_4_3.hpp │ ├── _int_gl_4_4.h │ ├── _int_gl_4_4.hpp │ ├── _int_gl_exts.h │ ├── _int_gl_exts.hpp │ ├── _int_gl_type.h │ ├── _int_gl_type.hpp │ ├── _int_glx_exts.h │ ├── _int_glx_exts.hpp │ ├── _int_glx_type.h │ ├── _int_glx_type.hpp │ ├── _int_load_test.hpp │ ├── _int_wgl_exts.h │ ├── _int_wgl_exts.hpp │ ├── _int_wgl_type.h │ ├── _int_wgl_type.hpp │ ├── gl_1_0.h │ ├── gl_1_0.hpp │ ├── gl_1_1.h │ ├── gl_1_1.hpp │ ├── gl_1_2.h │ ├── gl_1_2.hpp │ ├── gl_1_3.h │ ├── gl_1_3.hpp │ ├── gl_1_4.h │ ├── gl_1_4.hpp │ ├── gl_1_5.h │ ├── gl_1_5.hpp │ ├── gl_2_0.h │ ├── gl_2_0.hpp │ ├── gl_2_1.h │ ├── gl_2_1.hpp │ ├── gl_3_0.h │ ├── gl_3_0.hpp │ ├── gl_3_1.h │ ├── gl_3_1.hpp │ ├── gl_3_1_comp.h │ ├── gl_3_1_comp.hpp │ ├── gl_3_2.h │ ├── gl_3_2.hpp │ ├── gl_3_2_comp.h │ ├── gl_3_2_comp.hpp │ ├── gl_3_3.h │ ├── gl_3_3.hpp │ ├── gl_3_3_comp.h │ ├── gl_3_3_comp.hpp │ ├── gl_4_0.h │ ├── gl_4_0.hpp │ ├── gl_4_0_comp.h │ ├── gl_4_0_comp.hpp │ ├── gl_4_1.h │ ├── gl_4_1.hpp │ ├── gl_4_1_comp.h │ ├── gl_4_1_comp.hpp │ ├── gl_4_2.h │ ├── gl_4_2.hpp │ ├── gl_4_2_comp.h │ ├── gl_4_2_comp.hpp │ ├── gl_4_3.h │ ├── gl_4_3.hpp │ ├── gl_4_3_comp.h │ ├── gl_4_3_comp.hpp │ ├── gl_4_4.h │ ├── gl_4_4.hpp │ ├── gl_4_4_comp.h │ ├── gl_4_4_comp.hpp │ ├── gl_all.h │ ├── gl_all.hpp │ ├── gl_core.h │ ├── gl_core.hpp │ ├── gl_load.h │ ├── gl_load.hpp │ ├── glx_all.h │ ├── glx_all.hpp │ ├── glx_load.h │ ├── glx_load.hpp │ ├── wgl_all.h │ ├── wgl_all.hpp │ ├── wgl_load.h │ └── wgl_load.hpp │ └── source │ ├── gl_load.c │ ├── gl_load_cpp.cpp │ ├── glx_load.c │ ├── glx_load_cpp.cpp │ ├── wgl_load.c │ └── wgl_load_cpp.cpp └── src ├── api ├── Effect.cpp ├── Effect.h ├── Mixer.cpp ├── Mixer.h ├── Params.h ├── Plugin.cpp ├── Plugin.h ├── Source.cpp └── Source.h ├── examples ├── Add.cpp ├── Add.h ├── AddSubtract.cpp ├── AddSubtract.h ├── Alea.cpp ├── Alea.h ├── BGR.cpp ├── BGR.h ├── BarrelBlur.cpp ├── BarrelBlur.h ├── Bloom.cpp ├── Bloom.h ├── CreationSilexars.cpp ├── CreationSilexars.h ├── Dissolve.cpp ├── Dissolve.h ├── MovingGradient.cpp ├── MovingGradient.h ├── Polygon.cpp ├── Polygon.h ├── Scanline.cpp ├── Scanline.h ├── Screenshake.cpp ├── Screenshake.h ├── Strobotime.cpp ├── Strobotime.h ├── Triskel.cpp └── Triskel.h └── helpers ├── Audio.cpp ├── Audio.h └── Utils.h /.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | Language: Cpp 3 | AccessModifierOffset : -4 4 | AlignAfterOpenBracket: Align 5 | AlignConsecutiveAssignments : true 6 | AlignConsecutiveDeclarations : false 7 | AlignEscapedNewlines : Right 8 | AlignOperands : true 9 | AlignTrailingComments : true 10 | AllowAllParametersOfDeclarationOnNextLine : false 11 | AllowShortBlocksOnASingleLine : false 12 | AllowShortCaseLabelsOnASingleLine : false 13 | AllowShortFunctionsOnASingleLine : None 14 | AllowShortIfStatementsOnASingleLine : false 15 | AllowShortLoopsOnASingleLine : false 16 | # AlwaysBreakAfterDefinitionReturnType : None 17 | AlwaysBreakAfterReturnType : None 18 | AlwaysBreakBeforeMultilineStrings : false 19 | AlwaysBreakTemplateDeclarations : true 20 | BinPackArguments : false 21 | BinPackParameters: false 22 | BraceWrapping : 23 | AfterClass : true 24 | AfterControlStatement : true 25 | AfterEnum : true 26 | AfterFunction : true 27 | AfterNamespace : true 28 | AfterObjCDeclaration : true 29 | AfterStruct : true 30 | AfterUnion : true 31 | #AfterExternBlock: false 32 | BeforeCatch : true 33 | BeforeElse : true 34 | IndentBraces : false 35 | SplitEmptyFunction : true 36 | SplitEmptyRecord : true 37 | SplitEmptyNamespace : true 38 | BreakAfterJavaFieldAnnotations : true 39 | BreakBeforeBinaryOperators : None 40 | BreakBeforeBraces: Custom 41 | BreakBeforeInheritanceComma : false 42 | BreakBeforeTernaryOperators : false 43 | BreakConstructorInitializers : AfterColon 44 | BreakStringLiterals : false 45 | ColumnLimit : 0 46 | CompactNamespaces : false 47 | ConstructorInitializerAllOnOneLineOrOnePerLine : true 48 | ConstructorInitializerIndentWidth : 4 49 | ContinuationIndentWidth : 4 50 | Cpp11BracedListStyle : false 51 | DerivePointerAlignment : false 52 | #DisableFormat : true 53 | FixNamespaceComments : true 54 | ForEachMacros: 55 | - foreach 56 | #IncludeBlocks : Preserve 57 | IndentCaseLabels : false 58 | #IndentPPDirectives : AfterHash 59 | IndentWidth : 4 60 | IndentWrappedFunctionNames : true 61 | JavaScriptQuotes : Leave 62 | JavaScriptWrapImports : false 63 | KeepEmptyLinesAtTheStartOfBlocks : false 64 | MaxEmptyLinesToKeep : 1 65 | NamespaceIndentation : None 66 | #ObjCBinPackProtocolList: Always 67 | ObjCBlockIndentWidth : 4 68 | ObjCSpaceAfterProperty : false 69 | ObjCSpaceBeforeProtocolList : false 70 | PenaltyBreakAssignment : 0 71 | PenaltyBreakBeforeFirstCallParameter : 0 72 | PenaltyBreakComment : 0 73 | PenaltyBreakFirstLessLess : 0 74 | PenaltyBreakString : 0 75 | PenaltyExcessCharacter : 0 76 | PenaltyReturnTypeOnItsOwnLine : 0 77 | PointerAlignment : Left 78 | ReflowComments : false 79 | SortIncludes : false 80 | SortUsingDeclarations : false 81 | SpaceAfterCStyleCast : false 82 | SpaceAfterTemplateKeyword : false 83 | SpaceBeforeAssignmentOperators : true 84 | #SpaceBeforeCtorInitializerColon : true 85 | SpaceBeforeParens : Never 86 | #SpaceBeforeRangeBasedForLoopColon : true 87 | SpaceInEmptyParentheses : false 88 | SpacesBeforeTrailingComments : 0 89 | SpacesInAngles : true 90 | SpacesInCStyleCastParentheses : false 91 | SpacesInContainerLiterals : true 92 | SpacesInParentheses : true 93 | SpacesInSquareBrackets : true 94 | Standard : Cpp11 95 | TabWidth : 4 96 | UseTab : ForContinuationAndIndentation -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | x64/ 2 | binaries/ 3 | .vs/ -------------------------------------------------------------------------------- /Add.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | api 7 | 8 | 9 | api 10 | 11 | 12 | api 13 | 14 | 15 | api 16 | 17 | 18 | api 19 | 20 | 21 | lib 22 | 23 | 24 | lib 25 | 26 | 27 | 28 | 29 | 30 | api 31 | 32 | 33 | api 34 | 35 | 36 | api 37 | 38 | 39 | api 40 | 41 | 42 | api 43 | 44 | 45 | api 46 | 47 | 48 | 49 | 50 | {75aa6755-6de5-41e7-b5f2-ba669bc3896e} 51 | 52 | 53 | {1667922b-a87c-4167-a6cb-f8d9df6a29e6} 54 | 55 | 56 | -------------------------------------------------------------------------------- /Add.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /AddSubtract.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | api 7 | 8 | 9 | api 10 | 11 | 12 | api 13 | 14 | 15 | api 16 | 17 | 18 | api 19 | 20 | 21 | lib 22 | 23 | 24 | lib 25 | 26 | 27 | 28 | 29 | 30 | api 31 | 32 | 33 | api 34 | 35 | 36 | api 37 | 38 | 39 | api 40 | 41 | 42 | api 43 | 44 | 45 | api 46 | 47 | 48 | 49 | 50 | {cede20d0-14a2-40ed-b709-7c88ec1823c4} 51 | 52 | 53 | {02847dc9-a901-4b50-834a-36bf6c88630e} 54 | 55 | 56 | -------------------------------------------------------------------------------- /AddSubtract.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Alea.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | api 7 | 8 | 9 | api 10 | 11 | 12 | api 13 | 14 | 15 | api 16 | 17 | 18 | api 19 | 20 | 21 | lib 22 | 23 | 24 | lib 25 | 26 | 27 | 28 | 29 | 30 | api 31 | 32 | 33 | api 34 | 35 | 36 | api 37 | 38 | 39 | api 40 | 41 | 42 | api 43 | 44 | 45 | api 46 | 47 | 48 | api 49 | 50 | 51 | 52 | 53 | {2545c4d3-ce10-443b-9631-c845564847bc} 54 | 55 | 56 | {cff59b82-4eed-47b1-a430-3cefed1ff5aa} 57 | 58 | 59 | -------------------------------------------------------------------------------- /Alea.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /BGR.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /BarrelBlur.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | api 7 | 8 | 9 | api 10 | 11 | 12 | api 13 | 14 | 15 | api 16 | 17 | 18 | api 19 | 20 | 21 | lib 22 | 23 | 24 | lib 25 | 26 | 27 | 28 | 29 | 30 | api 31 | 32 | 33 | api 34 | 35 | 36 | api 37 | 38 | 39 | api 40 | 41 | 42 | api 43 | 44 | 45 | api 46 | 47 | 48 | 49 | 50 | {27b241f9-fa3c-4faf-9ed1-7bae099361cd} 51 | 52 | 53 | {09271159-cf81-462b-ab4e-5535ef08686c} 54 | 55 | 56 | -------------------------------------------------------------------------------- /BarrelBlur.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Bloom.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /CreationSilexars.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | lib 6 | 7 | 8 | lib 9 | 10 | 11 | api 12 | 13 | 14 | api 15 | 16 | 17 | api 18 | 19 | 20 | api 21 | 22 | 23 | api 24 | 25 | 26 | 27 | 28 | 29 | api 30 | 31 | 32 | api 33 | 34 | 35 | api 36 | 37 | 38 | api 39 | 40 | 41 | api 42 | 43 | 44 | api 45 | 46 | 47 | 48 | 49 | 50 | {80cd77d1-9f6a-4fd1-960a-f106d29ec9f8} 51 | 52 | 53 | {f0e1390a-e871-4074-a31f-112bbbf31a96} 54 | 55 | 56 | -------------------------------------------------------------------------------- /CreationSilexars.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Dissolve.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | lib 7 | 8 | 9 | lib 10 | 11 | 12 | api 13 | 14 | 15 | api 16 | 17 | 18 | api 19 | 20 | 21 | api 22 | 23 | 24 | api 25 | 26 | 27 | 28 | 29 | 30 | api 31 | 32 | 33 | api 34 | 35 | 36 | api 37 | 38 | 39 | api 40 | 41 | 42 | api 43 | 44 | 45 | api 46 | 47 | 48 | 49 | 50 | {cd553dc2-b051-463d-819e-1fb43ee4f0ef} 51 | 52 | 53 | {39d70b43-cac8-40b0-af20-a2d2722b0d0b} 54 | 55 | 56 | -------------------------------------------------------------------------------- /Dissolve.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /FFGL Plugin.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyingrub/FFGL-plugin-quickstart/e98650c0150382e0e1eac1ddeeb338ed6098957d/FFGL Plugin.aps -------------------------------------------------------------------------------- /FFGLPlugins.def: -------------------------------------------------------------------------------- 1 | 2 | EXPORTS plugMain 3 | -------------------------------------------------------------------------------- /MovingGradient.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | lib 6 | 7 | 8 | lib 9 | 10 | 11 | 12 | api 13 | 14 | 15 | api 16 | 17 | 18 | api 19 | 20 | 21 | api 22 | 23 | 24 | api 25 | 26 | 27 | 28 | 29 | 30 | api 31 | 32 | 33 | api 34 | 35 | 36 | api 37 | 38 | 39 | api 40 | 41 | 42 | api 43 | 44 | 45 | api 46 | 47 | 48 | 49 | 50 | {831b7acd-510c-4ac7-8a3c-479f36083c8a} 51 | 52 | 53 | {f0353912-dae1-4aae-a38a-f99e643fb73d} 54 | 55 | 56 | -------------------------------------------------------------------------------- /MovingGradient.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Polygon.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | lib 6 | 7 | 8 | lib 9 | 10 | 11 | api 12 | 13 | 14 | api 15 | 16 | 17 | api 18 | 19 | 20 | api 21 | 22 | 23 | api 24 | 25 | 26 | 27 | 28 | 29 | api 30 | 31 | 32 | api 33 | 34 | 35 | api 36 | 37 | 38 | api 39 | 40 | 41 | api 42 | 43 | 44 | api 45 | 46 | 47 | 48 | 49 | 50 | {1e011db8-1221-4d36-a40b-079909a3b1cb} 51 | 52 | 53 | {d7cdfaab-4991-43f9-bd9c-16d6d91fcd00} 54 | 55 | 56 | -------------------------------------------------------------------------------- /Polygon.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NOT UPDATED ANYMORE 2 | As this has been merged in https://github.com/resolume/ffgl, this repo will not be updated anymore. 3 | 4 | https://github.com/flyingrub/ffgl/tree/more provide a few more examples to see what this framework is capable of. 5 | 6 | # FFGL Plugin quickstart 7 | This repository is intended to be a little framework around the FFGL SDK. It takes care of all the boring stuff and let you focus on what you really want to do : be creative. 8 | 9 | ### How do I use this ? 10 | Everything you need to know to start to write your own plugin can be found on the [wiki](https://github.com/resolume/ffgl/wiki) of this repo. -------------------------------------------------------------------------------- /Scanline.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | api 6 | 7 | 8 | api 9 | 10 | 11 | api 12 | 13 | 14 | api 15 | 16 | 17 | api 18 | 19 | 20 | lib 21 | 22 | 23 | lib 24 | 25 | 26 | 27 | 28 | 29 | api 30 | 31 | 32 | api 33 | 34 | 35 | api 36 | 37 | 38 | api 39 | 40 | 41 | api 42 | 43 | 44 | api 45 | 46 | 47 | 48 | 49 | 50 | {1cc3d9c6-c2aa-4bf0-8f8f-728aae66d468} 51 | 52 | 53 | {12731fc0-33a5-4734-be75-76175ee7957a} 54 | 55 | 56 | -------------------------------------------------------------------------------- /Scanline.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Screenshake.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | lib 7 | 8 | 9 | lib 10 | 11 | 12 | api 13 | 14 | 15 | api 16 | 17 | 18 | api 19 | 20 | 21 | api 22 | 23 | 24 | api 25 | 26 | 27 | 28 | 29 | 30 | api 31 | 32 | 33 | api 34 | 35 | 36 | api 37 | 38 | 39 | api 40 | 41 | 42 | api 43 | 44 | 45 | api 46 | 47 | 48 | 49 | 50 | {cd39377e-2b62-4d0b-8e1d-7bd442e69dd9} 51 | 52 | 53 | {fdfe4a76-a567-4ef7-93fc-4bc4d3f740de} 54 | 55 | 56 | -------------------------------------------------------------------------------- /Screenshake.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Strobotime.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | api 6 | 7 | 8 | api 9 | 10 | 11 | api 12 | 13 | 14 | api 15 | 16 | 17 | api 18 | 19 | 20 | lib 21 | 22 | 23 | lib 24 | 25 | 26 | 27 | 28 | 29 | api 30 | 31 | 32 | api 33 | 34 | 35 | api 36 | 37 | 38 | api 39 | 40 | 41 | api 42 | 43 | 44 | api 45 | 46 | 47 | 48 | 49 | 50 | {07c1e186-9f1f-4154-a449-7d332e774721} 51 | 52 | 53 | {2d8c07f8-9edb-4880-9d49-1e3e44aa64ce} 54 | 55 | 56 | -------------------------------------------------------------------------------- /Strobotime.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Triskel.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | lib 6 | 7 | 8 | lib 9 | 10 | 11 | api 12 | 13 | 14 | api 15 | 16 | 17 | api 18 | 19 | 20 | api 21 | 22 | 23 | api 24 | 25 | 26 | 27 | 28 | 29 | api 30 | 31 | 32 | api 33 | 34 | 35 | api 36 | 37 | 38 | api 39 | 40 | 41 | api 42 | 43 | 44 | api 45 | 46 | 47 | 48 | 49 | 50 | {9af19624-1681-477e-91d8-c9ac639a47a5} 51 | 52 | 53 | {d5cb4a05-8637-4cc5-afb3-8865ff94ce1f} 54 | 55 | 56 | -------------------------------------------------------------------------------- /Triskel.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /lib/FFGLSDK.cpp: -------------------------------------------------------------------------------- 1 | #include "FFGLSDK.h" 2 | 3 | #include "ffgl/FFGL.cpp" 4 | #include "ffgl/FFGLPluginInfo.cpp" 5 | #include "ffgl/FFGLPluginInfoData.cpp" 6 | #include "ffgl/FFGLPluginManager.cpp" 7 | #include "ffgl/FFGLPluginSDK.cpp" 8 | 9 | #include "ffglex/FFGLFBO.cpp" 10 | #include "ffglex/FFGLScopedBufferBinding.cpp" 11 | #include "ffglex/FFGLScopedSamplerActivation.cpp" 12 | #include "ffglex/FFGLScopedShaderBinding.cpp" 13 | #include "ffglex/FFGLScopedTextureBinding.cpp" 14 | #include "ffglex/FFGLScopedVAOBinding.cpp" 15 | #include "ffglex/FFGLScreenQuad.cpp" 16 | #include "ffglex/FFGLShader.cpp" 17 | #include "ffglex/FFGLUtilities.cpp" 18 | 19 | #include "glsdk_0_5_2/glload/source/gl_load.c" -------------------------------------------------------------------------------- /lib/FFGLSDK.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "ffgl/FFGL.h" 3 | #include "ffgl/FFGLLib.h" 4 | #include "ffgl/FFGLPluginSDK.h" 5 | 6 | #include "ffglex/FFGLFBO.h" 7 | #include "ffglex/FFGLScopedBufferBinding.h" 8 | #include "ffglex/FFGLScopedSamplerActivation.h" 9 | #include "ffglex/FFGLScopedShaderBinding.h" 10 | #include "ffglex/FFGLScopedTextureBinding.h" 11 | #include "ffglex/FFGLScopedVAOBinding.h" 12 | #include "ffglex/FFGLScreenQuad.h" 13 | #include "ffglex/FFGLShader.h" 14 | #include "ffglex/FFGLUtilities.h" -------------------------------------------------------------------------------- /lib/ffgl/FFGLLib.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // FFGLLib.h 3 | // 4 | // FreeFrame is an open-source cross-platform real-time video effects plugin system. 5 | // It provides a framework for developing video effects plugins and hosts on Windows, 6 | // Linux and Mac OSX. 7 | // 8 | // Copyright (c) 2006 www.freeframe.org 9 | // All rights reserved. 10 | // 11 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 12 | 13 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 14 | // FFGLLib.h by Trey Harrison 15 | // www.harrisondigitalmedia.com 16 | // 17 | // Last modified: Oct 01 2018 by Menno Vink 18 | // email:menno@resolume.com 19 | // -Changed GLdouble to GLfloat 20 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 21 | 22 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 23 | // 24 | // Redistribution and use in source and binary forms, with or without modification, 25 | // are permitted provided that the following conditions are met: 26 | // 27 | // * Redistributions of source code must retain the above copyright 28 | // notice, this list of conditions and the following disclaimer. 29 | // * Redistributions in binary form must reproduce the above copyright 30 | // notice, this list of conditions and the following disclaimer in 31 | // the documentation and/or other materials provided with the 32 | // distribution. 33 | // * Neither the name of FreeFrame nor the names of its 34 | // contributors may be used to endorse or promote products derived 35 | // from this software without specific prior written permission. 36 | // 37 | // 38 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 39 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 40 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 41 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 42 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 43 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 44 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 45 | // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 46 | // OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 47 | // OF THE POSSIBILITY OF SUCH DAMAGE. 48 | // 49 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 50 | 51 | #ifndef __FFGLLIB_H__ 52 | #define __FFGLLIB_H__ 53 | 54 | //FFGLTexCoords 55 | typedef struct FFGLTexCoordsTag 56 | { 57 | GLfloat s, t; 58 | } FFGLTexCoords; 59 | 60 | //helper function to return the s,t,r coordinate 61 | //that cooresponds to the width,height,depth of the used 62 | //portion of the texture 63 | inline FFGLTexCoords GetMaxGLTexCoords( FFGLTextureStruct t ) 64 | { 65 | FFGLTexCoords texCoords; 66 | 67 | //the texture may only occupy a portion 68 | //of the allocated hardware texture memory 69 | 70 | //normalized (0..1) S and T coords 71 | texCoords.s = ( (GLfloat)t.Width ) / (GLfloat)t.HardwareWidth; 72 | texCoords.t = ( (GLfloat)t.Height ) / (GLfloat)t.HardwareHeight; 73 | 74 | return texCoords; 75 | } 76 | 77 | #endif 78 | -------------------------------------------------------------------------------- /lib/ffgl/FFGLPluginInfo.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) 2004 - InfoMus Lab - DIST - University of Genova 3 | // 4 | // InfoMus Lab (Laboratorio di Informatica Musicale) 5 | // DIST - University of Genova 6 | // 7 | // http://www.infomus.dist.unige.it 8 | // news://infomus.dist.unige.it 9 | // mailto:staff@infomus.dist.unige.it 10 | // 11 | // Developer: Gualtiero Volpe 12 | // mailto:volpe@infomus.dist.unige.it 13 | // 14 | // Last modified: 2004-11-10 15 | // 16 | 17 | #include "FFGLPluginInfo.h" 18 | #include 19 | #include 20 | #include 21 | 22 | extern CFFGLPluginInfo* g_CurrPluginInfo; 23 | 24 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 25 | // CFFGLPluginInfo constructor and destructor 26 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 27 | 28 | CFFGLPluginInfo::CFFGLPluginInfo( 29 | FPCREATEINSTANCEGL* pCreateInstance, 30 | const char* pchUniqueID, 31 | const char* pchPluginName, 32 | unsigned int dwAPIMajorVersion, 33 | unsigned int dwAPIMinorVersion, 34 | unsigned int dwPluginMajorVersion, 35 | unsigned int dwPluginMinorVersion, 36 | unsigned int dwPluginType, 37 | const char* pchDescription, 38 | const char* pchAbout, 39 | unsigned int dwFreeFrameExtendedDataSize, 40 | const void* pFreeFrameExtendedDataBlock ) 41 | { 42 | //This FFGL SDK is intended for developing plugins based on the FFGL 2.0 specification. Please 43 | //update your plugin code to use FFGL 2.0. 44 | assert( dwAPIMajorVersion >= 2 ); 45 | 46 | m_pCreateInstance = pCreateInstance; 47 | 48 | // Filling PluginInfoStruct 49 | m_PluginInfo.APIMajorVersion = dwAPIMajorVersion; 50 | m_PluginInfo.APIMinorVersion = dwAPIMinorVersion; 51 | 52 | bool bEndFound = false; 53 | for( int i = 0; ( i < 16 ) && ( !bEndFound ); ++i ) 54 | { 55 | if( pchPluginName[ i ] == 0 ) 56 | bEndFound = true; 57 | ( m_PluginInfo.PluginName )[ i ] = ( bEndFound ) ? 0 : pchPluginName[ i ]; 58 | } 59 | 60 | bEndFound = false; 61 | for( int j = 0; ( j < 4 ) && ( !bEndFound ); ++j ) 62 | { 63 | if( pchUniqueID[ j ] == 0 ) 64 | bEndFound = true; 65 | ( m_PluginInfo.PluginUniqueID )[ j ] = ( bEndFound ) ? 0 : pchUniqueID[ j ]; 66 | } 67 | 68 | m_PluginInfo.PluginType = dwPluginType; 69 | 70 | // Filling PluginExtendedInfoStruct 71 | m_PluginExtendedInfo.About = strdup( pchAbout ); 72 | m_PluginExtendedInfo.Description = strdup( pchDescription ); 73 | m_PluginExtendedInfo.PluginMajorVersion = dwPluginMajorVersion; 74 | m_PluginExtendedInfo.PluginMinorVersion = dwPluginMinorVersion; 75 | if( ( dwFreeFrameExtendedDataSize > 0 ) && ( pFreeFrameExtendedDataBlock != NULL ) ) 76 | { 77 | memcpy( m_PluginExtendedInfo.FreeFrameExtendedDataBlock, pFreeFrameExtendedDataBlock, dwFreeFrameExtendedDataSize ); 78 | m_PluginExtendedInfo.FreeFrameExtendedDataSize = dwFreeFrameExtendedDataSize; 79 | } 80 | else 81 | { 82 | m_PluginExtendedInfo.FreeFrameExtendedDataBlock = NULL; 83 | m_PluginExtendedInfo.FreeFrameExtendedDataSize = 0; 84 | } 85 | 86 | g_CurrPluginInfo = this; 87 | } 88 | 89 | CFFGLPluginInfo::~CFFGLPluginInfo() 90 | { 91 | free( m_PluginExtendedInfo.About ); 92 | free( m_PluginExtendedInfo.Description ); 93 | } 94 | 95 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 96 | // CFFGLPluginInfo methods 97 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 98 | 99 | const PluginInfoStruct* CFFGLPluginInfo::GetPluginInfo() const 100 | { 101 | return &m_PluginInfo; 102 | } 103 | 104 | const PluginExtendedInfoStruct* CFFGLPluginInfo::GetPluginExtendedInfo() const 105 | { 106 | return &m_PluginExtendedInfo; 107 | } 108 | 109 | FPCREATEINSTANCEGL* CFFGLPluginInfo::GetFactoryMethod() const 110 | { 111 | return m_pCreateInstance; 112 | } 113 | -------------------------------------------------------------------------------- /lib/ffgl/FFGLPluginInfoData.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // FFGLPluginInfoData.cpp 3 | // 4 | // Usually you do not need to edit this file! 5 | // 6 | 7 | #include "FFGLPluginInfo.h" 8 | 9 | ////////////////////////////////////////////////////////////////// 10 | // Information about the plugin 11 | ////////////////////////////////////////////////////////////////// 12 | 13 | CFFGLPluginInfo* g_CurrPluginInfo = NULL; 14 | 15 | ////////////////////////////////////////////////////////////////// 16 | // Plugin dll entry point 17 | ////////////////////////////////////////////////////////////////// 18 | #ifdef _WIN32 19 | BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) 20 | { 21 | return TRUE; 22 | } 23 | #endif 24 | -------------------------------------------------------------------------------- /lib/ffgl/FFGLPluginSDK.cpp: -------------------------------------------------------------------------------- 1 | #define _CRT_SECURE_NO_WARNINGS 2 | // 3 | // Copyright (c) 2004 - InfoMus Lab - DIST - University of Genova 4 | // 5 | // InfoMus Lab (Laboratorio di Informatica Musicale) 6 | // DIST - University of Genova 7 | // 8 | // http://www.infomus.dist.unige.it 9 | // news://infomus.dist.unige.it 10 | // mailto:staff@infomus.dist.unige.it 11 | // 12 | // Developer: Gualtiero Volpe 13 | // mailto:volpe@infomus.dist.unige.it 14 | // 15 | // Developer: Trey Harrison 16 | // mailto:trey@treyharrison.com 17 | // 18 | // Last modified: Oct. 26 2006 19 | // 20 | 21 | #include "FFGLPluginSDK.h" 22 | #include 23 | #include 24 | 25 | // Buffer used by the default implementation of getParameterDisplay 26 | static char s_DisplayValue[ 16 ]; 27 | 28 | //////////////////////////////////////////////////////// 29 | // CFreeFrameGLPlugin constructor and destructor 30 | //////////////////////////////////////////////////////// 31 | 32 | CFreeFrameGLPlugin::CFreeFrameGLPlugin() : 33 | CFFGLPluginManager(), 34 | bpm( 120.0f ), 35 | barPhase( 0.0f ) 36 | { 37 | } 38 | 39 | CFreeFrameGLPlugin::~CFreeFrameGLPlugin() 40 | { 41 | } 42 | 43 | //////////////////////////////////////////////////////// 44 | // Default implementation of CFreeFrameGLPlugin methods 45 | //////////////////////////////////////////////////////// 46 | 47 | char* CFreeFrameGLPlugin::GetParameterDisplay( unsigned int index ) 48 | { 49 | unsigned int pType = m_pPlugin->GetParamType( index ); 50 | if( pType != FF_FAIL ) 51 | { 52 | if( pType == FF_TYPE_TEXT ) 53 | { 54 | return m_pPlugin->GetTextParameter( index ); 55 | } 56 | else 57 | { 58 | std::string stringValue = std::to_string(m_pPlugin->GetFloatParameter( index )); 59 | memset(s_DisplayValue, 0, sizeof(s_DisplayValue)); 60 | memcpy(s_DisplayValue, stringValue.c_str(), std::min(sizeof(s_DisplayValue), stringValue.length())); 61 | return s_DisplayValue; 62 | } 63 | } 64 | return NULL; 65 | } 66 | 67 | FFResult CFreeFrameGLPlugin::SetFloatParameter( unsigned int index, float value ) 68 | { 69 | return FF_FAIL; 70 | } 71 | 72 | FFResult CFreeFrameGLPlugin::SetTextParameter( unsigned int index, const char* value ) 73 | { 74 | return FF_FAIL; 75 | } 76 | 77 | float CFreeFrameGLPlugin::GetFloatParameter( unsigned int index ) 78 | { 79 | return 0.0; 80 | } 81 | 82 | char* CFreeFrameGLPlugin::GetTextParameter( unsigned int index ) 83 | { 84 | return (char*)FF_FAIL; 85 | } 86 | 87 | FFResult CFreeFrameGLPlugin::GetInputStatus( unsigned int index ) 88 | { 89 | if( index >= GetMaxInputs() ) 90 | return FF_FAIL; 91 | return FF_INPUT_INUSE; 92 | } 93 | 94 | void CFreeFrameGLPlugin::SetBeatInfo( float bpm, float barPhase ) 95 | { 96 | this->bpm = bpm; 97 | this->barPhase = barPhase; 98 | } 99 | 100 | void CFreeFrameGLPlugin::SetHostInfo(const char * hostname, const char * version) 101 | { 102 | hostInfos.name = hostname; 103 | hostInfos.version = version; 104 | } 105 | 106 | void CFreeFrameGLPlugin::SetSampleRate(unsigned int _sampleRate) 107 | { 108 | sampleRate = _sampleRate; 109 | } 110 | 111 | -------------------------------------------------------------------------------- /lib/ffglex/FFGLFBO.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../ffgl/FFGL.h" 3 | 4 | namespace ffglex 5 | { 6 | class FFGLFBO 7 | { 8 | public: 9 | FFGLFBO(); 10 | 11 | int Create( int width, int height ); 12 | int Create( int width, int height, GLuint pixelFormat ); 13 | int BindAsRenderTarget(); 14 | int UnbindAsRenderTarget( GLuint hostFbo ); 15 | 16 | FFGLTextureStruct GetTextureInfo() const; 17 | void FreeResources(); 18 | void ResizeViewPort(); 19 | 20 | GLuint GetWidth() 21 | { 22 | return m_width; 23 | } 24 | GLuint GetHeight() 25 | { 26 | return m_height; 27 | } 28 | GLuint GetFBOHandle() const 29 | { 30 | return m_fboHandle; 31 | } 32 | 33 | protected: 34 | GLuint m_width; 35 | GLuint m_height; 36 | GLuint m_glWidth; 37 | GLuint m_glHeight; 38 | GLuint m_glPixelFormat; 39 | GLuint m_glTextureHandle; 40 | GLuint m_fboHandle; 41 | GLuint m_depthBufferHandle; 42 | }; 43 | 44 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLScopedBufferBinding.cpp: -------------------------------------------------------------------------------- 1 | #include "FFGLScopedBufferBinding.h" 2 | 3 | namespace ffglex 4 | { 5 | ScopedBufferBinding::ScopedBufferBinding( GLenum target, GLuint newBinding ) : 6 | target( target ), 7 | isBound( true ) 8 | { 9 | glBindBuffer( target, newBinding ); 10 | } 11 | ScopedBufferBinding::~ScopedBufferBinding() 12 | { 13 | EndScope(); 14 | } 15 | 16 | void ScopedBufferBinding::EndScope() 17 | { 18 | if( isBound ) 19 | { 20 | glBindBuffer( target, 0 ); 21 | isBound = false; 22 | } 23 | } 24 | 25 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLScopedBufferBinding.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../ffgl/FFGL.h"//For OpenGL 3 | 4 | namespace ffglex 5 | { 6 | class ScopedBufferBinding 7 | { 8 | public: 9 | ScopedBufferBinding( GLenum target, GLuint newBinding ); 10 | virtual ~ScopedBufferBinding(); 11 | 12 | void EndScope(); 13 | 14 | private: 15 | GLenum target; 16 | bool isBound; 17 | }; 18 | 19 | class ScopedVBOBinding : public ScopedBufferBinding 20 | { 21 | public: 22 | ScopedVBOBinding( GLuint vboID ) : 23 | ScopedBufferBinding( GL_ARRAY_BUFFER, vboID ) 24 | { 25 | } 26 | }; 27 | 28 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLScopedSamplerActivation.cpp: -------------------------------------------------------------------------------- 1 | #include "FFGLScopedSamplerActivation.h" 2 | 3 | namespace ffglex 4 | { 5 | ScopedSamplerActivation::ScopedSamplerActivation( GLuint samplerIndex ) : 6 | isBound( true ) 7 | { 8 | glActiveTexture( GL_TEXTURE0 + samplerIndex ); 9 | } 10 | ScopedSamplerActivation::~ScopedSamplerActivation() 11 | { 12 | EndScope(); 13 | } 14 | 15 | void ScopedSamplerActivation::EndScope() 16 | { 17 | if( isBound ) 18 | { 19 | glActiveTexture( GL_TEXTURE0 + 0 ); 20 | isBound = false; 21 | } 22 | } 23 | 24 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLScopedSamplerActivation.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../ffgl/FFGL.h"//For OpenGL 3 | 4 | namespace ffglex 5 | { 6 | class ScopedSamplerActivation 7 | { 8 | public: 9 | ScopedSamplerActivation( GLuint samplerIndex ); 10 | ~ScopedSamplerActivation(); 11 | 12 | void EndScope(); 13 | 14 | private: 15 | bool isBound; 16 | }; 17 | 18 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLScopedShaderBinding.cpp: -------------------------------------------------------------------------------- 1 | #include "FFGLScopedShaderBinding.h" 2 | 3 | namespace ffglex 4 | { 5 | ScopedShaderBinding::ScopedShaderBinding( GLuint shaderID ) : 6 | isBound( true ) 7 | { 8 | glUseProgram( shaderID ); 9 | } 10 | ScopedShaderBinding::~ScopedShaderBinding() 11 | { 12 | EndScope(); 13 | } 14 | 15 | void ScopedShaderBinding::EndScope() 16 | { 17 | if( isBound ) 18 | { 19 | glUseProgram( 0 ); 20 | isBound = false; 21 | } 22 | } 23 | 24 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLScopedShaderBinding.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../ffgl/FFGL.h"//For OpenGL 3 | 4 | namespace ffglex 5 | { 6 | class ScopedShaderBinding 7 | { 8 | public: 9 | ScopedShaderBinding( GLuint shaderID ); 10 | ~ScopedShaderBinding(); 11 | 12 | void EndScope(); 13 | 14 | private: 15 | bool isBound; 16 | }; 17 | 18 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLScopedTextureBinding.cpp: -------------------------------------------------------------------------------- 1 | #include "FFGLScopedTextureBinding.h" 2 | 3 | namespace ffglex 4 | { 5 | ScopedTextureBinding::ScopedTextureBinding( GLenum target, GLuint textureID ) : 6 | target( target ), 7 | isBound( true ) 8 | { 9 | glBindTexture( target, textureID ); 10 | } 11 | ScopedTextureBinding::~ScopedTextureBinding() 12 | { 13 | EndScope(); 14 | } 15 | 16 | void ScopedTextureBinding::EndScope() 17 | { 18 | if( isBound ) 19 | { 20 | glBindTexture( target, 0 ); 21 | isBound = false; 22 | } 23 | } 24 | 25 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLScopedTextureBinding.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../ffgl/FFGL.h"//For OpenGL 3 | 4 | namespace ffglex 5 | { 6 | class ScopedTextureBinding 7 | { 8 | public: 9 | ScopedTextureBinding( GLenum target, GLuint textureID ); 10 | virtual ~ScopedTextureBinding(); 11 | 12 | void EndScope(); 13 | 14 | private: 15 | GLenum target; 16 | bool isBound; 17 | }; 18 | 19 | class Scoped2DTextureBinding : public ScopedTextureBinding 20 | { 21 | public: 22 | Scoped2DTextureBinding( GLuint textureID ) : 23 | ScopedTextureBinding( GL_TEXTURE_2D, textureID ) 24 | { 25 | } 26 | }; 27 | 28 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLScopedVAOBinding.cpp: -------------------------------------------------------------------------------- 1 | #include "FFGLScopedVAOBinding.h" 2 | 3 | namespace ffglex 4 | { 5 | ScopedVAOBinding::ScopedVAOBinding( GLuint vaoID ) : 6 | isBound( true ) 7 | { 8 | glBindVertexArray( vaoID ); 9 | } 10 | ScopedVAOBinding::~ScopedVAOBinding() 11 | { 12 | EndScope(); 13 | } 14 | 15 | void ScopedVAOBinding::EndScope() 16 | { 17 | if( isBound ) 18 | { 19 | glBindVertexArray( 0 ); 20 | isBound = false; 21 | } 22 | } 23 | 24 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLScopedVAOBinding.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../ffgl/FFGL.h"//For OpenGL 3 | 4 | namespace ffglex 5 | { 6 | class ScopedVAOBinding 7 | { 8 | public: 9 | ScopedVAOBinding( GLuint vaoID ); 10 | ~ScopedVAOBinding(); 11 | 12 | void EndScope(); 13 | 14 | private: 15 | bool isBound; 16 | }; 17 | 18 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLScreenQuad.cpp: -------------------------------------------------------------------------------- 1 | #include "FFGLScreenQuad.h" 2 | #include 3 | #include "FFGLScopedVAOBinding.h" 4 | #include "FFGLScopedBufferBinding.h" 5 | #include "FFGLUtilities.h" 6 | 7 | namespace ffglex 8 | { 9 | 10 | FFGLScreenQuad::FFGLScreenQuad() : 11 | vaoID( 0 ), 12 | vboID( 0 ) 13 | { 14 | } 15 | FFGLScreenQuad::~FFGLScreenQuad() 16 | { 17 | //If any of these assertions hit you forgot to release this quad's gl resources. 18 | assert( vaoID == 0 ); 19 | assert( vaoID == 0 ); 20 | } 21 | 22 | /** 23 | * Allow this utility to load the data it requires to do it's rendering into it's buffers. 24 | * This function needs to be called using an active OpenGL context, for example in your plugin's 25 | * InitGL function. 26 | * 27 | * @return: Whether or not initialising this quad succeeded. 28 | */ 29 | bool FFGLScreenQuad::Initialise() 30 | { 31 | glGenVertexArrays( 1, &vaoID ); 32 | glGenBuffers( 1, &vboID ); 33 | if( vaoID == 0 || vboID == 0 ) 34 | { 35 | Release(); 36 | return false; 37 | } 38 | 39 | //FFGL requires us to leave the context in a default state, so use these scoped bindings to 40 | //help us restore the state after we're done. 41 | ScopedVAOBinding vaoBinding( vaoID ); 42 | ScopedVBOBinding vboBinding( vboID ); 43 | glBufferData( GL_ARRAY_BUFFER, sizeof( TEXTURED_QUAD_VERTICES ), TEXTURED_QUAD_VERTICES, GL_STATIC_DRAW ); 44 | 45 | glEnableVertexAttribArray( 0 ); 46 | glVertexAttribPointer( 0, 3, GL_FLOAT, false, sizeof( TEXTURED_QUAD_VERTICES[ 0 ] ), (char*)NULL + 2 * sizeof( float ) ); 47 | glEnableVertexAttribArray( 1 ); 48 | glVertexAttribPointer( 1, 2, GL_FLOAT, false, sizeof( TEXTURED_QUAD_VERTICES[ 0 ] ), (char*)NULL + 0 * sizeof( float ) ); 49 | 50 | //The array enablements are part of the vao binding and not the global context state so we dont have to disable those here. 51 | 52 | return true; 53 | } 54 | /** 55 | * Draw the quad. Depending on your vertex shader this will apply your fragment shader in the area where the quad ends up. 56 | * You need to have successfully initialised this quad before rendering it. 57 | */ 58 | void FFGLScreenQuad::Draw() 59 | { 60 | if( vaoID == 0 || vboID == 0 ) 61 | return; 62 | 63 | //Scoped binding to make sure we dont keep the vao bind after we're done rendering. 64 | ScopedVAOBinding vaoBinding( vaoID ); 65 | glDrawArrays( GL_TRIANGLES, 0, 6 ); 66 | } 67 | /** 68 | * Release the gpu resources this quad has loaded into vram. Call this before destruction if you've previously initialised us. 69 | */ 70 | void FFGLScreenQuad::Release() 71 | { 72 | glDeleteBuffers( 1, &vboID ); 73 | vboID = 0; 74 | glDeleteVertexArrays( 1, &vaoID ); 75 | vaoID = 0; 76 | } 77 | 78 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLScreenQuad.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../ffgl/FFGL.h"//For OpenGL 3 | #include 4 | 5 | namespace ffglex 6 | { 7 | /** 8 | * The ScreenQuad is a utility that helps you load vertex data representing a quad into a buffer 9 | * and setting up a vao to source it's vertex attributes from this buffer. You can then tell this 10 | * quad to draw itself which will use that buffer and vao to render the quad. 11 | */ 12 | class FFGLScreenQuad 13 | { 14 | public: 15 | FFGLScreenQuad(); 16 | FFGLScreenQuad( const FFGLScreenQuad& ) = delete; 17 | FFGLScreenQuad( FFGLScreenQuad&& ) = delete; 18 | ~FFGLScreenQuad(); 19 | 20 | bool Initialise(); //Allow this utility to load the data it requires to do it's rendering into it's buffers. 21 | void Draw(); //Draw the quad. Depending on your vertex shader this will apply your fragment shader in the area where the quad ends up. 22 | void Release(); //Release the gpu resources this quad has loaded into vram. Call this before destruction if you've previously initialised us. 23 | 24 | private: 25 | GLuint vaoID; 26 | GLuint vboID; 27 | }; 28 | 29 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/ffglex/FFGLShader.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../ffgl/FFGL.h"//For OpenGL 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | namespace ffglex 9 | { 10 | /** 11 | * The FFGLShader is a helper class you can use to compile glsl shader strings 12 | * and link them together into a shader program. You can then get the program id 13 | * and use it to bind the resulting shader to use it for the next rendering operation. 14 | */ 15 | class FFGLShader final 16 | { 17 | public: 18 | FFGLShader(); //The default constructor just initializes this object to represent no shader. 19 | ~FFGLShader(); //Destructing this object just checks and lets you know if you've properly released the GL resources. 20 | 21 | void AddTransformFeedbackVarying( const std::string& varyingName ); //Add a varying that will be captured using a transform feedback. 22 | bool Compile( const std::string& vertexShader, const std::string& fragmentShader ); //Compiles and links two shaders into a shader program. 23 | bool Compile( const char* vertexShader, const char* fragmentShader ); //Compiles and links two shaders into a shader program. 24 | bool Compile( const char* vertexShader, const char* geometryShader, const char* fragmentShader ); //Compiles and links a vertex/geometry/fragment shader into a single shader program. 25 | void FreeGLResources(); //Frees any GL resources that this shader is holding. 26 | 27 | bool IsReady() const; //Whether or not previous complilation succeeded and this shader is ready to be used for rendering. 28 | void Use() const; //Call glUseProgram with the current programID 29 | GLuint GetGLID() const; //Gets the OpenGL ID that represents the linked shader program. 30 | GLint FindUniform( const char* name ) const; //Finds the uniform location that needs to be used to addess a uniform with a certain name. 31 | void Set( const char* name, float value ); 32 | void Set( const char* name, float v1, float v2 ); 33 | void Set( const char* name, float v1, float v2, float v3 ); 34 | void Set( const char* name, int value ); 35 | void Bind( const char* name, int texture, const FFGLTextureStruct& fbo ); 36 | 37 | FFGLShader& operator=( const FFGLShader& ) = delete; 38 | FFGLShader& operator=( FFGLShader&& ) = delete; 39 | 40 | private: 41 | bool CompileVertexShader( const char* vertexShader ); //Internal utility function that tries to compile a vertex shader and updates the internal vertexShaderID. Doesn't clean up on failure. 42 | bool CompileGeometryShader( const char* geometryShader );//Internal utility function that tries to compile a geometry shader and updates the internal geometryShaderID. Doesn't clean up on failure. 43 | bool CompileFragmentShader( const char* fragmentShader );//Internal utility function that tries to compile a fragment shader and updates the internal fragmentShaderID. Doesn't clean up on failure. 44 | bool LinkProgram(); //Internal utility function that tries to link the two previously compiled vertex and fragment shaders into a program. Doesn't clean up on failure. 45 | 46 | GLuint vertexShaderID; //!< The ID OpenGL gave our vertex shader. 0 for invalid. 47 | GLuint geometryShaderID; //!< The ID OpenGL gave our geometry shader. 0 if not present or invalid. 48 | GLuint fragmentShaderID; //!< The ID OpenGL gave our fragment shader. 0 for invalid. 49 | GLuint programID; //!< The ID OpenGL gave our shader program. Bind this to use this shader. 0 for invalid. 50 | std::vector< std::string > transformFeedbackVaryings; //!< The varyings that will be captured using a transform feedback. Ordered in the order of capturing. 51 | std::map< std::string, int > uniformLocations; 52 | }; 53 | 54 | }//End namespace ffglex -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/glload.lua: -------------------------------------------------------------------------------- 1 | 2 | newoption { 3 | trigger = "plainc", 4 | description = "Set this to build GL Load without C++ support.", 5 | } 6 | 7 | 8 | project("glload") 9 | kind "StaticLib" 10 | includedirs {"include", "source"} 11 | targetdir "lib" 12 | 13 | if(_OPTIONS["plainc"]) then 14 | language "c" 15 | else 16 | language "c++" 17 | end 18 | 19 | files { 20 | "include/glload/gl_*.h", 21 | "include/glload/gl_*.hpp", 22 | "include/glload/gll.h", 23 | "include/glload/gll.hpp", 24 | "source/gl_*", 25 | }; 26 | 27 | configuration "plainc" 28 | excludes { 29 | "source/*.cpp", 30 | "include/glload/*.hpp", 31 | } 32 | 33 | configuration "windows" 34 | defines {"WIN32"} 35 | files {"include/glload/wgl_*.h",} 36 | files {"source/wgl_*"} 37 | 38 | configuration "linux" 39 | defines {"LOAD_X11"} 40 | files {"include/glload/glx_*.h"} 41 | files {"source/glx_*"} 42 | 43 | configuration "Debug" 44 | flags "Unicode"; 45 | defines {"DEBUG", "_DEBUG", "MEMORY_DEBUGGING"}; 46 | objdir "Debug"; 47 | flags "Symbols"; 48 | targetname "glloadD"; 49 | 50 | configuration "Release" 51 | defines {"NDEBUG", "RELEASE"}; 52 | flags "Unicode"; 53 | flags {"OptimizeSpeed", "NoFramePointer", "ExtraWarnings", "NoEditAndContinue"}; 54 | objdir "Release"; 55 | targetname "glload" 56 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_1_2.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_1_2_H 2 | #define OPENGL_GEN_CORE_1_2_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /*__cplusplus*/ 7 | #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E 8 | #define GL_BGR 0x80E0 9 | #define GL_CLAMP_TO_EDGE 0x812F 10 | #define GL_MAX_3D_TEXTURE_SIZE 0x8073 11 | #define GL_MAX_ELEMENTS_INDICES 0x80E9 12 | #define GL_MAX_ELEMENTS_VERTICES 0x80E8 13 | #define GL_PACK_IMAGE_HEIGHT 0x806C 14 | #define GL_PACK_SKIP_IMAGES 0x806B 15 | #define GL_PROXY_TEXTURE_3D 0x8070 16 | #define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 17 | #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 18 | #define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 19 | #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 20 | #define GL_TEXTURE_BASE_LEVEL 0x813C 21 | #define GL_TEXTURE_BINDING_3D 0x806A 22 | #define GL_TEXTURE_DEPTH 0x8071 23 | #define GL_TEXTURE_MAX_LEVEL 0x813D 24 | #define GL_TEXTURE_MAX_LOD 0x813B 25 | #define GL_TEXTURE_MIN_LOD 0x813A 26 | #define GL_TEXTURE_WRAP_R 0x8072 27 | #define GL_UNPACK_IMAGE_HEIGHT 0x806E 28 | #define GL_UNPACK_SKIP_IMAGES 0x806D 29 | #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 30 | #define GL_UNSIGNED_BYTE_3_3_2 0x8032 31 | #define GL_UNSIGNED_INT_10_10_10_2 0x8036 32 | #define GL_UNSIGNED_INT_8_8_8_8 0x8035 33 | #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 34 | #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 35 | #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 36 | #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 37 | #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 38 | #define GL_UNSIGNED_SHORT_5_6_5 0x8363 39 | #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 40 | 41 | typedef void (CODEGEN_FUNCPTR * PFNGLBLENDCOLORPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); 42 | typedef void (CODEGEN_FUNCPTR * PFNGLBLENDEQUATIONPROC)(GLenum mode); 43 | typedef void (CODEGEN_FUNCPTR * PFNGLCOPYTEXSUBIMAGE3DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); 44 | typedef void (CODEGEN_FUNCPTR * PFNGLDRAWRANGEELEMENTSPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices); 45 | typedef void (CODEGEN_FUNCPTR * PFNGLTEXIMAGE3DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels); 46 | typedef void (CODEGEN_FUNCPTR * PFNGLTEXSUBIMAGE3DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels); 47 | 48 | extern PFNGLBLENDCOLORPROC _funcptr_glBlendColor; 49 | #define glBlendColor _funcptr_glBlendColor 50 | extern PFNGLBLENDEQUATIONPROC _funcptr_glBlendEquation; 51 | #define glBlendEquation _funcptr_glBlendEquation 52 | extern PFNGLCOPYTEXSUBIMAGE3DPROC _funcptr_glCopyTexSubImage3D; 53 | #define glCopyTexSubImage3D _funcptr_glCopyTexSubImage3D 54 | extern PFNGLDRAWRANGEELEMENTSPROC _funcptr_glDrawRangeElements; 55 | #define glDrawRangeElements _funcptr_glDrawRangeElements 56 | extern PFNGLTEXIMAGE3DPROC _funcptr_glTexImage3D; 57 | #define glTexImage3D _funcptr_glTexImage3D 58 | extern PFNGLTEXSUBIMAGE3DPROC _funcptr_glTexSubImage3D; 59 | #define glTexSubImage3D _funcptr_glTexSubImage3D 60 | 61 | #ifdef __cplusplus 62 | } 63 | #endif /*__cplusplus*/ 64 | #endif /*OPENGL_GEN_CORE_1_2_H*/ 65 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_1_2.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_1_2_HPP 2 | #define OPENGL_GEN_CORE_1_2_HPP 3 | 4 | #include "_int_load_test.hpp" 5 | namespace gl 6 | { 7 | enum 8 | { 9 | ALIASED_LINE_WIDTH_RANGE = 0x846E, 10 | BGR = 0x80E0, 11 | CLAMP_TO_EDGE = 0x812F, 12 | MAX_3D_TEXTURE_SIZE = 0x8073, 13 | MAX_ELEMENTS_INDICES = 0x80E9, 14 | MAX_ELEMENTS_VERTICES = 0x80E8, 15 | PACK_IMAGE_HEIGHT = 0x806C, 16 | PACK_SKIP_IMAGES = 0x806B, 17 | PROXY_TEXTURE_3D = 0x8070, 18 | SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23, 19 | SMOOTH_LINE_WIDTH_RANGE = 0x0B22, 20 | SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13, 21 | SMOOTH_POINT_SIZE_RANGE = 0x0B12, 22 | TEXTURE_BASE_LEVEL = 0x813C, 23 | TEXTURE_BINDING_3D = 0x806A, 24 | TEXTURE_DEPTH = 0x8071, 25 | TEXTURE_MAX_LEVEL = 0x813D, 26 | TEXTURE_MAX_LOD = 0x813B, 27 | TEXTURE_MIN_LOD = 0x813A, 28 | TEXTURE_WRAP_R = 0x8072, 29 | UNPACK_IMAGE_HEIGHT = 0x806E, 30 | UNPACK_SKIP_IMAGES = 0x806D, 31 | UNSIGNED_BYTE_2_3_3_REV = 0x8362, 32 | UNSIGNED_BYTE_3_3_2 = 0x8032, 33 | UNSIGNED_INT_10_10_10_2 = 0x8036, 34 | UNSIGNED_INT_8_8_8_8 = 0x8035, 35 | UNSIGNED_INT_8_8_8_8_REV = 0x8367, 36 | UNSIGNED_SHORT_1_5_5_5_REV = 0x8366, 37 | UNSIGNED_SHORT_4_4_4_4 = 0x8033, 38 | UNSIGNED_SHORT_4_4_4_4_REV = 0x8365, 39 | UNSIGNED_SHORT_5_5_5_1 = 0x8034, 40 | UNSIGNED_SHORT_5_6_5 = 0x8363, 41 | UNSIGNED_SHORT_5_6_5_REV = 0x8364, 42 | }; 43 | 44 | namespace _detail 45 | { 46 | typedef void (CODEGEN_FUNCPTR * Proc_glBlendColor)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); 47 | typedef void (CODEGEN_FUNCPTR * Proc_glBlendEquation)(GLenum mode); 48 | typedef void (CODEGEN_FUNCPTR * Proc_glCopyTexSubImage3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); 49 | typedef void (CODEGEN_FUNCPTR * Proc_glDrawRangeElements)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices); 50 | typedef void (CODEGEN_FUNCPTR * Proc_glTexImage3D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels); 51 | typedef void (CODEGEN_FUNCPTR * Proc_glTexSubImage3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels); 52 | } 53 | 54 | extern _detail::Proc_glBlendColor BlendColor; 55 | extern _detail::Proc_glBlendEquation BlendEquation; 56 | extern _detail::Proc_glCopyTexSubImage3D CopyTexSubImage3D; 57 | extern _detail::Proc_glDrawRangeElements DrawRangeElements; 58 | extern _detail::Proc_glTexImage3D TexImage3D; 59 | extern _detail::Proc_glTexSubImage3D TexSubImage3D; 60 | 61 | } 62 | #endif /*OPENGL_GEN_CORE_1_2_HPP*/ 63 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_1_2_rem.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_REM1_2_H 2 | #define OPENGL_GEN_CORE_REM1_2_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /*__cplusplus*/ 7 | #define GL_ALIASED_POINT_SIZE_RANGE 0x846D 8 | #define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 9 | #define GL_RESCALE_NORMAL 0x803A 10 | #define GL_SEPARATE_SPECULAR_COLOR 0x81FA 11 | #define GL_SINGLE_COLOR 0x81F9 12 | 13 | 14 | 15 | #ifdef __cplusplus 16 | } 17 | #endif /*__cplusplus*/ 18 | #endif /*OPENGL_GEN_CORE_REM1_2_H*/ 19 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_1_2_rem.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_REM1_2_HPP 2 | #define OPENGL_GEN_CORE_REM1_2_HPP 3 | 4 | #include "_int_load_test.hpp" 5 | namespace gl 6 | { 7 | enum 8 | { 9 | ALIASED_POINT_SIZE_RANGE = 0x846D, 10 | LIGHT_MODEL_COLOR_CONTROL = 0x81F8, 11 | RESCALE_NORMAL = 0x803A, 12 | SEPARATE_SPECULAR_COLOR = 0x81FA, 13 | SINGLE_COLOR = 0x81F9, 14 | }; 15 | 16 | namespace _detail 17 | { 18 | } 19 | 20 | 21 | } 22 | #endif /*OPENGL_GEN_CORE_REM1_2_HPP*/ 23 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_1_4.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_1_4_H 2 | #define OPENGL_GEN_CORE_1_4_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /*__cplusplus*/ 7 | #define GL_BLEND_DST_ALPHA 0x80CA 8 | #define GL_BLEND_DST_RGB 0x80C8 9 | #define GL_BLEND_SRC_ALPHA 0x80CB 10 | #define GL_BLEND_SRC_RGB 0x80C9 11 | #define GL_DECR_WRAP 0x8508 12 | #define GL_DEPTH_COMPONENT16 0x81A5 13 | #define GL_DEPTH_COMPONENT24 0x81A6 14 | #define GL_DEPTH_COMPONENT32 0x81A7 15 | #define GL_INCR_WRAP 0x8507 16 | #define GL_MAX_TEXTURE_LOD_BIAS 0x84FD 17 | #define GL_MIRRORED_REPEAT 0x8370 18 | #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 19 | #define GL_TEXTURE_COMPARE_FUNC 0x884D 20 | #define GL_TEXTURE_COMPARE_MODE 0x884C 21 | #define GL_TEXTURE_DEPTH_SIZE 0x884A 22 | #define GL_TEXTURE_LOD_BIAS 0x8501 23 | 24 | typedef void (CODEGEN_FUNCPTR * PFNGLBLENDFUNCSEPARATEPROC)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); 25 | typedef void (CODEGEN_FUNCPTR * PFNGLMULTIDRAWARRAYSPROC)(GLenum mode, const GLint * first, const GLsizei * count, GLsizei drawcount); 26 | typedef void (CODEGEN_FUNCPTR * PFNGLMULTIDRAWELEMENTSPROC)(GLenum mode, const GLsizei * count, GLenum type, const GLvoid *const* indices, GLsizei drawcount); 27 | typedef void (CODEGEN_FUNCPTR * PFNGLPOINTPARAMETERFPROC)(GLenum pname, GLfloat param); 28 | typedef void (CODEGEN_FUNCPTR * PFNGLPOINTPARAMETERFVPROC)(GLenum pname, const GLfloat * params); 29 | typedef void (CODEGEN_FUNCPTR * PFNGLPOINTPARAMETERIPROC)(GLenum pname, GLint param); 30 | typedef void (CODEGEN_FUNCPTR * PFNGLPOINTPARAMETERIVPROC)(GLenum pname, const GLint * params); 31 | 32 | extern PFNGLBLENDFUNCSEPARATEPROC _funcptr_glBlendFuncSeparate; 33 | #define glBlendFuncSeparate _funcptr_glBlendFuncSeparate 34 | extern PFNGLMULTIDRAWARRAYSPROC _funcptr_glMultiDrawArrays; 35 | #define glMultiDrawArrays _funcptr_glMultiDrawArrays 36 | extern PFNGLMULTIDRAWELEMENTSPROC _funcptr_glMultiDrawElements; 37 | #define glMultiDrawElements _funcptr_glMultiDrawElements 38 | extern PFNGLPOINTPARAMETERFPROC _funcptr_glPointParameterf; 39 | #define glPointParameterf _funcptr_glPointParameterf 40 | extern PFNGLPOINTPARAMETERFVPROC _funcptr_glPointParameterfv; 41 | #define glPointParameterfv _funcptr_glPointParameterfv 42 | extern PFNGLPOINTPARAMETERIPROC _funcptr_glPointParameteri; 43 | #define glPointParameteri _funcptr_glPointParameteri 44 | extern PFNGLPOINTPARAMETERIVPROC _funcptr_glPointParameteriv; 45 | #define glPointParameteriv _funcptr_glPointParameteriv 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif /*__cplusplus*/ 50 | #endif /*OPENGL_GEN_CORE_1_4_H*/ 51 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_1_4.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_1_4_HPP 2 | #define OPENGL_GEN_CORE_1_4_HPP 3 | 4 | #include "_int_load_test.hpp" 5 | namespace gl 6 | { 7 | enum 8 | { 9 | BLEND_DST_ALPHA = 0x80CA, 10 | BLEND_DST_RGB = 0x80C8, 11 | BLEND_SRC_ALPHA = 0x80CB, 12 | BLEND_SRC_RGB = 0x80C9, 13 | DECR_WRAP = 0x8508, 14 | DEPTH_COMPONENT16 = 0x81A5, 15 | DEPTH_COMPONENT24 = 0x81A6, 16 | DEPTH_COMPONENT32 = 0x81A7, 17 | INCR_WRAP = 0x8507, 18 | MAX_TEXTURE_LOD_BIAS = 0x84FD, 19 | MIRRORED_REPEAT = 0x8370, 20 | POINT_FADE_THRESHOLD_SIZE = 0x8128, 21 | TEXTURE_COMPARE_FUNC = 0x884D, 22 | TEXTURE_COMPARE_MODE = 0x884C, 23 | TEXTURE_DEPTH_SIZE = 0x884A, 24 | TEXTURE_LOD_BIAS = 0x8501, 25 | }; 26 | 27 | namespace _detail 28 | { 29 | typedef void (CODEGEN_FUNCPTR * Proc_glBlendFuncSeparate)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); 30 | typedef void (CODEGEN_FUNCPTR * Proc_glMultiDrawArrays)(GLenum mode, const GLint * first, const GLsizei * count, GLsizei drawcount); 31 | typedef void (CODEGEN_FUNCPTR * Proc_glMultiDrawElements)(GLenum mode, const GLsizei * count, GLenum type, const GLvoid *const* indices, GLsizei drawcount); 32 | typedef void (CODEGEN_FUNCPTR * Proc_glPointParameterf)(GLenum pname, GLfloat param); 33 | typedef void (CODEGEN_FUNCPTR * Proc_glPointParameterfv)(GLenum pname, const GLfloat * params); 34 | typedef void (CODEGEN_FUNCPTR * Proc_glPointParameteri)(GLenum pname, GLint param); 35 | typedef void (CODEGEN_FUNCPTR * Proc_glPointParameteriv)(GLenum pname, const GLint * params); 36 | } 37 | 38 | extern _detail::Proc_glBlendFuncSeparate BlendFuncSeparate; 39 | extern _detail::Proc_glMultiDrawArrays MultiDrawArrays; 40 | extern _detail::Proc_glMultiDrawElements MultiDrawElements; 41 | extern _detail::Proc_glPointParameterf PointParameterf; 42 | extern _detail::Proc_glPointParameterfv PointParameterfv; 43 | extern _detail::Proc_glPointParameteri PointParameteri; 44 | extern _detail::Proc_glPointParameteriv PointParameteriv; 45 | 46 | } 47 | #endif /*OPENGL_GEN_CORE_1_4_HPP*/ 48 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_1_5.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_1_5_H 2 | #define OPENGL_GEN_CORE_1_5_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /*__cplusplus*/ 7 | #define GL_ARRAY_BUFFER 0x8892 8 | #define GL_ARRAY_BUFFER_BINDING 0x8894 9 | #define GL_BUFFER_ACCESS 0x88BB 10 | #define GL_BUFFER_MAPPED 0x88BC 11 | #define GL_BUFFER_MAP_POINTER 0x88BD 12 | #define GL_BUFFER_SIZE 0x8764 13 | #define GL_BUFFER_USAGE 0x8765 14 | #define GL_CURRENT_QUERY 0x8865 15 | #define GL_DYNAMIC_COPY 0x88EA 16 | #define GL_DYNAMIC_DRAW 0x88E8 17 | #define GL_DYNAMIC_READ 0x88E9 18 | #define GL_ELEMENT_ARRAY_BUFFER 0x8893 19 | #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 20 | #define GL_QUERY_COUNTER_BITS 0x8864 21 | #define GL_QUERY_RESULT 0x8866 22 | #define GL_QUERY_RESULT_AVAILABLE 0x8867 23 | #define GL_READ_ONLY 0x88B8 24 | #define GL_SAMPLES_PASSED 0x8914 25 | #define GL_STATIC_COPY 0x88E6 26 | #define GL_STATIC_DRAW 0x88E4 27 | #define GL_STATIC_READ 0x88E5 28 | #define GL_STREAM_COPY 0x88E2 29 | #define GL_STREAM_DRAW 0x88E0 30 | #define GL_STREAM_READ 0x88E1 31 | #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F 32 | 33 | typedef void (CODEGEN_FUNCPTR * PFNGLBEGINQUERYPROC)(GLenum target, GLuint id); 34 | typedef void (CODEGEN_FUNCPTR * PFNGLBINDBUFFERPROC)(GLenum target, GLuint buffer); 35 | typedef void (CODEGEN_FUNCPTR * PFNGLBUFFERDATAPROC)(GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage); 36 | typedef void (CODEGEN_FUNCPTR * PFNGLBUFFERSUBDATAPROC)(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data); 37 | typedef void (CODEGEN_FUNCPTR * PFNGLDELETEBUFFERSPROC)(GLsizei n, const GLuint * buffers); 38 | typedef void (CODEGEN_FUNCPTR * PFNGLDELETEQUERIESPROC)(GLsizei n, const GLuint * ids); 39 | typedef void (CODEGEN_FUNCPTR * PFNGLENDQUERYPROC)(GLenum target); 40 | typedef void (CODEGEN_FUNCPTR * PFNGLGENBUFFERSPROC)(GLsizei n, GLuint * buffers); 41 | typedef void (CODEGEN_FUNCPTR * PFNGLGENQUERIESPROC)(GLsizei n, GLuint * ids); 42 | typedef void (CODEGEN_FUNCPTR * PFNGLGETBUFFERPARAMETERIVPROC)(GLenum target, GLenum pname, GLint * params); 43 | typedef void (CODEGEN_FUNCPTR * PFNGLGETBUFFERPOINTERVPROC)(GLenum target, GLenum pname, GLvoid ** params); 44 | typedef void (CODEGEN_FUNCPTR * PFNGLGETBUFFERSUBDATAPROC)(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid * data); 45 | typedef void (CODEGEN_FUNCPTR * PFNGLGETQUERYOBJECTIVPROC)(GLuint id, GLenum pname, GLint * params); 46 | typedef void (CODEGEN_FUNCPTR * PFNGLGETQUERYOBJECTUIVPROC)(GLuint id, GLenum pname, GLuint * params); 47 | typedef void (CODEGEN_FUNCPTR * PFNGLGETQUERYIVPROC)(GLenum target, GLenum pname, GLint * params); 48 | typedef GLboolean (CODEGEN_FUNCPTR * PFNGLISBUFFERPROC)(GLuint buffer); 49 | typedef GLboolean (CODEGEN_FUNCPTR * PFNGLISQUERYPROC)(GLuint id); 50 | typedef void * (CODEGEN_FUNCPTR * PFNGLMAPBUFFERPROC)(GLenum target, GLenum access); 51 | typedef GLboolean (CODEGEN_FUNCPTR * PFNGLUNMAPBUFFERPROC)(GLenum target); 52 | 53 | extern PFNGLBEGINQUERYPROC _funcptr_glBeginQuery; 54 | #define glBeginQuery _funcptr_glBeginQuery 55 | extern PFNGLBINDBUFFERPROC _funcptr_glBindBuffer; 56 | #define glBindBuffer _funcptr_glBindBuffer 57 | extern PFNGLBUFFERDATAPROC _funcptr_glBufferData; 58 | #define glBufferData _funcptr_glBufferData 59 | extern PFNGLBUFFERSUBDATAPROC _funcptr_glBufferSubData; 60 | #define glBufferSubData _funcptr_glBufferSubData 61 | extern PFNGLDELETEBUFFERSPROC _funcptr_glDeleteBuffers; 62 | #define glDeleteBuffers _funcptr_glDeleteBuffers 63 | extern PFNGLDELETEQUERIESPROC _funcptr_glDeleteQueries; 64 | #define glDeleteQueries _funcptr_glDeleteQueries 65 | extern PFNGLENDQUERYPROC _funcptr_glEndQuery; 66 | #define glEndQuery _funcptr_glEndQuery 67 | extern PFNGLGENBUFFERSPROC _funcptr_glGenBuffers; 68 | #define glGenBuffers _funcptr_glGenBuffers 69 | extern PFNGLGENQUERIESPROC _funcptr_glGenQueries; 70 | #define glGenQueries _funcptr_glGenQueries 71 | extern PFNGLGETBUFFERPARAMETERIVPROC _funcptr_glGetBufferParameteriv; 72 | #define glGetBufferParameteriv _funcptr_glGetBufferParameteriv 73 | extern PFNGLGETBUFFERPOINTERVPROC _funcptr_glGetBufferPointerv; 74 | #define glGetBufferPointerv _funcptr_glGetBufferPointerv 75 | extern PFNGLGETBUFFERSUBDATAPROC _funcptr_glGetBufferSubData; 76 | #define glGetBufferSubData _funcptr_glGetBufferSubData 77 | extern PFNGLGETQUERYOBJECTIVPROC _funcptr_glGetQueryObjectiv; 78 | #define glGetQueryObjectiv _funcptr_glGetQueryObjectiv 79 | extern PFNGLGETQUERYOBJECTUIVPROC _funcptr_glGetQueryObjectuiv; 80 | #define glGetQueryObjectuiv _funcptr_glGetQueryObjectuiv 81 | extern PFNGLGETQUERYIVPROC _funcptr_glGetQueryiv; 82 | #define glGetQueryiv _funcptr_glGetQueryiv 83 | extern PFNGLISBUFFERPROC _funcptr_glIsBuffer; 84 | #define glIsBuffer _funcptr_glIsBuffer 85 | extern PFNGLISQUERYPROC _funcptr_glIsQuery; 86 | #define glIsQuery _funcptr_glIsQuery 87 | extern PFNGLMAPBUFFERPROC _funcptr_glMapBuffer; 88 | #define glMapBuffer _funcptr_glMapBuffer 89 | extern PFNGLUNMAPBUFFERPROC _funcptr_glUnmapBuffer; 90 | #define glUnmapBuffer _funcptr_glUnmapBuffer 91 | 92 | #ifdef __cplusplus 93 | } 94 | #endif /*__cplusplus*/ 95 | #endif /*OPENGL_GEN_CORE_1_5_H*/ 96 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_1_5.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_1_5_HPP 2 | #define OPENGL_GEN_CORE_1_5_HPP 3 | 4 | #include "_int_load_test.hpp" 5 | namespace gl 6 | { 7 | enum 8 | { 9 | ARRAY_BUFFER = 0x8892, 10 | ARRAY_BUFFER_BINDING = 0x8894, 11 | BUFFER_ACCESS = 0x88BB, 12 | BUFFER_MAPPED = 0x88BC, 13 | BUFFER_MAP_POINTER = 0x88BD, 14 | BUFFER_SIZE = 0x8764, 15 | BUFFER_USAGE = 0x8765, 16 | CURRENT_QUERY = 0x8865, 17 | DYNAMIC_COPY = 0x88EA, 18 | DYNAMIC_DRAW = 0x88E8, 19 | DYNAMIC_READ = 0x88E9, 20 | ELEMENT_ARRAY_BUFFER = 0x8893, 21 | ELEMENT_ARRAY_BUFFER_BINDING = 0x8895, 22 | QUERY_COUNTER_BITS = 0x8864, 23 | QUERY_RESULT = 0x8866, 24 | QUERY_RESULT_AVAILABLE = 0x8867, 25 | READ_ONLY = 0x88B8, 26 | SAMPLES_PASSED = 0x8914, 27 | STATIC_COPY = 0x88E6, 28 | STATIC_DRAW = 0x88E4, 29 | STATIC_READ = 0x88E5, 30 | STREAM_COPY = 0x88E2, 31 | STREAM_DRAW = 0x88E0, 32 | STREAM_READ = 0x88E1, 33 | VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F, 34 | }; 35 | 36 | namespace _detail 37 | { 38 | typedef void (CODEGEN_FUNCPTR * Proc_glBeginQuery)(GLenum target, GLuint id); 39 | typedef void (CODEGEN_FUNCPTR * Proc_glBindBuffer)(GLenum target, GLuint buffer); 40 | typedef void (CODEGEN_FUNCPTR * Proc_glBufferData)(GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage); 41 | typedef void (CODEGEN_FUNCPTR * Proc_glBufferSubData)(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data); 42 | typedef void (CODEGEN_FUNCPTR * Proc_glDeleteBuffers)(GLsizei n, const GLuint * buffers); 43 | typedef void (CODEGEN_FUNCPTR * Proc_glDeleteQueries)(GLsizei n, const GLuint * ids); 44 | typedef void (CODEGEN_FUNCPTR * Proc_glEndQuery)(GLenum target); 45 | typedef void (CODEGEN_FUNCPTR * Proc_glGenBuffers)(GLsizei n, GLuint * buffers); 46 | typedef void (CODEGEN_FUNCPTR * Proc_glGenQueries)(GLsizei n, GLuint * ids); 47 | typedef void (CODEGEN_FUNCPTR * Proc_glGetBufferParameteriv)(GLenum target, GLenum pname, GLint * params); 48 | typedef void (CODEGEN_FUNCPTR * Proc_glGetBufferPointerv)(GLenum target, GLenum pname, GLvoid ** params); 49 | typedef void (CODEGEN_FUNCPTR * Proc_glGetBufferSubData)(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid * data); 50 | typedef void (CODEGEN_FUNCPTR * Proc_glGetQueryObjectiv)(GLuint id, GLenum pname, GLint * params); 51 | typedef void (CODEGEN_FUNCPTR * Proc_glGetQueryObjectuiv)(GLuint id, GLenum pname, GLuint * params); 52 | typedef void (CODEGEN_FUNCPTR * Proc_glGetQueryiv)(GLenum target, GLenum pname, GLint * params); 53 | typedef GLboolean (CODEGEN_FUNCPTR * Proc_glIsBuffer)(GLuint buffer); 54 | typedef GLboolean (CODEGEN_FUNCPTR * Proc_glIsQuery)(GLuint id); 55 | typedef void * (CODEGEN_FUNCPTR * Proc_glMapBuffer)(GLenum target, GLenum access); 56 | typedef GLboolean (CODEGEN_FUNCPTR * Proc_glUnmapBuffer)(GLenum target); 57 | } 58 | 59 | extern _detail::Proc_glBeginQuery BeginQuery; 60 | extern _detail::Proc_glBindBuffer BindBuffer; 61 | extern _detail::Proc_glBufferData BufferData; 62 | extern _detail::Proc_glBufferSubData BufferSubData; 63 | extern _detail::Proc_glDeleteBuffers DeleteBuffers; 64 | extern _detail::Proc_glDeleteQueries DeleteQueries; 65 | extern _detail::Proc_glEndQuery EndQuery; 66 | extern _detail::Proc_glGenBuffers GenBuffers; 67 | extern _detail::Proc_glGenQueries GenQueries; 68 | extern _detail::Proc_glGetBufferParameteriv GetBufferParameteriv; 69 | extern _detail::Proc_glGetBufferPointerv GetBufferPointerv; 70 | extern _detail::Proc_glGetBufferSubData GetBufferSubData; 71 | extern _detail::Proc_glGetQueryObjectiv GetQueryObjectiv; 72 | extern _detail::Proc_glGetQueryObjectuiv GetQueryObjectuiv; 73 | extern _detail::Proc_glGetQueryiv GetQueryiv; 74 | extern _detail::Proc_glIsBuffer IsBuffer; 75 | extern _detail::Proc_glIsQuery IsQuery; 76 | extern _detail::Proc_glMapBuffer MapBuffer; 77 | extern _detail::Proc_glUnmapBuffer UnmapBuffer; 78 | 79 | } 80 | #endif /*OPENGL_GEN_CORE_1_5_HPP*/ 81 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_1_5_rem.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_REM1_5_H 2 | #define OPENGL_GEN_CORE_REM1_5_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /*__cplusplus*/ 7 | #define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 8 | #define GL_CURRENT_FOG_COORD 0x8453 9 | #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B 10 | #define GL_FOG_COORD 0x8451 11 | #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D 12 | #define GL_FOG_COORD_ARRAY 0x8457 13 | #define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D 14 | #define GL_FOG_COORD_ARRAY_POINTER 0x8456 15 | #define GL_FOG_COORD_ARRAY_STRIDE 0x8455 16 | #define GL_FOG_COORD_ARRAY_TYPE 0x8454 17 | #define GL_FOG_COORD_SRC 0x8450 18 | #define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 19 | #define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 20 | #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C 21 | #define GL_SRC0_ALPHA 0x8588 22 | #define GL_SRC0_RGB 0x8580 23 | #define GL_SRC1_RGB 0x8581 24 | #define GL_SRC2_ALPHA 0x858A 25 | #define GL_SRC2_RGB 0x8582 26 | #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A 27 | #define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 28 | #define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E 29 | 30 | 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif /*__cplusplus*/ 35 | #endif /*OPENGL_GEN_CORE_REM1_5_H*/ 36 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_1_5_rem.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_REM1_5_HPP 2 | #define OPENGL_GEN_CORE_REM1_5_HPP 3 | 4 | #include "_int_load_test.hpp" 5 | namespace gl 6 | { 7 | enum 8 | { 9 | COLOR_ARRAY_BUFFER_BINDING = 0x8898, 10 | CURRENT_FOG_COORD = 0x8453, 11 | EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B, 12 | FOG_COORD = 0x8451, 13 | FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D, 14 | FOG_COORD_ARRAY = 0x8457, 15 | FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D, 16 | FOG_COORD_ARRAY_POINTER = 0x8456, 17 | FOG_COORD_ARRAY_STRIDE = 0x8455, 18 | FOG_COORD_ARRAY_TYPE = 0x8454, 19 | FOG_COORD_SRC = 0x8450, 20 | INDEX_ARRAY_BUFFER_BINDING = 0x8899, 21 | NORMAL_ARRAY_BUFFER_BINDING = 0x8897, 22 | SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C, 23 | SRC0_ALPHA = 0x8588, 24 | SRC0_RGB = 0x8580, 25 | SRC1_RGB = 0x8581, 26 | SRC2_ALPHA = 0x858A, 27 | SRC2_RGB = 0x8582, 28 | TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A, 29 | VERTEX_ARRAY_BUFFER_BINDING = 0x8896, 30 | WEIGHT_ARRAY_BUFFER_BINDING = 0x889E, 31 | }; 32 | 33 | namespace _detail 34 | { 35 | } 36 | 37 | 38 | } 39 | #endif /*OPENGL_GEN_CORE_REM1_5_HPP*/ 40 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_2_0_rem.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_REM2_0_H 2 | #define OPENGL_GEN_CORE_REM2_0_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /*__cplusplus*/ 7 | #define GL_COORD_REPLACE 0x8862 8 | #define GL_MAX_TEXTURE_COORDS 0x8871 9 | #define GL_POINT_SPRITE 0x8861 10 | #define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643 11 | 12 | 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif /*__cplusplus*/ 17 | #endif /*OPENGL_GEN_CORE_REM2_0_H*/ 18 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_2_0_rem.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_REM2_0_HPP 2 | #define OPENGL_GEN_CORE_REM2_0_HPP 3 | 4 | #include "_int_load_test.hpp" 5 | namespace gl 6 | { 7 | enum 8 | { 9 | COORD_REPLACE = 0x8862, 10 | MAX_TEXTURE_COORDS = 0x8871, 11 | POINT_SPRITE = 0x8861, 12 | VERTEX_PROGRAM_TWO_SIDE = 0x8643, 13 | }; 14 | 15 | namespace _detail 16 | { 17 | } 18 | 19 | 20 | } 21 | #endif /*OPENGL_GEN_CORE_REM2_0_HPP*/ 22 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_2_1.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_2_1_H 2 | #define OPENGL_GEN_CORE_2_1_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /*__cplusplus*/ 7 | #define GL_COMPRESSED_SRGB 0x8C48 8 | #define GL_COMPRESSED_SRGB_ALPHA 0x8C49 9 | #define GL_FLOAT_MAT2x3 0x8B65 10 | #define GL_FLOAT_MAT2x4 0x8B66 11 | #define GL_FLOAT_MAT3x2 0x8B67 12 | #define GL_FLOAT_MAT3x4 0x8B68 13 | #define GL_FLOAT_MAT4x2 0x8B69 14 | #define GL_FLOAT_MAT4x3 0x8B6A 15 | #define GL_PIXEL_PACK_BUFFER 0x88EB 16 | #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED 17 | #define GL_PIXEL_UNPACK_BUFFER 0x88EC 18 | #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF 19 | #define GL_SRGB 0x8C40 20 | #define GL_SRGB8 0x8C41 21 | #define GL_SRGB8_ALPHA8 0x8C43 22 | #define GL_SRGB_ALPHA 0x8C42 23 | 24 | typedef void (CODEGEN_FUNCPTR * PFNGLUNIFORMMATRIX2X3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); 25 | typedef void (CODEGEN_FUNCPTR * PFNGLUNIFORMMATRIX2X4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); 26 | typedef void (CODEGEN_FUNCPTR * PFNGLUNIFORMMATRIX3X2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); 27 | typedef void (CODEGEN_FUNCPTR * PFNGLUNIFORMMATRIX3X4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); 28 | typedef void (CODEGEN_FUNCPTR * PFNGLUNIFORMMATRIX4X2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); 29 | typedef void (CODEGEN_FUNCPTR * PFNGLUNIFORMMATRIX4X3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); 30 | 31 | extern PFNGLUNIFORMMATRIX2X3FVPROC _funcptr_glUniformMatrix2x3fv; 32 | #define glUniformMatrix2x3fv _funcptr_glUniformMatrix2x3fv 33 | extern PFNGLUNIFORMMATRIX2X4FVPROC _funcptr_glUniformMatrix2x4fv; 34 | #define glUniformMatrix2x4fv _funcptr_glUniformMatrix2x4fv 35 | extern PFNGLUNIFORMMATRIX3X2FVPROC _funcptr_glUniformMatrix3x2fv; 36 | #define glUniformMatrix3x2fv _funcptr_glUniformMatrix3x2fv 37 | extern PFNGLUNIFORMMATRIX3X4FVPROC _funcptr_glUniformMatrix3x4fv; 38 | #define glUniformMatrix3x4fv _funcptr_glUniformMatrix3x4fv 39 | extern PFNGLUNIFORMMATRIX4X2FVPROC _funcptr_glUniformMatrix4x2fv; 40 | #define glUniformMatrix4x2fv _funcptr_glUniformMatrix4x2fv 41 | extern PFNGLUNIFORMMATRIX4X3FVPROC _funcptr_glUniformMatrix4x3fv; 42 | #define glUniformMatrix4x3fv _funcptr_glUniformMatrix4x3fv 43 | 44 | #ifdef __cplusplus 45 | } 46 | #endif /*__cplusplus*/ 47 | #endif /*OPENGL_GEN_CORE_2_1_H*/ 48 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_2_1.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_2_1_HPP 2 | #define OPENGL_GEN_CORE_2_1_HPP 3 | 4 | #include "_int_load_test.hpp" 5 | namespace gl 6 | { 7 | enum 8 | { 9 | COMPRESSED_SRGB = 0x8C48, 10 | COMPRESSED_SRGB_ALPHA = 0x8C49, 11 | FLOAT_MAT2x3 = 0x8B65, 12 | FLOAT_MAT2x4 = 0x8B66, 13 | FLOAT_MAT3x2 = 0x8B67, 14 | FLOAT_MAT3x4 = 0x8B68, 15 | FLOAT_MAT4x2 = 0x8B69, 16 | FLOAT_MAT4x3 = 0x8B6A, 17 | PIXEL_PACK_BUFFER = 0x88EB, 18 | PIXEL_PACK_BUFFER_BINDING = 0x88ED, 19 | PIXEL_UNPACK_BUFFER = 0x88EC, 20 | PIXEL_UNPACK_BUFFER_BINDING = 0x88EF, 21 | SRGB = 0x8C40, 22 | SRGB8 = 0x8C41, 23 | SRGB8_ALPHA8 = 0x8C43, 24 | SRGB_ALPHA = 0x8C42, 25 | }; 26 | 27 | namespace _detail 28 | { 29 | typedef void (CODEGEN_FUNCPTR * Proc_glUniformMatrix2x3fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); 30 | typedef void (CODEGEN_FUNCPTR * Proc_glUniformMatrix2x4fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); 31 | typedef void (CODEGEN_FUNCPTR * Proc_glUniformMatrix3x2fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); 32 | typedef void (CODEGEN_FUNCPTR * Proc_glUniformMatrix3x4fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); 33 | typedef void (CODEGEN_FUNCPTR * Proc_glUniformMatrix4x2fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); 34 | typedef void (CODEGEN_FUNCPTR * Proc_glUniformMatrix4x3fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); 35 | } 36 | 37 | extern _detail::Proc_glUniformMatrix2x3fv UniformMatrix2x3fv; 38 | extern _detail::Proc_glUniformMatrix2x4fv UniformMatrix2x4fv; 39 | extern _detail::Proc_glUniformMatrix3x2fv UniformMatrix3x2fv; 40 | extern _detail::Proc_glUniformMatrix3x4fv UniformMatrix3x4fv; 41 | extern _detail::Proc_glUniformMatrix4x2fv UniformMatrix4x2fv; 42 | extern _detail::Proc_glUniformMatrix4x3fv UniformMatrix4x3fv; 43 | 44 | } 45 | #endif /*OPENGL_GEN_CORE_2_1_HPP*/ 46 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_2_1_rem.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_REM2_1_H 2 | #define OPENGL_GEN_CORE_REM2_1_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /*__cplusplus*/ 7 | #define GL_COMPRESSED_SLUMINANCE 0x8C4A 8 | #define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B 9 | #define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F 10 | #define GL_SLUMINANCE 0x8C46 11 | #define GL_SLUMINANCE8 0x8C47 12 | #define GL_SLUMINANCE8_ALPHA8 0x8C45 13 | #define GL_SLUMINANCE_ALPHA 0x8C44 14 | 15 | 16 | 17 | #ifdef __cplusplus 18 | } 19 | #endif /*__cplusplus*/ 20 | #endif /*OPENGL_GEN_CORE_REM2_1_H*/ 21 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_2_1_rem.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_REM2_1_HPP 2 | #define OPENGL_GEN_CORE_REM2_1_HPP 3 | 4 | #include "_int_load_test.hpp" 5 | namespace gl 6 | { 7 | enum 8 | { 9 | COMPRESSED_SLUMINANCE = 0x8C4A, 10 | COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B, 11 | CURRENT_RASTER_SECONDARY_COLOR = 0x845F, 12 | SLUMINANCE = 0x8C46, 13 | SLUMINANCE8 = 0x8C47, 14 | SLUMINANCE8_ALPHA8 = 0x8C45, 15 | SLUMINANCE_ALPHA = 0x8C44, 16 | }; 17 | 18 | namespace _detail 19 | { 20 | } 21 | 22 | 23 | } 24 | #endif /*OPENGL_GEN_CORE_REM2_1_HPP*/ 25 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_3_0_rem.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_REM3_0_H 2 | #define OPENGL_GEN_CORE_REM3_0_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /*__cplusplus*/ 7 | #define GL_ALPHA_INTEGER 0x8D97 8 | #define GL_CLAMP_FRAGMENT_COLOR 0x891B 9 | #define GL_CLAMP_VERTEX_COLOR 0x891A 10 | 11 | 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif /*__cplusplus*/ 16 | #endif /*OPENGL_GEN_CORE_REM3_0_H*/ 17 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_3_0_rem.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_REM3_0_HPP 2 | #define OPENGL_GEN_CORE_REM3_0_HPP 3 | 4 | #include "_int_load_test.hpp" 5 | namespace gl 6 | { 7 | enum 8 | { 9 | ALPHA_INTEGER = 0x8D97, 10 | CLAMP_FRAGMENT_COLOR = 0x891B, 11 | CLAMP_VERTEX_COLOR = 0x891A, 12 | }; 13 | 14 | namespace _detail 15 | { 16 | } 17 | 18 | 19 | } 20 | #endif /*OPENGL_GEN_CORE_REM3_0_HPP*/ 21 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_3_1.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_3_1_H 2 | #define OPENGL_GEN_CORE_3_1_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /*__cplusplus*/ 7 | #define GL_INT_SAMPLER_2D_RECT 0x8DCD 8 | #define GL_INT_SAMPLER_BUFFER 0x8DD0 9 | #define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 10 | #define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B 11 | #define GL_PRIMITIVE_RESTART 0x8F9D 12 | #define GL_PRIMITIVE_RESTART_INDEX 0x8F9E 13 | #define GL_PROXY_TEXTURE_RECTANGLE 0x84F7 14 | #define GL_SAMPLER_2D_RECT 0x8B63 15 | #define GL_SAMPLER_2D_RECT_SHADOW 0x8B64 16 | #define GL_SAMPLER_BUFFER 0x8DC2 17 | #define GL_TEXTURE_BINDING_BUFFER 0x8C2C 18 | #define GL_TEXTURE_BINDING_RECTANGLE 0x84F6 19 | #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D 20 | #define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 21 | #define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 22 | 23 | typedef void (CODEGEN_FUNCPTR * PFNGLCOPYBUFFERSUBDATAPROC)(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); 24 | typedef void (CODEGEN_FUNCPTR * PFNGLDRAWARRAYSINSTANCEDPROC)(GLenum mode, GLint first, GLsizei count, GLsizei instancecount); 25 | typedef void (CODEGEN_FUNCPTR * PFNGLDRAWELEMENTSINSTANCEDPROC)(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices, GLsizei instancecount); 26 | typedef void (CODEGEN_FUNCPTR * PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformBlockName); 27 | typedef void (CODEGEN_FUNCPTR * PFNGLGETACTIVEUNIFORMBLOCKIVPROC)(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint * params); 28 | typedef void (CODEGEN_FUNCPTR * PFNGLGETACTIVEUNIFORMNAMEPROC)(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformName); 29 | typedef void (CODEGEN_FUNCPTR * PFNGLGETACTIVEUNIFORMSIVPROC)(GLuint program, GLsizei uniformCount, const GLuint * uniformIndices, GLenum pname, GLint * params); 30 | typedef GLuint (CODEGEN_FUNCPTR * PFNGLGETUNIFORMBLOCKINDEXPROC)(GLuint program, const GLchar * uniformBlockName); 31 | typedef void (CODEGEN_FUNCPTR * PFNGLGETUNIFORMINDICESPROC)(GLuint program, GLsizei uniformCount, const GLchar *const* uniformNames, GLuint * uniformIndices); 32 | typedef void (CODEGEN_FUNCPTR * PFNGLPRIMITIVERESTARTINDEXPROC)(GLuint index); 33 | typedef void (CODEGEN_FUNCPTR * PFNGLTEXBUFFERPROC)(GLenum target, GLenum internalformat, GLuint buffer); 34 | typedef void (CODEGEN_FUNCPTR * PFNGLUNIFORMBLOCKBINDINGPROC)(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); 35 | 36 | extern PFNGLCOPYBUFFERSUBDATAPROC _funcptr_glCopyBufferSubData; 37 | #define glCopyBufferSubData _funcptr_glCopyBufferSubData 38 | extern PFNGLDRAWARRAYSINSTANCEDPROC _funcptr_glDrawArraysInstanced; 39 | #define glDrawArraysInstanced _funcptr_glDrawArraysInstanced 40 | extern PFNGLDRAWELEMENTSINSTANCEDPROC _funcptr_glDrawElementsInstanced; 41 | #define glDrawElementsInstanced _funcptr_glDrawElementsInstanced 42 | extern PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC _funcptr_glGetActiveUniformBlockName; 43 | #define glGetActiveUniformBlockName _funcptr_glGetActiveUniformBlockName 44 | extern PFNGLGETACTIVEUNIFORMBLOCKIVPROC _funcptr_glGetActiveUniformBlockiv; 45 | #define glGetActiveUniformBlockiv _funcptr_glGetActiveUniformBlockiv 46 | extern PFNGLGETACTIVEUNIFORMNAMEPROC _funcptr_glGetActiveUniformName; 47 | #define glGetActiveUniformName _funcptr_glGetActiveUniformName 48 | extern PFNGLGETACTIVEUNIFORMSIVPROC _funcptr_glGetActiveUniformsiv; 49 | #define glGetActiveUniformsiv _funcptr_glGetActiveUniformsiv 50 | extern PFNGLGETUNIFORMBLOCKINDEXPROC _funcptr_glGetUniformBlockIndex; 51 | #define glGetUniformBlockIndex _funcptr_glGetUniformBlockIndex 52 | extern PFNGLGETUNIFORMINDICESPROC _funcptr_glGetUniformIndices; 53 | #define glGetUniformIndices _funcptr_glGetUniformIndices 54 | extern PFNGLPRIMITIVERESTARTINDEXPROC _funcptr_glPrimitiveRestartIndex; 55 | #define glPrimitiveRestartIndex _funcptr_glPrimitiveRestartIndex 56 | extern PFNGLTEXBUFFERPROC _funcptr_glTexBuffer; 57 | #define glTexBuffer _funcptr_glTexBuffer 58 | extern PFNGLUNIFORMBLOCKBINDINGPROC _funcptr_glUniformBlockBinding; 59 | #define glUniformBlockBinding _funcptr_glUniformBlockBinding 60 | 61 | #ifdef __cplusplus 62 | } 63 | #endif /*__cplusplus*/ 64 | #endif /*OPENGL_GEN_CORE_3_1_H*/ 65 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_3_1.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_3_1_HPP 2 | #define OPENGL_GEN_CORE_3_1_HPP 3 | 4 | #include "_int_load_test.hpp" 5 | namespace gl 6 | { 7 | enum 8 | { 9 | INT_SAMPLER_2D_RECT = 0x8DCD, 10 | INT_SAMPLER_BUFFER = 0x8DD0, 11 | MAX_RECTANGLE_TEXTURE_SIZE = 0x84F8, 12 | MAX_TEXTURE_BUFFER_SIZE = 0x8C2B, 13 | PRIMITIVE_RESTART = 0x8F9D, 14 | PRIMITIVE_RESTART_INDEX = 0x8F9E, 15 | PROXY_TEXTURE_RECTANGLE = 0x84F7, 16 | SAMPLER_2D_RECT = 0x8B63, 17 | SAMPLER_2D_RECT_SHADOW = 0x8B64, 18 | SAMPLER_BUFFER = 0x8DC2, 19 | TEXTURE_BINDING_BUFFER = 0x8C2C, 20 | TEXTURE_BINDING_RECTANGLE = 0x84F6, 21 | TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D, 22 | UNSIGNED_INT_SAMPLER_2D_RECT = 0x8DD5, 23 | UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8, 24 | }; 25 | 26 | namespace _detail 27 | { 28 | typedef void (CODEGEN_FUNCPTR * Proc_glCopyBufferSubData)(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); 29 | typedef void (CODEGEN_FUNCPTR * Proc_glDrawArraysInstanced)(GLenum mode, GLint first, GLsizei count, GLsizei instancecount); 30 | typedef void (CODEGEN_FUNCPTR * Proc_glDrawElementsInstanced)(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices, GLsizei instancecount); 31 | typedef void (CODEGEN_FUNCPTR * Proc_glGetActiveUniformBlockName)(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformBlockName); 32 | typedef void (CODEGEN_FUNCPTR * Proc_glGetActiveUniformBlockiv)(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint * params); 33 | typedef void (CODEGEN_FUNCPTR * Proc_glGetActiveUniformName)(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformName); 34 | typedef void (CODEGEN_FUNCPTR * Proc_glGetActiveUniformsiv)(GLuint program, GLsizei uniformCount, const GLuint * uniformIndices, GLenum pname, GLint * params); 35 | typedef GLuint (CODEGEN_FUNCPTR * Proc_glGetUniformBlockIndex)(GLuint program, const GLchar * uniformBlockName); 36 | typedef void (CODEGEN_FUNCPTR * Proc_glGetUniformIndices)(GLuint program, GLsizei uniformCount, const GLchar *const* uniformNames, GLuint * uniformIndices); 37 | typedef void (CODEGEN_FUNCPTR * Proc_glPrimitiveRestartIndex)(GLuint index); 38 | typedef void (CODEGEN_FUNCPTR * Proc_glTexBuffer)(GLenum target, GLenum internalformat, GLuint buffer); 39 | typedef void (CODEGEN_FUNCPTR * Proc_glUniformBlockBinding)(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); 40 | } 41 | 42 | extern _detail::Proc_glCopyBufferSubData CopyBufferSubData; 43 | extern _detail::Proc_glDrawArraysInstanced DrawArraysInstanced; 44 | extern _detail::Proc_glDrawElementsInstanced DrawElementsInstanced; 45 | extern _detail::Proc_glGetActiveUniformBlockName GetActiveUniformBlockName; 46 | extern _detail::Proc_glGetActiveUniformBlockiv GetActiveUniformBlockiv; 47 | extern _detail::Proc_glGetActiveUniformName GetActiveUniformName; 48 | extern _detail::Proc_glGetActiveUniformsiv GetActiveUniformsiv; 49 | extern _detail::Proc_glGetUniformBlockIndex GetUniformBlockIndex; 50 | extern _detail::Proc_glGetUniformIndices GetUniformIndices; 51 | extern _detail::Proc_glPrimitiveRestartIndex PrimitiveRestartIndex; 52 | extern _detail::Proc_glTexBuffer TexBuffer; 53 | extern _detail::Proc_glUniformBlockBinding UniformBlockBinding; 54 | 55 | } 56 | #endif /*OPENGL_GEN_CORE_3_1_HPP*/ 57 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_3_2.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_3_2_HPP 2 | #define OPENGL_GEN_CORE_3_2_HPP 3 | 4 | #include "_int_load_test.hpp" 5 | namespace gl 6 | { 7 | enum 8 | { 9 | CONTEXT_COMPATIBILITY_PROFILE_BIT = 0x00000002, 10 | CONTEXT_CORE_PROFILE_BIT = 0x00000001, 11 | CONTEXT_PROFILE_MASK = 0x9126, 12 | FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7, 13 | FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8, 14 | GEOMETRY_INPUT_TYPE = 0x8917, 15 | GEOMETRY_OUTPUT_TYPE = 0x8918, 16 | GEOMETRY_SHADER = 0x8DD9, 17 | GEOMETRY_VERTICES_OUT = 0x8916, 18 | LINES_ADJACENCY = 0x000A, 19 | LINE_STRIP_ADJACENCY = 0x000B, 20 | MAX_FRAGMENT_INPUT_COMPONENTS = 0x9125, 21 | MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123, 22 | MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124, 23 | MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0, 24 | MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29, 25 | MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1, 26 | MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF, 27 | MAX_VERTEX_OUTPUT_COMPONENTS = 0x9122, 28 | PROGRAM_POINT_SIZE = 0x8642, 29 | TRIANGLES_ADJACENCY = 0x000C, 30 | TRIANGLE_STRIP_ADJACENCY = 0x000D, 31 | }; 32 | 33 | namespace _detail 34 | { 35 | typedef GLenum (CODEGEN_FUNCPTR * Proc_glClientWaitSync)(GLsync sync, GLbitfield flags, GLuint64 timeout); 36 | typedef void (CODEGEN_FUNCPTR * Proc_glDeleteSync)(GLsync sync); 37 | typedef void (CODEGEN_FUNCPTR * Proc_glDrawElementsBaseVertex)(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices, GLint basevertex); 38 | typedef void (CODEGEN_FUNCPTR * Proc_glDrawElementsInstancedBaseVertex)(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices, GLsizei instancecount, GLint basevertex); 39 | typedef void (CODEGEN_FUNCPTR * Proc_glDrawRangeElementsBaseVertex)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices, GLint basevertex); 40 | typedef GLsync (CODEGEN_FUNCPTR * Proc_glFenceSync)(GLenum condition, GLbitfield flags); 41 | typedef void (CODEGEN_FUNCPTR * Proc_glFramebufferTexture)(GLenum target, GLenum attachment, GLuint texture, GLint level); 42 | typedef void (CODEGEN_FUNCPTR * Proc_glGetBufferParameteri64v)(GLenum target, GLenum pname, GLint64 * params); 43 | typedef void (CODEGEN_FUNCPTR * Proc_glGetInteger64i_v)(GLenum target, GLuint index, GLint64 * data); 44 | typedef void (CODEGEN_FUNCPTR * Proc_glGetInteger64v)(GLenum pname, GLint64 * params); 45 | typedef void (CODEGEN_FUNCPTR * Proc_glGetMultisamplefv)(GLenum pname, GLuint index, GLfloat * val); 46 | typedef void (CODEGEN_FUNCPTR * Proc_glGetSynciv)(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei * length, GLint * values); 47 | typedef GLboolean (CODEGEN_FUNCPTR * Proc_glIsSync)(GLsync sync); 48 | typedef void (CODEGEN_FUNCPTR * Proc_glMultiDrawElementsBaseVertex)(GLenum mode, const GLsizei * count, GLenum type, const GLvoid *const* indices, GLsizei drawcount, const GLint * basevertex); 49 | typedef void (CODEGEN_FUNCPTR * Proc_glProvokingVertex)(GLenum mode); 50 | typedef void (CODEGEN_FUNCPTR * Proc_glSampleMaski)(GLuint index, GLbitfield mask); 51 | typedef void (CODEGEN_FUNCPTR * Proc_glTexImage2DMultisample)(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); 52 | typedef void (CODEGEN_FUNCPTR * Proc_glTexImage3DMultisample)(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); 53 | typedef void (CODEGEN_FUNCPTR * Proc_glWaitSync)(GLsync sync, GLbitfield flags, GLuint64 timeout); 54 | } 55 | 56 | extern _detail::Proc_glClientWaitSync ClientWaitSync; 57 | extern _detail::Proc_glDeleteSync DeleteSync; 58 | extern _detail::Proc_glDrawElementsBaseVertex DrawElementsBaseVertex; 59 | extern _detail::Proc_glDrawElementsInstancedBaseVertex DrawElementsInstancedBaseVertex; 60 | extern _detail::Proc_glDrawRangeElementsBaseVertex DrawRangeElementsBaseVertex; 61 | extern _detail::Proc_glFenceSync FenceSync; 62 | extern _detail::Proc_glFramebufferTexture FramebufferTexture; 63 | extern _detail::Proc_glGetBufferParameteri64v GetBufferParameteri64v; 64 | extern _detail::Proc_glGetInteger64i_v GetInteger64i_v; 65 | extern _detail::Proc_glGetInteger64v GetInteger64v; 66 | extern _detail::Proc_glGetMultisamplefv GetMultisamplefv; 67 | extern _detail::Proc_glGetSynciv GetSynciv; 68 | extern _detail::Proc_glIsSync IsSync; 69 | extern _detail::Proc_glMultiDrawElementsBaseVertex MultiDrawElementsBaseVertex; 70 | extern _detail::Proc_glProvokingVertex ProvokingVertex; 71 | extern _detail::Proc_glSampleMaski SampleMaski; 72 | extern _detail::Proc_glTexImage2DMultisample TexImage2DMultisample; 73 | extern _detail::Proc_glTexImage3DMultisample TexImage3DMultisample; 74 | extern _detail::Proc_glWaitSync WaitSync; 75 | 76 | } 77 | #endif /*OPENGL_GEN_CORE_3_2_HPP*/ 78 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_4_4.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_4_4_H 2 | #define OPENGL_GEN_CORE_4_4_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /*__cplusplus*/ 7 | #define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5 8 | 9 | typedef void (CODEGEN_FUNCPTR * PFNGLBINDBUFFERSBASEPROC)(GLenum target, GLuint first, GLsizei count, const GLuint * buffers); 10 | typedef void (CODEGEN_FUNCPTR * PFNGLBINDBUFFERSRANGEPROC)(GLenum target, GLuint first, GLsizei count, const GLuint * buffers, const GLintptr * offsets, const GLsizeiptr * sizes); 11 | typedef void (CODEGEN_FUNCPTR * PFNGLBINDIMAGETEXTURESPROC)(GLuint first, GLsizei count, const GLuint * textures); 12 | typedef void (CODEGEN_FUNCPTR * PFNGLBINDSAMPLERSPROC)(GLuint first, GLsizei count, const GLuint * samplers); 13 | typedef void (CODEGEN_FUNCPTR * PFNGLBINDTEXTURESPROC)(GLuint first, GLsizei count, const GLuint * textures); 14 | typedef void (CODEGEN_FUNCPTR * PFNGLBINDVERTEXBUFFERSPROC)(GLuint first, GLsizei count, const GLuint * buffers, const GLintptr * offsets, const GLsizei * strides); 15 | typedef void (CODEGEN_FUNCPTR * PFNGLBUFFERSTORAGEPROC)(GLenum target, GLsizeiptr size, const void * data, GLbitfield flags); 16 | typedef void (CODEGEN_FUNCPTR * PFNGLCLEARTEXIMAGEPROC)(GLuint texture, GLint level, GLenum format, GLenum type, const void * data); 17 | typedef void (CODEGEN_FUNCPTR * PFNGLCLEARTEXSUBIMAGEPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * data); 18 | 19 | extern PFNGLBINDBUFFERSBASEPROC _funcptr_glBindBuffersBase; 20 | #define glBindBuffersBase _funcptr_glBindBuffersBase 21 | extern PFNGLBINDBUFFERSRANGEPROC _funcptr_glBindBuffersRange; 22 | #define glBindBuffersRange _funcptr_glBindBuffersRange 23 | extern PFNGLBINDIMAGETEXTURESPROC _funcptr_glBindImageTextures; 24 | #define glBindImageTextures _funcptr_glBindImageTextures 25 | extern PFNGLBINDSAMPLERSPROC _funcptr_glBindSamplers; 26 | #define glBindSamplers _funcptr_glBindSamplers 27 | extern PFNGLBINDTEXTURESPROC _funcptr_glBindTextures; 28 | #define glBindTextures _funcptr_glBindTextures 29 | extern PFNGLBINDVERTEXBUFFERSPROC _funcptr_glBindVertexBuffers; 30 | #define glBindVertexBuffers _funcptr_glBindVertexBuffers 31 | extern PFNGLBUFFERSTORAGEPROC _funcptr_glBufferStorage; 32 | #define glBufferStorage _funcptr_glBufferStorage 33 | extern PFNGLCLEARTEXIMAGEPROC _funcptr_glClearTexImage; 34 | #define glClearTexImage _funcptr_glClearTexImage 35 | extern PFNGLCLEARTEXSUBIMAGEPROC _funcptr_glClearTexSubImage; 36 | #define glClearTexSubImage _funcptr_glClearTexSubImage 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif /*__cplusplus*/ 41 | #endif /*OPENGL_GEN_CORE_4_4_H*/ 42 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_4_4.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_CORE_4_4_HPP 2 | #define OPENGL_GEN_CORE_4_4_HPP 3 | 4 | #include "_int_load_test.hpp" 5 | namespace gl 6 | { 7 | enum 8 | { 9 | MAX_VERTEX_ATTRIB_STRIDE = 0x82E5, 10 | }; 11 | 12 | namespace _detail 13 | { 14 | typedef void (CODEGEN_FUNCPTR * Proc_glBindBuffersBase)(GLenum target, GLuint first, GLsizei count, const GLuint * buffers); 15 | typedef void (CODEGEN_FUNCPTR * Proc_glBindBuffersRange)(GLenum target, GLuint first, GLsizei count, const GLuint * buffers, const GLintptr * offsets, const GLsizeiptr * sizes); 16 | typedef void (CODEGEN_FUNCPTR * Proc_glBindImageTextures)(GLuint first, GLsizei count, const GLuint * textures); 17 | typedef void (CODEGEN_FUNCPTR * Proc_glBindSamplers)(GLuint first, GLsizei count, const GLuint * samplers); 18 | typedef void (CODEGEN_FUNCPTR * Proc_glBindTextures)(GLuint first, GLsizei count, const GLuint * textures); 19 | typedef void (CODEGEN_FUNCPTR * Proc_glBindVertexBuffers)(GLuint first, GLsizei count, const GLuint * buffers, const GLintptr * offsets, const GLsizei * strides); 20 | typedef void (CODEGEN_FUNCPTR * Proc_glBufferStorage)(GLenum target, GLsizeiptr size, const void * data, GLbitfield flags); 21 | typedef void (CODEGEN_FUNCPTR * Proc_glClearTexImage)(GLuint texture, GLint level, GLenum format, GLenum type, const void * data); 22 | typedef void (CODEGEN_FUNCPTR * Proc_glClearTexSubImage)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * data); 23 | } 24 | 25 | extern _detail::Proc_glBindBuffersBase BindBuffersBase; 26 | extern _detail::Proc_glBindBuffersRange BindBuffersRange; 27 | extern _detail::Proc_glBindImageTextures BindImageTextures; 28 | extern _detail::Proc_glBindSamplers BindSamplers; 29 | extern _detail::Proc_glBindTextures BindTextures; 30 | extern _detail::Proc_glBindVertexBuffers BindVertexBuffers; 31 | extern _detail::Proc_glBufferStorage BufferStorage; 32 | extern _detail::Proc_glClearTexImage ClearTexImage; 33 | extern _detail::Proc_glClearTexSubImage ClearTexSubImage; 34 | 35 | } 36 | #endif /*OPENGL_GEN_CORE_4_4_HPP*/ 37 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_gl_type.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_TYPE_H 2 | #define OPENGL_GEN_TYPE_H 3 | #if defined(__glew_h__) || defined(__GLEW_H__) 4 | #error Attempt to include auto-generated header after including glew.h 5 | #endif 6 | #if defined(__gl_h_) || defined(__GL_H__) 7 | #error Attempt to include auto-generated header after including gl.h 8 | #endif 9 | #if defined(__glext_h_) || defined(__GLEXT_H_) 10 | #error Attempt to include auto-generated header after including glext.h 11 | #endif 12 | #if defined(__gltypes_h_) 13 | #error Attempt to include auto-generated header after gltypes.h 14 | #endif 15 | #if defined(__gl_ATI_h_) 16 | #error Attempt to include auto-generated header after including glATI.h 17 | #endif 18 | 19 | #define __glew_h__ 20 | #define __GLEW_H__ 21 | #define __gl_h_ 22 | #define __GL_H__ 23 | #define __glext_h_ 24 | #define __GLEXT_H_ 25 | #define __gltypes_h_ 26 | #define __gl_ATI_h_ 27 | 28 | #ifndef APIENTRY 29 | #if defined(__MINGW32__) 30 | #ifndef WIN32_LEAN_AND_MEAN 31 | #define WIN32_LEAN_AND_MEAN 1 32 | #endif 33 | #ifndef NOMINMAX 34 | #define NOMINMAX 35 | #endif 36 | #include 37 | #elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) 38 | #ifndef WIN32_LEAN_AND_MEAN 39 | #define WIN32_LEAN_AND_MEAN 1 40 | #endif 41 | #ifndef NOMINMAX 42 | #define NOMINMAX 43 | #endif 44 | #include 45 | #else 46 | #define APIENTRY 47 | #endif 48 | #endif /*APIENTRY*/ 49 | 50 | #ifndef CODEGEN_FUNCPTR 51 | #define CODEGEN_REMOVE_FUNCPTR 52 | #if defined(_WIN32) 53 | #define CODEGEN_FUNCPTR APIENTRY 54 | #else 55 | #define CODEGEN_FUNCPTR 56 | #endif 57 | #endif /*CODEGEN_FUNCPTR*/ 58 | 59 | #ifndef GLAPI 60 | #define GLAPI extern 61 | #endif 62 | 63 | #ifndef GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 64 | #define GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 65 | 66 | 67 | #endif /*GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS*/ 68 | 69 | #include 70 | #ifndef GLEXT_64_TYPES_DEFINED 71 | /* This code block is duplicated in glxext.h, so must be protected */ 72 | #define GLEXT_64_TYPES_DEFINED 73 | /* Define int32_t, int64_t, and uint64_t types for UST/MSC */ 74 | /* (as used in the GL_EXT_timer_query extension). */ 75 | #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 76 | #include 77 | #elif defined(__sun__) || defined(__digital__) 78 | #include 79 | #if defined(__STDC__) 80 | #if defined(__arch64__) || defined(_LP64) 81 | typedef long int int64_t; 82 | typedef unsigned long int uint64_t; 83 | #else 84 | typedef long long int int64_t; 85 | typedef unsigned long long int uint64_t; 86 | #endif /* __arch64__ */ 87 | #endif /* __STDC__ */ 88 | #elif defined( __VMS ) || defined(__sgi) 89 | #include 90 | #elif defined(__SCO__) || defined(__USLC__) 91 | #include 92 | #elif defined(__UNIXOS2__) || defined(__SOL64__) 93 | typedef long int int32_t; 94 | typedef long long int int64_t; 95 | typedef unsigned long long int uint64_t; 96 | #elif defined(_WIN32) && defined(__GNUC__) 97 | #include 98 | #elif defined(_WIN32) 99 | typedef __int32 int32_t; 100 | typedef __int64 int64_t; 101 | typedef unsigned __int64 uint64_t; 102 | #else 103 | /* Fallback if nothing above works */ 104 | #include 105 | #endif 106 | #endif 107 | typedef unsigned int GLenum; 108 | typedef unsigned char GLboolean; 109 | typedef unsigned int GLbitfield; 110 | typedef void GLvoid; 111 | typedef signed char GLbyte; 112 | typedef short GLshort; 113 | typedef int GLint; 114 | typedef unsigned char GLubyte; 115 | typedef unsigned short GLushort; 116 | typedef unsigned int GLuint; 117 | typedef int GLsizei; 118 | typedef float GLfloat; 119 | typedef float GLclampf; 120 | typedef double GLdouble; 121 | typedef double GLclampd; 122 | typedef char GLchar; 123 | typedef char GLcharARB; 124 | #ifdef __APPLE__ 125 | typedef void *GLhandleARB; 126 | #else 127 | typedef unsigned int GLhandleARB; 128 | #endif 129 | typedef unsigned short GLhalfARB; 130 | typedef unsigned short GLhalf; 131 | typedef GLint GLfixed; 132 | typedef ptrdiff_t GLintptr; 133 | typedef ptrdiff_t GLsizeiptr; 134 | typedef int64_t GLint64; 135 | typedef uint64_t GLuint64; 136 | typedef ptrdiff_t GLintptrARB; 137 | typedef ptrdiff_t GLsizeiptrARB; 138 | typedef int64_t GLint64EXT; 139 | typedef uint64_t GLuint64EXT; 140 | typedef struct __GLsync *GLsync; 141 | struct _cl_context; 142 | struct _cl_event; 143 | typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); 144 | typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); 145 | typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam); 146 | typedef unsigned short GLhalfNV; 147 | typedef GLintptr GLvdpauSurfaceNV; 148 | #endif /*OPENGL_GEN_TYPE_H*/ 149 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_glx_type.h: -------------------------------------------------------------------------------- 1 | #ifndef GLXWIN_GEN_TYPE_H 2 | #define GLXWIN_GEN_TYPE_H 3 | #ifdef __glxext_h_ 4 | #error Attempt to include glx_exts after including glxext.h 5 | #endif 6 | 7 | #define __glxext_h_ 8 | 9 | #include 10 | #include 11 | #include 12 | #ifdef CODEGEN_FUNCPTR 13 | #undef CODEGEN_FUNCPTR 14 | #endif /*CODEGEN_FUNCPTR*/ 15 | #define CODEGEN_FUNCPTR 16 | 17 | #ifndef GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 18 | #define GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 19 | 20 | typedef unsigned int GLenum; 21 | typedef unsigned char GLboolean; 22 | typedef unsigned int GLbitfield; 23 | typedef signed char GLbyte; 24 | typedef short GLshort; 25 | typedef int GLint; 26 | typedef int GLsizei; 27 | typedef unsigned char GLubyte; 28 | typedef unsigned short GLushort; 29 | typedef unsigned int GLuint; 30 | typedef float GLfloat; 31 | typedef float GLclampf; 32 | typedef double GLdouble; 33 | typedef double GLclampd; 34 | #define GLvoid void 35 | 36 | #endif /*GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS*/ 37 | 38 | #ifndef GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 39 | #define GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 40 | 41 | 42 | #endif /*GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS*/ 43 | 44 | #ifndef GLEXT_64_TYPES_DEFINED 45 | /* This code block is duplicated in glext.h, so must be protected */ 46 | #define GLEXT_64_TYPES_DEFINED 47 | /* Define int32_t, int64_t, and uint64_t types for UST/MSC */ 48 | /* (as used in the GLX_OML_sync_control extension). */ 49 | #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 50 | #include 51 | #elif defined(__sun__) || defined(__digital__) 52 | #include 53 | #if defined(__STDC__) 54 | #if defined(__arch64__) || defined(_LP64) 55 | typedef long int int64_t; 56 | typedef unsigned long int uint64_t; 57 | #else 58 | typedef long long int int64_t; 59 | typedef unsigned long long int uint64_t; 60 | #endif /* __arch64__ */ 61 | #endif /* __STDC__ */ 62 | #elif defined( __VMS ) || defined(__sgi) 63 | #include 64 | #elif defined(__SCO__) || defined(__USLC__) 65 | #include 66 | #elif defined(__UNIXOS2__) || defined(__SOL64__) 67 | typedef long int int32_t; 68 | typedef long long int int64_t; 69 | typedef unsigned long long int uint64_t; 70 | #elif defined(_WIN32) && defined(__GNUC__) 71 | #include 72 | #elif defined(_WIN32) 73 | typedef __int32 int32_t; 74 | typedef __int64 int64_t; 75 | typedef unsigned __int64 uint64_t; 76 | #else 77 | /* Fallback if nothing above works */ 78 | #include 79 | #endif 80 | #endif 81 | typedef struct __GLXFBConfigRec *GLXFBConfig; 82 | typedef XID GLXContextID; 83 | typedef struct __GLXcontextRec *GLXContext; 84 | typedef XID GLXPixmap; 85 | typedef XID GLXDrawable; 86 | typedef XID GLXPbuffer; 87 | typedef void (APIENTRY *__GLXextFuncPtr)(void); 88 | typedef XID GLXVideoCaptureDeviceNV; 89 | typedef unsigned int GLXVideoDeviceNV; 90 | typedef XID GLXVideoSourceSGIX; 91 | typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; 92 | typedef XID GLXPbufferSGIX; 93 | typedef struct { 94 | char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ 95 | int networkId; 96 | } GLXHyperpipeNetworkSGIX; 97 | typedef struct { 98 | char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ 99 | int channel; 100 | unsigned int participationType; 101 | int timeSlice; 102 | } GLXHyperpipeConfigSGIX; 103 | typedef struct { 104 | char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ 105 | int srcXOrigin, srcYOrigin, srcWidth, srcHeight; 106 | int destXOrigin, destYOrigin, destWidth, destHeight; 107 | } GLXPipeRect; 108 | typedef struct { 109 | char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ 110 | int XOrigin, YOrigin, maxHeight, maxWidth; 111 | } GLXPipeRectLimits; 112 | #endif /*GLXWIN_GEN_TYPE_H*/ 113 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_glx_type.hpp: -------------------------------------------------------------------------------- 1 | #ifndef GLXWIN_GEN_TYPE_HPP 2 | #define GLXWIN_GEN_TYPE_HPP 3 | #ifdef __glxext_h_ 4 | #error Attempt to include glx_exts after including glxext.h 5 | #endif 6 | 7 | #define __glxext_h_ 8 | 9 | #include 10 | #include 11 | #include 12 | #ifdef CODEGEN_FUNCPTR 13 | #undef CODEGEN_FUNCPTR 14 | #endif /*CODEGEN_FUNCPTR*/ 15 | #define CODEGEN_FUNCPTR 16 | 17 | #ifndef GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 18 | #define GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 19 | 20 | typedef unsigned int GLenum; 21 | typedef unsigned char GLboolean; 22 | typedef unsigned int GLbitfield; 23 | typedef signed char GLbyte; 24 | typedef short GLshort; 25 | typedef int GLint; 26 | typedef int GLsizei; 27 | typedef unsigned char GLubyte; 28 | typedef unsigned short GLushort; 29 | typedef unsigned int GLuint; 30 | typedef float GLfloat; 31 | typedef float GLclampf; 32 | typedef double GLdouble; 33 | typedef double GLclampd; 34 | #define GLvoid void 35 | 36 | #endif /*GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS*/ 37 | 38 | #ifndef GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 39 | #define GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 40 | 41 | 42 | #endif /*GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS*/ 43 | 44 | #ifndef GLEXT_64_TYPES_DEFINED 45 | /* This code block is duplicated in glext.h, so must be protected */ 46 | #define GLEXT_64_TYPES_DEFINED 47 | /* Define int32_t, int64_t, and uint64_t types for UST/MSC */ 48 | /* (as used in the GLX_OML_sync_control extension). */ 49 | #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 50 | #include 51 | #elif defined(__sun__) || defined(__digital__) 52 | #include 53 | #if defined(__STDC__) 54 | #if defined(__arch64__) || defined(_LP64) 55 | typedef long int int64_t; 56 | typedef unsigned long int uint64_t; 57 | #else 58 | typedef long long int int64_t; 59 | typedef unsigned long long int uint64_t; 60 | #endif /* __arch64__ */ 61 | #endif /* __STDC__ */ 62 | #elif defined( __VMS ) || defined(__sgi) 63 | #include 64 | #elif defined(__SCO__) || defined(__USLC__) 65 | #include 66 | #elif defined(__UNIXOS2__) || defined(__SOL64__) 67 | typedef long int int32_t; 68 | typedef long long int int64_t; 69 | typedef unsigned long long int uint64_t; 70 | #elif defined(_WIN32) && defined(__GNUC__) 71 | #include 72 | #elif defined(_WIN32) 73 | typedef __int32 int32_t; 74 | typedef __int64 int64_t; 75 | typedef unsigned __int64 uint64_t; 76 | #else 77 | /* Fallback if nothing above works */ 78 | #include 79 | #endif 80 | #endif 81 | typedef struct __GLXFBConfigRec *GLXFBConfig; 82 | typedef XID GLXContextID; 83 | typedef struct __GLXcontextRec *GLXContext; 84 | typedef XID GLXPixmap; 85 | typedef XID GLXDrawable; 86 | typedef XID GLXPbuffer; 87 | typedef void (APIENTRY *__GLXextFuncPtr)(void); 88 | typedef XID GLXVideoCaptureDeviceNV; 89 | typedef unsigned int GLXVideoDeviceNV; 90 | typedef XID GLXVideoSourceSGIX; 91 | typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; 92 | typedef XID GLXPbufferSGIX; 93 | typedef struct { 94 | char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ 95 | int networkId; 96 | } GLXHyperpipeNetworkSGIX; 97 | typedef struct { 98 | char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ 99 | int channel; 100 | unsigned int participationType; 101 | int timeSlice; 102 | } GLXHyperpipeConfigSGIX; 103 | typedef struct { 104 | char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ 105 | int srcXOrigin, srcYOrigin, srcWidth, srcHeight; 106 | int destXOrigin, destYOrigin, destWidth, destHeight; 107 | } GLXPipeRect; 108 | typedef struct { 109 | char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ 110 | int XOrigin, YOrigin, maxHeight, maxWidth; 111 | } GLXPipeRectLimits; 112 | #endif /*GLXWIN_GEN_TYPE_HPP*/ 113 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_load_test.hpp: -------------------------------------------------------------------------------- 1 | #ifndef GENERATED_LOAD_TEST_HPP 2 | #define GENERATED_LOAD_TEST_HPP 3 | namespace glload 4 | { 5 | /** 6 | \brief Stores data to detect if an extension loaded correctly. 7 | 8 | You can test this class in conditions (it uses the safe-bool idiom, so it 9 | should be fine). If it tests false, then the extension failed to load at 10 | all. It will only be false if the extension is not in the extensions list 11 | at all. 12 | 13 | If it tests true, then the extension loaded at least partially. You may 14 | call NumMissing() to query the number of functions that couldn't be loaded. 15 | If this number is 0, then the extension loaded perfectly. 16 | 17 | Please do not reset this class or use constructors/copy assignment to do 18 | so. 19 | **/ 20 | class LoadTest 21 | { 22 | private: 23 | //Safe bool idiom. Joy! 24 | typedef void (LoadTest::*bool_type)() const; 25 | void big_long_name_that_really_doesnt_matter() const {} 26 | 27 | public: 28 | ///Converts to false if the extension wasn't advertised. True if it is, even if a partial load. 29 | operator bool_type() const 30 | { 31 | return m_isLoaded ? &LoadTest::big_long_name_that_really_doesnt_matter : 0; 32 | } 33 | 34 | ///Returns the number of functions that failed to load. 35 | int GetNumMissing() const {return m_numMissing;} 36 | 37 | LoadTest() : m_isLoaded(false), m_numMissing(0) {} 38 | LoadTest(bool isLoaded, int numMissing) : m_isLoaded(isLoaded), m_numMissing(isLoaded ? numMissing : 0) {} 39 | private: 40 | bool m_isLoaded; 41 | int m_numMissing; 42 | }; 43 | } 44 | #endif /*GENERATED_LOAD_TEST_HPP*/ 45 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_wgl_type.h: -------------------------------------------------------------------------------- 1 | #ifndef WINDOWSGL_GEN_TYPE_H 2 | #define WINDOWSGL_GEN_TYPE_H 3 | #ifdef __wglext_h_ 4 | #error Attempt to include auto-generated WGL header after wglext.h 5 | #endif 6 | 7 | #define __wglext_h_ 8 | 9 | #ifndef WIN32_LEAN_AND_MEAN 10 | #define WIN32_LEAN_AND_MEAN 1 11 | #endif 12 | #ifndef NOMINMAX 13 | #define NOMINMAX 14 | #endif 15 | #include 16 | 17 | #ifdef CODEGEN_FUNCPTR 18 | #undef CODEGEN_FUNCPTR 19 | #endif /*CODEGEN_FUNCPTR*/ 20 | #define CODEGEN_FUNCPTR WINAPI 21 | 22 | #ifndef GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 23 | #define GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 24 | 25 | typedef unsigned int GLenum; 26 | typedef unsigned char GLboolean; 27 | typedef unsigned int GLbitfield; 28 | typedef signed char GLbyte; 29 | typedef short GLshort; 30 | typedef int GLint; 31 | typedef int GLsizei; 32 | typedef unsigned char GLubyte; 33 | typedef unsigned short GLushort; 34 | typedef unsigned int GLuint; 35 | typedef float GLfloat; 36 | typedef float GLclampf; 37 | typedef double GLdouble; 38 | typedef double GLclampd; 39 | #define GLvoid void 40 | 41 | #endif /*GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS*/ 42 | 43 | #ifndef GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 44 | #define GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 45 | 46 | 47 | #endif /*GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS*/ 48 | 49 | struct _GPU_DEVICE { 50 | DWORD cb; 51 | CHAR DeviceName[32]; 52 | CHAR DeviceString[128]; 53 | DWORD Flags; 54 | RECT rcVirtualScreen; 55 | }; 56 | DECLARE_HANDLE(HPBUFFERARB); 57 | DECLARE_HANDLE(HPBUFFEREXT); 58 | DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV); 59 | DECLARE_HANDLE(HPVIDEODEV); 60 | DECLARE_HANDLE(HGPUNV); 61 | DECLARE_HANDLE(HVIDEOINPUTDEVICENV); 62 | typedef struct _GPU_DEVICE *PGPU_DEVICE; 63 | #endif /*WINDOWSGL_GEN_TYPE_H*/ 64 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/_int_wgl_type.hpp: -------------------------------------------------------------------------------- 1 | #ifndef WINDOWSGL_GEN_TYPE_HPP 2 | #define WINDOWSGL_GEN_TYPE_HPP 3 | #ifdef __wglext_h_ 4 | #error Attempt to include auto-generated WGL header after wglext.h 5 | #endif 6 | 7 | #define __wglext_h_ 8 | 9 | #ifndef WIN32_LEAN_AND_MEAN 10 | #define WIN32_LEAN_AND_MEAN 1 11 | #endif 12 | #ifndef NOMINMAX 13 | #define NOMINMAX 14 | #endif 15 | #include 16 | 17 | #ifdef CODEGEN_FUNCPTR 18 | #undef CODEGEN_FUNCPTR 19 | #endif /*CODEGEN_FUNCPTR*/ 20 | #define CODEGEN_FUNCPTR WINAPI 21 | 22 | #ifndef GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 23 | #define GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 24 | 25 | typedef unsigned int GLenum; 26 | typedef unsigned char GLboolean; 27 | typedef unsigned int GLbitfield; 28 | typedef signed char GLbyte; 29 | typedef short GLshort; 30 | typedef int GLint; 31 | typedef int GLsizei; 32 | typedef unsigned char GLubyte; 33 | typedef unsigned short GLushort; 34 | typedef unsigned int GLuint; 35 | typedef float GLfloat; 36 | typedef float GLclampf; 37 | typedef double GLdouble; 38 | typedef double GLclampd; 39 | #define GLvoid void 40 | 41 | #endif /*GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS*/ 42 | 43 | #ifndef GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 44 | #define GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS 45 | 46 | 47 | #endif /*GL_LOAD_GEN_BASIC_OPENGL_TYPEDEFS*/ 48 | 49 | struct _GPU_DEVICE { 50 | DWORD cb; 51 | CHAR DeviceName[32]; 52 | CHAR DeviceString[128]; 53 | DWORD Flags; 54 | RECT rcVirtualScreen; 55 | }; 56 | DECLARE_HANDLE(HPBUFFERARB); 57 | DECLARE_HANDLE(HPBUFFEREXT); 58 | DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV); 59 | DECLARE_HANDLE(HPVIDEODEV); 60 | DECLARE_HANDLE(HGPUNV); 61 | DECLARE_HANDLE(HVIDEOINPUTDEVICENV); 62 | typedef struct _GPU_DEVICE *PGPU_DEVICE; 63 | #endif /*WINDOWSGL_GEN_TYPE_HPP*/ 64 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_1_0.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_1_0_H 2 | #define OPENGL_GEN_1_0_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #endif /*OPENGL_GEN_1_0_H*/ 9 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_1_0.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_1_0_HPP 2 | #define OPENGL_GEN_1_0_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #endif /*OPENGL_GEN_1_0_HPP*/ 9 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_1_1.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_1_1_H 2 | #define OPENGL_GEN_1_1_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #endif /*OPENGL_GEN_1_1_H*/ 10 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_1_1.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_1_1_HPP 2 | #define OPENGL_GEN_1_1_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #endif /*OPENGL_GEN_1_1_HPP*/ 10 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_1_2.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_1_2_H 2 | #define OPENGL_GEN_1_2_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #endif /*OPENGL_GEN_1_2_H*/ 11 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_1_2.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_1_2_HPP 2 | #define OPENGL_GEN_1_2_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #endif /*OPENGL_GEN_1_2_HPP*/ 11 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_1_3.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_1_3_H 2 | #define OPENGL_GEN_1_3_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #endif /*OPENGL_GEN_1_3_H*/ 12 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_1_3.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_1_3_HPP 2 | #define OPENGL_GEN_1_3_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #endif /*OPENGL_GEN_1_3_HPP*/ 12 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_1_4.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_1_4_H 2 | #define OPENGL_GEN_1_4_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #endif /*OPENGL_GEN_1_4_H*/ 13 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_1_4.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_1_4_HPP 2 | #define OPENGL_GEN_1_4_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #endif /*OPENGL_GEN_1_4_HPP*/ 13 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_1_5.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_1_5_H 2 | #define OPENGL_GEN_1_5_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #include "_int_gl_1_5.h" 13 | #endif /*OPENGL_GEN_1_5_H*/ 14 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_1_5.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_1_5_HPP 2 | #define OPENGL_GEN_1_5_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #include "_int_gl_1_5.hpp" 13 | #endif /*OPENGL_GEN_1_5_HPP*/ 14 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_2_0.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_2_0_H 2 | #define OPENGL_GEN_2_0_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #include "_int_gl_1_5.h" 13 | #include "_int_gl_2_0.h" 14 | #endif /*OPENGL_GEN_2_0_H*/ 15 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_2_0.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_2_0_HPP 2 | #define OPENGL_GEN_2_0_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #include "_int_gl_1_5.hpp" 13 | #include "_int_gl_2_0.hpp" 14 | #endif /*OPENGL_GEN_2_0_HPP*/ 15 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_2_1.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_2_1_H 2 | #define OPENGL_GEN_2_1_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #include "_int_gl_1_5.h" 13 | #include "_int_gl_2_0.h" 14 | #include "_int_gl_2_1.h" 15 | #endif /*OPENGL_GEN_2_1_H*/ 16 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_2_1.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_2_1_HPP 2 | #define OPENGL_GEN_2_1_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #include "_int_gl_1_5.hpp" 13 | #include "_int_gl_2_0.hpp" 14 | #include "_int_gl_2_1.hpp" 15 | #endif /*OPENGL_GEN_2_1_HPP*/ 16 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_0.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_0_H 2 | #define OPENGL_GEN_3_0_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #include "_int_gl_1_5.h" 13 | #include "_int_gl_2_0.h" 14 | #include "_int_gl_2_1.h" 15 | #include "_int_gl_3_0.h" 16 | #endif /*OPENGL_GEN_3_0_H*/ 17 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_0.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_0_HPP 2 | #define OPENGL_GEN_3_0_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #include "_int_gl_1_5.hpp" 13 | #include "_int_gl_2_0.hpp" 14 | #include "_int_gl_2_1.hpp" 15 | #include "_int_gl_3_0.hpp" 16 | #endif /*OPENGL_GEN_3_0_HPP*/ 17 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_1.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_1_H 2 | #define OPENGL_GEN_3_1_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #include "_int_gl_1_5.h" 13 | #include "_int_gl_2_0.h" 14 | #include "_int_gl_2_1.h" 15 | #include "_int_gl_3_0.h" 16 | #include "_int_gl_3_1.h" 17 | #endif /*OPENGL_GEN_3_1_H*/ 18 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_1.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_1_HPP 2 | #define OPENGL_GEN_3_1_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #include "_int_gl_1_5.hpp" 13 | #include "_int_gl_2_0.hpp" 14 | #include "_int_gl_2_1.hpp" 15 | #include "_int_gl_3_0.hpp" 16 | #include "_int_gl_3_1.hpp" 17 | #endif /*OPENGL_GEN_3_1_HPP*/ 18 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_1_comp.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_1COMP_H 2 | #define OPENGL_GEN_3_1COMP_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_0_rem.h" 9 | #include "_int_gl_1_1.h" 10 | #include "_int_gl_1_1_rem.h" 11 | #include "_int_gl_1_2.h" 12 | #include "_int_gl_1_2_rem.h" 13 | #include "_int_gl_1_3.h" 14 | #include "_int_gl_1_3_rem.h" 15 | #include "_int_gl_1_4.h" 16 | #include "_int_gl_1_4_rem.h" 17 | #include "_int_gl_1_5.h" 18 | #include "_int_gl_1_5_rem.h" 19 | #include "_int_gl_2_0.h" 20 | #include "_int_gl_2_0_rem.h" 21 | #include "_int_gl_2_1.h" 22 | #include "_int_gl_2_1_rem.h" 23 | #include "_int_gl_3_0.h" 24 | #include "_int_gl_3_0_rem.h" 25 | #include "_int_gl_3_1.h" 26 | #endif /*OPENGL_GEN_3_1COMP_H*/ 27 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_1_comp.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_1COMP_HPP 2 | #define OPENGL_GEN_3_1COMP_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_0_rem.hpp" 9 | #include "_int_gl_1_1.hpp" 10 | #include "_int_gl_1_1_rem.hpp" 11 | #include "_int_gl_1_2.hpp" 12 | #include "_int_gl_1_2_rem.hpp" 13 | #include "_int_gl_1_3.hpp" 14 | #include "_int_gl_1_3_rem.hpp" 15 | #include "_int_gl_1_4.hpp" 16 | #include "_int_gl_1_4_rem.hpp" 17 | #include "_int_gl_1_5.hpp" 18 | #include "_int_gl_1_5_rem.hpp" 19 | #include "_int_gl_2_0.hpp" 20 | #include "_int_gl_2_0_rem.hpp" 21 | #include "_int_gl_2_1.hpp" 22 | #include "_int_gl_2_1_rem.hpp" 23 | #include "_int_gl_3_0.hpp" 24 | #include "_int_gl_3_0_rem.hpp" 25 | #include "_int_gl_3_1.hpp" 26 | #endif /*OPENGL_GEN_3_1COMP_HPP*/ 27 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_2.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_2_H 2 | #define OPENGL_GEN_3_2_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #include "_int_gl_1_5.h" 13 | #include "_int_gl_2_0.h" 14 | #include "_int_gl_2_1.h" 15 | #include "_int_gl_3_0.h" 16 | #include "_int_gl_3_1.h" 17 | #include "_int_gl_3_2.h" 18 | #endif /*OPENGL_GEN_3_2_H*/ 19 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_2.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_2_HPP 2 | #define OPENGL_GEN_3_2_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #include "_int_gl_1_5.hpp" 13 | #include "_int_gl_2_0.hpp" 14 | #include "_int_gl_2_1.hpp" 15 | #include "_int_gl_3_0.hpp" 16 | #include "_int_gl_3_1.hpp" 17 | #include "_int_gl_3_2.hpp" 18 | #endif /*OPENGL_GEN_3_2_HPP*/ 19 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_2_comp.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_2COMP_H 2 | #define OPENGL_GEN_3_2COMP_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_0_rem.h" 9 | #include "_int_gl_1_1.h" 10 | #include "_int_gl_1_1_rem.h" 11 | #include "_int_gl_1_2.h" 12 | #include "_int_gl_1_2_rem.h" 13 | #include "_int_gl_1_3.h" 14 | #include "_int_gl_1_3_rem.h" 15 | #include "_int_gl_1_4.h" 16 | #include "_int_gl_1_4_rem.h" 17 | #include "_int_gl_1_5.h" 18 | #include "_int_gl_1_5_rem.h" 19 | #include "_int_gl_2_0.h" 20 | #include "_int_gl_2_0_rem.h" 21 | #include "_int_gl_2_1.h" 22 | #include "_int_gl_2_1_rem.h" 23 | #include "_int_gl_3_0.h" 24 | #include "_int_gl_3_0_rem.h" 25 | #include "_int_gl_3_1.h" 26 | #include "_int_gl_3_2.h" 27 | #endif /*OPENGL_GEN_3_2COMP_H*/ 28 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_2_comp.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_2COMP_HPP 2 | #define OPENGL_GEN_3_2COMP_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_0_rem.hpp" 9 | #include "_int_gl_1_1.hpp" 10 | #include "_int_gl_1_1_rem.hpp" 11 | #include "_int_gl_1_2.hpp" 12 | #include "_int_gl_1_2_rem.hpp" 13 | #include "_int_gl_1_3.hpp" 14 | #include "_int_gl_1_3_rem.hpp" 15 | #include "_int_gl_1_4.hpp" 16 | #include "_int_gl_1_4_rem.hpp" 17 | #include "_int_gl_1_5.hpp" 18 | #include "_int_gl_1_5_rem.hpp" 19 | #include "_int_gl_2_0.hpp" 20 | #include "_int_gl_2_0_rem.hpp" 21 | #include "_int_gl_2_1.hpp" 22 | #include "_int_gl_2_1_rem.hpp" 23 | #include "_int_gl_3_0.hpp" 24 | #include "_int_gl_3_0_rem.hpp" 25 | #include "_int_gl_3_1.hpp" 26 | #include "_int_gl_3_2.hpp" 27 | #endif /*OPENGL_GEN_3_2COMP_HPP*/ 28 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_3.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_3_H 2 | #define OPENGL_GEN_3_3_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #include "_int_gl_1_5.h" 13 | #include "_int_gl_2_0.h" 14 | #include "_int_gl_2_1.h" 15 | #include "_int_gl_3_0.h" 16 | #include "_int_gl_3_1.h" 17 | #include "_int_gl_3_2.h" 18 | #include "_int_gl_3_3.h" 19 | #endif /*OPENGL_GEN_3_3_H*/ 20 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_3.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_3_HPP 2 | #define OPENGL_GEN_3_3_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #include "_int_gl_1_5.hpp" 13 | #include "_int_gl_2_0.hpp" 14 | #include "_int_gl_2_1.hpp" 15 | #include "_int_gl_3_0.hpp" 16 | #include "_int_gl_3_1.hpp" 17 | #include "_int_gl_3_2.hpp" 18 | #include "_int_gl_3_3.hpp" 19 | #endif /*OPENGL_GEN_3_3_HPP*/ 20 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_3_comp.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_3COMP_H 2 | #define OPENGL_GEN_3_3COMP_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_0_rem.h" 9 | #include "_int_gl_1_1.h" 10 | #include "_int_gl_1_1_rem.h" 11 | #include "_int_gl_1_2.h" 12 | #include "_int_gl_1_2_rem.h" 13 | #include "_int_gl_1_3.h" 14 | #include "_int_gl_1_3_rem.h" 15 | #include "_int_gl_1_4.h" 16 | #include "_int_gl_1_4_rem.h" 17 | #include "_int_gl_1_5.h" 18 | #include "_int_gl_1_5_rem.h" 19 | #include "_int_gl_2_0.h" 20 | #include "_int_gl_2_0_rem.h" 21 | #include "_int_gl_2_1.h" 22 | #include "_int_gl_2_1_rem.h" 23 | #include "_int_gl_3_0.h" 24 | #include "_int_gl_3_0_rem.h" 25 | #include "_int_gl_3_1.h" 26 | #include "_int_gl_3_2.h" 27 | #include "_int_gl_3_3.h" 28 | #endif /*OPENGL_GEN_3_3COMP_H*/ 29 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_3_3_comp.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_3_3COMP_HPP 2 | #define OPENGL_GEN_3_3COMP_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_0_rem.hpp" 9 | #include "_int_gl_1_1.hpp" 10 | #include "_int_gl_1_1_rem.hpp" 11 | #include "_int_gl_1_2.hpp" 12 | #include "_int_gl_1_2_rem.hpp" 13 | #include "_int_gl_1_3.hpp" 14 | #include "_int_gl_1_3_rem.hpp" 15 | #include "_int_gl_1_4.hpp" 16 | #include "_int_gl_1_4_rem.hpp" 17 | #include "_int_gl_1_5.hpp" 18 | #include "_int_gl_1_5_rem.hpp" 19 | #include "_int_gl_2_0.hpp" 20 | #include "_int_gl_2_0_rem.hpp" 21 | #include "_int_gl_2_1.hpp" 22 | #include "_int_gl_2_1_rem.hpp" 23 | #include "_int_gl_3_0.hpp" 24 | #include "_int_gl_3_0_rem.hpp" 25 | #include "_int_gl_3_1.hpp" 26 | #include "_int_gl_3_2.hpp" 27 | #include "_int_gl_3_3.hpp" 28 | #endif /*OPENGL_GEN_3_3COMP_HPP*/ 29 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_0.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_0_H 2 | #define OPENGL_GEN_4_0_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #include "_int_gl_1_5.h" 13 | #include "_int_gl_2_0.h" 14 | #include "_int_gl_2_1.h" 15 | #include "_int_gl_3_0.h" 16 | #include "_int_gl_3_1.h" 17 | #include "_int_gl_3_2.h" 18 | #include "_int_gl_3_3.h" 19 | #include "_int_gl_4_0.h" 20 | #endif /*OPENGL_GEN_4_0_H*/ 21 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_0.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_0_HPP 2 | #define OPENGL_GEN_4_0_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #include "_int_gl_1_5.hpp" 13 | #include "_int_gl_2_0.hpp" 14 | #include "_int_gl_2_1.hpp" 15 | #include "_int_gl_3_0.hpp" 16 | #include "_int_gl_3_1.hpp" 17 | #include "_int_gl_3_2.hpp" 18 | #include "_int_gl_3_3.hpp" 19 | #include "_int_gl_4_0.hpp" 20 | #endif /*OPENGL_GEN_4_0_HPP*/ 21 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_0_comp.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_0COMP_H 2 | #define OPENGL_GEN_4_0COMP_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_0_rem.h" 9 | #include "_int_gl_1_1.h" 10 | #include "_int_gl_1_1_rem.h" 11 | #include "_int_gl_1_2.h" 12 | #include "_int_gl_1_2_rem.h" 13 | #include "_int_gl_1_3.h" 14 | #include "_int_gl_1_3_rem.h" 15 | #include "_int_gl_1_4.h" 16 | #include "_int_gl_1_4_rem.h" 17 | #include "_int_gl_1_5.h" 18 | #include "_int_gl_1_5_rem.h" 19 | #include "_int_gl_2_0.h" 20 | #include "_int_gl_2_0_rem.h" 21 | #include "_int_gl_2_1.h" 22 | #include "_int_gl_2_1_rem.h" 23 | #include "_int_gl_3_0.h" 24 | #include "_int_gl_3_0_rem.h" 25 | #include "_int_gl_3_1.h" 26 | #include "_int_gl_3_2.h" 27 | #include "_int_gl_3_3.h" 28 | #include "_int_gl_4_0.h" 29 | #endif /*OPENGL_GEN_4_0COMP_H*/ 30 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_0_comp.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_0COMP_HPP 2 | #define OPENGL_GEN_4_0COMP_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_0_rem.hpp" 9 | #include "_int_gl_1_1.hpp" 10 | #include "_int_gl_1_1_rem.hpp" 11 | #include "_int_gl_1_2.hpp" 12 | #include "_int_gl_1_2_rem.hpp" 13 | #include "_int_gl_1_3.hpp" 14 | #include "_int_gl_1_3_rem.hpp" 15 | #include "_int_gl_1_4.hpp" 16 | #include "_int_gl_1_4_rem.hpp" 17 | #include "_int_gl_1_5.hpp" 18 | #include "_int_gl_1_5_rem.hpp" 19 | #include "_int_gl_2_0.hpp" 20 | #include "_int_gl_2_0_rem.hpp" 21 | #include "_int_gl_2_1.hpp" 22 | #include "_int_gl_2_1_rem.hpp" 23 | #include "_int_gl_3_0.hpp" 24 | #include "_int_gl_3_0_rem.hpp" 25 | #include "_int_gl_3_1.hpp" 26 | #include "_int_gl_3_2.hpp" 27 | #include "_int_gl_3_3.hpp" 28 | #include "_int_gl_4_0.hpp" 29 | #endif /*OPENGL_GEN_4_0COMP_HPP*/ 30 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_1.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_1_H 2 | #define OPENGL_GEN_4_1_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #include "_int_gl_1_5.h" 13 | #include "_int_gl_2_0.h" 14 | #include "_int_gl_2_1.h" 15 | #include "_int_gl_3_0.h" 16 | #include "_int_gl_3_1.h" 17 | #include "_int_gl_3_2.h" 18 | #include "_int_gl_3_3.h" 19 | #include "_int_gl_4_0.h" 20 | #endif /*OPENGL_GEN_4_1_H*/ 21 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_1.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_1_HPP 2 | #define OPENGL_GEN_4_1_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #include "_int_gl_1_5.hpp" 13 | #include "_int_gl_2_0.hpp" 14 | #include "_int_gl_2_1.hpp" 15 | #include "_int_gl_3_0.hpp" 16 | #include "_int_gl_3_1.hpp" 17 | #include "_int_gl_3_2.hpp" 18 | #include "_int_gl_3_3.hpp" 19 | #include "_int_gl_4_0.hpp" 20 | #endif /*OPENGL_GEN_4_1_HPP*/ 21 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_1_comp.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_1COMP_H 2 | #define OPENGL_GEN_4_1COMP_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_0_rem.h" 9 | #include "_int_gl_1_1.h" 10 | #include "_int_gl_1_1_rem.h" 11 | #include "_int_gl_1_2.h" 12 | #include "_int_gl_1_2_rem.h" 13 | #include "_int_gl_1_3.h" 14 | #include "_int_gl_1_3_rem.h" 15 | #include "_int_gl_1_4.h" 16 | #include "_int_gl_1_4_rem.h" 17 | #include "_int_gl_1_5.h" 18 | #include "_int_gl_1_5_rem.h" 19 | #include "_int_gl_2_0.h" 20 | #include "_int_gl_2_0_rem.h" 21 | #include "_int_gl_2_1.h" 22 | #include "_int_gl_2_1_rem.h" 23 | #include "_int_gl_3_0.h" 24 | #include "_int_gl_3_0_rem.h" 25 | #include "_int_gl_3_1.h" 26 | #include "_int_gl_3_2.h" 27 | #include "_int_gl_3_3.h" 28 | #include "_int_gl_4_0.h" 29 | #endif /*OPENGL_GEN_4_1COMP_H*/ 30 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_1_comp.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_1COMP_HPP 2 | #define OPENGL_GEN_4_1COMP_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_0_rem.hpp" 9 | #include "_int_gl_1_1.hpp" 10 | #include "_int_gl_1_1_rem.hpp" 11 | #include "_int_gl_1_2.hpp" 12 | #include "_int_gl_1_2_rem.hpp" 13 | #include "_int_gl_1_3.hpp" 14 | #include "_int_gl_1_3_rem.hpp" 15 | #include "_int_gl_1_4.hpp" 16 | #include "_int_gl_1_4_rem.hpp" 17 | #include "_int_gl_1_5.hpp" 18 | #include "_int_gl_1_5_rem.hpp" 19 | #include "_int_gl_2_0.hpp" 20 | #include "_int_gl_2_0_rem.hpp" 21 | #include "_int_gl_2_1.hpp" 22 | #include "_int_gl_2_1_rem.hpp" 23 | #include "_int_gl_3_0.hpp" 24 | #include "_int_gl_3_0_rem.hpp" 25 | #include "_int_gl_3_1.hpp" 26 | #include "_int_gl_3_2.hpp" 27 | #include "_int_gl_3_3.hpp" 28 | #include "_int_gl_4_0.hpp" 29 | #endif /*OPENGL_GEN_4_1COMP_HPP*/ 30 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_2.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_2_H 2 | #define OPENGL_GEN_4_2_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #include "_int_gl_1_5.h" 13 | #include "_int_gl_2_0.h" 14 | #include "_int_gl_2_1.h" 15 | #include "_int_gl_3_0.h" 16 | #include "_int_gl_3_1.h" 17 | #include "_int_gl_3_2.h" 18 | #include "_int_gl_3_3.h" 19 | #include "_int_gl_4_0.h" 20 | #endif /*OPENGL_GEN_4_2_H*/ 21 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_2.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_2_HPP 2 | #define OPENGL_GEN_4_2_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #include "_int_gl_1_5.hpp" 13 | #include "_int_gl_2_0.hpp" 14 | #include "_int_gl_2_1.hpp" 15 | #include "_int_gl_3_0.hpp" 16 | #include "_int_gl_3_1.hpp" 17 | #include "_int_gl_3_2.hpp" 18 | #include "_int_gl_3_3.hpp" 19 | #include "_int_gl_4_0.hpp" 20 | #endif /*OPENGL_GEN_4_2_HPP*/ 21 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_2_comp.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_2COMP_H 2 | #define OPENGL_GEN_4_2COMP_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_0_rem.h" 9 | #include "_int_gl_1_1.h" 10 | #include "_int_gl_1_1_rem.h" 11 | #include "_int_gl_1_2.h" 12 | #include "_int_gl_1_2_rem.h" 13 | #include "_int_gl_1_3.h" 14 | #include "_int_gl_1_3_rem.h" 15 | #include "_int_gl_1_4.h" 16 | #include "_int_gl_1_4_rem.h" 17 | #include "_int_gl_1_5.h" 18 | #include "_int_gl_1_5_rem.h" 19 | #include "_int_gl_2_0.h" 20 | #include "_int_gl_2_0_rem.h" 21 | #include "_int_gl_2_1.h" 22 | #include "_int_gl_2_1_rem.h" 23 | #include "_int_gl_3_0.h" 24 | #include "_int_gl_3_0_rem.h" 25 | #include "_int_gl_3_1.h" 26 | #include "_int_gl_3_2.h" 27 | #include "_int_gl_3_3.h" 28 | #include "_int_gl_4_0.h" 29 | #endif /*OPENGL_GEN_4_2COMP_H*/ 30 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_2_comp.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_2COMP_HPP 2 | #define OPENGL_GEN_4_2COMP_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_0_rem.hpp" 9 | #include "_int_gl_1_1.hpp" 10 | #include "_int_gl_1_1_rem.hpp" 11 | #include "_int_gl_1_2.hpp" 12 | #include "_int_gl_1_2_rem.hpp" 13 | #include "_int_gl_1_3.hpp" 14 | #include "_int_gl_1_3_rem.hpp" 15 | #include "_int_gl_1_4.hpp" 16 | #include "_int_gl_1_4_rem.hpp" 17 | #include "_int_gl_1_5.hpp" 18 | #include "_int_gl_1_5_rem.hpp" 19 | #include "_int_gl_2_0.hpp" 20 | #include "_int_gl_2_0_rem.hpp" 21 | #include "_int_gl_2_1.hpp" 22 | #include "_int_gl_2_1_rem.hpp" 23 | #include "_int_gl_3_0.hpp" 24 | #include "_int_gl_3_0_rem.hpp" 25 | #include "_int_gl_3_1.hpp" 26 | #include "_int_gl_3_2.hpp" 27 | #include "_int_gl_3_3.hpp" 28 | #include "_int_gl_4_0.hpp" 29 | #endif /*OPENGL_GEN_4_2COMP_HPP*/ 30 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_3.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_3_H 2 | #define OPENGL_GEN_4_3_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #include "_int_gl_1_5.h" 13 | #include "_int_gl_2_0.h" 14 | #include "_int_gl_2_1.h" 15 | #include "_int_gl_3_0.h" 16 | #include "_int_gl_3_1.h" 17 | #include "_int_gl_3_2.h" 18 | #include "_int_gl_3_3.h" 19 | #include "_int_gl_4_0.h" 20 | #include "_int_gl_4_3.h" 21 | #endif /*OPENGL_GEN_4_3_H*/ 22 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_3.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_3_HPP 2 | #define OPENGL_GEN_4_3_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #include "_int_gl_1_5.hpp" 13 | #include "_int_gl_2_0.hpp" 14 | #include "_int_gl_2_1.hpp" 15 | #include "_int_gl_3_0.hpp" 16 | #include "_int_gl_3_1.hpp" 17 | #include "_int_gl_3_2.hpp" 18 | #include "_int_gl_3_3.hpp" 19 | #include "_int_gl_4_0.hpp" 20 | #include "_int_gl_4_3.hpp" 21 | #endif /*OPENGL_GEN_4_3_HPP*/ 22 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_3_comp.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_3COMP_H 2 | #define OPENGL_GEN_4_3COMP_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_0_rem.h" 9 | #include "_int_gl_1_1.h" 10 | #include "_int_gl_1_1_rem.h" 11 | #include "_int_gl_1_2.h" 12 | #include "_int_gl_1_2_rem.h" 13 | #include "_int_gl_1_3.h" 14 | #include "_int_gl_1_3_rem.h" 15 | #include "_int_gl_1_4.h" 16 | #include "_int_gl_1_4_rem.h" 17 | #include "_int_gl_1_5.h" 18 | #include "_int_gl_1_5_rem.h" 19 | #include "_int_gl_2_0.h" 20 | #include "_int_gl_2_0_rem.h" 21 | #include "_int_gl_2_1.h" 22 | #include "_int_gl_2_1_rem.h" 23 | #include "_int_gl_3_0.h" 24 | #include "_int_gl_3_0_rem.h" 25 | #include "_int_gl_3_1.h" 26 | #include "_int_gl_3_2.h" 27 | #include "_int_gl_3_3.h" 28 | #include "_int_gl_4_0.h" 29 | #include "_int_gl_4_3.h" 30 | #endif /*OPENGL_GEN_4_3COMP_H*/ 31 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_3_comp.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_3COMP_HPP 2 | #define OPENGL_GEN_4_3COMP_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_0_rem.hpp" 9 | #include "_int_gl_1_1.hpp" 10 | #include "_int_gl_1_1_rem.hpp" 11 | #include "_int_gl_1_2.hpp" 12 | #include "_int_gl_1_2_rem.hpp" 13 | #include "_int_gl_1_3.hpp" 14 | #include "_int_gl_1_3_rem.hpp" 15 | #include "_int_gl_1_4.hpp" 16 | #include "_int_gl_1_4_rem.hpp" 17 | #include "_int_gl_1_5.hpp" 18 | #include "_int_gl_1_5_rem.hpp" 19 | #include "_int_gl_2_0.hpp" 20 | #include "_int_gl_2_0_rem.hpp" 21 | #include "_int_gl_2_1.hpp" 22 | #include "_int_gl_2_1_rem.hpp" 23 | #include "_int_gl_3_0.hpp" 24 | #include "_int_gl_3_0_rem.hpp" 25 | #include "_int_gl_3_1.hpp" 26 | #include "_int_gl_3_2.hpp" 27 | #include "_int_gl_3_3.hpp" 28 | #include "_int_gl_4_0.hpp" 29 | #include "_int_gl_4_3.hpp" 30 | #endif /*OPENGL_GEN_4_3COMP_HPP*/ 31 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_4.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_4_H 2 | #define OPENGL_GEN_4_4_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_1.h" 9 | #include "_int_gl_1_2.h" 10 | #include "_int_gl_1_3.h" 11 | #include "_int_gl_1_4.h" 12 | #include "_int_gl_1_5.h" 13 | #include "_int_gl_2_0.h" 14 | #include "_int_gl_2_1.h" 15 | #include "_int_gl_3_0.h" 16 | #include "_int_gl_3_1.h" 17 | #include "_int_gl_3_2.h" 18 | #include "_int_gl_3_3.h" 19 | #include "_int_gl_4_0.h" 20 | #include "_int_gl_4_3.h" 21 | #include "_int_gl_4_4.h" 22 | #endif /*OPENGL_GEN_4_4_H*/ 23 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_4.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_4_HPP 2 | #define OPENGL_GEN_4_4_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_1.hpp" 9 | #include "_int_gl_1_2.hpp" 10 | #include "_int_gl_1_3.hpp" 11 | #include "_int_gl_1_4.hpp" 12 | #include "_int_gl_1_5.hpp" 13 | #include "_int_gl_2_0.hpp" 14 | #include "_int_gl_2_1.hpp" 15 | #include "_int_gl_3_0.hpp" 16 | #include "_int_gl_3_1.hpp" 17 | #include "_int_gl_3_2.hpp" 18 | #include "_int_gl_3_3.hpp" 19 | #include "_int_gl_4_0.hpp" 20 | #include "_int_gl_4_3.hpp" 21 | #include "_int_gl_4_4.hpp" 22 | #endif /*OPENGL_GEN_4_4_HPP*/ 23 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_4_comp.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_4COMP_H 2 | #define OPENGL_GEN_4_4COMP_H 3 | 4 | #include "_int_gl_type.h" 5 | #include "_int_gl_exts.h" 6 | 7 | #include "_int_gl_1_0.h" 8 | #include "_int_gl_1_0_rem.h" 9 | #include "_int_gl_1_1.h" 10 | #include "_int_gl_1_1_rem.h" 11 | #include "_int_gl_1_2.h" 12 | #include "_int_gl_1_2_rem.h" 13 | #include "_int_gl_1_3.h" 14 | #include "_int_gl_1_3_rem.h" 15 | #include "_int_gl_1_4.h" 16 | #include "_int_gl_1_4_rem.h" 17 | #include "_int_gl_1_5.h" 18 | #include "_int_gl_1_5_rem.h" 19 | #include "_int_gl_2_0.h" 20 | #include "_int_gl_2_0_rem.h" 21 | #include "_int_gl_2_1.h" 22 | #include "_int_gl_2_1_rem.h" 23 | #include "_int_gl_3_0.h" 24 | #include "_int_gl_3_0_rem.h" 25 | #include "_int_gl_3_1.h" 26 | #include "_int_gl_3_2.h" 27 | #include "_int_gl_3_3.h" 28 | #include "_int_gl_4_0.h" 29 | #include "_int_gl_4_3.h" 30 | #include "_int_gl_4_4.h" 31 | #endif /*OPENGL_GEN_4_4COMP_H*/ 32 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_4_4_comp.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_4_4COMP_HPP 2 | #define OPENGL_GEN_4_4COMP_HPP 3 | 4 | #include "_int_gl_type.hpp" 5 | #include "_int_gl_exts.hpp" 6 | 7 | #include "_int_gl_1_0.hpp" 8 | #include "_int_gl_1_0_rem.hpp" 9 | #include "_int_gl_1_1.hpp" 10 | #include "_int_gl_1_1_rem.hpp" 11 | #include "_int_gl_1_2.hpp" 12 | #include "_int_gl_1_2_rem.hpp" 13 | #include "_int_gl_1_3.hpp" 14 | #include "_int_gl_1_3_rem.hpp" 15 | #include "_int_gl_1_4.hpp" 16 | #include "_int_gl_1_4_rem.hpp" 17 | #include "_int_gl_1_5.hpp" 18 | #include "_int_gl_1_5_rem.hpp" 19 | #include "_int_gl_2_0.hpp" 20 | #include "_int_gl_2_0_rem.hpp" 21 | #include "_int_gl_2_1.hpp" 22 | #include "_int_gl_2_1_rem.hpp" 23 | #include "_int_gl_3_0.hpp" 24 | #include "_int_gl_3_0_rem.hpp" 25 | #include "_int_gl_3_1.hpp" 26 | #include "_int_gl_3_2.hpp" 27 | #include "_int_gl_3_3.hpp" 28 | #include "_int_gl_4_0.hpp" 29 | #include "_int_gl_4_3.hpp" 30 | #include "_int_gl_4_4.hpp" 31 | #endif /*OPENGL_GEN_4_4COMP_HPP*/ 32 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_all.h: -------------------------------------------------------------------------------- 1 | /** Copyright (C) 2011-2013 by Jason L. McKesson **/ 2 | /** This file is licensed by the MIT License. **/ 3 | 4 | 5 | #ifndef OPENGL_GEN_ALL_H 6 | #define OPENGL_GEN_ALL_H 7 | 8 | #include "_int_gl_type.h" 9 | #include "_int_gl_exts.h" 10 | 11 | #include "_int_gl_1_0.h" 12 | #include "_int_gl_1_0_rem.h" 13 | #include "_int_gl_1_1.h" 14 | #include "_int_gl_1_1_rem.h" 15 | #include "_int_gl_1_2.h" 16 | #include "_int_gl_1_2_rem.h" 17 | #include "_int_gl_1_3.h" 18 | #include "_int_gl_1_3_rem.h" 19 | #include "_int_gl_1_4.h" 20 | #include "_int_gl_1_4_rem.h" 21 | #include "_int_gl_1_5.h" 22 | #include "_int_gl_1_5_rem.h" 23 | #include "_int_gl_2_0.h" 24 | #include "_int_gl_2_0_rem.h" 25 | #include "_int_gl_2_1.h" 26 | #include "_int_gl_2_1_rem.h" 27 | #include "_int_gl_3_0.h" 28 | #include "_int_gl_3_0_rem.h" 29 | #include "_int_gl_3_1.h" 30 | #include "_int_gl_3_2.h" 31 | #include "_int_gl_3_3.h" 32 | #include "_int_gl_4_0.h" 33 | #include "_int_gl_4_3.h" 34 | #include "_int_gl_4_4.h" 35 | #endif /*OPENGL_GEN_ALL_H*/ 36 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_all.hpp: -------------------------------------------------------------------------------- 1 | //Copyright (C) 2011-2013 by Jason L. McKesson 2 | //This file is licensed by the MIT License. 3 | 4 | 5 | #ifndef OPENGL_GEN_ALL_HPP 6 | #define OPENGL_GEN_ALL_HPP 7 | 8 | #include "_int_gl_type.hpp" 9 | #include "_int_gl_exts.hpp" 10 | 11 | #include "_int_gl_1_0.hpp" 12 | #include "_int_gl_1_0_rem.hpp" 13 | #include "_int_gl_1_1.hpp" 14 | #include "_int_gl_1_1_rem.hpp" 15 | #include "_int_gl_1_2.hpp" 16 | #include "_int_gl_1_2_rem.hpp" 17 | #include "_int_gl_1_3.hpp" 18 | #include "_int_gl_1_3_rem.hpp" 19 | #include "_int_gl_1_4.hpp" 20 | #include "_int_gl_1_4_rem.hpp" 21 | #include "_int_gl_1_5.hpp" 22 | #include "_int_gl_1_5_rem.hpp" 23 | #include "_int_gl_2_0.hpp" 24 | #include "_int_gl_2_0_rem.hpp" 25 | #include "_int_gl_2_1.hpp" 26 | #include "_int_gl_2_1_rem.hpp" 27 | #include "_int_gl_3_0.hpp" 28 | #include "_int_gl_3_0_rem.hpp" 29 | #include "_int_gl_3_1.hpp" 30 | #include "_int_gl_3_2.hpp" 31 | #include "_int_gl_3_3.hpp" 32 | #include "_int_gl_4_0.hpp" 33 | #include "_int_gl_4_3.hpp" 34 | #include "_int_gl_4_4.hpp" 35 | #endif /*OPENGL_GEN_ALL_HPP*/ 36 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_core.h: -------------------------------------------------------------------------------- 1 | /** Copyright (C) 2011-2013 by Jason L. McKesson **/ 2 | /** This file is licensed by the MIT License. **/ 3 | 4 | 5 | #ifndef OPENGL_GEN_CORE_H 6 | #define OPENGL_GEN_CORE_H 7 | 8 | #include "_int_gl_type.h" 9 | #include "_int_gl_exts.h" 10 | 11 | #include "_int_gl_1_0.h" 12 | #include "_int_gl_1_1.h" 13 | #include "_int_gl_1_2.h" 14 | #include "_int_gl_1_3.h" 15 | #include "_int_gl_1_4.h" 16 | #include "_int_gl_1_5.h" 17 | #include "_int_gl_2_0.h" 18 | #include "_int_gl_2_1.h" 19 | #include "_int_gl_3_0.h" 20 | #include "_int_gl_3_1.h" 21 | #include "_int_gl_3_2.h" 22 | #include "_int_gl_3_3.h" 23 | #include "_int_gl_4_0.h" 24 | #include "_int_gl_4_3.h" 25 | #include "_int_gl_4_4.h" 26 | #endif /*OPENGL_GEN_CORE_H*/ 27 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_core.hpp: -------------------------------------------------------------------------------- 1 | //Copyright (C) 2011-2013 by Jason L. McKesson 2 | //This file is licensed by the MIT License. 3 | 4 | 5 | #ifndef OPENGL_GEN_CORE_HPP 6 | #define OPENGL_GEN_CORE_HPP 7 | 8 | #include "_int_gl_type.hpp" 9 | #include "_int_gl_exts.hpp" 10 | 11 | #include "_int_gl_1_0.hpp" 12 | #include "_int_gl_1_1.hpp" 13 | #include "_int_gl_1_2.hpp" 14 | #include "_int_gl_1_3.hpp" 15 | #include "_int_gl_1_4.hpp" 16 | #include "_int_gl_1_5.hpp" 17 | #include "_int_gl_2_0.hpp" 18 | #include "_int_gl_2_1.hpp" 19 | #include "_int_gl_3_0.hpp" 20 | #include "_int_gl_3_1.hpp" 21 | #include "_int_gl_3_2.hpp" 22 | #include "_int_gl_3_3.hpp" 23 | #include "_int_gl_4_0.hpp" 24 | #include "_int_gl_4_3.hpp" 25 | #include "_int_gl_4_4.hpp" 26 | #endif /*OPENGL_GEN_CORE_HPP*/ 27 | -------------------------------------------------------------------------------- /lib/glsdk_0_5_2/glload/include/gl_load.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENGL_GEN_LOAD_FUNCTIONS_H 2 | #define OPENGL_GEN_LOAD_FUNCTIONS_H 3 | /** 4 | \file 5 | \brief C header to include if you want to initialize OpenGL. 6 | 7 | **/ 8 | 9 | /**\addtogroup module_glload_cinter**/ 10 | /**@{**/ 11 | 12 | /** 13 | \brief The loading status returned by the loading functions. 14 | 15 | **/ 16 | enum 17 | { 18 | ogl_LOAD_FAILED = 0, ///numInputTextures < 1 ) 36 | return FF_FAIL; 37 | if( inputTextures->inputTextures[ 0 ] == NULL ) 38 | return FF_FAIL; 39 | 40 | shader.Use(); 41 | shader.Bind("inputTexture", 0, *inputTextures->inputTextures[ 0 ] ); 42 | FFGLTexCoords maxCoords = GetMaxGLTexCoords( *inputTextures->inputTextures[ 0 ] ); 43 | shader.Set( "maxUV", maxCoords.s, maxCoords.t ); 44 | quad.Draw(); 45 | return FF_SUCCESS; 46 | } -------------------------------------------------------------------------------- /src/api/Effect.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "Plugin.h" 3 | class Effect : public Plugin 4 | { 5 | public: 6 | Effect(); 7 | ~Effect(); 8 | 9 | template< typename PluginType > 10 | static PluginInstance createPlugin( PluginInfo infos ); 11 | 12 | FFResult render( ProcessOpenGLStruct* pGL ) override; 13 | }; 14 | 15 | template< typename PluginType > 16 | inline PluginInstance Effect::createPlugin( PluginInfo infos ) 17 | { 18 | return Plugin::createPlugin< PluginType >( infos, FF_EFFECT ); 19 | } 20 | -------------------------------------------------------------------------------- /src/api/Mixer.cpp: -------------------------------------------------------------------------------- 1 | #include "Mixer.h" 2 | using namespace ffglex; 3 | 4 | Mixer::Mixer() 5 | { 6 | SetMinInputs( 2 ); 7 | SetMaxInputs( 2 ); 8 | fragmentShaderCodeStart += R"( 9 | uniform sampler2D textureDest; 10 | uniform sampler2D textureSrc; 11 | 12 | in vec2 i_uv_dest; 13 | in vec2 i_uv_src; 14 | )"; 15 | vertexShaderCode = R"(#version 410 core 16 | uniform vec2 maxUVDest; 17 | uniform vec2 maxUVSrc; 18 | 19 | layout( location = 0 ) in vec4 vPosition; 20 | layout( location = 1 ) in vec2 vUV; 21 | 22 | out vec2 i_uv_dest; 23 | out vec2 i_uv_src; 24 | 25 | void main() 26 | { 27 | gl_Position = vPosition; 28 | i_uv_dest = vUV * maxUVDest; 29 | i_uv_src = vUV * maxUVSrc; 30 | } 31 | )"; 32 | addParam( Param::create( "mixVal" ) ); 33 | } 34 | 35 | Mixer::~Mixer() 36 | { 37 | } 38 | 39 | FFResult Mixer::render( ProcessOpenGLStruct* inputTextures ) 40 | { 41 | if( inputTextures->numInputTextures < 2 ) 42 | return FF_FAIL; 43 | if( inputTextures->inputTextures[ 0 ] == nullptr ) 44 | return FF_FAIL; 45 | if( inputTextures->inputTextures[ 1 ] == nullptr ) 46 | return FF_FAIL; 47 | 48 | shader.Use(); 49 | shader.Bind("textureDest", 0, *inputTextures->inputTextures[ 0 ] ); 50 | FFGLTexCoords maxCoords = GetMaxGLTexCoords( *inputTextures->inputTextures[ 0 ] ); 51 | shader.Set( "maxUVDest", maxCoords.s, maxCoords.t ); 52 | shader.Bind( "textureSrc", 1, *inputTextures->inputTextures[ 1 ] ); 53 | maxCoords = GetMaxGLTexCoords( *inputTextures->inputTextures[ 1 ] ); 54 | shader.Set( "maxUVSrc", maxCoords.s, maxCoords.t ); 55 | quad.Draw(); 56 | return FF_SUCCESS; 57 | } -------------------------------------------------------------------------------- /src/api/Mixer.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "Plugin.h" 3 | class Mixer : public Plugin 4 | { 5 | public: 6 | Mixer(); 7 | ~Mixer(); 8 | 9 | template< typename PluginType > 10 | static PluginInstance createPlugin( PluginInfo infos ); 11 | 12 | FFResult render( ProcessOpenGLStruct* pGL ) override; 13 | }; 14 | 15 | template< typename PluginType > 16 | inline PluginInstance Mixer::createPlugin( PluginInfo infos ) 17 | { 18 | return Plugin::createPlugin< PluginType >( infos, FF_MIXER ); 19 | } 20 | -------------------------------------------------------------------------------- /src/api/Source.cpp: -------------------------------------------------------------------------------- 1 | #include "Source.h" 2 | 3 | Source::Source() 4 | { 5 | SetMinInputs( 0 ); 6 | SetMaxInputs( 0 ); 7 | fragmentShaderCodeStart += R"( 8 | in vec2 i_uv; 9 | )"; 10 | vertexShaderCode = R"( 11 | #version 410 core 12 | layout( location = 0 ) in vec4 vPosition; 13 | layout( location = 1 ) in vec2 vUV; 14 | 15 | out vec2 i_uv; 16 | 17 | void main() 18 | { 19 | gl_Position = vPosition; 20 | i_uv = vUV; 21 | } 22 | )"; 23 | } 24 | 25 | Source::~Source() 26 | { 27 | } -------------------------------------------------------------------------------- /src/api/Source.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "Plugin.h" 3 | class Source : public Plugin 4 | { 5 | public: 6 | Source(); 7 | ~Source(); 8 | 9 | template< typename PluginType > 10 | static PluginInstance createPlugin( PluginInfo infos ); 11 | }; 12 | 13 | template< typename PluginType > 14 | inline PluginInstance Source::createPlugin( PluginInfo infos ) 15 | { 16 | return Plugin::createPlugin< PluginType >( infos, FF_SOURCE ); 17 | } 18 | -------------------------------------------------------------------------------- /src/examples/Add.cpp: -------------------------------------------------------------------------------- 1 | #include "Add.h" 2 | 3 | static PluginInstance p = Mixer::createPlugin< Add >( { 4 | "FL03", // plugin unique ID 5 | "Add FFGL"// Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | void main() 10 | { 11 | //get the two fragments to mix 12 | vec4 colorDest = texture( textureDest, i_uv_dest ); 13 | vec4 colorSrc = texture( textureSrc, i_uv_src ); 14 | 15 | //here we add the colorSrc r,g,b,a pixel value to the colorDest pixel value according to the mixVal value 16 | vec4 mix = colorDest + colorSrc * mixVal; 17 | 18 | //Here we use the built-in function min(val1,val2) to get the minimum between val1 and val2 and always keep output pixel value between 0.0 and 1.0 19 | fragColor = min( mix, 1.0 ); 20 | } 21 | )"; 22 | 23 | Add::Add() 24 | { 25 | setFragmentShader( fshader ); 26 | } 27 | 28 | Add::~Add() 29 | { 30 | } 31 | -------------------------------------------------------------------------------- /src/examples/Add.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../api/Mixer.h" 3 | class Add : public Mixer 4 | { 5 | public: 6 | Add(); 7 | ~Add(); 8 | }; 9 | -------------------------------------------------------------------------------- /src/examples/AddSubtract.cpp: -------------------------------------------------------------------------------- 1 | #include "AddSubtract.h" 2 | 3 | static PluginInstance p = Effect::createPlugin< AddSubtract >( { 4 | "FL02", // plugin unique ID 5 | "Add Subtract FFGL"// Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | void main() 10 | { 11 | vec4 color = texture(inputTexture, i_uv); 12 | //The inputTexture contains premultiplied colors, so we need to unpremultiply first to apply our effect on straight colors. 13 | if (color.a > 0.0) 14 | color.rgb /= color.a; 15 | vec3 add = -1.0 + brightness * 2.0; 16 | color.rgb = color.rgb + add; 17 | 18 | //The plugin has to output premultiplied colors, this is how we're premultiplying our straight color while also 19 | //ensuring we aren't going out of the LDR the video engine is working in. 20 | color.rgb = clamp(color.rgb * color.a, vec3(0.0), vec3(color.a)); 21 | fragColor = color; 22 | } 23 | )"; 24 | 25 | AddSubtract::AddSubtract() 26 | { 27 | setFragmentShader( fshader ); 28 | addRGBColorParam( "brightness" ); 29 | } 30 | 31 | AddSubtract::~AddSubtract() 32 | { 33 | } 34 | -------------------------------------------------------------------------------- /src/examples/AddSubtract.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../api/Effect.h" 3 | class AddSubtract : public Effect 4 | { 5 | public: 6 | AddSubtract(); 7 | ~AddSubtract(); 8 | }; 9 | -------------------------------------------------------------------------------- /src/examples/Alea.cpp: -------------------------------------------------------------------------------- 1 | #include "Alea.h" 2 | 3 | static PluginInstance p = Source::createPlugin< Alea >( { 4 | "FL01",// plugin unique ID 5 | "ALEA" // Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | #define PI 3.14159265359 10 | #define TWO_PI 6.28318530718 11 | uniform float sides; 12 | 13 | vec2 rotate2D(vec2 _uv, float _angle){ 14 | _uv = mat2(cos(_angle),-sin(_angle), 15 | sin(_angle),cos(_angle)) * _uv; 16 | return _uv; 17 | } 18 | 19 | float polygon(vec2 _uv, float size, float width, float sides) { 20 | // Angle and radius from the current pixel 21 | float a = atan(_uv.x,_uv.y)+PI; 22 | float r = TWO_PI/float(sides); 23 | 24 | // Shaping function that modulate the distance 25 | float d = cos(floor(.5+a/r)*r-a)*length(_uv); 26 | 27 | return 1.-smoothstep(size+width,size+width+0.005,d)-1.+smoothstep(size,size+0.005,d); 28 | } 29 | 30 | void main() 31 | { 32 | vec2 uv = i_uv*2.-1.; 33 | uv.x *= resolution.x/resolution.y; 34 | uv = rotate2D(uv, time*0.1 + audioVolume); 35 | 36 | float size = iSize/10. + iSize * audioVolume; 37 | float width = iSize/40. + iSize * audioVolume * .5; 38 | float rgbShift = iShiftAmount * audioVolume * .1; 39 | 40 | float colorR = polygon(uv-vec2(rgbShift,0), size, width, sides); 41 | float colorG = polygon(uv, size, width, sides); 42 | float colorB = polygon(uv+vec2(rgbShift,0), size, width, sides); 43 | vec3 color = vec3(colorR, colorG, colorB); 44 | fragColor = vec4(color,1.0); 45 | } 46 | )"; 47 | 48 | Alea::Alea() 49 | { 50 | setFragmentShader( fshader ); 51 | addHueColorParam( "color" ); 52 | addParam( Param::create( "iSize", .6f ) ); 53 | addParam( Param::create( "iShiftAmount", 0.5f ) ); 54 | addParam( smoothness = Param::create( "smoothness", 0.9f ) ); 55 | addParam( change = ParamTrigger::create( "change" ) ); 56 | addParam( fixedSize = ParamBool::create( "fixedSize" ) ); 57 | addParam( select = ParamOption::create( "select", { "Global", "Bass", "Med", "High" } ) ); 58 | addParam( test = ParamText::create( "test" ) ); 59 | addParam( gainParam = ParamRange::create( "gainParam", 0.5, { -42, 42 } ) ); 60 | addParam( ParamRange::createInteger( "testInteger", 15, {-1000,1000}) ); 61 | audio.setGain( gainParam ); 62 | } 63 | 64 | void Alea::update() 65 | { 66 | if( change->getValue() ) 67 | { 68 | sides = random.getRandomInt( 4, 10 ); 69 | } 70 | 71 | if( fixedSize->getValue() ) 72 | { 73 | glUniform1f( shader.FindUniform( "audioVolume" ), 1.0f ); 74 | } 75 | 76 | if( select->getValue() == 1 ) 77 | { 78 | glUniform1f( shader.FindUniform( "audioVolume" ), audio.getBass() ); 79 | } 80 | else if( select->getValue() == 2 ) 81 | { 82 | glUniform1f( shader.FindUniform( "audioVolume" ), audio.getMed() ); 83 | } 84 | else if( select->getValue() == 3 ) 85 | { 86 | glUniform1f( shader.FindUniform( "audioVolume" ), audio.getHigh() ); 87 | } 88 | 89 | glUniform1f( shader.FindUniform( "sides" ), (float)sides ); 90 | 91 | audio.setSmoothness( smoothness->getValue() ); 92 | } 93 | 94 | Alea::~Alea() 95 | { 96 | } 97 | -------------------------------------------------------------------------------- /src/examples/Alea.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../api/Source.h" 3 | class Alea : public Source 4 | { 5 | public: 6 | Alea(); 7 | void update() override; 8 | ~Alea(); 9 | 10 | private: 11 | int sides = 5; 12 | Param::Ptr smoothness; 13 | ParamTrigger::Ptr change; 14 | ParamBool::Ptr fixedSize; 15 | ParamOption::Ptr select; 16 | ParamText::Ptr test; 17 | ParamRange::Ptr gainParam; 18 | }; 19 | -------------------------------------------------------------------------------- /src/examples/BGR.cpp: -------------------------------------------------------------------------------- 1 | #include "AddSubtract.h" 2 | 3 | static PluginInstance p = Effect::createPlugin< AddSubtract >( { 4 | "FL14", // plugin unique ID 5 | "BGR"// Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | void main() 10 | { 11 | vec4 color = texture(inputTexture, i_uv); 12 | color.rgb = color.bgr; 13 | fragColor = color; 14 | } 15 | )"; 16 | 17 | AddSubtract::AddSubtract() 18 | { 19 | setFragmentShader( fshader ); 20 | } 21 | 22 | AddSubtract::~AddSubtract() 23 | { 24 | } 25 | -------------------------------------------------------------------------------- /src/examples/BGR.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../api/Effect.h" 3 | class BGR : public Effect 4 | { 5 | public: 6 | BGR(); 7 | ~BGR(); 8 | }; 9 | -------------------------------------------------------------------------------- /src/examples/BarrelBlur.cpp: -------------------------------------------------------------------------------- 1 | #include "BarrelBlur.h" 2 | 3 | static PluginInstance p = Effect::createPlugin< BarrelBlur >( { 4 | "FL08", // plugin unique ID 5 | "Barrel Blur"// Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | vec3 spectrum_offset_rgb( float t ) 10 | { 11 | float t0 = 3.0 * t - 1.5; 12 | vec3 ret = clamp( vec3( -t0, 1.0-abs(t0), t0), 0.0, 1.0); 13 | 14 | return ret; 15 | } 16 | 17 | vec2 barrelDistortion( vec2 p, vec2 amt ) 18 | { 19 | p = 2.0 * p - 1.0; 20 | const float maxBarrelPower = 5.0; 21 | float theta = atan(p.y, p.x); 22 | vec2 radius = vec2( length(p) ); 23 | radius = pow(radius, 1.0 + maxBarrelPower * amt); 24 | p.x = radius.x * cos(theta); 25 | p.y = radius.y * sin(theta); 26 | 27 | return p * 0.5 + 0.5; 28 | } 29 | 30 | vec2 brownConradyDistortion(vec2 uv, float dist) 31 | { 32 | uv = uv * 2.0 - 1.0; 33 | // positive values of K1 give barrel distortion, negative give pincushion 34 | float barrelDistortion1 = 0.1 * dist; // K1 in text books 35 | float barrelDistortion2 = -0.025 * dist; // K2 in text books 36 | 37 | float r2 = dot(uv,uv); 38 | uv *= 1.0 + barrelDistortion1 * r2 + barrelDistortion2 * r2 * r2; 39 | //uv *= 1.0 + barrelDistortion1 * r2; 40 | 41 | // tangential distortion (due to off center lens elements) 42 | // is not modeled in this function, but if it was, the terms would go here 43 | return uv * 0.5 + 0.5; 44 | } 45 | 46 | vec2 distort( vec2 uv, float t, vec2 min_distort, vec2 max_distort ) 47 | { 48 | vec2 dist = mix( min_distort, max_distort, t ); 49 | if(conrady) { 50 | return brownConradyDistortion( uv, 75.0 * dist.x ); 51 | } 52 | return barrelDistortion( uv, 1.75* dist ); //distortion at center 53 | } 54 | 55 | void main() 56 | { 57 | const float MAX_DIST_PX = 50.0; 58 | float max_distort_px = MAX_DIST_PX * barrelAmount; 59 | vec2 max_distort = vec2(max_distort_px) / resolution.xy; 60 | vec2 min_distort = 0.5 * max_distort; 61 | 62 | vec2 oversiz = distort( vec2(1.0), 1.0, min_distort, max_distort ); 63 | vec2 m_uv = mix(i_uv, map( i_uv, 1.0-oversiz, oversiz ),zoomAmount) ; 64 | 65 | const int num_iter = 7; 66 | const float stepsiz = 1.0 / (float(num_iter)-1.0); 67 | float rnd = random(); 68 | float t = rnd*stepsiz; 69 | 70 | vec3 sumcol = vec3(0.0); 71 | vec3 sumw = vec3(0.0); 72 | for ( int i=0; i( { 4 | "FL04", // plugin unique ID 5 | "Creation Silexars"// Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | void main() 10 | { 11 | float t = time; 12 | vec2 r = resolution; 13 | vec3 c; 14 | float l; 15 | float z=t; 16 | for(int i=0;i<3;i++) { 17 | vec2 m_uv = i_uv; 18 | vec2 p=m_uv; 19 | p-=.5; 20 | p.x*=r.x/r.y; 21 | z+=.07; 22 | l=length(p); 23 | m_uv+=p/l*(sin(z)+1.)*abs(sin(l*9.-z*2.)); 24 | c[i]=.01/length(abs(mod(m_uv,1.)-.5)); 25 | } 26 | fragColor=vec4(c/l,t); 27 | } 28 | )"; 29 | 30 | CreationSilexars::CreationSilexars() 31 | { 32 | setFragmentShader( fshader ); 33 | } 34 | 35 | CreationSilexars::~CreationSilexars() 36 | { 37 | } -------------------------------------------------------------------------------- /src/examples/CreationSilexars.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../api/Source.h" 3 | class CreationSilexars : public Source 4 | { 5 | public: 6 | CreationSilexars(); 7 | ~CreationSilexars(); 8 | }; 9 | -------------------------------------------------------------------------------- /src/examples/Dissolve.cpp: -------------------------------------------------------------------------------- 1 | #include "Dissolve.h" 2 | 3 | static PluginInstance p = Effect::createPlugin< Dissolve >( { 4 | "FL09", // plugin unique ID 5 | "Dissolve"// Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | #define pixel_width 3./resolution.y 10 | uniform float relativeTime; 11 | 12 | float fractal_noise(vec3 m) { 13 | float start = 0.5; 14 | vec4 coef = vec4(start,start/2.,start/4.,start/8.); 15 | coef.yzw *= 1.-smoothness; 16 | return fractal_noise(m,coef); 17 | } 18 | 19 | void main() 20 | { 21 | vec2 p = i_uv; 22 | vec3 p3 = vec3(p*zoom, relativeTime)*8.0+8.0; 23 | 24 | float red = fractal_noise(p3)*.5+.5; 25 | red = smoothstep(pixel_width,0.,red-amount); 26 | 27 | p3 = p3+spaced; 28 | float blue = fractal_noise(p3)*.5+.5; 29 | blue = smoothstep(pixel_width,0.,blue-amount); 30 | 31 | p3 = p3+spaced; 32 | float green = fractal_noise(p3)*.5+.5; 33 | green = smoothstep(pixel_width,0.,green-amount); 34 | 35 | vec3 color = texture(inputTexture,i_uv).rgb; 36 | vec3 col = vec3(red,green,blue)*color; 37 | 38 | fragColor = vec4(vec3(col),1.0); 39 | } 40 | )"; 41 | 42 | Dissolve::Dissolve() 43 | { 44 | include( shader::snippet_id::simplex ); 45 | addParam( ParamRange::create( "zoom", 0.5f, { 0.0f, 2.0f } ) ); 46 | addParam( ParamRange::create( "speed", 0.5f, { 0.0f, 0.2f } ) ); 47 | addParam( ParamRange::create( "amount", 0.5f, { 0.0f, 1.0f } ) ); 48 | addParam( ParamRange::create( "spaced", 0.5f, { 0.0f, .01f } ) ); 49 | addParam( ParamRange::create( "smoothness", 0.5f, { 0.0f, 1.0f } ) ); 50 | setFragmentShader( fshader ); 51 | } 52 | 53 | void Dissolve::update() 54 | { 55 | auto speedParam = std::dynamic_pointer_cast< ParamRange >( getParam( "speed" ) ); 56 | float speed = speedParam->getRealValue(); 57 | relativeTime += deltaTime * speed; 58 | glUniform1f( shader.FindUniform( "relativeTime" ), relativeTime ); 59 | } 60 | 61 | Dissolve::~Dissolve() 62 | { 63 | } -------------------------------------------------------------------------------- /src/examples/Dissolve.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../api/Effect.h" 3 | class Dissolve : public Effect 4 | { 5 | public: 6 | Dissolve(); 7 | void update() override; 8 | ~Dissolve(); 9 | 10 | private: 11 | float relativeTime = 0; 12 | }; 13 | -------------------------------------------------------------------------------- /src/examples/MovingGradient.cpp: -------------------------------------------------------------------------------- 1 | #include "MovingGradient.h" 2 | 3 | static PluginInstance p = Source::createPlugin< MovingGradient >( { 4 | "FL07", // plugin unique ID 5 | "Moving Gradient"// Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | void main() 10 | { 11 | vec2 uv = i_uv; 12 | uv.x *= resolution.x/resolution.y; 13 | 14 | // Time varying pixel color 15 | vec3 col = 0.5 + 0.5*cos(time+uv.xyx+vec3(0,2,4)); 16 | 17 | vec2 bl = step(vec2(amount),uv); // bottom-left 18 | vec2 tr = step(vec2(amount),vec2(1.*resolution.x/resolution.y,1.)-uv); // top-right 19 | vec3 color = vec3(bl.x * bl.y * tr.x * tr.y); 20 | 21 | // Output to screen 22 | fragColor = vec4(col * 1.-color,1.0); 23 | } 24 | )"; 25 | 26 | MovingGradient::MovingGradient() 27 | { 28 | setFragmentShader( fshader ); 29 | addParam( ParamRange::create( "amount", 0.5f, { 0., 0.5 } ) ); 30 | } 31 | 32 | MovingGradient::~MovingGradient() 33 | { 34 | } -------------------------------------------------------------------------------- /src/examples/MovingGradient.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../api/Source.h" 3 | class MovingGradient : public Source 4 | { 5 | public: 6 | MovingGradient(); 7 | ~MovingGradient(); 8 | }; 9 | -------------------------------------------------------------------------------- /src/examples/Polygon.cpp: -------------------------------------------------------------------------------- 1 | #include "Polygon.h" 2 | 3 | static PluginInstance p = Source::createPlugin< PolygonRepeat >( { 4 | "FL05", // plugin unique ID 5 | "Polygon"// Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | #define PI 3.14159265359 10 | #define TWO_PI 6.28318530718 11 | #define pixel_width 50.*repeat*3./resolution.y 12 | uniform float relativeTime; 13 | uniform float relativeRotationTime; 14 | 15 | float stroke(float d, float size) { 16 | return smoothstep(pixel_width,0.0,abs(d-size)-width/2.); 17 | } 18 | 19 | vec2 rotate(vec2 _uv, float _angle){ 20 | _uv = mat2(cos(_angle),-sin(_angle), 21 | sin(_angle),cos(_angle)) * _uv; 22 | return _uv; 23 | } 24 | 25 | float polygonSDF(vec2 _uv) { 26 | // Angle and radius from the current pixel 27 | float a = atan(_uv.x,_uv.y)+PI; 28 | float r = TWO_PI/float(floor(sides)); 29 | 30 | return cos(floor(.5+a/r)*r-a)*length(_uv); 31 | } 32 | 33 | float smoothmodulo(float a) { 34 | return abs( mod(a, 2.) - 1.); 35 | } 36 | 37 | void main() 38 | { 39 | vec2 U = i_uv*2.-1.; 40 | U.x *= resolution.x/resolution.y; 41 | U = rotate(U,relativeRotationTime); 42 | U *= repeat*50.; 43 | float c = stroke(smoothmodulo(polygonSDF(U)+relativeTime*10.),1.); 44 | fragColor = vec4(vec3(c),1.); 45 | } 46 | )"; 47 | 48 | PolygonRepeat::PolygonRepeat() 49 | { 50 | setFragmentShader( fshader ); 51 | addParam( ParamRange::create( "repeat", 0.05f, { 0.0f, 1.0f } ) ); 52 | addParam( ParamRange::create( "speed", 0.4f, { -.5f, .5f } ) ); 53 | addParam( ParamRange::createInteger( "sides", 3, { -20, 200 } ) ); 54 | addParam( ParamRange::create( "width", 0.5f, { 0.0f, 2.0f } ) ); 55 | addParam( ParamRange::create( "rotation_speed", 0.5, { -2.0f, 2.0f } ) ); 56 | } 57 | 58 | void PolygonRepeat::update() 59 | { 60 | auto speedParam = std::dynamic_pointer_cast< ParamRange >( getParam( "speed" ) ); 61 | float speed = speedParam->getRealValue(); 62 | relativeTime += deltaTime * speed; 63 | glUniform1f( shader.FindUniform( "relativeTime" ), relativeTime ); 64 | auto speedRotationParam = std::dynamic_pointer_cast< ParamRange >( getParam( "rotation_speed" ) ); 65 | float speedRotation = speedRotationParam->getRealValue(); 66 | relativeRotationTime += deltaTime * speedRotation; 67 | glUniform1f( shader.FindUniform( "relativeRotationTime" ), relativeRotationTime ); 68 | } 69 | 70 | PolygonRepeat::~PolygonRepeat() 71 | { 72 | } -------------------------------------------------------------------------------- /src/examples/Polygon.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../api/Source.h" 3 | class PolygonRepeat : public Source 4 | { 5 | public: 6 | PolygonRepeat(); 7 | void update() override; 8 | ~PolygonRepeat(); 9 | 10 | private: 11 | float relativeTime = 0; 12 | float relativeRotationTime = 0; 13 | }; 14 | -------------------------------------------------------------------------------- /src/examples/Scanline.cpp: -------------------------------------------------------------------------------- 1 | #include "Scanline.h" 2 | 3 | static PluginInstance p = Effect::createPlugin< Scanline >( { 4 | "FL06", // plugin unique ID 5 | "Scanline"// Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | void main() 10 | { 11 | vec4 color = texture(inputTexture, i_uv); 12 | //The inputTexture contains premultiplied colors, so we need to unpremultiply first to apply our effect on straight colors. 13 | if (color.a > 0.0) 14 | color.rgb /= color.a; 15 | 16 | float count = resolution.y * density; 17 | vec3 col = color.rgb; 18 | vec2 sl = vec2(sin(i_uv.y * count), cos(i_uv.y * count)); 19 | vec3 scanlines = vec3(sl.x, sl.y, sl.x); 20 | 21 | col += col * scanlines * opacityScanline; 22 | col += col * vec3(random()) * opacityNoise; 23 | col += col * sin(110.0*time) * flickering; 24 | 25 | 26 | //The plugin has to output premultiplied colors, this is how we're premultiplying our straight color while also 27 | //ensuring we aren't going out of the LDR the video engine is working in. 28 | color.rgb = clamp(col * color.a, vec3(0.0), vec3(color.a)); 29 | fragColor = color; 30 | } 31 | )"; 32 | 33 | Scanline::Scanline() 34 | { 35 | include( shader::snippet_id::random ); 36 | setFragmentShader( fshader ); 37 | addParam( ParamRange::create( "density", 0.5f, { 0.0f, 2.0f } ) ); 38 | addParam( ParamRange::create( "opacityScanline", 0.4f, { 0.0f, 2.0f } ) ); 39 | addParam( ParamRange::create( "opacityNoise", 0.6f, { 0.0f, 4.0f } ) ); 40 | addParam( ParamRange::create( "flickering", 0.3f, { 0.0f, 0.1f } ) ); 41 | } 42 | Scanline::~Scanline() 43 | { 44 | } 45 | -------------------------------------------------------------------------------- /src/examples/Scanline.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../api/Effect.h" 3 | class Scanline : public Effect 4 | { 5 | public: 6 | Scanline(); 7 | ~Scanline(); 8 | }; 9 | -------------------------------------------------------------------------------- /src/examples/Screenshake.cpp: -------------------------------------------------------------------------------- 1 | #include "Screenshake.h" 2 | 3 | static PluginInstance p = Effect::createPlugin< Screenshake >( { 4 | "FL10", // plugin unique ID 5 | "Screenshake"// Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | void main() 10 | { 11 | vec3 p3 = vec3(0,0, time*speed)*8.0+8.0; 12 | vec2 noise = vec2(simplex3d(p3),simplex3d(p3+10.)); 13 | if (random) noise = vec2(random3(p3).x,random3(p3+10.).x)*2.-1.; 14 | fragColor = vec4( texture( inputTexture, i_uv+noise*amount*0.1 ).rgb, 1.0); 15 | } 16 | )"; 17 | 18 | Screenshake::Screenshake() 19 | { 20 | include( shader::snippet_id::simplex ); 21 | setFragmentShader( fshader ); 22 | addParam( ParamRange::create( "amount", 0.1f, { 0.0, 1.0 } ) ); 23 | addParam( ParamRange::create( "speed", 0.3f, { 0.0, 3. } ) ); 24 | addParam( ParamBool::create( "random" ) ); 25 | } 26 | 27 | Screenshake::~Screenshake() 28 | { 29 | } -------------------------------------------------------------------------------- /src/examples/Screenshake.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../api/Effect.h" 3 | class Screenshake : public Effect 4 | { 5 | public: 6 | Screenshake(); 7 | ~Screenshake(); 8 | }; 9 | -------------------------------------------------------------------------------- /src/examples/Strobotime.cpp: -------------------------------------------------------------------------------- 1 | #include "Strobotime.h" 2 | 3 | static PluginInstance p = Effect::createPlugin< Strobotime >( { 4 | "FL12", // plugin unique ID 5 | "Strobotime"// Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | void main() 10 | { 11 | vec4 tex = texture(inputTexture, i_uv); 12 | bool shouldBeOn = fract(phase * speed) < dutyCycle; 13 | shouldBeOn = reversephase ? !shouldBeOn : shouldBeOn; 14 | tex = mix(tex,vec4(0,0,0,1),blackframe); 15 | fragColor=mix(tex,vec4(color,1.),shouldBeOn); 16 | } 17 | )"; 18 | 19 | Strobotime::Strobotime() 20 | { 21 | addHueColorParam( "color" ); 22 | addParam( dutyCycle = Param::create( "dutyCycle", .5f ) ); 23 | addParam( speed = ParamRange::create( "speed", .5, { 1, 64 } ) ); 24 | addParam( ParamBool::create( "blackframe" ) ); 25 | addParam( ParamBool::create( "reversephase" ) ); 26 | setFragmentShader( fshader ); 27 | } 28 | 29 | void Strobotime::update() 30 | { 31 | unsigned long v = (unsigned long)speed->getRealValue(); 32 | // get upper powe of two 33 | v--; 34 | v |= v >> 1; 35 | v |= v >> 2; 36 | v |= v >> 4; 37 | v |= v >> 8; 38 | v |= v >> 16; 39 | v++; 40 | float value = (float)v / 4.f; 41 | glUniform1f( shader.FindUniform( "speed" ), value ); 42 | } 43 | 44 | Strobotime::~Strobotime() 45 | { 46 | } -------------------------------------------------------------------------------- /src/examples/Strobotime.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../api/Effect.h" 3 | #include "../api/Params.h" 4 | class Strobotime : public Effect 5 | { 6 | public: 7 | Strobotime(); 8 | void update() override; 9 | ~Strobotime(); 10 | Param::Ptr dutyCycle; 11 | ParamRange::Ptr speed; 12 | }; 13 | -------------------------------------------------------------------------------- /src/examples/Triskel.cpp: -------------------------------------------------------------------------------- 1 | #include "Triskel.h" 2 | 3 | static PluginInstance p = Source::createPlugin< Triskel >( { 4 | "FL11", // plugin unique ID 5 | "Triskel"// Plugin name 6 | } ); 7 | 8 | static const std::string fshader = R"( 9 | #define pixel_width 200./resolution.y 10 | uniform float relativeTime; 11 | 12 | void main() 13 | { 14 | vec2 R = resolution.xy; 15 | vec2 U = i_uv*R; 16 | float iTime = relativeTime; 17 | U = (U+U-R)/R.y + vec2(0,.1); 18 | 19 | float tau = 6.283, // 3 symmetries 20 | a = -floor((atan(U.y,U.x)-.33)*3./tau)/3.*tau -.05, l; 21 | U *= mat2(cos(a),-sin(a),sin(a),cos(a)); 22 | U = 3.*(U-(vec2(0,.350)+vec2(0,.350)*cos(iTime*.03))); 23 | 24 | 25 | l = length(U), a = atan(U.y,U.x); // spiral 26 | vec4 O = vec4( l + fract((a+2.25)/tau) < 5. + cos(iTime*.2) * 2. ? 0.5+.5*sin(a+tau*l*sin(iTime*.2)*5.) : 0.); 27 | 28 | O = smoothstep(pixel_width,.0,abs(O-.5)); // optional decoration 29 | fragColor = O; 30 | } 31 | )"; 32 | 33 | Triskel::Triskel() 34 | { 35 | addParam( ParamRange::create( "speed", 0.5f, { 0.0, 2. } ) ); 36 | setFragmentShader( fshader ); 37 | } 38 | 39 | void Triskel::update() 40 | { 41 | auto speedParam = std::dynamic_pointer_cast< ParamRange >( getParam( "speed" ) ); 42 | float speed = speedParam->getRealValue(); 43 | relativeTime += deltaTime * speed; 44 | glUniform1f( shader.FindUniform( "relativeTime" ), relativeTime ); 45 | } 46 | 47 | Triskel::~Triskel() 48 | { 49 | } -------------------------------------------------------------------------------- /src/examples/Triskel.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../api/Source.h" 3 | class Triskel : public Source 4 | { 5 | public: 6 | Triskel(); 7 | void update(); 8 | ~Triskel(); 9 | private: 10 | float relativeTime = 0; 11 | }; 12 | -------------------------------------------------------------------------------- /src/helpers/Audio.cpp: -------------------------------------------------------------------------------- 1 | #include "Audio.h" 2 | #include 3 | 4 | Audio::Audio() 5 | { 6 | } 7 | 8 | Audio::~Audio() 9 | { 10 | } 11 | 12 | void Audio::update( std::vector< float > _fft ) 13 | { 14 | fft = _fft; 15 | float currentVolStore = 0; 16 | float bassStore = 0; 17 | float bassCount = 0; 18 | int bassSep = Audio::getBufferSize() / 3; 19 | float medStore = 0; 20 | float medCount = 0; 21 | int highSep = bassSep * 2; 22 | float highStore = 0; 23 | float highCount = 0; 24 | 25 | float gain = pow( 10.f, gainParam->getRealValue() / 20.f ); 26 | 27 | for( int i = 0; i < Audio::getBufferSize(); i++ ) 28 | { 29 | float bin = fft[ i ] * fft[ i ] * gain; 30 | 31 | if( i < bassSep ) 32 | { 33 | bassStore += bin; 34 | bassCount++; 35 | } 36 | if( bassSep < i && i < highSep ) 37 | { 38 | medStore += bin; 39 | medCount++; 40 | } 41 | if( highSep < i ) 42 | { 43 | highStore += bin; 44 | highCount++; 45 | } 46 | currentVolStore += bin; 47 | } 48 | currentVolStore /= (float)Audio::getBufferSize(); 49 | currentVolStore = sqrt( currentVolStore ); 50 | vol.update( currentVolStore ); 51 | 52 | bassStore /= bassCount; 53 | bassStore = sqrt( bassStore ); 54 | bass.update( bassStore ); 55 | 56 | medStore /= medCount; 57 | medStore = sqrt( medStore ); 58 | med.update( medStore ); 59 | 60 | highStore /= highCount; 61 | highStore = sqrt( highStore ); 62 | high.update( highStore ); 63 | } 64 | 65 | float Audio::getVolume() 66 | { 67 | return vol.getValue(); 68 | } 69 | 70 | float Audio::getBass() 71 | { 72 | return bass.getValue(); 73 | } 74 | 75 | float Audio::getMed() 76 | { 77 | return med.getValue(); 78 | } 79 | 80 | float Audio::getHigh() 81 | { 82 | return high.getValue(); 83 | } 84 | 85 | float Audio::getVolumeFromTo( int fromFreq, int toFreq ) 86 | { 87 | return 0.0f; 88 | } 89 | 90 | float Audio::toDb( float rms ) 91 | { 92 | float db = 20 * std::log10( rms ); 93 | db = utils::map( db, -96, 0, 0, 1 ); 94 | if( std::isinf( db ) ) 95 | db = 0; 96 | return db; 97 | } 98 | 99 | void Audio::setSmoothness( float smoothness ) 100 | { 101 | vol.setSmoothness( smoothness ); 102 | bass.setSmoothness( smoothness ); 103 | med.setSmoothness( smoothness ); 104 | high.setSmoothness( smoothness ); 105 | } 106 | 107 | void Audio::setSampleRate( int _sampleRate ) 108 | { 109 | sampleRate = _sampleRate; 110 | freqMax = (float) sampleRate / 2.f; 111 | freqBinStep = freqMax / BUFFER_SIZE; 112 | } 113 | 114 | void Audio::setGain( ParamRange::Ptr gain ) 115 | { 116 | gainParam = gain; 117 | } 118 | 119 | int Audio::getBufferSize() 120 | { 121 | return BUFFER_SIZE; 122 | } 123 | -------------------------------------------------------------------------------- /src/helpers/Audio.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include "Utils.h" 4 | #include "../api/Params.h" 5 | 6 | // The FFT buffer size 7 | static const int BUFFER_SIZE = 2048; 8 | 9 | class Audio 10 | { 11 | public: 12 | Audio(); 13 | ~Audio(); 14 | 15 | /// This method is called by the Plugin when a new fft buffer is available 16 | /// \param fft A vector of float containing the fft data. 17 | void update( std::vector< float > fft ); 18 | 19 | /// This method return the global volume represented as a float between 0.0 and 1.0 20 | /// \return The global volume amount 21 | float getVolume(); 22 | /// This method return the volume of the bass frequencies. 23 | /// It is represented as a float between 0.0 and 1.0 24 | /// \return The volume of the bass frequencies (0-200Hz) 25 | float getBass(); 26 | /// This method return the volume of the bass frequencies. 27 | /// It is represented as a float between 0.0 and 1.0 28 | /// \return The volume of the medium frequencies (200-2000Hz) 29 | float getMed(); 30 | /// This method return the volume of the bass frequencies. 31 | /// It is represented as a float between 0.0 and 1.0 32 | /// \return The volume of the bass frequency (2000-20_000Hz) 33 | float getHigh(); 34 | /// This method return the volume in the frequency range given as argument. 35 | /// It is represented as a float between 0.0 and 1.0 36 | /// \return The volume of the given range 37 | float getVolumeFromTo( int fromFreq, int toFreq ); 38 | 39 | /// This method convert a value going from 0 to 1 in a linear scale as 40 | /// a logarithmic representation of it going from -96 to 0db 41 | /// \return The volume exprimed in dB 42 | float toDb( float value ); 43 | 44 | /// This method allows to set the smoothness of the current audio value. 45 | /// At each update only a certain percentage of the new value is taken into account 46 | /// This prevent big jump in values that could be ugly if represented visually. 47 | /// \param smoothness The new smoothness value, it should be between 0 (not smooth) and 1 (smooth) 48 | void setSmoothness( float smoothness ); 49 | /// This method is called by the Plugin when the sample rate as changed in the host 50 | /// \param sampleRate The new sampleRate value, usually something like 44100 or 48000 51 | void setSampleRate( int sampleRate ); 52 | /// This method allows to set the paramter that represent a gain parameter. 53 | /// This gain will be applied before calculating the differents audio volumes. 54 | /// As this is a pointer to a ParamRange you only need to set this once. 55 | /// \param gain The gain parameter, usually the -42 to 42 range works well 56 | void setGain( ParamRange::Ptr gain ); 57 | 58 | /// This method return the BUFFER_SIZE defined just at the start of this file. 59 | /// \return The fft BUFFER_SIZE 60 | static int getBufferSize(); 61 | 62 | private: 63 | std::vector< float > fft; 64 | utils::SmoothValue vol, bass, med, high; 65 | float freqMax, freqBinStep; 66 | int sampleRate; 67 | ParamRange::Ptr gainParam = ParamRange::create( "default", 0, {} ); 68 | }; 69 | -------------------------------------------------------------------------------- /src/helpers/Utils.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | namespace utils 8 | { 9 | inline float map( float value, float low, float high, float newLow, float newHigh ) 10 | { 11 | float res = newLow + ( value - low ) * ( newHigh - newLow ) / ( high - low ); 12 | return std::clamp( res, newLow, newHigh ); 13 | } 14 | 15 | class SmoothValue 16 | { 17 | public: 18 | SmoothValue() 19 | { 20 | } 21 | void setSmoothness( float smooth ) 22 | { 23 | smoothness = smooth; 24 | } 25 | void update( float val ) 26 | { 27 | value *= smoothness; 28 | value += ( 1 - smoothness ) * val; 29 | } 30 | float getValue() 31 | { 32 | return value; 33 | } 34 | 35 | private: 36 | float smoothness = 0.80f; 37 | float value = 0.0f; 38 | }; 39 | 40 | class Random 41 | { 42 | std::random_device device; 43 | std::mt19937 rng; 44 | 45 | public: 46 | Random() 47 | { 48 | rng = std::mt19937( device() ); 49 | } 50 | 51 | int getRandomInt( int min, int max ) 52 | { 53 | std::uniform_int_distribution distribution( min, max ); 54 | return distribution( rng ); 55 | } 56 | 57 | float getRandomFloat( float min, float max ) 58 | { 59 | std::uniform_real_distribution distribution( min, max ); 60 | return distribution( rng ); 61 | } 62 | }; 63 | }// namespace utils 64 | 65 | namespace shader 66 | { 67 | const enum snippet_id { random, 68 | map, 69 | simplex }; 70 | 71 | static const std::map< snippet_id, std::set< snippet_id > > dependencies = { 72 | { simplex, {} } 73 | }; 74 | 75 | static const std::map< snippet_id, std::string > snippets = { 76 | 77 | // Hardware indepedant random [0;1] 78 | { snippet_id::random, R"( 79 | const uint random_k = 1103515245U; // GLIB C 80 | 81 | float random( uvec2 x ) 82 | { 83 | uvec2 q = random_k * ( (x>>1U) ^ (x.yx ) ); 84 | uint n = random_k * ( (q.x ) ^ (q.y>>3U) ); 85 | return float(n) * (1.0/float(0xffffffffU)); 86 | } 87 | 88 | vec3 random3( uvec3 x ) 89 | { 90 | x = ((x>>8U)^x.yzx)*random_k; 91 | x = ((x>>8U)^x.yzx)*random_k; 92 | x = ((x>>8U)^x.yzx)*random_k; 93 | 94 | return vec3(x)*(1.0/float(0xffffffffU)); 95 | } 96 | 97 | float random() { 98 | uvec2 p = uvec2(gl_FragCoord) + uint(resolution.x) * uint(resolution.y) * uint(frame); 99 | return random(p); 100 | } 101 | )" }, 102 | 103 | { snippet_id::map, R"( 104 | float map( float t, float a, float b ) { 105 | return clamp( (t - a) / (b - a), 0.0, 1.0 ); 106 | } 107 | 108 | vec2 map( vec2 t, vec2 a, vec2 b ) { 109 | return clamp( (t - a) / (b - a), 0.0, 1.0 ); 110 | } 111 | 112 | float map(float value, float low, float high, float newLow, float newHigh) { 113 | float res = newLow + (value - low) * (newHigh - newLow) / (high - low); 114 | return clamp(res, newLow, newHigh); 115 | } 116 | 117 | vec2 map(vec2 value, vec2 low, vec2 high, vec2 newLow, vec2 newHigh) { 118 | vec2 res = newLow + (value - low) * (newHigh - newLow) / (high - low); 119 | return clamp(res, newLow, newHigh); 120 | } 121 | )" }, 122 | 123 | { snippet_id::simplex, R"( 124 | vec3 random3(vec3 c) { 125 | float j = 4096.0*sin(dot(c,vec3(17.0, 59.4, 15.0))); 126 | vec3 r; 127 | r.z = fract(512.0*j); 128 | j *= .125; 129 | r.x = fract(512.0*j); 130 | j *= .125; 131 | r.y = fract(512.0*j); 132 | return r; 133 | } 134 | const float F3 = 0.3333333; 135 | const float G3 = 0.1666667; 136 | 137 | float simplex3d(vec3 p) { 138 | vec3 s = floor(p + dot(p, vec3(F3))); 139 | vec3 x = p - s + dot(s, vec3(G3)); 140 | 141 | vec3 e = step(vec3(0.0), x - x.yzx); 142 | vec3 i1 = e*(1.0 - e.zxy); 143 | vec3 i2 = 1.0 - e.zxy*(1.0 - e); 144 | 145 | vec3 x1 = x - i1 + G3; 146 | vec3 x2 = x - i2 + 2.0*G3; 147 | vec3 x3 = x - 1.0 + 3.0*G3; 148 | 149 | vec4 w, d; 150 | 151 | w.x = dot(x, x); 152 | w.y = dot(x1, x1); 153 | w.z = dot(x2, x2); 154 | w.w = dot(x3, x3); 155 | 156 | w = max(0.6 - w, 0.0); 157 | 158 | d.x = dot(random3(s)-.5, x); 159 | d.y = dot(random3(s + i1)-.5, x1); 160 | d.z = dot(random3(s + i2)-.5, x2); 161 | d.w = dot(random3(s + 1.0)-.5, x3); 162 | 163 | w *= w; 164 | w *= w; 165 | d *= w; 166 | 167 | return dot(d, vec4(52.0)); 168 | } 169 | 170 | const mat3 rot1 = mat3(-0.37, 0.36, 0.85,-0.14,-0.93, 0.34,0.92, 0.01,0.4); 171 | const mat3 rot2 = mat3(-0.55,-0.39, 0.74, 0.33,-0.91,-0.24,0.77, 0.12,0.63); 172 | const mat3 rot3 = mat3(-0.71, 0.52,-0.47,-0.08,-0.72,-0.68,-0.7,-0.45,0.56); 173 | 174 | float fractal_noise(vec3 m, vec4 coef) { 175 | return coef.x*simplex3d(m*rot1) 176 | +coef.y*simplex3d(2.0*m*rot2) 177 | +coef.z*simplex3d(4.0*m*rot3) 178 | +coef.w*simplex3d(8.0*m); 179 | } 180 | )" } 181 | }; 182 | 183 | }// namespace shader --------------------------------------------------------------------------------