clutter 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +14 -5
- data/lib/clutter.rb +1 -2
- data/vendor/local/bin/json-glib-format.exe +0 -0
- data/vendor/local/bin/json-glib-validate.exe +0 -0
- data/vendor/local/bin/libclutter-1.0-0.dll +0 -0
- data/vendor/local/bin/{libcogl-15.dll → libcogl-20.dll} +0 -0
- data/vendor/local/bin/libcogl-pango-20.dll +0 -0
- data/vendor/local/bin/libcogl-path-20.dll +0 -0
- data/vendor/local/bin/libjson-glib-1.0-0.dll +0 -0
- data/vendor/local/include/clutter-1.0/cally/cally-actor.h +9 -4
- data/vendor/local/include/clutter-1.0/cally/cally-clone.h +6 -4
- data/vendor/local/include/clutter-1.0/cally/cally-group.h +5 -3
- data/vendor/local/include/clutter-1.0/cally/cally-main.h +7 -2
- data/vendor/local/include/clutter-1.0/cally/cally-rectangle.h +5 -3
- data/vendor/local/include/clutter-1.0/cally/cally-root.h +6 -4
- data/vendor/local/include/clutter-1.0/cally/cally-stage.h +5 -3
- data/vendor/local/include/clutter-1.0/cally/cally-text.h +6 -4
- data/vendor/local/include/clutter-1.0/cally/cally-texture.h +6 -4
- data/vendor/local/include/clutter-1.0/cally/cally-util.h +7 -3
- data/vendor/local/include/clutter-1.0/clutter/clutter-action.h +13 -5
- data/vendor/local/include/clutter-1.0/clutter/clutter-actor-meta.h +8 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-actor.h +90 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-align-constraint.h +9 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-animatable.h +5 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-backend.h +15 -9
- data/vendor/local/include/clutter-1.0/clutter/clutter-bin-layout.h +4 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-bind-constraint.h +9 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-binding-pool.h +13 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-blur-effect.h +3 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-box-layout.h +9 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-brightness-contrast-effect.h +9 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-cairo.h +2 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-canvas.h +7 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-child-meta.h +10 -8
- data/vendor/local/include/clutter-1.0/clutter/clutter-click-action.h +8 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-clone.h +8 -4
- data/vendor/local/include/clutter-1.0/clutter/clutter-color.h +32 -7
- data/vendor/local/include/clutter-1.0/clutter/clutter-colorize-effect.h +5 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-constraint.h +14 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-container.h +49 -37
- data/vendor/local/include/clutter-1.0/clutter/clutter-content.h +2 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-deform-effect.h +19 -13
- data/vendor/local/include/clutter-1.0/clutter/clutter-deprecated.h +1 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-desaturate-effect.h +5 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-device-manager.h +6 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-drag-action.h +12 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-drop-action.h +4 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-effect.h +11 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-enum-types.h +62 -55
- data/vendor/local/include/clutter-1.0/clutter/clutter-enums.h +23 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-event.h +74 -8
- data/vendor/local/include/clutter-1.0/clutter/clutter-feature.h +2 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-fixed-layout.h +2 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-flow-layout.h +14 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-gesture-action.h +27 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-group.h +1 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-image.h +2 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-input-device.h +20 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-interval.h +18 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-layout-manager.h +13 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-layout-meta.h +2 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-list-model.h +3 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-macros.h +67 -33
- data/vendor/local/include/clutter-1.0/clutter/clutter-main.h +36 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-model.h +42 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-offscreen-effect.h +4 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-page-turn-effect.h +9 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-paint-nodes.h +5 -5
- data/vendor/local/include/clutter-1.0/clutter/clutter-pan-action.h +2 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-path-constraint.h +7 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-path.h +26 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-property-transition.h +2 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-rotate-action.h +2 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-script.h +16 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-scriptable.h +5 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-scroll-actor.h +2 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-settings.h +2 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-shader-effect.h +9 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-shader-types.h +10 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-snap-constraint.h +9 -1
- data/vendor/local/include/clutter-1.0/clutter/clutter-stage-manager.h +5 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-stage.h +35 -9
- data/vendor/local/include/clutter-1.0/clutter/clutter-swipe-action.h +4 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-tap-action.h +2 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-test-utils.h +164 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-text-buffer.h +2 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-text.h +67 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-texture.h +2 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-timeline.h +25 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-transition-group.h +2 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-transition.h +2 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter-types.h +60 -6
- data/vendor/local/include/clutter-1.0/clutter/clutter-units.h +18 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-version.h +37 -20
- data/vendor/local/include/clutter-1.0/clutter/clutter-zoom-action.h +2 -2
- data/vendor/local/include/clutter-1.0/clutter/clutter.h +2 -3
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-fixed.h +1 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-state.h +3 -3
- data/vendor/local/include/clutter-1.0/clutter/{clutter-table-layout.h → deprecated/clutter-table-layout.h} +15 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-timeout-pool.h +1 -1
- data/vendor/local/include/clutter-1.0/clutter/win32/clutter-win32.h +5 -0
- data/vendor/local/include/cogl/cogl-pango/cogl-pango.h +33 -14
- data/vendor/local/include/cogl/cogl-path/cogl-path-types.h +18 -14
- data/vendor/local/include/cogl/cogl-path/cogl-path.h +22 -12
- data/vendor/local/include/cogl/cogl-path/cogl1-path-functions.h +20 -13
- data/vendor/local/include/cogl/cogl-path/cogl2-path-functions.h +35 -13
- data/vendor/local/include/cogl/cogl/cogl-atlas-texture.h +81 -53
- data/vendor/local/include/cogl/cogl/cogl-attribute-buffer.h +31 -11
- data/vendor/local/include/cogl/cogl/cogl-attribute.h +31 -11
- data/vendor/local/include/cogl/cogl/cogl-auto-texture.h +221 -0
- data/vendor/local/include/cogl/cogl/cogl-bitmap.h +31 -11
- data/vendor/local/include/cogl/cogl/cogl-buffer.h +26 -13
- data/vendor/local/include/cogl/cogl/cogl-clip-state.h +244 -15
- data/vendor/local/include/cogl/cogl/cogl-clutter.h +18 -13
- data/vendor/local/include/cogl/cogl/cogl-color.h +31 -11
- data/vendor/local/include/cogl/cogl/cogl-context.h +41 -14
- data/vendor/local/include/cogl/cogl/cogl-defines.h +20 -13
- data/vendor/local/include/cogl/cogl/cogl-deprecated.h +18 -11
- data/vendor/local/include/cogl/cogl/cogl-depth-state.h +20 -14
- data/vendor/local/include/cogl/cogl/cogl-display.h +33 -14
- data/vendor/local/include/cogl/cogl/cogl-enum-types.h +9 -6
- data/vendor/local/include/cogl/cogl/cogl-error.h +20 -15
- data/vendor/local/include/cogl/cogl/cogl-euler.h +31 -13
- data/vendor/local/include/cogl/cogl/cogl-fence.h +20 -13
- data/vendor/local/include/cogl/cogl/cogl-fixed.h +20 -13
- data/vendor/local/include/cogl/cogl/cogl-frame-info.h +31 -12
- data/vendor/local/include/cogl/cogl/cogl-framebuffer-deprecated.h +264 -0
- data/vendor/local/include/cogl/cogl/cogl-framebuffer.h +70 -29
- data/vendor/local/include/cogl/cogl/cogl-gles2.h +64 -18
- data/vendor/local/include/cogl/cogl/cogl-glib-source.h +18 -11
- data/vendor/local/include/cogl/cogl/cogl-index-buffer.h +31 -11
- data/vendor/local/include/cogl/cogl/cogl-indices.h +31 -11
- data/vendor/local/include/cogl/cogl/cogl-macros.h +33 -13
- data/vendor/local/include/cogl/cogl/cogl-material-compat.h +20 -13
- data/vendor/local/include/cogl/cogl/cogl-matrix-stack.h +37 -12
- data/vendor/local/include/cogl/cogl/cogl-matrix.h +34 -15
- data/vendor/local/include/cogl/cogl/cogl-meta-texture.h +25 -12
- data/vendor/local/include/cogl/cogl/cogl-object.h +40 -12
- data/vendor/local/include/cogl/cogl/cogl-offscreen.h +31 -11
- data/vendor/local/include/cogl/cogl/cogl-onscreen-template.h +31 -12
- data/vendor/local/include/cogl/cogl/cogl-onscreen.h +63 -12
- data/vendor/local/include/cogl/cogl/cogl-output.h +31 -12
- data/vendor/local/include/cogl/cogl/cogl-pango.h +18 -11
- data/vendor/local/include/cogl/cogl/cogl-pipeline-layer-state.h +20 -13
- data/vendor/local/include/cogl/cogl/cogl-pipeline-state.h +20 -13
- data/vendor/local/include/cogl/cogl/cogl-pipeline.h +31 -11
- data/vendor/local/include/cogl/cogl/cogl-pixel-buffer.h +31 -11
- data/vendor/local/include/cogl/cogl/cogl-poll.h +20 -14
- data/vendor/local/include/cogl/cogl/cogl-primitive-texture.h +25 -12
- data/vendor/local/include/cogl/cogl/cogl-primitive.h +32 -13
- data/vendor/local/include/cogl/cogl/cogl-primitives.h +20 -13
- data/vendor/local/include/cogl/cogl/cogl-quaternion.h +34 -15
- data/vendor/local/include/cogl/cogl/cogl-renderer.h +33 -15
- data/vendor/local/include/cogl/cogl/cogl-shader.h +20 -13
- data/vendor/local/include/cogl/cogl/cogl-snippet.h +27 -12
- data/vendor/local/include/cogl/cogl/cogl-sub-texture.h +29 -15
- data/vendor/local/include/cogl/cogl/cogl-swap-chain.h +33 -13
- data/vendor/local/include/cogl/cogl/cogl-texture-2d-gl.h +29 -24
- data/vendor/local/include/cogl/cogl/cogl-texture-2d-sliced.h +54 -49
- data/vendor/local/include/cogl/cogl/cogl-texture-2d.h +81 -65
- data/vendor/local/include/cogl/cogl/cogl-texture-3d.h +71 -54
- data/vendor/local/include/cogl/cogl/cogl-texture-deprecated.h +105 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-rectangle.h +61 -48
- data/vendor/local/include/cogl/cogl/cogl-texture.h +157 -241
- data/vendor/local/include/cogl/cogl/cogl-type-casts.h +53 -0
- data/vendor/local/include/cogl/cogl/cogl-types.h +23 -11
- data/vendor/local/include/cogl/cogl/cogl-vector.h +20 -15
- data/vendor/local/include/cogl/cogl/cogl-version.h +28 -12
- data/vendor/local/include/cogl/cogl/cogl-vertex-buffer.h +20 -13
- data/vendor/local/include/cogl/cogl/cogl-win32-renderer.h +18 -13
- data/vendor/local/include/cogl/cogl/cogl.h +61 -22
- data/vendor/local/include/cogl/cogl/cogl1-context.h +20 -434
- data/vendor/local/include/cogl/cogl/cogl2-experimental.h +18 -12
- data/vendor/local/include/cogl/cogl/deprecated/cogl-auto-texture.h +221 -0
- data/vendor/local/include/cogl/cogl/deprecated/cogl-clip-state.h +266 -0
- data/vendor/local/include/cogl/cogl/deprecated/cogl-clutter.h +54 -0
- data/vendor/local/include/cogl/cogl/deprecated/cogl-fixed.h +811 -0
- data/vendor/local/include/cogl/cogl/deprecated/cogl-framebuffer-deprecated.h +264 -0
- data/vendor/local/include/cogl/cogl/deprecated/cogl-material-compat.h +1391 -0
- data/vendor/local/include/cogl/cogl/deprecated/cogl-shader.h +704 -0
- data/vendor/local/include/cogl/cogl/deprecated/cogl-texture-deprecated.h +105 -0
- data/vendor/local/include/cogl/cogl/deprecated/cogl-type-casts.h +53 -0
- data/vendor/local/include/cogl/cogl/deprecated/cogl-vertex-buffer.h +451 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-core-functions.h +18 -11
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-gles2-functions.h +18 -11
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-glsl-functions.h +18 -11
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-in-gles-core-functions.h +18 -11
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-in-gles2-core-functions.h +18 -11
- data/vendor/local/include/json-glib-1.0/json-glib/json-builder.h +21 -7
- data/vendor/local/include/json-glib-1.0/json-glib/json-enum-types.h +8 -3
- data/vendor/local/include/json-glib-1.0/json-glib/json-generator.h +16 -3
- data/vendor/local/include/json-glib-1.0/json-glib/json-glib.h +1 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-gobject.h +23 -5
- data/vendor/local/include/json-glib-1.0/json-glib/json-gvariant.h +9 -2
- data/vendor/local/include/json-glib-1.0/json-glib/json-parser.h +17 -4
- data/vendor/local/include/json-glib-1.0/json-glib/json-path.h +13 -8
- data/vendor/local/include/json-glib-1.0/json-glib/json-reader.h +28 -7
- data/vendor/local/include/json-glib-1.0/json-glib/json-types.h +97 -12
- data/vendor/local/include/json-glib-1.0/json-glib/json-version-macros.h +135 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-version.h +14 -12
- data/vendor/local/lib/girepository-1.0/Clutter-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Cogl-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Cogl-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/CoglPango-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/CoglPango-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Json-1.0.typelib +0 -0
- data/vendor/local/lib/libclutter-1.0.dll.a +0 -0
- data/vendor/local/lib/libclutter-1.0.la +4 -4
- data/vendor/local/lib/libcogl-pango.dll.a +0 -0
- data/vendor/local/lib/libcogl-pango.la +5 -5
- data/vendor/local/lib/libcogl-path.dll.a +0 -0
- data/vendor/local/lib/libcogl-path.la +41 -0
- data/vendor/local/lib/libcogl.dll.a +0 -0
- data/vendor/local/lib/libcogl.la +5 -5
- data/vendor/local/lib/libjson-glib-1.0.dll.a +0 -0
- data/vendor/local/lib/libjson-glib-1.0.la +3 -3
- data/vendor/local/lib/pkgconfig/cally-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/clutter-1.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/clutter-win32-1.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/cogl-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/cogl-gl-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/cogl-pango-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/cogl-pango-2.0-experimental.pc +3 -3
- data/vendor/local/lib/pkgconfig/cogl-path-1.0.pc +13 -0
- data/vendor/local/lib/pkgconfig/cogl-path-2.0-experimental.pc +13 -0
- data/vendor/local/lib/pkgconfig/json-glib-1.0.pc +1 -1
- data/vendor/local/share/gir-1.0/Cally-1.0.gir +4 -2
- data/vendor/local/share/gir-1.0/Clutter-1.0.gir +4527 -1814
- data/vendor/local/share/gir-1.0/Cogl-1.0.gir +1194 -1881
- data/vendor/local/share/gir-1.0/Cogl-2.0.gir +20369 -0
- data/vendor/local/share/gir-1.0/CoglPango-1.0.gir +9 -5
- data/vendor/local/share/gir-1.0/CoglPango-2.0.gir +331 -0
- data/vendor/local/share/gir-1.0/Json-1.0.gir +363 -163
- data/vendor/local/share/gtk-doc/html/cally/CallyActor.html +356 -259
- data/vendor/local/share/gtk-doc/html/cally/CallyClone.html +91 -69
- data/vendor/local/share/gtk-doc/html/cally/CallyGroup.html +89 -71
- data/vendor/local/share/gtk-doc/html/cally/CallyRectangle.html +90 -68
- data/vendor/local/share/gtk-doc/html/cally/CallyRoot.html +72 -59
- data/vendor/local/share/gtk-doc/html/cally/CallyStage.html +92 -70
- data/vendor/local/share/gtk-doc/html/cally/CallyText.html +90 -66
- data/vendor/local/share/gtk-doc/html/cally/CallyTexture.html +90 -68
- data/vendor/local/share/gtk-doc/html/cally/CallyUtil.html +42 -37
- data/vendor/local/share/gtk-doc/html/cally/cally-General-API.html +109 -86
- data/vendor/local/share/gtk-doc/html/cally/cally.devhelp2 +16 -16
- data/vendor/local/share/gtk-doc/html/cally/callyannotationglossary.html +4 -4
- data/vendor/local/share/gtk-doc/html/cally/callybase.html +4 -4
- data/vendor/local/share/gtk-doc/html/cally/callyobjecthierarchy.html +16 -16
- data/vendor/local/share/gtk-doc/html/cally/callyobjectindex.html +4 -4
- data/vendor/local/share/gtk-doc/html/cally/callyobjects.html +4 -4
- data/vendor/local/share/gtk-doc/html/cally/ch01.html +4 -4
- data/vendor/local/share/gtk-doc/html/cally/ch02.html +4 -4
- data/vendor/local/share/gtk-doc/html/cally/clutter-overview.html +4 -4
- data/vendor/local/share/gtk-doc/html/cally/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/cally/index.sgml +47 -29
- data/vendor/local/share/gtk-doc/html/cally/ix01.html +27 -29
- data/vendor/local/share/gtk-doc/html/cally/ix02.html +4 -4
- data/vendor/local/share/gtk-doc/html/cally/ix03.html +25 -27
- data/vendor/local/share/gtk-doc/html/cally/ix04.html +6 -6
- data/vendor/local/share/gtk-doc/html/cally/license.html +4 -4
- data/vendor/local/share/gtk-doc/html/cally/style.css +260 -105
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAction.html +47 -45
- data/vendor/local/share/gtk-doc/html/clutter/ClutterActor.html +11634 -9660
- data/vendor/local/share/gtk-doc/html/clutter/ClutterActorMeta.html +283 -206
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAlignConstraint.html +335 -242
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAlpha.html +595 -523
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAnimatable.html +341 -273
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAnimator.html +995 -804
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBackend.html +583 -432
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviour.html +565 -457
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourDepth.html +207 -169
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourEllipse.html +718 -518
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourOpacity.html +211 -172
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourPath.html +338 -283
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourRotate.html +506 -367
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourScale.html +322 -275
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBinLayout.html +329 -901
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBindConstraint.html +374 -553
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBlurEffect.html +65 -55
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBox.html +491 -419
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBoxLayout.html +1032 -790
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBrightnessContrastEffect.html +316 -243
- data/vendor/local/share/gtk-doc/html/clutter/ClutterCairoTexture.html +613 -755
- data/vendor/local/share/gtk-doc/html/clutter/ClutterCanvas.html +367 -373
- data/vendor/local/share/gtk-doc/html/clutter/ClutterChildMeta.html +181 -144
- data/vendor/local/share/gtk-doc/html/clutter/ClutterClickAction.html +399 -316
- data/vendor/local/share/gtk-doc/html/clutter/ClutterClone.html +177 -135
- data/vendor/local/share/gtk-doc/html/clutter/ClutterColorizeEffect.html +154 -105
- data/vendor/local/share/gtk-doc/html/clutter/ClutterConstraint.html +137 -262
- data/vendor/local/share/gtk-doc/html/clutter/ClutterContainer.html +1119 -851
- data/vendor/local/share/gtk-doc/html/clutter/ClutterContent.html +238 -177
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDeformEffect.html +293 -225
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDesaturateEffect.html +159 -114
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDeviceManager.html +330 -243
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDragAction.html +772 -873
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDropAction.html +304 -766
- data/vendor/local/share/gtk-doc/html/clutter/ClutterEffect.html +353 -267
- data/vendor/local/share/gtk-doc/html/clutter/ClutterFixedLayout.html +70 -57
- data/vendor/local/share/gtk-doc/html/clutter/ClutterFlowLayout.html +646 -825
- data/vendor/local/share/gtk-doc/html/clutter/ClutterGestureAction.html +991 -555
- data/vendor/local/share/gtk-doc/html/clutter/ClutterGridLayout.html +725 -510
- data/vendor/local/share/gtk-doc/html/clutter/ClutterGroup.html +177 -133
- data/vendor/local/share/gtk-doc/html/clutter/ClutterImage.html +380 -512
- data/vendor/local/share/gtk-doc/html/clutter/ClutterInputDevice.html +1252 -962
- data/vendor/local/share/gtk-doc/html/clutter/ClutterKeyframeTransition.html +414 -320
- data/vendor/local/share/gtk-doc/html/clutter/ClutterLayoutManager.html +830 -923
- data/vendor/local/share/gtk-doc/html/clutter/ClutterLayoutMeta.html +118 -87
- data/vendor/local/share/gtk-doc/html/clutter/ClutterListModel.html +144 -130
- data/vendor/local/share/gtk-doc/html/clutter/ClutterMedia.html +742 -586
- data/vendor/local/share/gtk-doc/html/clutter/ClutterModel.html +1398 -1058
- data/vendor/local/share/gtk-doc/html/clutter/ClutterModelIter.html +563 -425
- data/vendor/local/share/gtk-doc/html/clutter/ClutterOffscreenEffect.html +322 -265
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPageTurnEffect.html +292 -194
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPaintNode.html +473 -333
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPanAction.html +653 -489
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPath.html +1107 -855
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPathConstraint.html +277 -188
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPropertyTransition.html +178 -130
- data/vendor/local/share/gtk-doc/html/clutter/ClutterRectangle.html +334 -216
- data/vendor/local/share/gtk-doc/html/clutter/ClutterRotateAction.html +131 -95
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScore.html +709 -569
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScript.html +958 -899
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScriptable.html +242 -186
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScrollActor.html +263 -606
- data/vendor/local/share/gtk-doc/html/clutter/ClutterSettings.html +243 -165
- data/vendor/local/share/gtk-doc/html/clutter/ClutterShaderEffect.html +469 -368
- data/vendor/local/share/gtk-doc/html/clutter/ClutterSnapConstraint.html +353 -245
- data/vendor/local/share/gtk-doc/html/clutter/ClutterStage.html +1967 -1513
- data/vendor/local/share/gtk-doc/html/clutter/ClutterState.html +1273 -1005
- data/vendor/local/share/gtk-doc/html/clutter/ClutterSwipeAction.html +200 -144
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTableLayout.html +995 -745
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTapAction.html +123 -93
- data/vendor/local/share/gtk-doc/html/clutter/ClutterText.html +2742 -1997
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTextBuffer.html +647 -474
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTexture.html +1482 -1223
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTimeline.html +2161 -1735
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTransition.html +496 -383
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTransitionGroup.html +175 -135
- data/vendor/local/share/gtk-doc/html/clutter/ClutterZoomAction.html +313 -236
- data/vendor/local/share/gtk-doc/html/clutter/annotation-glossary.html +29 -13
- data/vendor/local/share/gtk-doc/html/clutter/building-clutter.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/ch01.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/ch02.html +4 -7
- data/vendor/local/share/gtk-doc/html/clutter/ch03.html +4 -8
- data/vendor/local/share/gtk-doc/html/clutter/ch04.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/ch05.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/ch06.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/ch07.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/ch08.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/ch09.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/ch10.html +5 -5
- data/vendor/local/share/gtk-doc/html/clutter/ch11.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/ch12.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Base-geometric-types.html +3059 -2295
- data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterGLXTexturePixmap.html +181 -137
- data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterWaylandSurface.html +340 -197
- data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterX11TexturePixmap.html +306 -222
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Colors.html +1272 -988
- data/vendor/local/share/gtk-doc/html/clutter/clutter-EGL-Specific-Support.html +154 -69
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Events.html +2714 -1972
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Features.html +151 -116
- data/vendor/local/share/gtk-doc/html/clutter/clutter-GDK-Specific-Support.html +205 -154
- data/vendor/local/share/gtk-doc/html/clutter/clutter-General.html +1455 -1890
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Implicit-Animations.html +1449 -1804
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Intel-CE3100-CE4100-Specific-Support.html +134 -112
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Key-Bindings.html +625 -520
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Paint-Nodes.html +302 -239
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Shaders.html +872 -637
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Stage-Manager.html +293 -213
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Unit-conversion.html +674 -508
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Utilities.html +454 -339
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Value-intervals.html +816 -623
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Versioning-Macros.html +346 -302
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Wayland-compositor-specific-support.html +60 -34
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Wayland-specific-support.html +200 -170
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Win32-Specific-Support.html +162 -119
- data/vendor/local/share/gtk-doc/html/clutter/clutter-X11-Specific-Support.html +678 -565
- data/vendor/local/share/gtk-doc/html/clutter/clutter-overview.html +5 -5
- data/vendor/local/share/gtk-doc/html/clutter/clutter.devhelp2 +1937 -2272
- data/vendor/local/share/gtk-doc/html/clutter/clutteranimation.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/clutterbackends.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/clutterbase.html +4 -11
- data/vendor/local/share/gtk-doc/html/clutter/clutterglossary.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/clutterobjecthierarchy.html +87 -87
- data/vendor/local/share/gtk-doc/html/clutter/clutterobjectindex.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/clutterobjects.html +6 -6
- data/vendor/local/share/gtk-doc/html/clutter/cluttertools.html +5 -5
- data/vendor/local/share/gtk-doc/html/clutter/deprecated.html +11 -4
- data/vendor/local/share/gtk-doc/html/clutter/go01.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/index.html +11 -11
- data/vendor/local/share/gtk-doc/html/clutter/index.sgml +842 -978
- data/vendor/local/share/gtk-doc/html/clutter/iterating-paths.html +7 -7
- data/vendor/local/share/gtk-doc/html/clutter/ix01.html +2005 -1923
- data/vendor/local/share/gtk-doc/html/clutter/ix02.html +663 -470
- data/vendor/local/share/gtk-doc/html/clutter/ix03.html +83 -85
- data/vendor/local/share/gtk-doc/html/clutter/ix04.html +122 -124
- data/vendor/local/share/gtk-doc/html/clutter/ix05.html +217 -219
- data/vendor/local/share/gtk-doc/html/clutter/ix06.html +148 -150
- data/vendor/local/share/gtk-doc/html/clutter/ix07.html +349 -351
- data/vendor/local/share/gtk-doc/html/clutter/ix08.html +177 -179
- data/vendor/local/share/gtk-doc/html/clutter/ix09.html +214 -216
- data/vendor/local/share/gtk-doc/html/clutter/ix10.html +83 -85
- data/vendor/local/share/gtk-doc/html/clutter/ix11.html +80 -82
- data/vendor/local/share/gtk-doc/html/clutter/ix12.html +219 -221
- data/vendor/local/share/gtk-doc/html/clutter/ix13.html +212 -214
- data/vendor/local/share/gtk-doc/html/clutter/ix14.html +22 -32
- data/vendor/local/share/gtk-doc/html/clutter/license.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterAnimation.html +16 -16
- data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterBehaviour.html +15 -15
- data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterEffect.html +17 -17
- data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterPath.html +11 -12
- data/vendor/local/share/gtk-doc/html/clutter/migration.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/pt09.html +4 -4
- data/vendor/local/share/gtk-doc/html/clutter/running-clutter.html +9 -4
- data/vendor/local/share/gtk-doc/html/clutter/style.css +260 -105
- data/vendor/local/share/gtk-doc/html/clutter/using-cairo.html +6 -6
- data/vendor/local/share/gtk-doc/html/json-glib/JsonBuilder.html +513 -392
- data/vendor/local/share/gtk-doc/html/json-glib/JsonGenerator.html +479 -347
- data/vendor/local/share/gtk-doc/html/json-glib/JsonParser.html +804 -600
- data/vendor/local/share/gtk-doc/html/json-glib/JsonPath.html +395 -362
- data/vendor/local/share/gtk-doc/html/json-glib/JsonReader.html +788 -609
- data/vendor/local/share/gtk-doc/html/json-glib/annotation-glossary.html +32 -43
- data/vendor/local/share/gtk-doc/html/json-glib/ch01.html +9 -9
- data/vendor/local/share/gtk-doc/html/json-glib/ch02.html +9 -9
- data/vendor/local/share/gtk-doc/html/json-glib/ch03.html +9 -9
- data/vendor/local/share/gtk-doc/html/json-glib/ch05.html +40 -0
- data/vendor/local/share/gtk-doc/html/json-glib/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/index.html +15 -6
- data/vendor/local/share/gtk-doc/html/json-glib/index.sgml +82 -73
- data/vendor/local/share/gtk-doc/html/json-glib/ix01.html +230 -227
- data/vendor/local/share/gtk-doc/html/json-glib/ix02.html +17 -22
- data/vendor/local/share/gtk-doc/html/json-glib/ix03.html +20 -25
- data/vendor/local/share/gtk-doc/html/json-glib/ix04.html +17 -22
- data/vendor/local/share/gtk-doc/html/json-glib/ix05.html +50 -55
- data/vendor/local/share/gtk-doc/html/json-glib/ix06.html +30 -35
- data/vendor/local/share/gtk-doc/html/json-glib/ix07.html +39 -44
- data/vendor/local/share/gtk-doc/html/json-glib/ix08.html +35 -40
- data/vendor/local/share/gtk-doc/html/json-glib/json-advanced.html +12 -9
- data/vendor/local/share/gtk-doc/html/json-glib/json-base.html +9 -9
- data/vendor/local/share/gtk-doc/html/json-glib/json-format-tool.html +84 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Boxed-Types-Serialization.html +306 -221
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-GObject-Serialization.html +261 -204
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Array.html +843 -583
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-GVariant-Integration.html +223 -199
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Node.html +1327 -912
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Object.html +986 -694
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Serializable-Interface.html +386 -301
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Versioning-information.html +151 -87
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib.devhelp2 +204 -218
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib.html +9 -9
- data/vendor/local/share/gtk-doc/html/json-glib/json-streams.html +9 -9
- data/vendor/local/share/gtk-doc/html/json-glib/json-tools.html +19 -13
- data/vendor/local/share/gtk-doc/html/json-glib/json-validate-tool.html +72 -0
- data/vendor/local/share/gtk-doc/html/json-glib/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/license.html +9 -9
- data/vendor/local/share/gtk-doc/html/json-glib/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/style.css +314 -104
- data/vendor/local/share/gtk-doc/html/json-glib/tools.html +38 -0
- data/vendor/local/share/gtk-doc/html/json-glib/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/up.png +0 -0
- data/vendor/local/share/license/cogl/COPYING +107 -502
- data/vendor/local/share/locale/an/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/an/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/az_IR/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/fur/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/km/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/km/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ky/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ur/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/cogl.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/man/man1/json-glib-format.1 +60 -0
- data/vendor/local/share/man/man1/json-glib-validate.1 +56 -0
- metadata +66 -27
- data/vendor/local/bin/libcogl-pango-15.dll +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ch04.html +0 -38
@@ -0,0 +1,264 @@
|
|
1
|
+
/*
|
2
|
+
* Cogl
|
3
|
+
*
|
4
|
+
* A Low Level GPU Graphics and Utilities API
|
5
|
+
*
|
6
|
+
* Copyright (C) 2014 Intel Corporation.
|
7
|
+
*
|
8
|
+
* Permission is hereby granted, free of charge, to any person
|
9
|
+
* obtaining a copy of this software and associated documentation
|
10
|
+
* files (the "Software"), to deal in the Software without
|
11
|
+
* restriction, including without limitation the rights to use, copy,
|
12
|
+
* modify, merge, publish, distribute, sublicense, and/or sell copies
|
13
|
+
* of the Software, and to permit persons to whom the Software is
|
14
|
+
* furnished to do so, subject to the following conditions:
|
15
|
+
*
|
16
|
+
* The above copyright notice and this permission notice shall be
|
17
|
+
* included in all copies or substantial portions of the Software.
|
18
|
+
*
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
20
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
22
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
23
|
+
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
24
|
+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
25
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
26
|
+
* SOFTWARE.
|
27
|
+
*
|
28
|
+
*
|
29
|
+
*/
|
30
|
+
|
31
|
+
#ifndef __COGL_FRAMEBUFFER_DEPRECATED_H__
|
32
|
+
#define __COGL_FRAMEBUFFER_DEPRECATED_H__
|
33
|
+
|
34
|
+
#include <cogl/cogl-macros.h>
|
35
|
+
|
36
|
+
COGL_BEGIN_DECLS
|
37
|
+
|
38
|
+
/**
|
39
|
+
* cogl_set_framebuffer:
|
40
|
+
* @buffer: A #CoglFramebuffer object, either onscreen or offscreen.
|
41
|
+
*
|
42
|
+
* This redirects all subsequent drawing to the specified framebuffer. This can
|
43
|
+
* either be an offscreen buffer created with cogl_offscreen_new_to_texture ()
|
44
|
+
* or in the future it may be an onscreen framebuffers too.
|
45
|
+
*
|
46
|
+
* Since: 1.2
|
47
|
+
* Deprecated: 1.16: The latest drawing apis take explicit
|
48
|
+
* #CoglFramebuffer arguments so this stack of
|
49
|
+
* framebuffers shouldn't be used anymore.
|
50
|
+
*/
|
51
|
+
COGL_DEPRECATED_IN_1_16
|
52
|
+
void
|
53
|
+
cogl_set_framebuffer (CoglFramebuffer *buffer);
|
54
|
+
|
55
|
+
/**
|
56
|
+
* cogl_push_framebuffer:
|
57
|
+
* @buffer: A #CoglFramebuffer object, either onscreen or offscreen.
|
58
|
+
*
|
59
|
+
* Redirects all subsequent drawing to the specified framebuffer. This can
|
60
|
+
* either be an offscreen buffer created with cogl_offscreen_new_to_texture ()
|
61
|
+
* or in the future it may be an onscreen framebuffer too.
|
62
|
+
*
|
63
|
+
* You should understand that a framebuffer owns the following state:
|
64
|
+
* <itemizedlist>
|
65
|
+
* <listitem><simpara>The projection matrix</simpara></listitem>
|
66
|
+
* <listitem><simpara>The modelview matrix stack</simpara></listitem>
|
67
|
+
* <listitem><simpara>The viewport</simpara></listitem>
|
68
|
+
* <listitem><simpara>The clip stack</simpara></listitem>
|
69
|
+
* </itemizedlist>
|
70
|
+
* So these items will automatically be saved and restored when you
|
71
|
+
* push and pop between different framebuffers.
|
72
|
+
*
|
73
|
+
* Also remember a newly allocated framebuffer will have an identity matrix for
|
74
|
+
* the projection and modelview matrices which gives you a coordinate space
|
75
|
+
* like OpenGL with (-1, -1) corresponding to the top left of the viewport,
|
76
|
+
* (1, 1) corresponding to the bottom right and +z coming out towards the
|
77
|
+
* viewer.
|
78
|
+
*
|
79
|
+
* If you want to set up a coordinate space like Clutter does with (0, 0)
|
80
|
+
* corresponding to the top left and (framebuffer_width, framebuffer_height)
|
81
|
+
* corresponding to the bottom right you can do so like this:
|
82
|
+
*
|
83
|
+
* |[
|
84
|
+
* static void
|
85
|
+
* setup_viewport (unsigned int width,
|
86
|
+
* unsigned int height,
|
87
|
+
* float fovy,
|
88
|
+
* float aspect,
|
89
|
+
* float z_near,
|
90
|
+
* float z_far)
|
91
|
+
* {
|
92
|
+
* float z_camera;
|
93
|
+
* CoglMatrix projection_matrix;
|
94
|
+
* CoglMatrix mv_matrix;
|
95
|
+
*
|
96
|
+
* cogl_set_viewport (0, 0, width, height);
|
97
|
+
* cogl_perspective (fovy, aspect, z_near, z_far);
|
98
|
+
*
|
99
|
+
* cogl_get_projection_matrix (&projection_matrix);
|
100
|
+
* z_camera = 0.5 * projection_matrix.xx;
|
101
|
+
*
|
102
|
+
* cogl_matrix_init_identity (&mv_matrix);
|
103
|
+
* cogl_matrix_translate (&mv_matrix, -0.5f, -0.5f, -z_camera);
|
104
|
+
* cogl_matrix_scale (&mv_matrix, 1.0f / width, -1.0f / height, 1.0f / width);
|
105
|
+
* cogl_matrix_translate (&mv_matrix, 0.0f, -1.0 * height, 0.0f);
|
106
|
+
* cogl_set_modelview_matrix (&mv_matrix);
|
107
|
+
* }
|
108
|
+
*
|
109
|
+
* static void
|
110
|
+
* my_init_framebuffer (ClutterStage *stage,
|
111
|
+
* CoglFramebuffer *framebuffer,
|
112
|
+
* unsigned int framebuffer_width,
|
113
|
+
* unsigned int framebuffer_height)
|
114
|
+
* {
|
115
|
+
* ClutterPerspective perspective;
|
116
|
+
*
|
117
|
+
* clutter_stage_get_perspective (stage, &perspective);
|
118
|
+
*
|
119
|
+
* cogl_push_framebuffer (framebuffer);
|
120
|
+
* setup_viewport (framebuffer_width,
|
121
|
+
* framebuffer_height,
|
122
|
+
* perspective.fovy,
|
123
|
+
* perspective.aspect,
|
124
|
+
* perspective.z_near,
|
125
|
+
* perspective.z_far);
|
126
|
+
* }
|
127
|
+
* ]|
|
128
|
+
*
|
129
|
+
* The previous framebuffer can be restored by calling cogl_pop_framebuffer()
|
130
|
+
*
|
131
|
+
* Since: 1.2
|
132
|
+
* Deprecated: 1.16: The latest drawing apis take explicit
|
133
|
+
* #CoglFramebuffer arguments so this stack of
|
134
|
+
* framebuffers shouldn't be used anymore.
|
135
|
+
*/
|
136
|
+
COGL_DEPRECATED_IN_1_16
|
137
|
+
void
|
138
|
+
cogl_push_framebuffer (CoglFramebuffer *buffer);
|
139
|
+
|
140
|
+
/**
|
141
|
+
* cogl_pop_framebuffer:
|
142
|
+
*
|
143
|
+
* Restores the framebuffer that was previously at the top of the stack.
|
144
|
+
* All subsequent drawing will be redirected to this framebuffer.
|
145
|
+
*
|
146
|
+
* Since: 1.2
|
147
|
+
* Deprecated: 1.16: The latest drawing apis take explicit
|
148
|
+
* #CoglFramebuffer arguments so this stack of
|
149
|
+
* framebuffers shouldn't be used anymore.
|
150
|
+
*/
|
151
|
+
COGL_DEPRECATED_IN_1_16
|
152
|
+
void
|
153
|
+
cogl_pop_framebuffer (void);
|
154
|
+
|
155
|
+
/**
|
156
|
+
* cogl_set_draw_buffer:
|
157
|
+
* @target: A #CoglBufferTarget that specifies what kind of framebuffer you
|
158
|
+
* are setting as the render target.
|
159
|
+
* @offscreen: If you are setting a framebuffer of type COGL_OFFSCREEN_BUFFER
|
160
|
+
* then this is a CoglHandle for the offscreen buffer.
|
161
|
+
*
|
162
|
+
* Redirects all subsequent drawing to the specified framebuffer. This
|
163
|
+
* can either be an offscreen buffer created with
|
164
|
+
* cogl_offscreen_new_to_texture () or you can revert to your original
|
165
|
+
* on screen window buffer.
|
166
|
+
*
|
167
|
+
* Deprecated: 1.16: The latest drawing apis take explicit
|
168
|
+
* #CoglFramebuffer arguments so this stack of
|
169
|
+
* framebuffers shouldn't be used anymore.
|
170
|
+
*/
|
171
|
+
COGL_DEPRECATED_IN_1_16
|
172
|
+
void
|
173
|
+
cogl_set_draw_buffer (CoglBufferTarget target,
|
174
|
+
CoglHandle offscreen);
|
175
|
+
|
176
|
+
/**
|
177
|
+
* cogl_push_draw_buffer:
|
178
|
+
*
|
179
|
+
* Save cogl_set_draw_buffer() state.
|
180
|
+
*
|
181
|
+
* Deprecated: 1.16: The latest drawing apis take explicit
|
182
|
+
* #CoglFramebuffer arguments so this stack of
|
183
|
+
* framebuffers shouldn't be used anymore.
|
184
|
+
*/
|
185
|
+
COGL_DEPRECATED_IN_1_16
|
186
|
+
void
|
187
|
+
cogl_push_draw_buffer (void);
|
188
|
+
|
189
|
+
/**
|
190
|
+
* cogl_pop_draw_buffer:
|
191
|
+
*
|
192
|
+
* Restore cogl_set_draw_buffer() state.
|
193
|
+
*
|
194
|
+
* Deprecated: 1.16: The latest drawing apis take explicit
|
195
|
+
* #CoglFramebuffer arguments so this stack of
|
196
|
+
* framebuffers shouldn't be used anymore.
|
197
|
+
*/
|
198
|
+
COGL_DEPRECATED_IN_1_16
|
199
|
+
void
|
200
|
+
cogl_pop_draw_buffer (void);
|
201
|
+
|
202
|
+
/**
|
203
|
+
* cogl_read_pixels:
|
204
|
+
* @x: The window x position to start reading from
|
205
|
+
* @y: The window y position to start reading from
|
206
|
+
* @width: The width of the rectangle you want to read
|
207
|
+
* @height: The height of the rectangle you want to read
|
208
|
+
* @source: Identifies which auxillary buffer you want to read
|
209
|
+
* (only COGL_READ_PIXELS_COLOR_BUFFER supported currently)
|
210
|
+
* @format: The pixel format you want the result in
|
211
|
+
* (only COGL_PIXEL_FORMAT_RGBA_8888 supported currently)
|
212
|
+
* @pixels: The location to write the pixel data.
|
213
|
+
*
|
214
|
+
* This reads a rectangle of pixels from the current framebuffer where
|
215
|
+
* position (0, 0) is the top left. The pixel at (x, y) is the first
|
216
|
+
* read, and the data is returned with a rowstride of (width * 4).
|
217
|
+
*
|
218
|
+
* Currently Cogl assumes that the framebuffer is in a premultiplied
|
219
|
+
* format so if @format is non-premultiplied it will convert it. To
|
220
|
+
* read the pixel values without any conversion you should either
|
221
|
+
* specify a format that doesn't use an alpha channel or use one of
|
222
|
+
* the formats ending in PRE.
|
223
|
+
*
|
224
|
+
* Deprecated: 1.16: Use cogl_framebuffer_read_pixels() instead
|
225
|
+
*/
|
226
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_framebuffer_read_pixels)
|
227
|
+
void
|
228
|
+
cogl_read_pixels (int x,
|
229
|
+
int y,
|
230
|
+
int width,
|
231
|
+
int height,
|
232
|
+
CoglReadPixelsFlags source,
|
233
|
+
CoglPixelFormat format,
|
234
|
+
uint8_t *pixels);
|
235
|
+
|
236
|
+
|
237
|
+
/* XXX: Since this api was marked unstable, maybe we can just
|
238
|
+
* remove this api if we can't find anyone is using it. */
|
239
|
+
/**
|
240
|
+
* cogl_framebuffer_get_color_format:
|
241
|
+
* @framebuffer: A #CoglFramebuffer framebuffer
|
242
|
+
*
|
243
|
+
* Queries the common #CoglPixelFormat of all color buffers attached
|
244
|
+
* to this framebuffer. For an offscreen framebuffer created with
|
245
|
+
* cogl_offscreen_new_with_texture() this will correspond to the format
|
246
|
+
* of the texture.
|
247
|
+
*
|
248
|
+
* This API is deprecated because it is missleading to report a
|
249
|
+
* #CoglPixelFormat for the internal format of the @framebuffer since
|
250
|
+
* #CoglPixelFormat is such a precise format description and it's
|
251
|
+
* only the set of components and the premultiplied alpha status
|
252
|
+
* that is really known.
|
253
|
+
*
|
254
|
+
* Since: 1.8
|
255
|
+
* Stability: unstable
|
256
|
+
* Deprecated 1.18: Removed since it is misleading
|
257
|
+
*/
|
258
|
+
COGL_DEPRECATED_IN_1_18
|
259
|
+
CoglPixelFormat
|
260
|
+
cogl_framebuffer_get_color_format (CoglFramebuffer *framebuffer);
|
261
|
+
|
262
|
+
COGL_END_DECLS
|
263
|
+
|
264
|
+
#endif /* __COGL_FRAMEBUFFER_DEPRECATED_H__ */
|
@@ -0,0 +1,1391 @@
|
|
1
|
+
/*
|
2
|
+
* Cogl
|
3
|
+
*
|
4
|
+
* A Low Level GPU Graphics and Utilities API
|
5
|
+
*
|
6
|
+
* Copyright (C) 2007,2008,2009 Intel Corporation.
|
7
|
+
*
|
8
|
+
* Permission is hereby granted, free of charge, to any person
|
9
|
+
* obtaining a copy of this software and associated documentation
|
10
|
+
* files (the "Software"), to deal in the Software without
|
11
|
+
* restriction, including without limitation the rights to use, copy,
|
12
|
+
* modify, merge, publish, distribute, sublicense, and/or sell copies
|
13
|
+
* of the Software, and to permit persons to whom the Software is
|
14
|
+
* furnished to do so, subject to the following conditions:
|
15
|
+
*
|
16
|
+
* The above copyright notice and this permission notice shall be
|
17
|
+
* included in all copies or substantial portions of the Software.
|
18
|
+
*
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
20
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
22
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
23
|
+
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
24
|
+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
25
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
26
|
+
* SOFTWARE.
|
27
|
+
*
|
28
|
+
*
|
29
|
+
*/
|
30
|
+
|
31
|
+
#if !defined(__COGL_H_INSIDE__) && !defined(COGL_COMPILATION)
|
32
|
+
#error "Only <cogl/cogl.h> can be included directly."
|
33
|
+
#endif
|
34
|
+
|
35
|
+
#ifndef __COGL_MATERIAL_H__
|
36
|
+
#define __COGL_MATERIAL_H__
|
37
|
+
|
38
|
+
#include <cogl/cogl-types.h>
|
39
|
+
#include <cogl/cogl-matrix.h>
|
40
|
+
#include <cogl/cogl-depth-state.h>
|
41
|
+
#include <cogl/cogl-error.h>
|
42
|
+
#include <cogl/cogl-macros.h>
|
43
|
+
|
44
|
+
G_BEGIN_DECLS
|
45
|
+
|
46
|
+
/**
|
47
|
+
* SECTION:cogl-material
|
48
|
+
* @short_description: Fuctions for creating and manipulating materials
|
49
|
+
*
|
50
|
+
* COGL allows creating and manipulating materials used to fill in
|
51
|
+
* geometry. Materials may simply be lighting attributes (such as an
|
52
|
+
* ambient and diffuse colour) or might represent one or more textures
|
53
|
+
* blended together.
|
54
|
+
*/
|
55
|
+
|
56
|
+
typedef struct _CoglMaterial CoglMaterial;
|
57
|
+
typedef struct _CoglMaterialLayer CoglMaterialLayer;
|
58
|
+
|
59
|
+
#define COGL_MATERIAL(OBJECT) ((CoglMaterial *)OBJECT)
|
60
|
+
|
61
|
+
/**
|
62
|
+
* CoglMaterialFilter:
|
63
|
+
* @COGL_MATERIAL_FILTER_NEAREST: Measuring in manhatten distance from the,
|
64
|
+
* current pixel center, use the nearest texture texel
|
65
|
+
* @COGL_MATERIAL_FILTER_LINEAR: Use the weighted average of the 4 texels
|
66
|
+
* nearest the current pixel center
|
67
|
+
* @COGL_MATERIAL_FILTER_NEAREST_MIPMAP_NEAREST: Select the mimap level whose
|
68
|
+
* texel size most closely matches the current pixel, and use the
|
69
|
+
* %COGL_MATERIAL_FILTER_NEAREST criterion
|
70
|
+
* @COGL_MATERIAL_FILTER_LINEAR_MIPMAP_NEAREST: Select the mimap level whose
|
71
|
+
* texel size most closely matches the current pixel, and use the
|
72
|
+
* %COGL_MATERIAL_FILTER_LINEAR criterion
|
73
|
+
* @COGL_MATERIAL_FILTER_NEAREST_MIPMAP_LINEAR: Select the two mimap levels
|
74
|
+
* whose texel size most closely matches the current pixel, use
|
75
|
+
* the %COGL_MATERIAL_FILTER_NEAREST criterion on each one and take
|
76
|
+
* their weighted average
|
77
|
+
* @COGL_MATERIAL_FILTER_LINEAR_MIPMAP_LINEAR: Select the two mimap levels
|
78
|
+
* whose texel size most closely matches the current pixel, use
|
79
|
+
* the %COGL_MATERIAL_FILTER_LINEAR criterion on each one and take
|
80
|
+
* their weighted average
|
81
|
+
*
|
82
|
+
* Texture filtering is used whenever the current pixel maps either to more
|
83
|
+
* than one texture element (texel) or less than one. These filter enums
|
84
|
+
* correspond to different strategies used to come up with a pixel color, by
|
85
|
+
* possibly referring to multiple neighbouring texels and taking a weighted
|
86
|
+
* average or simply using the nearest texel.
|
87
|
+
*/
|
88
|
+
typedef enum {
|
89
|
+
COGL_MATERIAL_FILTER_NEAREST = 0x2600,
|
90
|
+
COGL_MATERIAL_FILTER_LINEAR = 0x2601,
|
91
|
+
COGL_MATERIAL_FILTER_NEAREST_MIPMAP_NEAREST = 0x2700,
|
92
|
+
COGL_MATERIAL_FILTER_LINEAR_MIPMAP_NEAREST = 0x2701,
|
93
|
+
COGL_MATERIAL_FILTER_NEAREST_MIPMAP_LINEAR = 0x2702,
|
94
|
+
COGL_MATERIAL_FILTER_LINEAR_MIPMAP_LINEAR = 0x2703
|
95
|
+
} CoglMaterialFilter;
|
96
|
+
/* NB: these values come from the equivalents in gl.h */
|
97
|
+
|
98
|
+
/**
|
99
|
+
* CoglMaterialWrapMode:
|
100
|
+
* @COGL_MATERIAL_WRAP_MODE_REPEAT: The texture will be repeated. This
|
101
|
+
* is useful for example to draw a tiled background.
|
102
|
+
* @COGL_MATERIAL_WRAP_MODE_CLAMP_TO_EDGE: The coordinates outside the
|
103
|
+
* range 0→1 will sample copies of the edge pixels of the
|
104
|
+
* texture. This is useful to avoid artifacts if only one copy of
|
105
|
+
* the texture is being rendered.
|
106
|
+
* @COGL_MATERIAL_WRAP_MODE_AUTOMATIC: Cogl will try to automatically
|
107
|
+
* decide which of the above two to use. For cogl_rectangle(), it
|
108
|
+
* will use repeat mode if any of the texture coordinates are
|
109
|
+
* outside the range 0→1, otherwise it will use clamp to edge. For
|
110
|
+
* cogl_polygon() it will always use repeat mode. For
|
111
|
+
* cogl_vertex_buffer_draw() it will use repeat mode except for
|
112
|
+
* layers that have point sprite coordinate generation enabled. This
|
113
|
+
* is the default value.
|
114
|
+
*
|
115
|
+
* The wrap mode specifies what happens when texture coordinates
|
116
|
+
* outside the range 0→1 are used. Note that if the filter mode is
|
117
|
+
* anything but %COGL_MATERIAL_FILTER_NEAREST then texels outside the
|
118
|
+
* range 0→1 might be used even when the coordinate is exactly 0 or 1
|
119
|
+
* because OpenGL will try to sample neighbouring pixels. For example
|
120
|
+
* if you are trying to render the full texture then you may get
|
121
|
+
* artifacts around the edges when the pixels from the other side are
|
122
|
+
* merged in if the wrap mode is set to repeat.
|
123
|
+
*
|
124
|
+
* Since: 1.4
|
125
|
+
*/
|
126
|
+
/* GL_ALWAYS is just used here as a value that is known not to clash
|
127
|
+
* with any valid GL wrap modes
|
128
|
+
*
|
129
|
+
* XXX: keep the values in sync with the CoglMaterialWrapModeInternal
|
130
|
+
* enum so no conversion is actually needed.
|
131
|
+
*/
|
132
|
+
typedef enum {
|
133
|
+
COGL_MATERIAL_WRAP_MODE_REPEAT = 0x2901,
|
134
|
+
COGL_MATERIAL_WRAP_MODE_CLAMP_TO_EDGE = 0x812F,
|
135
|
+
COGL_MATERIAL_WRAP_MODE_AUTOMATIC = 0x0207
|
136
|
+
} CoglMaterialWrapMode;
|
137
|
+
/* NB: these values come from the equivalents in gl.h */
|
138
|
+
|
139
|
+
/**
|
140
|
+
* cogl_material_new:
|
141
|
+
*
|
142
|
+
* Allocates and initializes a blank white material
|
143
|
+
*
|
144
|
+
* Return value: a pointer to a new #CoglMaterial
|
145
|
+
* Deprecated: 1.16: Use cogl_pipeline_new() instead
|
146
|
+
*/
|
147
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_new)
|
148
|
+
CoglMaterial *
|
149
|
+
cogl_material_new (void);
|
150
|
+
|
151
|
+
/**
|
152
|
+
* cogl_material_copy:
|
153
|
+
* @source: a #CoglMaterial object to copy
|
154
|
+
*
|
155
|
+
* Creates a new material with the configuration copied from the
|
156
|
+
* source material.
|
157
|
+
*
|
158
|
+
* We would strongly advise developers to always aim to use
|
159
|
+
* cogl_material_copy() instead of cogl_material_new() whenever there will
|
160
|
+
* be any similarity between two materials. Copying a material helps Cogl
|
161
|
+
* keep track of a materials ancestry which we may use to help minimize GPU
|
162
|
+
* state changes.
|
163
|
+
*
|
164
|
+
* Returns: a pointer to the newly allocated #CoglMaterial
|
165
|
+
*
|
166
|
+
* Since: 1.2
|
167
|
+
* Deprecated: 1.16: Use cogl_pipeline_copy() instead
|
168
|
+
*/
|
169
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_copy)
|
170
|
+
CoglMaterial *
|
171
|
+
cogl_material_copy (CoglMaterial *source);
|
172
|
+
|
173
|
+
/**
|
174
|
+
* cogl_material_ref:
|
175
|
+
* @material: a #CoglMaterial object.
|
176
|
+
*
|
177
|
+
* Increment the reference count for a #CoglMaterial.
|
178
|
+
*
|
179
|
+
* Return value: the @material.
|
180
|
+
*
|
181
|
+
* Since: 1.0
|
182
|
+
*
|
183
|
+
* Deprecated: 1.2: Use cogl_object_ref() instead
|
184
|
+
*/
|
185
|
+
COGL_DEPRECATED
|
186
|
+
CoglHandle
|
187
|
+
cogl_material_ref (CoglHandle material);
|
188
|
+
|
189
|
+
/**
|
190
|
+
* cogl_material_unref:
|
191
|
+
* @material: a #CoglMaterial object.
|
192
|
+
*
|
193
|
+
* Decrement the reference count for a #CoglMaterial.
|
194
|
+
*
|
195
|
+
* Since: 1.0
|
196
|
+
*
|
197
|
+
* Deprecated: 1.2: Use cogl_object_unref() instead
|
198
|
+
*/
|
199
|
+
COGL_DEPRECATED
|
200
|
+
void
|
201
|
+
cogl_material_unref (CoglHandle material);
|
202
|
+
|
203
|
+
/**
|
204
|
+
* cogl_is_material:
|
205
|
+
* @handle: A CoglHandle
|
206
|
+
*
|
207
|
+
* Gets whether the given handle references an existing material object.
|
208
|
+
*
|
209
|
+
* Return value: %TRUE if the handle references a #CoglMaterial,
|
210
|
+
* %FALSE otherwise
|
211
|
+
* Deprecated: 1.16: Use cogl_is_pipeline() instead
|
212
|
+
*/
|
213
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_is_pipeline)
|
214
|
+
CoglBool
|
215
|
+
cogl_is_material (CoglHandle handle);
|
216
|
+
|
217
|
+
/**
|
218
|
+
* cogl_material_set_color:
|
219
|
+
* @material: A #CoglMaterial object
|
220
|
+
* @color: The components of the color
|
221
|
+
*
|
222
|
+
* Sets the basic color of the material, used when no lighting is enabled.
|
223
|
+
*
|
224
|
+
* Note that if you don't add any layers to the material then the color
|
225
|
+
* will be blended unmodified with the destination; the default blend
|
226
|
+
* expects premultiplied colors: for example, use (0.5, 0.0, 0.0, 0.5) for
|
227
|
+
* semi-transparent red. See cogl_color_premultiply().
|
228
|
+
*
|
229
|
+
* The default value is (1.0, 1.0, 1.0, 1.0)
|
230
|
+
*
|
231
|
+
* Since: 1.0
|
232
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_color() instead
|
233
|
+
*/
|
234
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_color)
|
235
|
+
void
|
236
|
+
cogl_material_set_color (CoglMaterial *material,
|
237
|
+
const CoglColor *color);
|
238
|
+
|
239
|
+
/**
|
240
|
+
* cogl_material_set_color4ub:
|
241
|
+
* @material: A #CoglMaterial object
|
242
|
+
* @red: The red component
|
243
|
+
* @green: The green component
|
244
|
+
* @blue: The blue component
|
245
|
+
* @alpha: The alpha component
|
246
|
+
*
|
247
|
+
* Sets the basic color of the material, used when no lighting is enabled.
|
248
|
+
*
|
249
|
+
* The default value is (0xff, 0xff, 0xff, 0xff)
|
250
|
+
*
|
251
|
+
* Since: 1.0
|
252
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_color4ub() instead
|
253
|
+
*/
|
254
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_color4ub)
|
255
|
+
void
|
256
|
+
cogl_material_set_color4ub (CoglMaterial *material,
|
257
|
+
uint8_t red,
|
258
|
+
uint8_t green,
|
259
|
+
uint8_t blue,
|
260
|
+
uint8_t alpha);
|
261
|
+
|
262
|
+
/**
|
263
|
+
* cogl_material_set_color4f:
|
264
|
+
* @material: A #CoglMaterial object
|
265
|
+
* @red: The red component
|
266
|
+
* @green: The green component
|
267
|
+
* @blue: The blue component
|
268
|
+
* @alpha: The alpha component
|
269
|
+
*
|
270
|
+
* Sets the basic color of the material, used when no lighting is enabled.
|
271
|
+
*
|
272
|
+
* The default value is (1.0, 1.0, 1.0, 1.0)
|
273
|
+
*
|
274
|
+
* Since: 1.0
|
275
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_color4f() instead
|
276
|
+
*/
|
277
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_color4f)
|
278
|
+
void
|
279
|
+
cogl_material_set_color4f (CoglMaterial *material,
|
280
|
+
float red,
|
281
|
+
float green,
|
282
|
+
float blue,
|
283
|
+
float alpha);
|
284
|
+
|
285
|
+
/**
|
286
|
+
* cogl_material_get_color:
|
287
|
+
* @material: A #CoglMaterial object
|
288
|
+
* @color: (out): The location to store the color
|
289
|
+
*
|
290
|
+
* Retrieves the current material color.
|
291
|
+
*
|
292
|
+
* Since: 1.0
|
293
|
+
* Deprecated: 1.16: Use cogl_pipeline_get_color() instead
|
294
|
+
*/
|
295
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_get_color)
|
296
|
+
void
|
297
|
+
cogl_material_get_color (CoglMaterial *material,
|
298
|
+
CoglColor *color);
|
299
|
+
|
300
|
+
/**
|
301
|
+
* cogl_material_set_ambient:
|
302
|
+
* @material: A #CoglMaterial object
|
303
|
+
* @ambient: The components of the desired ambient color
|
304
|
+
*
|
305
|
+
* Sets the material's ambient color, in the standard OpenGL lighting
|
306
|
+
* model. The ambient color affects the overall color of the object.
|
307
|
+
*
|
308
|
+
* Since the diffuse color will be intense when the light hits the surface
|
309
|
+
* directly, the ambient will be most apparent where the light hits at a
|
310
|
+
* slant.
|
311
|
+
*
|
312
|
+
* The default value is (0.2, 0.2, 0.2, 1.0)
|
313
|
+
*
|
314
|
+
* Since: 1.0
|
315
|
+
* Deprecated: 1.16: Use the #CoglSnippet shader api for lighting
|
316
|
+
*/
|
317
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
318
|
+
void
|
319
|
+
cogl_material_set_ambient (CoglMaterial *material,
|
320
|
+
const CoglColor *ambient);
|
321
|
+
|
322
|
+
/**
|
323
|
+
* cogl_material_get_ambient:
|
324
|
+
* @material: A #CoglMaterial object
|
325
|
+
* @ambient: The location to store the ambient color
|
326
|
+
*
|
327
|
+
* Retrieves the current ambient color for @material
|
328
|
+
*
|
329
|
+
* Since: 1.0
|
330
|
+
* Deprecated: 1.16: Use the #CoglSnippet shader api for lighting
|
331
|
+
*/
|
332
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
333
|
+
void
|
334
|
+
cogl_material_get_ambient (CoglMaterial *material,
|
335
|
+
CoglColor *ambient);
|
336
|
+
|
337
|
+
/**
|
338
|
+
* cogl_material_set_diffuse:
|
339
|
+
* @material: A #CoglMaterial object
|
340
|
+
* @diffuse: The components of the desired diffuse color
|
341
|
+
*
|
342
|
+
* Sets the material's diffuse color, in the standard OpenGL lighting
|
343
|
+
* model. The diffuse color is most intense where the light hits the
|
344
|
+
* surface directly - perpendicular to the surface.
|
345
|
+
*
|
346
|
+
* The default value is (0.8, 0.8, 0.8, 1.0)
|
347
|
+
*
|
348
|
+
* Since: 1.0
|
349
|
+
* Deprecated: 1.16: Use the #CoglSnippet shader api for lighting
|
350
|
+
*/
|
351
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
352
|
+
void
|
353
|
+
cogl_material_set_diffuse (CoglMaterial *material,
|
354
|
+
const CoglColor *diffuse);
|
355
|
+
|
356
|
+
/**
|
357
|
+
* cogl_material_get_diffuse:
|
358
|
+
* @material: A #CoglMaterial object
|
359
|
+
* @diffuse: The location to store the diffuse color
|
360
|
+
*
|
361
|
+
* Retrieves the current diffuse color for @material
|
362
|
+
*
|
363
|
+
* Since: 1.0
|
364
|
+
* Deprecated: 1.16: Use the #CoglSnippet shader api for lighting
|
365
|
+
*/
|
366
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
367
|
+
void
|
368
|
+
cogl_material_get_diffuse (CoglMaterial *material,
|
369
|
+
CoglColor *diffuse);
|
370
|
+
|
371
|
+
/**
|
372
|
+
* cogl_material_set_ambient_and_diffuse:
|
373
|
+
* @material: A #CoglMaterial object
|
374
|
+
* @color: The components of the desired ambient and diffuse colors
|
375
|
+
*
|
376
|
+
* Conveniently sets the diffuse and ambient color of @material at the same
|
377
|
+
* time. See cogl_material_set_ambient() and cogl_material_set_diffuse().
|
378
|
+
*
|
379
|
+
* The default ambient color is (0.2, 0.2, 0.2, 1.0)
|
380
|
+
*
|
381
|
+
* The default diffuse color is (0.8, 0.8, 0.8, 1.0)
|
382
|
+
*
|
383
|
+
* Since: 1.0
|
384
|
+
* Deprecated: 1.16: Use the #CoglSnippet shader api for lighting
|
385
|
+
*/
|
386
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
387
|
+
void
|
388
|
+
cogl_material_set_ambient_and_diffuse (CoglMaterial *material,
|
389
|
+
const CoglColor *color);
|
390
|
+
|
391
|
+
/**
|
392
|
+
* cogl_material_set_specular:
|
393
|
+
* @material: A #CoglMaterial object
|
394
|
+
* @specular: The components of the desired specular color
|
395
|
+
*
|
396
|
+
* Sets the material's specular color, in the standard OpenGL lighting
|
397
|
+
* model. The intensity of the specular color depends on the viewport
|
398
|
+
* position, and is brightest along the lines of reflection.
|
399
|
+
*
|
400
|
+
* The default value is (0.0, 0.0, 0.0, 1.0)
|
401
|
+
*
|
402
|
+
* Since: 1.0
|
403
|
+
* Deprecated: 1.16: Use the #CoglSnippet shader api for lighting
|
404
|
+
*/
|
405
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
406
|
+
void
|
407
|
+
cogl_material_set_specular (CoglMaterial *material,
|
408
|
+
const CoglColor *specular);
|
409
|
+
|
410
|
+
/**
|
411
|
+
* cogl_material_get_specular:
|
412
|
+
* @material: A #CoglMaterial object
|
413
|
+
* @specular: The location to store the specular color
|
414
|
+
*
|
415
|
+
* Retrieves the materials current specular color.
|
416
|
+
*
|
417
|
+
* Since: 1.0
|
418
|
+
* Deprecated: 1.16: Use the #CoglSnippet shader api for lighting
|
419
|
+
*/
|
420
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
421
|
+
void
|
422
|
+
cogl_material_get_specular (CoglMaterial *material,
|
423
|
+
CoglColor *specular);
|
424
|
+
|
425
|
+
/**
|
426
|
+
* cogl_material_set_shininess:
|
427
|
+
* @material: A #CoglMaterial object
|
428
|
+
* @shininess: The desired shininess; must be >= 0.0
|
429
|
+
*
|
430
|
+
* Sets the shininess of the material, in the standard OpenGL lighting
|
431
|
+
* model, which determines the size of the specular highlights. A
|
432
|
+
* higher @shininess will produce smaller highlights which makes the
|
433
|
+
* object appear more shiny.
|
434
|
+
*
|
435
|
+
* The default value is 0.0
|
436
|
+
*
|
437
|
+
* Since: 1.0
|
438
|
+
* Deprecated: 1.16: Use the #CoglSnippet shader api for lighting
|
439
|
+
*/
|
440
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
441
|
+
void
|
442
|
+
cogl_material_set_shininess (CoglMaterial *material,
|
443
|
+
float shininess);
|
444
|
+
|
445
|
+
/**
|
446
|
+
* cogl_material_get_shininess:
|
447
|
+
* @material: A #CoglMaterial object
|
448
|
+
*
|
449
|
+
* Retrieves the materials current emission color.
|
450
|
+
*
|
451
|
+
* Return value: The materials current shininess value
|
452
|
+
*
|
453
|
+
* Since: 1.0
|
454
|
+
* Deprecated: 1.16: Use the #CoglSnippet shader api for lighting
|
455
|
+
*/
|
456
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
457
|
+
float
|
458
|
+
cogl_material_get_shininess (CoglMaterial *material);
|
459
|
+
|
460
|
+
/**
|
461
|
+
* cogl_material_set_emission:
|
462
|
+
* @material: A #CoglMaterial object
|
463
|
+
* @emission: The components of the desired emissive color
|
464
|
+
*
|
465
|
+
* Sets the material's emissive color, in the standard OpenGL lighting
|
466
|
+
* model. It will look like the surface is a light source emitting this
|
467
|
+
* color.
|
468
|
+
*
|
469
|
+
* The default value is (0.0, 0.0, 0.0, 1.0)
|
470
|
+
*
|
471
|
+
* Since: 1.0
|
472
|
+
* Deprecated: 1.16: Use the #CoglSnippet shader api for lighting
|
473
|
+
*/
|
474
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
475
|
+
void
|
476
|
+
cogl_material_set_emission (CoglMaterial *material,
|
477
|
+
const CoglColor *emission);
|
478
|
+
|
479
|
+
/**
|
480
|
+
* cogl_material_get_emission:
|
481
|
+
* @material: A #CoglMaterial object
|
482
|
+
* @emission: The location to store the emission color
|
483
|
+
*
|
484
|
+
* Retrieves the materials current emission color.
|
485
|
+
*
|
486
|
+
* Since: 1.0
|
487
|
+
* Deprecated: 1.16: Use the #CoglSnippet shader api for lighting
|
488
|
+
*/
|
489
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
490
|
+
void
|
491
|
+
cogl_material_get_emission (CoglMaterial *material,
|
492
|
+
CoglColor *emission);
|
493
|
+
|
494
|
+
/**
|
495
|
+
* CoglMaterialAlphaFunc:
|
496
|
+
* @COGL_MATERIAL_ALPHA_FUNC_NEVER: Never let the fragment through.
|
497
|
+
* @COGL_MATERIAL_ALPHA_FUNC_LESS: Let the fragment through if the incoming
|
498
|
+
* alpha value is less than the reference alpha value
|
499
|
+
* @COGL_MATERIAL_ALPHA_FUNC_EQUAL: Let the fragment through if the incoming
|
500
|
+
* alpha value equals the reference alpha value
|
501
|
+
* @COGL_MATERIAL_ALPHA_FUNC_LEQUAL: Let the fragment through if the incoming
|
502
|
+
* alpha value is less than or equal to the reference alpha value
|
503
|
+
* @COGL_MATERIAL_ALPHA_FUNC_GREATER: Let the fragment through if the incoming
|
504
|
+
* alpha value is greater than the reference alpha value
|
505
|
+
* @COGL_MATERIAL_ALPHA_FUNC_NOTEQUAL: Let the fragment through if the incoming
|
506
|
+
* alpha value does not equal the reference alpha value
|
507
|
+
* @COGL_MATERIAL_ALPHA_FUNC_GEQUAL: Let the fragment through if the incoming
|
508
|
+
* alpha value is greater than or equal to the reference alpha value.
|
509
|
+
* @COGL_MATERIAL_ALPHA_FUNC_ALWAYS: Always let the fragment through.
|
510
|
+
*
|
511
|
+
* Alpha testing happens before blending primitives with the framebuffer and
|
512
|
+
* gives an opportunity to discard fragments based on a comparison with the
|
513
|
+
* incoming alpha value and a reference alpha value. The #CoglMaterialAlphaFunc
|
514
|
+
* determines how the comparison is done.
|
515
|
+
*/
|
516
|
+
typedef enum {
|
517
|
+
COGL_MATERIAL_ALPHA_FUNC_NEVER = 0x0200,
|
518
|
+
COGL_MATERIAL_ALPHA_FUNC_LESS = 0x0201,
|
519
|
+
COGL_MATERIAL_ALPHA_FUNC_EQUAL = 0x0202,
|
520
|
+
COGL_MATERIAL_ALPHA_FUNC_LEQUAL = 0x0203,
|
521
|
+
COGL_MATERIAL_ALPHA_FUNC_GREATER = 0x0204,
|
522
|
+
COGL_MATERIAL_ALPHA_FUNC_NOTEQUAL = 0x0205,
|
523
|
+
COGL_MATERIAL_ALPHA_FUNC_GEQUAL = 0x0206,
|
524
|
+
COGL_MATERIAL_ALPHA_FUNC_ALWAYS = 0x0207
|
525
|
+
} CoglMaterialAlphaFunc;
|
526
|
+
|
527
|
+
/**
|
528
|
+
* cogl_material_set_alpha_test_function:
|
529
|
+
* @material: A #CoglMaterial object
|
530
|
+
* @alpha_func: A @CoglMaterialAlphaFunc constant
|
531
|
+
* @alpha_reference: A reference point that the chosen alpha function uses
|
532
|
+
* to compare incoming fragments to.
|
533
|
+
*
|
534
|
+
* Before a primitive is blended with the framebuffer, it goes through an
|
535
|
+
* alpha test stage which lets you discard fragments based on the current
|
536
|
+
* alpha value. This function lets you change the function used to evaluate
|
537
|
+
* the alpha channel, and thus determine which fragments are discarded
|
538
|
+
* and which continue on to the blending stage.
|
539
|
+
*
|
540
|
+
* The default is %COGL_MATERIAL_ALPHA_FUNC_ALWAYS
|
541
|
+
*
|
542
|
+
* Since: 1.0
|
543
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_alpha_test_function() instead
|
544
|
+
*/
|
545
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_alpha_test_function)
|
546
|
+
void
|
547
|
+
cogl_material_set_alpha_test_function (CoglMaterial *material,
|
548
|
+
CoglMaterialAlphaFunc alpha_func,
|
549
|
+
float alpha_reference);
|
550
|
+
|
551
|
+
/**
|
552
|
+
* cogl_material_set_blend:
|
553
|
+
* @material: A #CoglMaterial object
|
554
|
+
* @blend_string: A <link linkend="cogl-Blend-Strings">Cogl blend string</link>
|
555
|
+
* describing the desired blend function.
|
556
|
+
* @error: return location for a #CoglError that may report lack of driver
|
557
|
+
* support if you give separate blend string statements for the alpha
|
558
|
+
* channel and RGB channels since some drivers, or backends such as
|
559
|
+
* GLES 1.1, don't support this feature. May be %NULL, in which case a
|
560
|
+
* warning will be printed out using GLib's logging facilities if an
|
561
|
+
* error is encountered.
|
562
|
+
*
|
563
|
+
* If not already familiar; please refer <link linkend="cogl-Blend-Strings">here</link>
|
564
|
+
* for an overview of what blend strings are, and their syntax.
|
565
|
+
*
|
566
|
+
* Blending occurs after the alpha test function, and combines fragments with
|
567
|
+
* the framebuffer.
|
568
|
+
|
569
|
+
* Currently the only blend function Cogl exposes is ADD(). So any valid
|
570
|
+
* blend statements will be of the form:
|
571
|
+
*
|
572
|
+
* |[
|
573
|
+
* <channel-mask>=ADD(SRC_COLOR*(<factor>), DST_COLOR*(<factor>))
|
574
|
+
* ]|
|
575
|
+
*
|
576
|
+
* <warning>The brackets around blend factors are currently not
|
577
|
+
* optional!</warning>
|
578
|
+
*
|
579
|
+
* This is the list of source-names usable as blend factors:
|
580
|
+
* <itemizedlist>
|
581
|
+
* <listitem><para>SRC_COLOR: The color of the in comming fragment</para></listitem>
|
582
|
+
* <listitem><para>DST_COLOR: The color of the framebuffer</para></listitem>
|
583
|
+
* <listitem><para>CONSTANT: The constant set via cogl_material_set_blend_constant()</para></listitem>
|
584
|
+
* </itemizedlist>
|
585
|
+
*
|
586
|
+
* The source names can be used according to the
|
587
|
+
* <link linkend="cogl-Blend-String-syntax">color-source and factor syntax</link>,
|
588
|
+
* so for example "(1-SRC_COLOR[A])" would be a valid factor, as would
|
589
|
+
* "(CONSTANT[RGB])"
|
590
|
+
*
|
591
|
+
* These can also be used as factors:
|
592
|
+
* <itemizedlist>
|
593
|
+
* <listitem>0: (0, 0, 0, 0)</listitem>
|
594
|
+
* <listitem>1: (1, 1, 1, 1)</listitem>
|
595
|
+
* <listitem>SRC_ALPHA_SATURATE_FACTOR: (f,f,f,1) where f = MIN(SRC_COLOR[A],1-DST_COLOR[A])</listitem>
|
596
|
+
* </itemizedlist>
|
597
|
+
*
|
598
|
+
* <note>Remember; all color components are normalized to the range [0, 1]
|
599
|
+
* before computing the result of blending.</note>
|
600
|
+
*
|
601
|
+
* <example id="cogl-Blend-Strings-blend-unpremul">
|
602
|
+
* <title>Blend Strings/1</title>
|
603
|
+
* <para>Blend a non-premultiplied source over a destination with
|
604
|
+
* premultiplied alpha:</para>
|
605
|
+
* <programlisting>
|
606
|
+
* "RGB = ADD(SRC_COLOR*(SRC_COLOR[A]), DST_COLOR*(1-SRC_COLOR[A]))"
|
607
|
+
* "A = ADD(SRC_COLOR, DST_COLOR*(1-SRC_COLOR[A]))"
|
608
|
+
* </programlisting>
|
609
|
+
* </example>
|
610
|
+
*
|
611
|
+
* <example id="cogl-Blend-Strings-blend-premul">
|
612
|
+
* <title>Blend Strings/2</title>
|
613
|
+
* <para>Blend a premultiplied source over a destination with
|
614
|
+
* premultiplied alpha</para>
|
615
|
+
* <programlisting>
|
616
|
+
* "RGBA = ADD(SRC_COLOR, DST_COLOR*(1-SRC_COLOR[A]))"
|
617
|
+
* </programlisting>
|
618
|
+
* </example>
|
619
|
+
*
|
620
|
+
* The default blend string is:
|
621
|
+
* |[
|
622
|
+
* RGBA = ADD (SRC_COLOR, DST_COLOR*(1-SRC_COLOR[A]))
|
623
|
+
* ]|
|
624
|
+
*
|
625
|
+
* That gives normal alpha-blending when the calculated color for the material
|
626
|
+
* is in premultiplied form.
|
627
|
+
*
|
628
|
+
* Return value: %TRUE if the blend string was successfully parsed, and the
|
629
|
+
* described blending is supported by the underlying driver/hardware. If
|
630
|
+
* there was an error, %FALSE is returned and @error is set accordingly (if
|
631
|
+
* present).
|
632
|
+
*
|
633
|
+
* Since: 1.0
|
634
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_blend() instead
|
635
|
+
*/
|
636
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_blend)
|
637
|
+
CoglBool
|
638
|
+
cogl_material_set_blend (CoglMaterial *material,
|
639
|
+
const char *blend_string,
|
640
|
+
CoglError **error);
|
641
|
+
|
642
|
+
/**
|
643
|
+
* cogl_material_set_blend_constant:
|
644
|
+
* @material: A #CoglMaterial object
|
645
|
+
* @constant_color: The constant color you want
|
646
|
+
*
|
647
|
+
* When blending is setup to reference a CONSTANT blend factor then
|
648
|
+
* blending will depend on the constant set with this function.
|
649
|
+
*
|
650
|
+
* Since: 1.0
|
651
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_blend_constant() instead
|
652
|
+
*/
|
653
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_blend_constant)
|
654
|
+
void
|
655
|
+
cogl_material_set_blend_constant (CoglMaterial *material,
|
656
|
+
const CoglColor *constant_color);
|
657
|
+
|
658
|
+
/**
|
659
|
+
* cogl_material_set_point_size:
|
660
|
+
* @material: a material.
|
661
|
+
* @point_size: the new point size.
|
662
|
+
*
|
663
|
+
* Changes the size of points drawn when %COGL_VERTICES_MODE_POINTS is
|
664
|
+
* used with the vertex buffer API. Note that typically the GPU will
|
665
|
+
* only support a limited minimum and maximum range of point sizes. If
|
666
|
+
* the chosen point size is outside that range then the nearest value
|
667
|
+
* within that range will be used instead. The size of a point is in
|
668
|
+
* screen space so it will be the same regardless of any
|
669
|
+
* transformations. The default point size is 1.0.
|
670
|
+
*
|
671
|
+
* Since: 1.4
|
672
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_point_size() instead
|
673
|
+
*/
|
674
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_point_size)
|
675
|
+
void
|
676
|
+
cogl_material_set_point_size (CoglMaterial *material,
|
677
|
+
float point_size);
|
678
|
+
|
679
|
+
/**
|
680
|
+
* cogl_material_get_point_size:
|
681
|
+
* @material: a #CoglHandle to a material.
|
682
|
+
*
|
683
|
+
* Get the size of points drawn when %COGL_VERTICES_MODE_POINTS is
|
684
|
+
* used with the vertex buffer API.
|
685
|
+
*
|
686
|
+
* Return value: the point size of the material.
|
687
|
+
*
|
688
|
+
* Since: 1.4
|
689
|
+
* Deprecated: 1.16: Use cogl_pipeline_get_point_size() instead
|
690
|
+
*/
|
691
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_get_point_size)
|
692
|
+
float
|
693
|
+
cogl_material_get_point_size (CoglMaterial *material);
|
694
|
+
|
695
|
+
/**
|
696
|
+
* cogl_material_get_user_program:
|
697
|
+
* @material: a #CoglMaterial object.
|
698
|
+
*
|
699
|
+
* Queries what user program has been associated with the given
|
700
|
+
* @material using cogl_material_set_user_program().
|
701
|
+
*
|
702
|
+
* Return value: (transfer none): The current user program
|
703
|
+
* or %COGL_INVALID_HANDLE.
|
704
|
+
*
|
705
|
+
* Since: 1.4
|
706
|
+
* Deprecated: 1.16: Use #CoglSnippet api instead instead
|
707
|
+
*/
|
708
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
709
|
+
CoglHandle
|
710
|
+
cogl_material_get_user_program (CoglMaterial *material);
|
711
|
+
|
712
|
+
/**
|
713
|
+
* cogl_material_set_user_program:
|
714
|
+
* @material: a #CoglMaterial object.
|
715
|
+
* @program: A #CoglHandle to a linked CoglProgram
|
716
|
+
*
|
717
|
+
* Associates a linked CoglProgram with the given material so that the
|
718
|
+
* program can take full control of vertex and/or fragment processing.
|
719
|
+
*
|
720
|
+
* This is an example of how it can be used to associate an ARBfp
|
721
|
+
* program with a #CoglMaterial:
|
722
|
+
* |[
|
723
|
+
* CoglHandle shader;
|
724
|
+
* CoglHandle program;
|
725
|
+
* CoglMaterial *material;
|
726
|
+
*
|
727
|
+
* shader = cogl_create_shader (COGL_SHADER_TYPE_FRAGMENT);
|
728
|
+
* cogl_shader_source (shader,
|
729
|
+
* "!!ARBfp1.0\n"
|
730
|
+
* "MOV result.color,fragment.color;\n"
|
731
|
+
* "END\n");
|
732
|
+
* cogl_shader_compile (shader);
|
733
|
+
*
|
734
|
+
* program = cogl_create_program ();
|
735
|
+
* cogl_program_attach_shader (program, shader);
|
736
|
+
* cogl_program_link (program);
|
737
|
+
*
|
738
|
+
* material = cogl_material_new ();
|
739
|
+
* cogl_material_set_user_program (material, program);
|
740
|
+
*
|
741
|
+
* cogl_set_source_color4ub (0xff, 0x00, 0x00, 0xff);
|
742
|
+
* cogl_rectangle (0, 0, 100, 100);
|
743
|
+
* ]|
|
744
|
+
*
|
745
|
+
* It is possibly worth keeping in mind that this API is not part of
|
746
|
+
* the long term design for how we want to expose shaders to Cogl
|
747
|
+
* developers (We are planning on deprecating the cogl_program and
|
748
|
+
* cogl_shader APIs in favour of a "snippet" framework) but in the
|
749
|
+
* meantime we hope this will handle most practical GLSL and ARBfp
|
750
|
+
* requirements.
|
751
|
+
*
|
752
|
+
* Also remember you need to check for either the
|
753
|
+
* %COGL_FEATURE_SHADERS_GLSL or %COGL_FEATURE_SHADERS_ARBFP before
|
754
|
+
* using the cogl_program or cogl_shader API.
|
755
|
+
*
|
756
|
+
* Since: 1.4
|
757
|
+
* Deprecated: 1.16: Use #CoglSnippet api instead instead
|
758
|
+
*/
|
759
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_snippet_)
|
760
|
+
void
|
761
|
+
cogl_material_set_user_program (CoglMaterial *material,
|
762
|
+
CoglHandle program);
|
763
|
+
|
764
|
+
/**
|
765
|
+
* cogl_material_set_layer:
|
766
|
+
* @material: A #CoglMaterial object
|
767
|
+
* @layer_index: the index of the layer
|
768
|
+
* @texture: a #CoglHandle for the layer object
|
769
|
+
*
|
770
|
+
* In addition to the standard OpenGL lighting model a Cogl material may have
|
771
|
+
* one or more layers comprised of textures that can be blended together in
|
772
|
+
* order, with a number of different texture combine modes. This function
|
773
|
+
* defines a new texture layer.
|
774
|
+
*
|
775
|
+
* The index values of multiple layers do not have to be consecutive; it is
|
776
|
+
* only their relative order that is important.
|
777
|
+
*
|
778
|
+
* <note>In the future, we may define other types of material layers, such
|
779
|
+
* as purely GLSL based layers.</note>
|
780
|
+
*
|
781
|
+
* Since: 1.0
|
782
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_layer() instead
|
783
|
+
*/
|
784
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_layer)
|
785
|
+
void
|
786
|
+
cogl_material_set_layer (CoglMaterial *material,
|
787
|
+
int layer_index,
|
788
|
+
CoglHandle texture);
|
789
|
+
|
790
|
+
/**
|
791
|
+
* cogl_material_remove_layer:
|
792
|
+
* @material: A #CoglMaterial object
|
793
|
+
* @layer_index: Specifies the layer you want to remove
|
794
|
+
*
|
795
|
+
* This function removes a layer from your material
|
796
|
+
* Deprecated: 1.16: Use cogl_pipeline_remove_layer() instead
|
797
|
+
*/
|
798
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_remove_layer)
|
799
|
+
void
|
800
|
+
cogl_material_remove_layer (CoglMaterial *material,
|
801
|
+
int layer_index);
|
802
|
+
|
803
|
+
|
804
|
+
/**
|
805
|
+
* cogl_material_set_layer_combine:
|
806
|
+
* @material: A #CoglMaterial object
|
807
|
+
* @layer_index: Specifies the layer you want define a combine function for
|
808
|
+
* @blend_string: A <link linkend="cogl-Blend-Strings">Cogl blend string</link>
|
809
|
+
* describing the desired texture combine function.
|
810
|
+
* @error: A #CoglError that may report parse errors or lack of GPU/driver
|
811
|
+
* support. May be %NULL, in which case a warning will be printed out if an
|
812
|
+
* error is encountered.
|
813
|
+
*
|
814
|
+
* If not already familiar; you can refer
|
815
|
+
* <link linkend="cogl-Blend-Strings">here</link> for an overview of what blend
|
816
|
+
* strings are and there syntax.
|
817
|
+
*
|
818
|
+
* These are all the functions available for texture combining:
|
819
|
+
* <itemizedlist>
|
820
|
+
* <listitem>REPLACE(arg0) = arg0</listitem>
|
821
|
+
* <listitem>MODULATE(arg0, arg1) = arg0 x arg1</listitem>
|
822
|
+
* <listitem>ADD(arg0, arg1) = arg0 + arg1</listitem>
|
823
|
+
* <listitem>ADD_SIGNED(arg0, arg1) = arg0 + arg1 - 0.5</listitem>
|
824
|
+
* <listitem>INTERPOLATE(arg0, arg1, arg2) = arg0 x arg2 + arg1 x (1 - arg2)</listitem>
|
825
|
+
* <listitem>SUBTRACT(arg0, arg1) = arg0 - arg1</listitem>
|
826
|
+
* <listitem>
|
827
|
+
* <programlisting>
|
828
|
+
* DOT3_RGB(arg0, arg1) = 4 x ((arg0[R] - 0.5)) * (arg1[R] - 0.5) +
|
829
|
+
* (arg0[G] - 0.5)) * (arg1[G] - 0.5) +
|
830
|
+
* (arg0[B] - 0.5)) * (arg1[B] - 0.5))
|
831
|
+
* </programlisting>
|
832
|
+
* </listitem>
|
833
|
+
* <listitem>
|
834
|
+
* <programlisting>
|
835
|
+
* DOT3_RGBA(arg0, arg1) = 4 x ((arg0[R] - 0.5)) * (arg1[R] - 0.5) +
|
836
|
+
* (arg0[G] - 0.5)) * (arg1[G] - 0.5) +
|
837
|
+
* (arg0[B] - 0.5)) * (arg1[B] - 0.5))
|
838
|
+
* </programlisting>
|
839
|
+
* </listitem>
|
840
|
+
* </itemizedlist>
|
841
|
+
*
|
842
|
+
* Refer to the
|
843
|
+
* <link linkend="cogl-Blend-String-syntax">color-source syntax</link> for
|
844
|
+
* describing the arguments. The valid source names for texture combining
|
845
|
+
* are:
|
846
|
+
* <variablelist>
|
847
|
+
* <varlistentry>
|
848
|
+
* <term>TEXTURE</term>
|
849
|
+
* <listitem>Use the color from the current texture layer</listitem>
|
850
|
+
* </varlistentry>
|
851
|
+
* <varlistentry>
|
852
|
+
* <term>TEXTURE_0, TEXTURE_1, etc</term>
|
853
|
+
* <listitem>Use the color from the specified texture layer</listitem>
|
854
|
+
* </varlistentry>
|
855
|
+
* <varlistentry>
|
856
|
+
* <term>CONSTANT</term>
|
857
|
+
* <listitem>Use the color from the constant given with
|
858
|
+
* cogl_material_set_layer_constant()</listitem>
|
859
|
+
* </varlistentry>
|
860
|
+
* <varlistentry>
|
861
|
+
* <term>PRIMARY</term>
|
862
|
+
* <listitem>Use the color of the material as set with
|
863
|
+
* cogl_material_set_color()</listitem>
|
864
|
+
* </varlistentry>
|
865
|
+
* <varlistentry>
|
866
|
+
* <term>PREVIOUS</term>
|
867
|
+
* <listitem>Either use the texture color from the previous layer, or
|
868
|
+
* if this is layer 0, use the color of the material as set with
|
869
|
+
* cogl_material_set_color()</listitem>
|
870
|
+
* </varlistentry>
|
871
|
+
* </variablelist>
|
872
|
+
*
|
873
|
+
* <refsect2 id="cogl-Layer-Combine-Examples">
|
874
|
+
* <title>Layer Combine Examples</title>
|
875
|
+
* <para>This is effectively what the default blending is:</para>
|
876
|
+
* <informalexample><programlisting>
|
877
|
+
* RGBA = MODULATE (PREVIOUS, TEXTURE)
|
878
|
+
* </programlisting></informalexample>
|
879
|
+
* <para>This could be used to cross-fade between two images, using
|
880
|
+
* the alpha component of a constant as the interpolator. The constant
|
881
|
+
* color is given by calling cogl_material_set_layer_constant.</para>
|
882
|
+
* <informalexample><programlisting>
|
883
|
+
* RGBA = INTERPOLATE (PREVIOUS, TEXTURE, CONSTANT[A])
|
884
|
+
* </programlisting></informalexample>
|
885
|
+
* </refsect2>
|
886
|
+
*
|
887
|
+
* <note>You can't give a multiplication factor for arguments as you can
|
888
|
+
* with blending.</note>
|
889
|
+
*
|
890
|
+
* Return value: %TRUE if the blend string was successfully parsed, and the
|
891
|
+
* described texture combining is supported by the underlying driver and
|
892
|
+
* or hardware. On failure, %FALSE is returned and @error is set
|
893
|
+
*
|
894
|
+
* Since: 1.0
|
895
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_layer_combine() instead
|
896
|
+
*/
|
897
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_layer_combine)
|
898
|
+
CoglBool
|
899
|
+
cogl_material_set_layer_combine (CoglMaterial *material,
|
900
|
+
int layer_index,
|
901
|
+
const char *blend_string,
|
902
|
+
CoglError **error);
|
903
|
+
|
904
|
+
/**
|
905
|
+
* cogl_material_set_layer_combine_constant:
|
906
|
+
* @material: A #CoglMaterial object
|
907
|
+
* @layer_index: Specifies the layer you want to specify a constant used
|
908
|
+
* for texture combining
|
909
|
+
* @constant: The constant color you want
|
910
|
+
*
|
911
|
+
* When you are using the 'CONSTANT' color source in a layer combine
|
912
|
+
* description then you can use this function to define its value.
|
913
|
+
*
|
914
|
+
* Since: 1.0
|
915
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_layer_combine_constant()
|
916
|
+
* instead
|
917
|
+
*/
|
918
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_layer_combine_constant)
|
919
|
+
void
|
920
|
+
cogl_material_set_layer_combine_constant (CoglMaterial *material,
|
921
|
+
int layer_index,
|
922
|
+
const CoglColor *constant);
|
923
|
+
|
924
|
+
/**
|
925
|
+
* cogl_material_set_layer_matrix:
|
926
|
+
* @material: A #CoglMaterial object
|
927
|
+
* @layer_index: the index for the layer inside @material
|
928
|
+
* @matrix: the transformation matrix for the layer
|
929
|
+
*
|
930
|
+
* This function lets you set a matrix that can be used to e.g. translate
|
931
|
+
* and rotate a single layer of a material used to fill your geometry.
|
932
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_layer_matrix() instead
|
933
|
+
*/
|
934
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_layer_matrix)
|
935
|
+
void
|
936
|
+
cogl_material_set_layer_matrix (CoglMaterial *material,
|
937
|
+
int layer_index,
|
938
|
+
const CoglMatrix *matrix);
|
939
|
+
|
940
|
+
/**
|
941
|
+
* cogl_material_get_layers:
|
942
|
+
* @material: A #CoglMaterial object
|
943
|
+
*
|
944
|
+
* This function lets you access a material's internal list of layers
|
945
|
+
* for iteration.
|
946
|
+
*
|
947
|
+
* <note>You should avoid using this API if possible since it was only
|
948
|
+
* made public by mistake and will be deprecated when we have
|
949
|
+
* suitable alternative.</note>
|
950
|
+
*
|
951
|
+
* <note>It's important to understand that the list returned may not
|
952
|
+
* remain valid if you modify the material or any of the layers in any
|
953
|
+
* way and so you would have to re-get the list in that
|
954
|
+
* situation.</note>
|
955
|
+
*
|
956
|
+
* Return value: (element-type CoglMaterialLayer) (transfer none): A
|
957
|
+
* list of #CoglMaterialLayer<!-- -->'s that can be passed to the
|
958
|
+
* cogl_material_layer_* functions. The list is owned by Cogl and it
|
959
|
+
* should not be modified or freed
|
960
|
+
* Deprecated: 1.16: Use cogl_pipeline_get_layers() instead
|
961
|
+
*/
|
962
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_get_layers)
|
963
|
+
const GList *
|
964
|
+
cogl_material_get_layers (CoglMaterial *material);
|
965
|
+
|
966
|
+
/**
|
967
|
+
* cogl_material_get_n_layers:
|
968
|
+
* @material: A #CoglMaterial object
|
969
|
+
*
|
970
|
+
* Retrieves the number of layers defined for the given @material
|
971
|
+
*
|
972
|
+
* Return value: the number of layers
|
973
|
+
*
|
974
|
+
* Since: 1.0
|
975
|
+
* Deprecated: 1.16: Use cogl_pipeline_get_n_layers() instead
|
976
|
+
*/
|
977
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_get_n_layers)
|
978
|
+
int
|
979
|
+
cogl_material_get_n_layers (CoglMaterial *material);
|
980
|
+
|
981
|
+
/**
|
982
|
+
* CoglMaterialLayerType:
|
983
|
+
* @COGL_MATERIAL_LAYER_TYPE_TEXTURE: The layer represents a
|
984
|
+
* <link linkend="cogl-Textures">texture</link>
|
985
|
+
*
|
986
|
+
* Available types of layers for a #CoglMaterial. This enumeration
|
987
|
+
* might be expanded in later versions.
|
988
|
+
*
|
989
|
+
* Since: 1.0
|
990
|
+
*/
|
991
|
+
typedef enum {
|
992
|
+
COGL_MATERIAL_LAYER_TYPE_TEXTURE
|
993
|
+
} CoglMaterialLayerType;
|
994
|
+
|
995
|
+
|
996
|
+
/**
|
997
|
+
* cogl_material_layer_get_type:
|
998
|
+
* @layer: A #CoglMaterialLayer object
|
999
|
+
*
|
1000
|
+
* Retrieves the type of the layer
|
1001
|
+
*
|
1002
|
+
* Currently there is only one type of layer defined:
|
1003
|
+
* %COGL_MATERIAL_LAYER_TYPE_TEXTURE, but considering we may add purely GLSL
|
1004
|
+
* based layers in the future, you should write code that checks the type
|
1005
|
+
* first.
|
1006
|
+
*
|
1007
|
+
* Return value: the type of the layer
|
1008
|
+
* Deprecated: 1.16: No replacement
|
1009
|
+
*/
|
1010
|
+
COGL_DEPRECATED_IN_1_16
|
1011
|
+
CoglMaterialLayerType
|
1012
|
+
cogl_material_layer_get_type (CoglMaterialLayer *layer);
|
1013
|
+
|
1014
|
+
/**
|
1015
|
+
* cogl_material_layer_get_texture:
|
1016
|
+
* @layer: A #CoglMaterialLayer object
|
1017
|
+
*
|
1018
|
+
* Extracts a texture handle for a specific layer.
|
1019
|
+
*
|
1020
|
+
* <note>In the future Cogl may support purely GLSL based layers; for those
|
1021
|
+
* layers this function which will likely return %COGL_INVALID_HANDLE if you
|
1022
|
+
* try to get the texture handle from them. Considering this scenario, you
|
1023
|
+
* should call cogl_material_layer_get_type() first in order check it is of
|
1024
|
+
* type %COGL_MATERIAL_LAYER_TYPE_TEXTURE before calling this function.</note>
|
1025
|
+
*
|
1026
|
+
* Return value: (transfer none): a #CoglHandle for the texture inside the layer
|
1027
|
+
* Deprecated: 1.16: No replacement
|
1028
|
+
*/
|
1029
|
+
COGL_DEPRECATED_IN_1_16
|
1030
|
+
CoglHandle
|
1031
|
+
cogl_material_layer_get_texture (CoglMaterialLayer *layer);
|
1032
|
+
|
1033
|
+
/**
|
1034
|
+
* cogl_material_layer_get_min_filter:
|
1035
|
+
* @layer: a #CoglHandle for a material layer
|
1036
|
+
*
|
1037
|
+
* Queries the currently set downscaling filter for a material layer
|
1038
|
+
*
|
1039
|
+
* Return value: the current downscaling filter
|
1040
|
+
* Deprecated: 1.16: No replacement
|
1041
|
+
*/
|
1042
|
+
COGL_DEPRECATED_IN_1_16
|
1043
|
+
CoglMaterialFilter
|
1044
|
+
cogl_material_layer_get_min_filter (CoglMaterialLayer *layer);
|
1045
|
+
|
1046
|
+
/**
|
1047
|
+
* cogl_material_layer_get_mag_filter:
|
1048
|
+
* @layer: A #CoglMaterialLayer object
|
1049
|
+
*
|
1050
|
+
* Queries the currently set downscaling filter for a material later
|
1051
|
+
*
|
1052
|
+
* Return value: the current downscaling filter
|
1053
|
+
* Deprecated: 1.16: No replacement
|
1054
|
+
*/
|
1055
|
+
COGL_DEPRECATED_IN_1_16
|
1056
|
+
CoglMaterialFilter
|
1057
|
+
cogl_material_layer_get_mag_filter (CoglMaterialLayer *layer);
|
1058
|
+
|
1059
|
+
/**
|
1060
|
+
* cogl_material_set_layer_filters:
|
1061
|
+
* @material: A #CoglMaterial object
|
1062
|
+
* @layer_index: the layer number to change.
|
1063
|
+
* @min_filter: the filter used when scaling a texture down.
|
1064
|
+
* @mag_filter: the filter used when magnifying a texture.
|
1065
|
+
*
|
1066
|
+
* Changes the decimation and interpolation filters used when a texture is
|
1067
|
+
* drawn at other scales than 100%.
|
1068
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_layer_filters() instead
|
1069
|
+
*/
|
1070
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_layer_filters)
|
1071
|
+
void
|
1072
|
+
cogl_material_set_layer_filters (CoglMaterial *material,
|
1073
|
+
int layer_index,
|
1074
|
+
CoglMaterialFilter min_filter,
|
1075
|
+
CoglMaterialFilter mag_filter);
|
1076
|
+
|
1077
|
+
/**
|
1078
|
+
* cogl_material_set_layer_point_sprite_coords_enabled:
|
1079
|
+
* @material: a #CoglHandle to a material.
|
1080
|
+
* @layer_index: the layer number to change.
|
1081
|
+
* @enable: whether to enable point sprite coord generation.
|
1082
|
+
* @error: A return location for a CoglError, or NULL to ignore errors.
|
1083
|
+
*
|
1084
|
+
* When rendering points, if @enable is %TRUE then the texture
|
1085
|
+
* coordinates for this layer will be replaced with coordinates that
|
1086
|
+
* vary from 0.0 to 1.0 across the primitive. The top left of the
|
1087
|
+
* point will have the coordinates 0.0,0.0 and the bottom right will
|
1088
|
+
* have 1.0,1.0. If @enable is %FALSE then the coordinates will be
|
1089
|
+
* fixed for the entire point.
|
1090
|
+
*
|
1091
|
+
* This function will only work if %COGL_FEATURE_POINT_SPRITE is
|
1092
|
+
* available. If the feature is not available then the function will
|
1093
|
+
* return %FALSE and set @error.
|
1094
|
+
*
|
1095
|
+
* Return value: %TRUE if the function succeeds, %FALSE otherwise.
|
1096
|
+
* Since: 1.4
|
1097
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_layer_point_sprite_coords_enabled()
|
1098
|
+
* instead
|
1099
|
+
*/
|
1100
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_layer_point_sprite_coords_enabled)
|
1101
|
+
CoglBool
|
1102
|
+
cogl_material_set_layer_point_sprite_coords_enabled (CoglMaterial *material,
|
1103
|
+
int layer_index,
|
1104
|
+
CoglBool enable,
|
1105
|
+
CoglError **error);
|
1106
|
+
|
1107
|
+
/**
|
1108
|
+
* cogl_material_get_layer_point_sprite_coords_enabled:
|
1109
|
+
* @material: a #CoglHandle to a material.
|
1110
|
+
* @layer_index: the layer number to check.
|
1111
|
+
*
|
1112
|
+
* Gets whether point sprite coordinate generation is enabled for this
|
1113
|
+
* texture layer.
|
1114
|
+
*
|
1115
|
+
* Return value: whether the texture coordinates will be replaced with
|
1116
|
+
* point sprite coordinates.
|
1117
|
+
*
|
1118
|
+
* Since: 1.4
|
1119
|
+
* Deprecated: 1.16: Use cogl_pipeline_get_layer_point_sprite_coords_enabled()
|
1120
|
+
* instead
|
1121
|
+
*/
|
1122
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_get_layer_point_sprite_coords_enabled)
|
1123
|
+
CoglBool
|
1124
|
+
cogl_material_get_layer_point_sprite_coords_enabled (CoglMaterial *material,
|
1125
|
+
int layer_index);
|
1126
|
+
|
1127
|
+
/**
|
1128
|
+
* cogl_material_get_layer_wrap_mode_s:
|
1129
|
+
* @material: A #CoglMaterial object
|
1130
|
+
* @layer_index: the layer number to change.
|
1131
|
+
*
|
1132
|
+
* Returns the wrap mode for the 's' coordinate of texture lookups on this
|
1133
|
+
* layer.
|
1134
|
+
*
|
1135
|
+
* Return value: the wrap mode for the 's' coordinate of texture lookups on
|
1136
|
+
* this layer.
|
1137
|
+
*
|
1138
|
+
* Since: 1.6
|
1139
|
+
* Deprecated: 1.16: Use cogl_pipeline_get_layer_wrap_mode_s() instead
|
1140
|
+
*/
|
1141
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_get_layer_wrap_mode_s)
|
1142
|
+
CoglMaterialWrapMode
|
1143
|
+
cogl_material_get_layer_wrap_mode_s (CoglMaterial *material,
|
1144
|
+
int layer_index);
|
1145
|
+
|
1146
|
+
/**
|
1147
|
+
* cogl_material_set_layer_wrap_mode_s:
|
1148
|
+
* @material: A #CoglMaterial object
|
1149
|
+
* @layer_index: the layer number to change.
|
1150
|
+
* @mode: the new wrap mode
|
1151
|
+
*
|
1152
|
+
* Sets the wrap mode for the 's' coordinate of texture lookups on this layer.
|
1153
|
+
*
|
1154
|
+
* Since: 1.4
|
1155
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_layer_wrap_mode_s() instead
|
1156
|
+
*/
|
1157
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_layer_wrap_mode_s)
|
1158
|
+
void
|
1159
|
+
cogl_material_set_layer_wrap_mode_s (CoglMaterial *material,
|
1160
|
+
int layer_index,
|
1161
|
+
CoglMaterialWrapMode mode);
|
1162
|
+
|
1163
|
+
/**
|
1164
|
+
* cogl_material_get_layer_wrap_mode_t:
|
1165
|
+
* @material: A #CoglMaterial object
|
1166
|
+
* @layer_index: the layer number to change.
|
1167
|
+
*
|
1168
|
+
* Returns the wrap mode for the 't' coordinate of texture lookups on this
|
1169
|
+
* layer.
|
1170
|
+
*
|
1171
|
+
* Return value: the wrap mode for the 't' coordinate of texture lookups on
|
1172
|
+
* this layer.
|
1173
|
+
*
|
1174
|
+
* Since: 1.6
|
1175
|
+
* Deprecated: 1.16: Use cogl_pipeline_get_layer_wrap_mode_t() instead
|
1176
|
+
*/
|
1177
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_get_layer_wrap_mode_t)
|
1178
|
+
CoglMaterialWrapMode
|
1179
|
+
cogl_material_get_layer_wrap_mode_t (CoglMaterial *material,
|
1180
|
+
int layer_index);
|
1181
|
+
|
1182
|
+
|
1183
|
+
/**
|
1184
|
+
* cogl_material_set_layer_wrap_mode_t:
|
1185
|
+
* @material: A #CoglMaterial object
|
1186
|
+
* @layer_index: the layer number to change.
|
1187
|
+
* @mode: the new wrap mode
|
1188
|
+
*
|
1189
|
+
* Sets the wrap mode for the 't' coordinate of texture lookups on this layer.
|
1190
|
+
*
|
1191
|
+
* Since: 1.4
|
1192
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_layer_wrap_mode_t() instead
|
1193
|
+
*/
|
1194
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_layer_wrap_mode_t)
|
1195
|
+
void
|
1196
|
+
cogl_material_set_layer_wrap_mode_t (CoglMaterial *material,
|
1197
|
+
int layer_index,
|
1198
|
+
CoglMaterialWrapMode mode);
|
1199
|
+
|
1200
|
+
/**
|
1201
|
+
* cogl_material_get_layer_wrap_mode_p:
|
1202
|
+
* @material: A #CoglMaterial object
|
1203
|
+
* @layer_index: the layer number to change.
|
1204
|
+
*
|
1205
|
+
* Returns the wrap mode for the 'p' coordinate of texture lookups on this
|
1206
|
+
* layer.
|
1207
|
+
*
|
1208
|
+
* Return value: the wrap mode for the 'p' coordinate of texture lookups on
|
1209
|
+
* this layer.
|
1210
|
+
*
|
1211
|
+
* Since: 1.6
|
1212
|
+
* Deprecated: 1.16: Use cogl_pipeline_get_layer_wrap_mode_p() instead
|
1213
|
+
*/
|
1214
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_get_layer_wrap_mode_p)
|
1215
|
+
CoglMaterialWrapMode
|
1216
|
+
cogl_material_get_layer_wrap_mode_p (CoglMaterial *material,
|
1217
|
+
int layer_index);
|
1218
|
+
|
1219
|
+
/**
|
1220
|
+
* cogl_material_set_layer_wrap_mode_p:
|
1221
|
+
* @material: A #CoglMaterial object
|
1222
|
+
* @layer_index: the layer number to change.
|
1223
|
+
* @mode: the new wrap mode
|
1224
|
+
*
|
1225
|
+
* Sets the wrap mode for the 'p' coordinate of texture lookups on
|
1226
|
+
* this layer. 'p' is the third coordinate.
|
1227
|
+
*
|
1228
|
+
* Since: 1.4
|
1229
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_layer_wrap_mode_p() instead
|
1230
|
+
*/
|
1231
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_layer_wrap_mode_p)
|
1232
|
+
void
|
1233
|
+
cogl_material_set_layer_wrap_mode_p (CoglMaterial *material,
|
1234
|
+
int layer_index,
|
1235
|
+
CoglMaterialWrapMode mode);
|
1236
|
+
|
1237
|
+
/**
|
1238
|
+
* cogl_material_set_layer_wrap_mode:
|
1239
|
+
* @material: A #CoglMaterial object
|
1240
|
+
* @layer_index: the layer number to change.
|
1241
|
+
* @mode: the new wrap mode
|
1242
|
+
*
|
1243
|
+
* Sets the wrap mode for all three coordinates of texture lookups on
|
1244
|
+
* this layer. This is equivalent to calling
|
1245
|
+
* cogl_material_set_layer_wrap_mode_s(),
|
1246
|
+
* cogl_material_set_layer_wrap_mode_t() and
|
1247
|
+
* cogl_material_set_layer_wrap_mode_p() separately.
|
1248
|
+
*
|
1249
|
+
* Since: 1.4
|
1250
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_layer_wrap_mode() instead
|
1251
|
+
*/
|
1252
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_layer_wrap_mode)
|
1253
|
+
void
|
1254
|
+
cogl_material_set_layer_wrap_mode (CoglMaterial *material,
|
1255
|
+
int layer_index,
|
1256
|
+
CoglMaterialWrapMode mode);
|
1257
|
+
|
1258
|
+
/**
|
1259
|
+
* cogl_material_layer_get_wrap_mode_s:
|
1260
|
+
* @layer: A #CoglMaterialLayer object
|
1261
|
+
*
|
1262
|
+
* Gets the wrap mode for the 's' coordinate of texture lookups on this layer.
|
1263
|
+
*
|
1264
|
+
* Return value: the wrap mode value for the s coordinate.
|
1265
|
+
*
|
1266
|
+
* Since: 1.4
|
1267
|
+
* Deprecated: 1.16: Use cogl_pipeline_layer_get_wrap_mode_s() instead
|
1268
|
+
*/
|
1269
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_layer_get_wrap_mode_s)
|
1270
|
+
CoglMaterialWrapMode
|
1271
|
+
cogl_material_layer_get_wrap_mode_s (CoglMaterialLayer *layer);
|
1272
|
+
|
1273
|
+
/**
|
1274
|
+
* cogl_material_layer_get_wrap_mode_t:
|
1275
|
+
* @layer: A #CoglMaterialLayer object
|
1276
|
+
*
|
1277
|
+
* Gets the wrap mode for the 't' coordinate of texture lookups on this layer.
|
1278
|
+
*
|
1279
|
+
* Return value: the wrap mode value for the t coordinate.
|
1280
|
+
*
|
1281
|
+
* Since: 1.4
|
1282
|
+
* Deprecated: 1.16: Use cogl_pipeline_layer_get_wrap_mode_t() instead
|
1283
|
+
*/
|
1284
|
+
|
1285
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_layer_get_wrap_mode_t)
|
1286
|
+
CoglMaterialWrapMode
|
1287
|
+
cogl_material_layer_get_wrap_mode_t (CoglMaterialLayer *layer);
|
1288
|
+
|
1289
|
+
/**
|
1290
|
+
* cogl_material_layer_get_wrap_mode_p:
|
1291
|
+
* @layer: A #CoglMaterialLayer object
|
1292
|
+
*
|
1293
|
+
* Gets the wrap mode for the 'p' coordinate of texture lookups on
|
1294
|
+
* this layer. 'p' is the third coordinate.
|
1295
|
+
*
|
1296
|
+
* Return value: the wrap mode value for the p coordinate.
|
1297
|
+
*
|
1298
|
+
* Since: 1.4
|
1299
|
+
* Deprecated: 1.16: Use cogl_pipeline_layer_get_wrap_mode_p() instead
|
1300
|
+
*/
|
1301
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_layer_get_wrap_mode_p)
|
1302
|
+
CoglMaterialWrapMode
|
1303
|
+
cogl_material_layer_get_wrap_mode_p (CoglMaterialLayer *layer);
|
1304
|
+
|
1305
|
+
#ifdef COGL_ENABLE_EXPERIMENTAL_API
|
1306
|
+
|
1307
|
+
/**
|
1308
|
+
* cogl_material_set_depth_state:
|
1309
|
+
* @material: A #CoglMaterial object
|
1310
|
+
* @state: A #CoglDepthState struct
|
1311
|
+
* @error: A #CoglError to report failures to setup the given @state.
|
1312
|
+
*
|
1313
|
+
* This commits all the depth state configured in @state struct to the
|
1314
|
+
* given @material. The configuration values are copied into the
|
1315
|
+
* material so there is no requirement to keep the #CoglDepthState
|
1316
|
+
* struct around if you don't need it any more.
|
1317
|
+
*
|
1318
|
+
* Note: Since some platforms do not support the depth range feature
|
1319
|
+
* it is possible for this function to fail and report an @error.
|
1320
|
+
*
|
1321
|
+
* Returns: TRUE if the GPU supports all the given @state else %FALSE
|
1322
|
+
* and returns an @error.
|
1323
|
+
*
|
1324
|
+
* Since: 1.8
|
1325
|
+
* Stability: Unstable
|
1326
|
+
* Deprecated: 1.16: Use cogl_pipeline_set_depth_state() instead
|
1327
|
+
*/
|
1328
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_set_depth_state)
|
1329
|
+
CoglBool
|
1330
|
+
cogl_material_set_depth_state (CoglMaterial *material,
|
1331
|
+
const CoglDepthState *state,
|
1332
|
+
CoglError **error);
|
1333
|
+
|
1334
|
+
/**
|
1335
|
+
* cogl_material_get_depth_state:
|
1336
|
+
* @material: A #CoglMaterial object
|
1337
|
+
* @state_out: A destination #CoglDepthState struct
|
1338
|
+
*
|
1339
|
+
* Retrieves the current depth state configuration for the given
|
1340
|
+
* @pipeline as previously set using cogl_pipeline_set_depth_state().
|
1341
|
+
*
|
1342
|
+
* Since: 2.0
|
1343
|
+
* Stability: Unstable
|
1344
|
+
* Deprecated: 1.16: Use cogl_pipeline_get_depth_state() instead
|
1345
|
+
*/
|
1346
|
+
COGL_DEPRECATED_IN_1_16_FOR (cogl_pipeline_get_depth_state)
|
1347
|
+
void
|
1348
|
+
cogl_material_get_depth_state (CoglMaterial *material,
|
1349
|
+
CoglDepthState *state_out);
|
1350
|
+
|
1351
|
+
/**
|
1352
|
+
* CoglMaterialLayerCallback:
|
1353
|
+
* @material: The #CoglMaterial whos layers are being iterated
|
1354
|
+
* @layer_index: The current layer index
|
1355
|
+
* @user_data: The private data passed to cogl_material_foreach_layer()
|
1356
|
+
*
|
1357
|
+
* The callback prototype used with cogl_material_foreach_layer() for
|
1358
|
+
* iterating all the layers of a @material.
|
1359
|
+
*
|
1360
|
+
* Since: 1.4
|
1361
|
+
* Stability: Unstable
|
1362
|
+
* Deprecated: 1.16
|
1363
|
+
*/
|
1364
|
+
typedef CoglBool (*CoglMaterialLayerCallback) (CoglMaterial *material,
|
1365
|
+
int layer_index,
|
1366
|
+
void *user_data);
|
1367
|
+
|
1368
|
+
/**
|
1369
|
+
* cogl_material_foreach_layer:
|
1370
|
+
* @material: A #CoglMaterial object
|
1371
|
+
* @callback: A #CoglMaterialLayerCallback to be called for each layer
|
1372
|
+
* index
|
1373
|
+
* @user_data: Private data that will be passed to the callback
|
1374
|
+
*
|
1375
|
+
* Iterates all the layer indices of the given @material.
|
1376
|
+
*
|
1377
|
+
* Since: 1.4
|
1378
|
+
* Stability: Unstable
|
1379
|
+
* Deprecated: 1.16: No replacement
|
1380
|
+
*/
|
1381
|
+
COGL_DEPRECATED_IN_1_16
|
1382
|
+
void
|
1383
|
+
cogl_material_foreach_layer (CoglMaterial *material,
|
1384
|
+
CoglMaterialLayerCallback callback,
|
1385
|
+
void *user_data);
|
1386
|
+
|
1387
|
+
#endif /* COGL_ENABLE_EXPERIMENTAL_API */
|
1388
|
+
|
1389
|
+
G_END_DECLS
|
1390
|
+
|
1391
|
+
#endif /* __COGL_MATERIAL_H__ */
|