clutter 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +147 -0
- data/lib/clutter.rb +169 -0
- data/lib/clutter/actor-iter.rb +33 -0
- data/lib/clutter/actor.rb +34 -0
- data/lib/clutter/animatable.rb +26 -0
- data/lib/clutter/brightness-contrast-effect.rb +44 -0
- data/lib/clutter/cairo.rb +24 -0
- data/lib/clutter/clutter.rb +25 -0
- data/lib/clutter/color.rb +83 -0
- data/lib/clutter/event.rb +21 -0
- data/lib/clutter/point.rb +25 -0
- data/lib/clutter/text-buffer.rb +36 -0
- data/lib/clutter/text.rb +23 -0
- data/lib/clutter/threads.rb +38 -0
- data/sample/basic-actor.rb +123 -0
- data/sample/bin-layout.rb +213 -0
- data/sample/box-layout.rb +194 -0
- data/sample/canvas.rb +115 -0
- data/sample/constraints.rb +79 -0
- data/sample/drag-action.rb +175 -0
- data/sample/drop-action.rb +196 -0
- data/sample/easing-modes.rb +141 -0
- data/sample/flow-layout.rb +119 -0
- data/sample/grid-layout.rb +237 -0
- data/sample/image-content.rb +86 -0
- data/sample/pan-action.rb +98 -0
- data/sample/redhand.png +0 -0
- data/sample/rounded-rectangle.rb +88 -0
- data/sample/scroll-actor.rb +103 -0
- data/test/clutter-test-utils.rb +38 -0
- data/test/run-test.rb +59 -0
- data/test/test-clutter-actor.rb +242 -0
- data/test/test-clutter-blur-effect.rb +27 -0
- data/test/test-clutter-brightness-contrast-effect.rb +56 -0
- data/test/test-clutter-canvas.rb +43 -0
- data/test/test-clutter-color.rb +50 -0
- data/test/test-clutter-colorize-effect.rb +31 -0
- data/test/test-clutter-desaturate-effect.rb +30 -0
- data/test/test-clutter-feature.rb +34 -0
- data/test/test-clutter-flow-layout.rb +83 -0
- data/test/test-clutter-page-turn-effect.rb +46 -0
- data/test/test-clutter-property-transiton.rb +30 -0
- data/test/test-clutter-shader-effect.rb +65 -0
- data/test/test-clutter-text-buffer.rb +72 -0
- data/test/test-clutter-timeline.rb +59 -0
- 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-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 +160 -0
- data/vendor/local/include/clutter-1.0/cally/cally-clone.h +84 -0
- data/vendor/local/include/clutter-1.0/cally/cally-factory.h +117 -0
- data/vendor/local/include/clutter-1.0/cally/cally-group.h +87 -0
- data/vendor/local/include/clutter-1.0/cally/cally-main.h +44 -0
- data/vendor/local/include/clutter-1.0/cally/cally-rectangle.h +84 -0
- data/vendor/local/include/clutter-1.0/cally/cally-root.h +84 -0
- data/vendor/local/include/clutter-1.0/cally/cally-stage.h +84 -0
- data/vendor/local/include/clutter-1.0/cally/cally-text.h +84 -0
- data/vendor/local/include/clutter-1.0/cally/cally-texture.h +84 -0
- data/vendor/local/include/clutter-1.0/cally/cally-util.h +84 -0
- data/vendor/local/include/clutter-1.0/cally/cally.h +40 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-action.h +111 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-actor-meta.h +119 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-actor.h +836 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-align-constraint.h +77 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-animatable.h +121 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-backend.h +83 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-bin-layout.h +86 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-bind-constraint.h +77 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-binding-pool.h +135 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-blur-effect.h +59 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-box-layout.h +168 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-brightness-contrast-effect.h +88 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-cairo.h +61 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-canvas.h +106 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-child-meta.h +122 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-click-action.h +120 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-clone.h +94 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-cogl-compat.h +52 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-color-static.h +79 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-color.h +200 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-colorize-effect.h +67 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-config.h +19 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-constraint.h +120 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-container.h +196 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-content.h +103 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-deform-effect.h +117 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-deprecated.h +44 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-desaturate-effect.h +65 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-device-manager.h +110 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-drag-action.h +152 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-drop-action.h +115 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-effect.h +130 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-enum-types.h +190 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-enums.h +1385 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-event.h +588 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-feature.h +42 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-fixed-layout.h +82 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-flow-layout.h +129 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-gesture-action.h +179 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-grid-layout.h +161 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-group.h +96 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-image.h +141 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-input-device.h +140 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-interval.h +159 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-keyframe-transition.h +120 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-keysyms.h +2304 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-layout-manager.h +227 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-layout-meta.h +103 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-list-model.h +91 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-macros.h +327 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-main.h +184 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-marshal.h +273 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-model.h +422 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-offscreen-effect.h +122 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-page-turn-effect.h +80 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-paint-node.h +102 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-paint-nodes.h +150 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-pan-action.h +147 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-path-constraint.h +72 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-path.h +181 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-property-transition.h +91 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-rotate-action.h +100 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-script.h +220 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-scriptable.h +112 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-scroll-actor.h +97 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-settings.h +27 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-shader-effect.h +121 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-shader-types.h +104 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-snap-constraint.h +81 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-stage-manager.h +86 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-stage.h +250 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-swipe-action.h +109 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-tap-action.h +102 -0
- 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 +172 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-text.h +307 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-texture.h +130 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-timeline.h +226 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-transition-group.h +91 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-transition.h +132 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-types.h +773 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-units.h +184 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-version.h +329 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-zoom-action.h +114 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter.h +117 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-actor.h +161 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-alpha.h +144 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-animatable.h +47 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-animation.h +206 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-animator.h +186 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-backend.h +64 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-depth.h +101 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-ellipse.h +159 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-opacity.h +115 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-path.h +135 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-rotate.h +119 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-scale.h +107 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour.h +170 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-bin-layout.h +56 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-box.h +143 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-cairo-texture.h +139 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-container.h +93 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-fixed.h +98 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-frame-source.h +49 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-group.h +62 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-input-device.h +41 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-keysyms.h +2306 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-main.h +96 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-media.h +121 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-rectangle.h +117 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-score.h +144 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-shader.h +182 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-stage-manager.h +42 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-stage.h +102 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-state.h +187 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-table-layout.h +172 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-texture.h +138 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-timeline.h +41 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-timeout-pool.h +69 -0
- data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-util.h +40 -0
- data/vendor/local/include/clutter-1.0/clutter/win32/clutter-win32.h +63 -0
- data/vendor/local/include/cogl/cogl-pango/cogl-pango.h +298 -0
- data/vendor/local/include/cogl/cogl-path/cogl-path-enum-types.h +20 -0
- data/vendor/local/include/cogl/cogl-path/cogl-path-types.h +85 -0
- data/vendor/local/include/cogl/cogl-path/cogl-path.h +68 -0
- data/vendor/local/include/cogl/cogl-path/cogl1-path-functions.h +467 -0
- data/vendor/local/include/cogl/cogl-path/cogl2-path-functions.h +545 -0
- data/vendor/local/include/cogl/cogl/cogl-atlas-texture.h +258 -0
- data/vendor/local/include/cogl/cogl/cogl-attribute-buffer.h +152 -0
- data/vendor/local/include/cogl/cogl/cogl-attribute.h +558 -0
- data/vendor/local/include/cogl/cogl/cogl-auto-texture.h +221 -0
- data/vendor/local/include/cogl/cogl/cogl-bitmap.h +336 -0
- data/vendor/local/include/cogl/cogl/cogl-buffer.h +324 -0
- data/vendor/local/include/cogl/cogl/cogl-clip-state.h +266 -0
- data/vendor/local/include/cogl/cogl/cogl-clutter.h +54 -0
- data/vendor/local/include/cogl/cogl/cogl-color.h +604 -0
- data/vendor/local/include/cogl/cogl/cogl-context.h +401 -0
- data/vendor/local/include/cogl/cogl/cogl-defines.h +58 -0
- data/vendor/local/include/cogl/cogl/cogl-deprecated.h +43 -0
- data/vendor/local/include/cogl/cogl/cogl-depth-state.h +270 -0
- data/vendor/local/include/cogl/cogl/cogl-display.h +234 -0
- data/vendor/local/include/cogl/cogl/cogl-enum-types.h +99 -0
- data/vendor/local/include/cogl/cogl/cogl-error.h +185 -0
- data/vendor/local/include/cogl/cogl/cogl-euler.h +269 -0
- data/vendor/local/include/cogl/cogl/cogl-fence.h +143 -0
- data/vendor/local/include/cogl/cogl/cogl-fixed.h +811 -0
- data/vendor/local/include/cogl/cogl/cogl-frame-info.h +148 -0
- data/vendor/local/include/cogl/cogl/cogl-framebuffer-deprecated.h +264 -0
- data/vendor/local/include/cogl/cogl/cogl-framebuffer.h +1818 -0
- data/vendor/local/include/cogl/cogl/cogl-gles2-types.h +474 -0
- data/vendor/local/include/cogl/cogl/cogl-gles2.h +420 -0
- data/vendor/local/include/cogl/cogl/cogl-glib-source.h +97 -0
- data/vendor/local/include/cogl/cogl/cogl-index-buffer.h +107 -0
- data/vendor/local/include/cogl/cogl/cogl-indices.h +165 -0
- data/vendor/local/include/cogl/cogl/cogl-macros.h +273 -0
- data/vendor/local/include/cogl/cogl/cogl-material-compat.h +1391 -0
- data/vendor/local/include/cogl/cogl/cogl-matrix-stack.h +645 -0
- data/vendor/local/include/cogl/cogl/cogl-matrix.h +821 -0
- data/vendor/local/include/cogl/cogl/cogl-meta-texture.h +194 -0
- data/vendor/local/include/cogl/cogl/cogl-object.h +251 -0
- data/vendor/local/include/cogl/cogl/cogl-offscreen.h +172 -0
- data/vendor/local/include/cogl/cogl/cogl-onscreen-template.h +125 -0
- data/vendor/local/include/cogl/cogl/cogl-onscreen.h +1012 -0
- data/vendor/local/include/cogl/cogl/cogl-output.h +261 -0
- data/vendor/local/include/cogl/cogl/cogl-pango.h +40 -0
- data/vendor/local/include/cogl/cogl/cogl-pipeline-layer-state.h +620 -0
- data/vendor/local/include/cogl/cogl/cogl-pipeline-state.h +980 -0
- data/vendor/local/include/cogl/cogl/cogl-pipeline.h +194 -0
- data/vendor/local/include/cogl/cogl/cogl-pixel-buffer.h +138 -0
- data/vendor/local/include/cogl/cogl/cogl-poll.h +200 -0
- data/vendor/local/include/cogl/cogl/cogl-primitive-texture.h +111 -0
- data/vendor/local/include/cogl/cogl/cogl-primitive.h +942 -0
- data/vendor/local/include/cogl/cogl/cogl-primitives.h +197 -0
- data/vendor/local/include/cogl/cogl/cogl-quaternion.h +564 -0
- data/vendor/local/include/cogl/cogl/cogl-renderer.h +446 -0
- data/vendor/local/include/cogl/cogl/cogl-shader.h +704 -0
- data/vendor/local/include/cogl/cogl/cogl-snippet.h +866 -0
- data/vendor/local/include/cogl/cogl/cogl-sub-texture.h +136 -0
- data/vendor/local/include/cogl/cogl/cogl-swap-chain.h +71 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-2d-gl.h +78 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-2d-sliced.h +301 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-2d.h +234 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-3d.h +204 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-deprecated.h +105 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-rectangle.h +218 -0
- data/vendor/local/include/cogl/cogl/cogl-texture.h +524 -0
- data/vendor/local/include/cogl/cogl/cogl-type-casts.h +53 -0
- data/vendor/local/include/cogl/cogl/cogl-types.h +925 -0
- data/vendor/local/include/cogl/cogl/cogl-vector.h +356 -0
- data/vendor/local/include/cogl/cogl/cogl-version.h +348 -0
- data/vendor/local/include/cogl/cogl/cogl-vertex-buffer.h +451 -0
- data/vendor/local/include/cogl/cogl/cogl-win32-renderer.h +123 -0
- data/vendor/local/include/cogl/cogl/cogl.h +194 -0
- data/vendor/local/include/cogl/cogl/cogl1-context.h +862 -0
- data/vendor/local/include/cogl/cogl/cogl2-experimental.h +37 -0
- 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 +198 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-gles2-functions.h +43 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-glsl-functions.h +286 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-in-gles-core-functions.h +148 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-in-gles2-core-functions.h +186 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-builder.h +120 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-enum-types.h +41 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-generator.h +120 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-glib.h +47 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-gobject.h +199 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-gvariant.h +53 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-parser.h +188 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-path.h +102 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-reader.h +171 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-types.h +445 -0
- 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 +102 -0
- data/vendor/local/lib/girepository-1.0/Cally-1.0.typelib +0 -0
- 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 +41 -0
- data/vendor/local/lib/libcogl-pango.dll.a +0 -0
- data/vendor/local/lib/libcogl-pango.la +41 -0
- 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 +41 -0
- data/vendor/local/lib/libjson-glib-1.0.dll.a +0 -0
- data/vendor/local/lib/libjson-glib-1.0.la +41 -0
- data/vendor/local/lib/pkgconfig/cally-1.0.pc +13 -0
- data/vendor/local/lib/pkgconfig/clutter-1.0.pc +24 -0
- data/vendor/local/lib/pkgconfig/clutter-win32-1.0.pc +24 -0
- data/vendor/local/lib/pkgconfig/cogl-1.0.pc +13 -0
- data/vendor/local/lib/pkgconfig/cogl-2.0-experimental.pc +13 -0
- data/vendor/local/lib/pkgconfig/cogl-gl-1.0.pc +13 -0
- data/vendor/local/lib/pkgconfig/cogl-pango-1.0.pc +13 -0
- data/vendor/local/lib/pkgconfig/cogl-pango-2.0-experimental.pc +13 -0
- 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 +11 -0
- data/vendor/local/share/cogl/examples-data/crate.jpg +0 -0
- data/vendor/local/share/gir-1.0/Cally-1.0.gir +681 -0
- data/vendor/local/share/gir-1.0/Clutter-1.0.gir +70493 -0
- data/vendor/local/share/gir-1.0/Cogl-1.0.gir +8197 -0
- data/vendor/local/share/gir-1.0/Cogl-2.0.gir +20369 -0
- data/vendor/local/share/gir-1.0/CoglPango-1.0.gir +333 -0
- data/vendor/local/share/gir-1.0/CoglPango-2.0.gir +331 -0
- data/vendor/local/share/gir-1.0/Json-1.0.gir +4742 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyActor.html +509 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyClone.html +155 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyGroup.html +154 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyRectangle.html +154 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyRoot.html +133 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyStage.html +159 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyText.html +154 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyTexture.html +154 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyUtil.html +102 -0
- data/vendor/local/share/gtk-doc/html/cally/cally-General-API.html +187 -0
- data/vendor/local/share/gtk-doc/html/cally/cally.devhelp2 +73 -0
- data/vendor/local/share/gtk-doc/html/cally/callyannotationglossary.html +41 -0
- data/vendor/local/share/gtk-doc/html/cally/callybase.html +71 -0
- data/vendor/local/share/gtk-doc/html/cally/callyobjecthierarchy.html +45 -0
- data/vendor/local/share/gtk-doc/html/cally/callyobjectindex.html +64 -0
- data/vendor/local/share/gtk-doc/html/cally/callyobjects.html +39 -0
- data/vendor/local/share/gtk-doc/html/cally/ch01.html +53 -0
- data/vendor/local/share/gtk-doc/html/cally/ch02.html +41 -0
- data/vendor/local/share/gtk-doc/html/cally/clutter-overview.html +96 -0
- data/vendor/local/share/gtk-doc/html/cally/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/cally/index.html +103 -0
- data/vendor/local/share/gtk-doc/html/cally/index.sgml +121 -0
- data/vendor/local/share/gtk-doc/html/cally/ix01.html +193 -0
- data/vendor/local/share/gtk-doc/html/cally/ix02.html +31 -0
- data/vendor/local/share/gtk-doc/html/cally/ix03.html +185 -0
- data/vendor/local/share/gtk-doc/html/cally/ix04.html +39 -0
- data/vendor/local/share/gtk-doc/html/cally/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/cally/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/cally/license.html +58 -0
- data/vendor/local/share/gtk-doc/html/cally/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/cally/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/cally/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/cally/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/cally/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAction.html +109 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterActor.html +15797 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterActorMeta.html +396 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAlignConstraint.html +494 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAlpha.html +816 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAnimatable.html +497 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAnimator.html +1406 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBackend.html +855 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviour.html +802 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourDepth.html +313 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourEllipse.html +1041 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourOpacity.html +319 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourPath.html +502 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourRotate.html +744 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourScale.html +476 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBinLayout.html +481 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBindConstraint.html +598 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBlurEffect.html +116 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBox.html +726 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBoxLayout.html +1471 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBrightnessContrastEffect.html +480 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterCairoTexture.html +873 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterCanvas.html +488 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterChildMeta.html +287 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterClickAction.html +667 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterClone.html +258 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterColorizeEffect.html +239 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterConstraint.html +208 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterContainer.html +1611 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterContent.html +367 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDeformEffect.html +418 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDesaturateEffect.html +242 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDeviceManager.html +492 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDragAction.html +1120 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDropAction.html +498 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterEffect.html +469 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterFixedLayout.html +125 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterFlowLayout.html +928 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterGestureAction.html +1321 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterGridLayout.html +1020 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterGroup.html +272 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterImage.html +527 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterInputDevice.html +1805 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterKeyframeTransition.html +616 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterLayoutManager.html +1280 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterLayoutMeta.html +189 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterListModel.html +222 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterMedia.html +1053 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterModel.html +2052 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterModelIter.html +779 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterOffscreenEffect.html +452 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPageTurnEffect.html +428 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPaintNode.html +671 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPanAction.html +946 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPath.html +1576 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPathConstraint.html +407 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPropertyTransition.html +261 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterRectangle.html +484 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterRotateAction.html +216 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScore.html +1018 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScript.html +1421 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScriptable.html +364 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScrollActor.html +385 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterSettings.html +376 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterShaderEffect.html +693 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterSnapConstraint.html +526 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterStage.html +2751 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterState.html +1823 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterSwipeAction.html +333 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTableLayout.html +1393 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTapAction.html +219 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterText.html +3871 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTextBuffer.html +906 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTexture.html +2085 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTimeline.html +2864 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTransition.html +684 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTransitionGroup.html +264 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterZoomAction.html +474 -0
- data/vendor/local/share/gtk-doc/html/clutter/actor-box.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/actor-example.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/animator-key-frames.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/annotation-glossary.html +95 -0
- data/vendor/local/share/gtk-doc/html/clutter/bin-layout.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/box-layout.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/building-clutter.html +275 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch01.html +65 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch02.html +44 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch03.html +47 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch04.html +59 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch05.html +44 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch06.html +57 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch07.html +38 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch08.html +38 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch09.html +53 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch10.html +78 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch11.html +38 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch12.html +41 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Base-geometric-types.html +4244 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterGLXTexturePixmap.html +268 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterWaylandSurface.html +454 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterX11TexturePixmap.html +442 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Colors.html +1644 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-EGL-Specific-Support.html +211 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Events.html +3454 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Features.html +232 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-GDK-Specific-Support.html +297 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-General.html +2112 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Implicit-Animations.html +2213 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Intel-CE3100-CE4100-Specific-Support.html +200 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Key-Bindings.html +992 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Paint-Nodes.html +411 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Shaders.html +1236 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Stage-Manager.html +418 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Unit-conversion.html +1006 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Utilities.html +661 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Value-intervals.html +1221 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Versioning-Macros.html +578 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Wayland-compositor-specific-support.html +106 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Wayland-specific-support.html +289 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Win32-Specific-Support.html +241 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-X11-Specific-Support.html +916 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-overview.html +77 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter.devhelp2 +2403 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutteranimation.html +65 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterbackends.html +74 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterbase.html +195 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterglossary.html +37 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterobjecthierarchy.html +118 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterobjectindex.html +184 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterobjects.html +37 -0
- data/vendor/local/share/gtk-doc/html/clutter/cluttertools.html +105 -0
- data/vendor/local/share/gtk-doc/html/clutter/constraints-example.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/deprecated.html +93 -0
- data/vendor/local/share/gtk-doc/html/clutter/easing-modes.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/event-flow.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/flow-layout.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/go01.html +126 -0
- data/vendor/local/share/gtk-doc/html/clutter/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/index.html +454 -0
- data/vendor/local/share/gtk-doc/html/clutter/index.sgml +3165 -0
- data/vendor/local/share/gtk-doc/html/clutter/iterating-paths.html +56 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix01.html +8982 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix02.html +2198 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix03.html +457 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix04.html +578 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix05.html +952 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix06.html +637 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix07.html +1525 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix08.html +815 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix09.html +1000 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix10.html +364 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix11.html +361 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix12.html +1085 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix13.html +979 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix14.html +101 -0
- data/vendor/local/share/gtk-doc/html/clutter/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/license.html +58 -0
- data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterAnimation.html +223 -0
- data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterBehaviour.html +197 -0
- data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterEffect.html +154 -0
- data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterPath.html +155 -0
- data/vendor/local/share/gtk-doc/html/clutter/migration.html +49 -0
- data/vendor/local/share/gtk-doc/html/clutter/offscreen-redirect.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/path-alpha-func.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/pt09.html +31 -0
- data/vendor/local/share/gtk-doc/html/clutter/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/running-clutter.html +378 -0
- data/vendor/local/share/gtk-doc/html/clutter/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/clutter/table-layout.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/using-cairo.html +36 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonBuilder.html +676 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonGenerator.html +660 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonParser.html +1144 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonPath.html +512 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonReader.html +1140 -0
- data/vendor/local/share/gtk-doc/html/json-glib/annotation-glossary.html +66 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ch01.html +41 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ch02.html +41 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ch03.html +38 -0
- 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 +134 -0
- data/vendor/local/share/gtk-doc/html/json-glib/index.sgml +327 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix01.html +965 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix02.html +49 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix03.html +56 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix04.html +49 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix05.html +181 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix06.html +116 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix07.html +156 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix08.html +132 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-advanced.html +50 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-base.html +61 -0
- 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 +491 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-GObject-Serialization.html +385 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Array.html +1188 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-GVariant-Integration.html +318 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Node.html +1803 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Object.html +1369 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Serializable-Interface.html +582 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Versioning-information.html +215 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib.devhelp2 +277 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib.html +38 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-streams.html +63 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-tools.html +45 -0
- 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 +58 -0
- 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 +476 -0
- 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/clutter/COPYING +502 -0
- data/vendor/local/share/license/cogl/COPYING +107 -0
- data/vendor/local/share/license/json-glib/COPYING +504 -0
- 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
- metadata +869 -0
@@ -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__ */
|