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,125 @@
|
|
1
|
+
/*
|
2
|
+
* Cogl
|
3
|
+
*
|
4
|
+
* A Low Level GPU Graphics and Utilities API
|
5
|
+
*
|
6
|
+
* Copyright (C) 2011 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
|
+
* Authors:
|
29
|
+
* Robert Bragg <robert@linux.intel.com>
|
30
|
+
*
|
31
|
+
*/
|
32
|
+
|
33
|
+
#if !defined(__COGL_H_INSIDE__) && !defined(COGL_COMPILATION)
|
34
|
+
#error "Only <cogl/cogl.h> can be included directly."
|
35
|
+
#endif
|
36
|
+
|
37
|
+
#ifndef __COGL_ONSCREEN_TEMPLATE_H__
|
38
|
+
#define __COGL_ONSCREEN_TEMPLATE_H__
|
39
|
+
|
40
|
+
#include <cogl/cogl-swap-chain.h>
|
41
|
+
|
42
|
+
#ifdef COGL_HAS_GTYPE_SUPPORT
|
43
|
+
#include <glib-object.h>
|
44
|
+
#endif
|
45
|
+
|
46
|
+
COGL_BEGIN_DECLS
|
47
|
+
|
48
|
+
typedef struct _CoglOnscreenTemplate CoglOnscreenTemplate;
|
49
|
+
|
50
|
+
#define COGL_ONSCREEN_TEMPLATE(OBJECT) ((CoglOnscreenTemplate *)OBJECT)
|
51
|
+
|
52
|
+
#ifdef COGL_HAS_GTYPE_SUPPORT
|
53
|
+
/**
|
54
|
+
* cogl_onscreen_template_get_gtype:
|
55
|
+
*
|
56
|
+
* Returns: a #GType that can be used with the GLib type system.
|
57
|
+
*/
|
58
|
+
GType cogl_onscreen_template_get_gtype (void);
|
59
|
+
#endif
|
60
|
+
|
61
|
+
CoglOnscreenTemplate *
|
62
|
+
cogl_onscreen_template_new (CoglSwapChain *swap_chain);
|
63
|
+
|
64
|
+
/**
|
65
|
+
* cogl_onscreen_template_set_samples_per_pixel:
|
66
|
+
* @onscreen_template: A #CoglOnscreenTemplate template framebuffer
|
67
|
+
* @n: The minimum number of samples per pixel
|
68
|
+
*
|
69
|
+
* Requires that any future CoglOnscreen framebuffers derived from
|
70
|
+
* this template must support making at least @n samples per pixel
|
71
|
+
* which will all contribute to the final resolved color for that
|
72
|
+
* pixel.
|
73
|
+
*
|
74
|
+
* By default this value is usually set to 0 and that is referred to
|
75
|
+
* as "single-sample" rendering. A value of 1 or greater is referred
|
76
|
+
* to as "multisample" rendering.
|
77
|
+
*
|
78
|
+
* <note>There are some semantic differences between single-sample
|
79
|
+
* rendering and multisampling with just 1 point sample such as it
|
80
|
+
* being redundant to use the cogl_framebuffer_resolve_samples() and
|
81
|
+
* cogl_framebuffer_resolve_samples_region() apis with single-sample
|
82
|
+
* rendering.</note>
|
83
|
+
*
|
84
|
+
* Since: 1.10
|
85
|
+
* Stability: unstable
|
86
|
+
*/
|
87
|
+
void
|
88
|
+
cogl_onscreen_template_set_samples_per_pixel (
|
89
|
+
CoglOnscreenTemplate *onscreen_template,
|
90
|
+
int n);
|
91
|
+
|
92
|
+
/**
|
93
|
+
* cogl_onscreen_template_set_swap_throttled:
|
94
|
+
* @onscreen_template: A #CoglOnscreenTemplate template framebuffer
|
95
|
+
* @throttled: Whether throttling should be enabled
|
96
|
+
*
|
97
|
+
* Requests that any future #CoglOnscreen framebuffers derived from this
|
98
|
+
* template should enable or disable swap throttling according to the given
|
99
|
+
* @throttled argument.
|
100
|
+
*
|
101
|
+
* Since: 1.10
|
102
|
+
* Stability: unstable
|
103
|
+
*/
|
104
|
+
void
|
105
|
+
cogl_onscreen_template_set_swap_throttled (
|
106
|
+
CoglOnscreenTemplate *onscreen_template,
|
107
|
+
CoglBool throttled);
|
108
|
+
|
109
|
+
/**
|
110
|
+
* cogl_is_onscreen_template:
|
111
|
+
* @object: A #CoglObject pointer
|
112
|
+
*
|
113
|
+
* Gets whether the given object references a #CoglOnscreenTemplate.
|
114
|
+
*
|
115
|
+
* Return value: %TRUE if the object references a #CoglOnscreenTemplate
|
116
|
+
* and %FALSE otherwise.
|
117
|
+
* Since: 1.10
|
118
|
+
* Stability: unstable
|
119
|
+
*/
|
120
|
+
CoglBool
|
121
|
+
cogl_is_onscreen_template (void *object);
|
122
|
+
|
123
|
+
COGL_END_DECLS
|
124
|
+
|
125
|
+
#endif /* __COGL_ONSCREEN_TEMPLATE_H__ */
|
@@ -0,0 +1,1012 @@
|
|
1
|
+
/*
|
2
|
+
* Cogl
|
3
|
+
*
|
4
|
+
* A Low Level GPU Graphics and Utilities API
|
5
|
+
*
|
6
|
+
* Copyright (C) 2011,2012,2013 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
|
+
* Authors:
|
31
|
+
* Robert Bragg <robert@linux.intel.com>
|
32
|
+
*/
|
33
|
+
|
34
|
+
#if !defined(__COGL_H_INSIDE__) && !defined(COGL_COMPILATION)
|
35
|
+
#error "Only <cogl/cogl.h> can be included directly."
|
36
|
+
#endif
|
37
|
+
|
38
|
+
#ifndef __COGL_ONSCREEN_H
|
39
|
+
#define __COGL_ONSCREEN_H
|
40
|
+
|
41
|
+
#include <cogl/cogl-context.h>
|
42
|
+
#include <cogl/cogl-framebuffer.h>
|
43
|
+
#include <cogl/cogl-frame-info.h>
|
44
|
+
#include <cogl/cogl-object.h>
|
45
|
+
|
46
|
+
#ifdef COGL_HAS_GTYPE_SUPPORT
|
47
|
+
#include <glib-object.h>
|
48
|
+
#endif
|
49
|
+
|
50
|
+
COGL_BEGIN_DECLS
|
51
|
+
|
52
|
+
typedef struct _CoglOnscreen CoglOnscreen;
|
53
|
+
#define COGL_ONSCREEN(X) ((CoglOnscreen *)(X))
|
54
|
+
|
55
|
+
#ifdef COGL_HAS_GTYPE_SUPPORT
|
56
|
+
/**
|
57
|
+
* cogl_onscreen_get_gtype:
|
58
|
+
*
|
59
|
+
* Returns: a #GType that can be used with the GLib type system.
|
60
|
+
*/
|
61
|
+
GType cogl_onscreen_get_gtype (void);
|
62
|
+
#endif
|
63
|
+
|
64
|
+
/**
|
65
|
+
* cogl_onscreen_new: (constructor)
|
66
|
+
* @context: A #CoglContext
|
67
|
+
* @width: The desired framebuffer width
|
68
|
+
* @height: The desired framebuffer height
|
69
|
+
*
|
70
|
+
* Instantiates an "unallocated" #CoglOnscreen framebuffer that may be
|
71
|
+
* configured before later being allocated, either implicitly when
|
72
|
+
* it is first used or explicitly via cogl_framebuffer_allocate().
|
73
|
+
*
|
74
|
+
* Return value: (transfer full): A newly instantiated #CoglOnscreen framebuffer
|
75
|
+
* Since: 1.8
|
76
|
+
* Stability: unstable
|
77
|
+
*/
|
78
|
+
CoglOnscreen *
|
79
|
+
cogl_onscreen_new (CoglContext *context, int width, int height);
|
80
|
+
|
81
|
+
#ifdef COGL_HAS_X11
|
82
|
+
typedef void (*CoglOnscreenX11MaskCallback) (CoglOnscreen *onscreen,
|
83
|
+
uint32_t event_mask,
|
84
|
+
void *user_data);
|
85
|
+
|
86
|
+
/**
|
87
|
+
* cogl_x11_onscreen_set_foreign_window_xid:
|
88
|
+
* @onscreen: The unallocated framebuffer to associated with an X
|
89
|
+
* window.
|
90
|
+
* @xid: The XID of an existing X window
|
91
|
+
* @update: A callback that notifies of updates to what Cogl requires
|
92
|
+
* to be in the core X protocol event mask.
|
93
|
+
* @user_data: user data passed to @update
|
94
|
+
*
|
95
|
+
* Ideally we would recommend that you let Cogl be responsible for
|
96
|
+
* creating any X window required to back an onscreen framebuffer but
|
97
|
+
* if you really need to target a window created manually this
|
98
|
+
* function can be called before @onscreen has been allocated to set a
|
99
|
+
* foreign XID for your existing X window.
|
100
|
+
*
|
101
|
+
* Since Cogl needs, for example, to track changes to the size of an X
|
102
|
+
* window it requires that certain events be selected for via the core
|
103
|
+
* X protocol. This requirement may also be changed asynchronously so
|
104
|
+
* you must pass in an @update callback to inform you of Cogl's
|
105
|
+
* required event mask.
|
106
|
+
*
|
107
|
+
* For example if you are using Xlib you could use this API roughly
|
108
|
+
* as follows:
|
109
|
+
* [{
|
110
|
+
* static void
|
111
|
+
* my_update_cogl_x11_event_mask (CoglOnscreen *onscreen,
|
112
|
+
* uint32_t event_mask,
|
113
|
+
* void *user_data)
|
114
|
+
* {
|
115
|
+
* XSetWindowAttributes attrs;
|
116
|
+
* MyData *data = user_data;
|
117
|
+
* attrs.event_mask = event_mask | data->my_event_mask;
|
118
|
+
* XChangeWindowAttributes (data->xdpy,
|
119
|
+
* data->xwin,
|
120
|
+
* CWEventMask,
|
121
|
+
* &attrs);
|
122
|
+
* }
|
123
|
+
*
|
124
|
+
* {
|
125
|
+
* *snip*
|
126
|
+
* cogl_x11_onscreen_set_foreign_window_xid (onscreen,
|
127
|
+
* data->xwin,
|
128
|
+
* my_update_cogl_x11_event_mask,
|
129
|
+
* data);
|
130
|
+
* *snip*
|
131
|
+
* }
|
132
|
+
* }]
|
133
|
+
*
|
134
|
+
* Since: 2.0
|
135
|
+
* Stability: Unstable
|
136
|
+
*/
|
137
|
+
void
|
138
|
+
cogl_x11_onscreen_set_foreign_window_xid (CoglOnscreen *onscreen,
|
139
|
+
uint32_t xid,
|
140
|
+
CoglOnscreenX11MaskCallback update,
|
141
|
+
void *user_data);
|
142
|
+
|
143
|
+
/**
|
144
|
+
* cogl_x11_onscreen_get_window_xid:
|
145
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
146
|
+
*
|
147
|
+
* Assuming you know the given @onscreen framebuffer is based on an x11 window
|
148
|
+
* this queries the XID of that window. If
|
149
|
+
* cogl_x11_onscreen_set_foreign_window_xid() was previously called then it
|
150
|
+
* will return that same XID otherwise it will be the XID of a window Cogl
|
151
|
+
* created internally. If the window has not been allocated yet and a foreign
|
152
|
+
* xid has not been set then it's undefined what value will be returned.
|
153
|
+
*
|
154
|
+
* It's undefined what this function does if called when not using an x11 based
|
155
|
+
* renderer.
|
156
|
+
*
|
157
|
+
* Since: 1.10
|
158
|
+
* Stability: unstable
|
159
|
+
*/
|
160
|
+
uint32_t
|
161
|
+
cogl_x11_onscreen_get_window_xid (CoglOnscreen *onscreen);
|
162
|
+
|
163
|
+
/* XXX: we should maybe remove this, since nothing currently uses
|
164
|
+
* it and the current implementation looks dubious. */
|
165
|
+
uint32_t
|
166
|
+
cogl_x11_onscreen_get_visual_xid (CoglOnscreen *onscreen);
|
167
|
+
#endif /* COGL_HAS_X11 */
|
168
|
+
|
169
|
+
#ifdef COGL_HAS_WIN32_SUPPORT
|
170
|
+
/**
|
171
|
+
* cogl_win32_onscreen_set_foreign_window:
|
172
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
173
|
+
* @hwnd: A win32 window handle
|
174
|
+
*
|
175
|
+
* Ideally we would recommend that you let Cogl be responsible for
|
176
|
+
* creating any window required to back an onscreen framebuffer but
|
177
|
+
* if you really need to target a window created manually this
|
178
|
+
* function can be called before @onscreen has been allocated to set a
|
179
|
+
* foreign XID for your existing X window.
|
180
|
+
*
|
181
|
+
* Since: 1.10
|
182
|
+
* Stability: unstable
|
183
|
+
*/
|
184
|
+
void
|
185
|
+
cogl_win32_onscreen_set_foreign_window (CoglOnscreen *onscreen,
|
186
|
+
HWND hwnd);
|
187
|
+
|
188
|
+
/**
|
189
|
+
* cogl_win32_onscreen_get_window:
|
190
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
191
|
+
*
|
192
|
+
* Queries the internally created window HWND backing the given @onscreen
|
193
|
+
* framebuffer. If cogl_win32_onscreen_set_foreign_window() has been used then
|
194
|
+
* it will return the same handle set with that API.
|
195
|
+
*
|
196
|
+
* Since: 1.10
|
197
|
+
* Stability: unstable
|
198
|
+
*/
|
199
|
+
HWND
|
200
|
+
cogl_win32_onscreen_get_window (CoglOnscreen *onscreen);
|
201
|
+
#endif /* COGL_HAS_WIN32_SUPPORT */
|
202
|
+
|
203
|
+
#if defined (COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT)
|
204
|
+
struct wl_surface *
|
205
|
+
cogl_wayland_onscreen_get_surface (CoglOnscreen *onscreen);
|
206
|
+
struct wl_shell_surface *
|
207
|
+
cogl_wayland_onscreen_get_shell_surface (CoglOnscreen *onscreen);
|
208
|
+
|
209
|
+
/**
|
210
|
+
* cogl_wayland_onscreen_set_foreign_surface:
|
211
|
+
* @onscreen: An unallocated framebuffer.
|
212
|
+
* @surface A Wayland surface to associate with the @onscreen.
|
213
|
+
*
|
214
|
+
* Allows you to explicitly notify Cogl of an existing Wayland surface to use,
|
215
|
+
* which prevents Cogl from allocating a surface and shell surface for the
|
216
|
+
* @onscreen. An allocated surface will not be destroyed when the @onscreen is
|
217
|
+
* freed.
|
218
|
+
*
|
219
|
+
* This function must be called before @onscreen is allocated.
|
220
|
+
*
|
221
|
+
* Since: 1.16
|
222
|
+
* Stability: unstable
|
223
|
+
*/
|
224
|
+
void
|
225
|
+
cogl_wayland_onscreen_set_foreign_surface (CoglOnscreen *onscreen,
|
226
|
+
struct wl_surface *surface);
|
227
|
+
|
228
|
+
/**
|
229
|
+
* cogl_wayland_onscreen_resize:
|
230
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
231
|
+
* @width: The desired width of the framebuffer
|
232
|
+
* @height: The desired height of the framebuffer
|
233
|
+
* @offset_x: A relative x offset for the new framebuffer
|
234
|
+
* @offset_y: A relative y offset for the new framebuffer
|
235
|
+
*
|
236
|
+
* Resizes the backbuffer of the given @onscreen framebuffer to the
|
237
|
+
* given size. Since a buffer is usually conceptually scaled with a
|
238
|
+
* center point the @offset_x and @offset_y arguments allow the newly
|
239
|
+
* allocated buffer to be positioned relative to the old buffer size.
|
240
|
+
*
|
241
|
+
* For example a buffer that is being resized by moving the bottom right
|
242
|
+
* corner, and the top left corner is remaining static would use x and y
|
243
|
+
* offsets of (0, 0) since the top-left of the new buffer should have the same
|
244
|
+
* position as the old buffer. If the center of the old buffer is being zoomed
|
245
|
+
* into then all the corners of the new buffer move out from the center and the x
|
246
|
+
* and y offsets would be (-half_x_size_increase, -half_y_size_increase) where
|
247
|
+
* x/y_size_increase is how many pixels bigger the buffer is on the x and y
|
248
|
+
* axis.
|
249
|
+
*
|
250
|
+
* Note that if some drawing commands have been applied to the
|
251
|
+
* framebuffer since the last swap buffers then the resize will be
|
252
|
+
* queued and will only take effect in the next swap buffers.
|
253
|
+
*
|
254
|
+
* If multiple calls to cogl_wayland_onscreen_resize() get queued
|
255
|
+
* before the next swap buffers request then the relative x and y
|
256
|
+
* offsets accumulate instead of being replaced. The @width and
|
257
|
+
* @height values superseed the old values.
|
258
|
+
*
|
259
|
+
* Since: 1.10
|
260
|
+
* Stability: unstable
|
261
|
+
*/
|
262
|
+
void
|
263
|
+
cogl_wayland_onscreen_resize (CoglOnscreen *onscreen,
|
264
|
+
int width,
|
265
|
+
int height,
|
266
|
+
int offset_x,
|
267
|
+
int offset_y);
|
268
|
+
#endif /* COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT */
|
269
|
+
|
270
|
+
/**
|
271
|
+
* cogl_onscreen_set_swap_throttled:
|
272
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
273
|
+
* @throttled: Whether swap throttling is wanted or not.
|
274
|
+
*
|
275
|
+
* Requests that the given @onscreen framebuffer should have swap buffer
|
276
|
+
* requests (made using cogl_onscreen_swap_buffers()) throttled either by a
|
277
|
+
* displays vblank period or perhaps some other mechanism in a composited
|
278
|
+
* environment.
|
279
|
+
*
|
280
|
+
* Since: 1.8
|
281
|
+
* Stability: unstable
|
282
|
+
*/
|
283
|
+
void
|
284
|
+
cogl_onscreen_set_swap_throttled (CoglOnscreen *onscreen,
|
285
|
+
CoglBool throttled);
|
286
|
+
|
287
|
+
/**
|
288
|
+
* cogl_onscreen_show:
|
289
|
+
* @onscreen: The onscreen framebuffer to make visible
|
290
|
+
*
|
291
|
+
* This requests to make @onscreen visible to the user.
|
292
|
+
*
|
293
|
+
* Actually the precise semantics of this function depend on the
|
294
|
+
* window system currently in use, and if you don't have a
|
295
|
+
* multi-windowining system this function may in-fact do nothing.
|
296
|
+
*
|
297
|
+
* This function will implicitly allocate the given @onscreen
|
298
|
+
* framebuffer before showing it if it hasn't already been allocated.
|
299
|
+
*
|
300
|
+
* When using the Wayland winsys calling this will set the surface to
|
301
|
+
* a toplevel type which will make it appear. If the application wants
|
302
|
+
* to set a different type for the surface, it can avoid calling
|
303
|
+
* cogl_onscreen_show() and set its own type directly with the Wayland
|
304
|
+
* client API via cogl_wayland_onscreen_get_surface().
|
305
|
+
*
|
306
|
+
* <note>Since Cogl doesn't explicitly track the visibility status of
|
307
|
+
* onscreen framebuffers it wont try to avoid redundant window system
|
308
|
+
* requests e.g. to show an already visible window. This also means
|
309
|
+
* that it's acceptable to alternatively use native APIs to show and
|
310
|
+
* hide windows without confusing Cogl.</note>
|
311
|
+
*
|
312
|
+
* Since: 2.0
|
313
|
+
* Stability: Unstable
|
314
|
+
*/
|
315
|
+
void
|
316
|
+
cogl_onscreen_show (CoglOnscreen *onscreen);
|
317
|
+
|
318
|
+
/**
|
319
|
+
* cogl_onscreen_hide:
|
320
|
+
* @onscreen: The onscreen framebuffer to make invisible
|
321
|
+
*
|
322
|
+
* This requests to make @onscreen invisible to the user.
|
323
|
+
*
|
324
|
+
* Actually the precise semantics of this function depend on the
|
325
|
+
* window system currently in use, and if you don't have a
|
326
|
+
* multi-windowining system this function may in-fact do nothing.
|
327
|
+
*
|
328
|
+
* This function does not implicitly allocate the given @onscreen
|
329
|
+
* framebuffer before hiding it.
|
330
|
+
*
|
331
|
+
* <note>Since Cogl doesn't explicitly track the visibility status of
|
332
|
+
* onscreen framebuffers it wont try to avoid redundant window system
|
333
|
+
* requests e.g. to show an already visible window. This also means
|
334
|
+
* that it's acceptable to alternatively use native APIs to show and
|
335
|
+
* hide windows without confusing Cogl.</note>
|
336
|
+
*
|
337
|
+
* Since: 2.0
|
338
|
+
* Stability: Unstable
|
339
|
+
*/
|
340
|
+
void
|
341
|
+
cogl_onscreen_hide (CoglOnscreen *onscreen);
|
342
|
+
|
343
|
+
/**
|
344
|
+
* cogl_onscreen_swap_buffers:
|
345
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
346
|
+
*
|
347
|
+
* Swaps the current back buffer being rendered too, to the front for display.
|
348
|
+
*
|
349
|
+
* This function also implicitly discards the contents of the color, depth and
|
350
|
+
* stencil buffers as if cogl_framebuffer_discard_buffers() were used. The
|
351
|
+
* significance of the discard is that you should not expect to be able to
|
352
|
+
* start a new frame that incrementally builds on the contents of the previous
|
353
|
+
* frame.
|
354
|
+
*
|
355
|
+
* <note>It is highly recommended that applications use
|
356
|
+
* cogl_onscreen_swap_buffers_with_damage() instead whenever possible
|
357
|
+
* and also use the cogl_onscreen_get_buffer_age() api so they can
|
358
|
+
* perform incremental updates to older buffers instead of having to
|
359
|
+
* render a full buffer for every frame.</note>
|
360
|
+
*
|
361
|
+
* Since: 1.10
|
362
|
+
* Stability: unstable
|
363
|
+
*/
|
364
|
+
void
|
365
|
+
cogl_onscreen_swap_buffers (CoglOnscreen *onscreen);
|
366
|
+
|
367
|
+
|
368
|
+
/**
|
369
|
+
* cogl_onscreen_get_buffer_age:
|
370
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
371
|
+
*
|
372
|
+
* Gets the current age of the buffer contents.
|
373
|
+
*
|
374
|
+
* This function allows applications to query the age of the current
|
375
|
+
* back buffer contents for a #CoglOnscreen as the number of frames
|
376
|
+
* elapsed since the contents were most recently defined.
|
377
|
+
*
|
378
|
+
* These age values exposes enough information to applications about
|
379
|
+
* how Cogl internally manages back buffers to allow applications to
|
380
|
+
* re-use the contents of old frames and minimize how much must be
|
381
|
+
* redrawn for the next frame.
|
382
|
+
*
|
383
|
+
* The back buffer contents can either be reported as invalid (has an
|
384
|
+
* age of 0) or it may be reported to be the same contents as from n
|
385
|
+
* frames prior to the current frame.
|
386
|
+
*
|
387
|
+
* The queried value remains valid until the next buffer swap.
|
388
|
+
*
|
389
|
+
* <note>One caveat is that under X11 the buffer age does not reflect
|
390
|
+
* changes to buffer contents caused by the window systems. X11
|
391
|
+
* applications must track Expose events to determine what buffer
|
392
|
+
* regions need to additionally be repaired each frame.</note>
|
393
|
+
*
|
394
|
+
* The recommended way to take advantage of this buffer age api is to
|
395
|
+
* build up a circular buffer of length 3 for tracking damage regions
|
396
|
+
* over the last 3 frames and when starting a new frame look at the
|
397
|
+
* age of the buffer and combine the damage regions for the current
|
398
|
+
* frame with the damage regions of previous @age frames so you know
|
399
|
+
* everything that must be redrawn to update the old contents for the
|
400
|
+
* new frame.
|
401
|
+
*
|
402
|
+
* <note>If the system doesn't not support being able to track the age
|
403
|
+
* of back buffers then this function will always return 0 which
|
404
|
+
* implies that the contents are undefined.</note>
|
405
|
+
*
|
406
|
+
* <note>The %COGL_FEATURE_ID_BUFFER_AGE feature can optionally be
|
407
|
+
* explicitly checked to determine if Cogl is currently tracking the
|
408
|
+
* age of #CoglOnscreen back buffer contents. If this feature is
|
409
|
+
* missing then this function will always return 0.</note>
|
410
|
+
*
|
411
|
+
* Return value: The age of the buffer contents or 0 when the buffer
|
412
|
+
* contents are undefined.
|
413
|
+
*
|
414
|
+
* Since: 1.14
|
415
|
+
* Stability: stable
|
416
|
+
*/
|
417
|
+
int
|
418
|
+
cogl_onscreen_get_buffer_age (CoglOnscreen *onscreen);
|
419
|
+
|
420
|
+
/**
|
421
|
+
* cogl_onscreen_swap_buffers_with_damage:
|
422
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
423
|
+
* @rectangles: An array of integer 4-tuples representing damaged
|
424
|
+
* rectangles as (x, y, width, height) tuples.
|
425
|
+
* @n_rectangles: The number of 4-tuples to be read from @rectangles
|
426
|
+
*
|
427
|
+
* Swaps the current back buffer being rendered too, to the front for
|
428
|
+
* display and provides information to any system compositor about
|
429
|
+
* what regions of the buffer have changed (damage) with respect to
|
430
|
+
* the last swapped buffer.
|
431
|
+
*
|
432
|
+
* This function has the same semantics as
|
433
|
+
* cogl_framebuffer_swap_buffers() except that it additionally allows
|
434
|
+
* applications to pass a list of damaged rectangles which may be
|
435
|
+
* passed on to a compositor so that it can minimize how much of the
|
436
|
+
* screen is redrawn in response to this applications newly swapped
|
437
|
+
* front buffer.
|
438
|
+
*
|
439
|
+
* For example if your application is only animating a small object in
|
440
|
+
* the corner of the screen and everything else is remaining static
|
441
|
+
* then it can help the compositor to know that only the bottom right
|
442
|
+
* corner of your newly swapped buffer has really changed with respect
|
443
|
+
* to your previously swapped front buffer.
|
444
|
+
*
|
445
|
+
* If @n_rectangles is 0 then the whole buffer will implicitly be
|
446
|
+
* reported as damaged as if cogl_onscreen_swap_buffers() had been
|
447
|
+
* called.
|
448
|
+
*
|
449
|
+
* This function also implicitly discards the contents of the color,
|
450
|
+
* depth and stencil buffers as if cogl_framebuffer_discard_buffers()
|
451
|
+
* were used. The significance of the discard is that you should not
|
452
|
+
* expect to be able to start a new frame that incrementally builds on
|
453
|
+
* the contents of the previous frame. If you want to perform
|
454
|
+
* incremental updates to older back buffers then please refer to the
|
455
|
+
* cogl_onscreen_get_buffer_age() api.
|
456
|
+
*
|
457
|
+
* Whenever possible it is recommended that applications use this
|
458
|
+
* function instead of cogl_onscreen_swap_buffers() to improve
|
459
|
+
* performance when running under a compositor.
|
460
|
+
*
|
461
|
+
* <note>It is highly recommended to use this API in conjunction with
|
462
|
+
* the cogl_onscreen_get_buffer_age() api so that your application can
|
463
|
+
* perform incremental rendering based on old back buffers.</note>
|
464
|
+
*
|
465
|
+
* Since: 1.16
|
466
|
+
* Stability: unstable
|
467
|
+
*/
|
468
|
+
void
|
469
|
+
cogl_onscreen_swap_buffers_with_damage (CoglOnscreen *onscreen,
|
470
|
+
const int *rectangles,
|
471
|
+
int n_rectangles);
|
472
|
+
|
473
|
+
/**
|
474
|
+
* cogl_onscreen_swap_region:
|
475
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
476
|
+
* @rectangles: An array of integer 4-tuples representing rectangles as
|
477
|
+
* (x, y, width, height) tuples.
|
478
|
+
* @n_rectangles: The number of 4-tuples to be read from @rectangles
|
479
|
+
*
|
480
|
+
* Swaps a region of the back buffer being rendered too, to the front for
|
481
|
+
* display. @rectangles represents the region as array of @n_rectangles each
|
482
|
+
* defined by 4 sequential (x, y, width, height) integers.
|
483
|
+
*
|
484
|
+
* This function also implicitly discards the contents of the color, depth and
|
485
|
+
* stencil buffers as if cogl_framebuffer_discard_buffers() were used. The
|
486
|
+
* significance of the discard is that you should not expect to be able to
|
487
|
+
* start a new frame that incrementally builds on the contents of the previous
|
488
|
+
* frame.
|
489
|
+
*
|
490
|
+
* Since: 1.10
|
491
|
+
* Stability: unstable
|
492
|
+
*/
|
493
|
+
void
|
494
|
+
cogl_onscreen_swap_region (CoglOnscreen *onscreen,
|
495
|
+
const int *rectangles,
|
496
|
+
int n_rectangles);
|
497
|
+
|
498
|
+
/**
|
499
|
+
* CoglFrameEvent:
|
500
|
+
* @COGL_FRAME_EVENT_SYNC: Notifies that the system compositor has
|
501
|
+
* acknowledged a frame and is ready for a
|
502
|
+
* new frame to be created.
|
503
|
+
* @COGL_FRAME_EVENT_COMPLETE: Notifies that a frame has ended. This
|
504
|
+
* is a good time for applications to
|
505
|
+
* collect statistics about the frame
|
506
|
+
* since the #CoglFrameInfo should hold
|
507
|
+
* the most data at this point. No other
|
508
|
+
* events should be expected after a
|
509
|
+
* @COGL_FRAME_EVENT_COMPLETE event.
|
510
|
+
*
|
511
|
+
* Identifiers that are passed to #CoglFrameCallback functions
|
512
|
+
* (registered using cogl_onscreen_add_frame_callback()) that
|
513
|
+
* mark the progression of a frame in some way which usually
|
514
|
+
* means that new information will have been accumulated in the
|
515
|
+
* frame's corresponding #CoglFrameInfo object.
|
516
|
+
*
|
517
|
+
* The last event that will be sent for a frame will be a
|
518
|
+
* @COGL_FRAME_EVENT_COMPLETE event and so these are a good
|
519
|
+
* opportunity to collect statistics about a frame since the
|
520
|
+
* #CoglFrameInfo should hold the most data at this point.
|
521
|
+
*
|
522
|
+
* <note>A frame may not be completed before the next frame can start
|
523
|
+
* so applications should avoid needing to collect all statistics for
|
524
|
+
* a particular frame before they can start a new frame.</note>
|
525
|
+
*
|
526
|
+
* Since: 1.14
|
527
|
+
* Stability: unstable
|
528
|
+
*/
|
529
|
+
typedef enum _CoglFrameEvent
|
530
|
+
{
|
531
|
+
COGL_FRAME_EVENT_SYNC = 1,
|
532
|
+
COGL_FRAME_EVENT_COMPLETE
|
533
|
+
} CoglFrameEvent;
|
534
|
+
|
535
|
+
/**
|
536
|
+
* CoglFrameCallback:
|
537
|
+
* @onscreen: The onscreen that the frame is associated with
|
538
|
+
* @event: A #CoglFrameEvent notifying how the frame has progressed
|
539
|
+
* @info: The meta information, such as timing information, about
|
540
|
+
* the frame that has progressed.
|
541
|
+
* @user_data: The user pointer passed to
|
542
|
+
* cogl_onscreen_add_frame_callback()
|
543
|
+
*
|
544
|
+
* Is a callback that can be registered via
|
545
|
+
* cogl_onscreen_add_frame_callback() to be called when a frame
|
546
|
+
* progresses in some notable way.
|
547
|
+
*
|
548
|
+
* Please see the documentation for #CoglFrameEvent and
|
549
|
+
* cogl_onscreen_add_frame_callback() for more details about what
|
550
|
+
* events can be notified.
|
551
|
+
*
|
552
|
+
* Since: 1.14
|
553
|
+
* Stability: unstable
|
554
|
+
*/
|
555
|
+
typedef void (*CoglFrameCallback) (CoglOnscreen *onscreen,
|
556
|
+
CoglFrameEvent event,
|
557
|
+
CoglFrameInfo *info,
|
558
|
+
void *user_data);
|
559
|
+
|
560
|
+
/**
|
561
|
+
* CoglFrameClosure:
|
562
|
+
*
|
563
|
+
* An opaque type that tracks a #CoglFrameCallback and associated user
|
564
|
+
* data. A #CoglFrameClosure pointer will be returned from
|
565
|
+
* cogl_onscreen_add_frame_callback() and it allows you to remove a
|
566
|
+
* callback later using cogl_onscreen_remove_frame_callback().
|
567
|
+
*
|
568
|
+
* Since: 1.14
|
569
|
+
* Stability: unstable
|
570
|
+
*/
|
571
|
+
typedef struct _CoglClosure CoglFrameClosure;
|
572
|
+
|
573
|
+
#ifdef COGL_HAS_GTYPE_SUPPORT
|
574
|
+
/**
|
575
|
+
* cogl_frame_closure_get_gtype:
|
576
|
+
*
|
577
|
+
* Returns: a #GType that can be used with the GLib type system.
|
578
|
+
*/
|
579
|
+
GType cogl_frame_closure_get_gtype (void);
|
580
|
+
#endif
|
581
|
+
|
582
|
+
/**
|
583
|
+
* cogl_onscreen_add_frame_callback:
|
584
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
585
|
+
* @callback: (scope notified): A callback function to call for frame events
|
586
|
+
* @user_data: (closure): A private pointer to be passed to @callback
|
587
|
+
* @destroy: (allow-none): An optional callback to destroy @user_data
|
588
|
+
* when the @callback is removed or @onscreen is freed.
|
589
|
+
*
|
590
|
+
* Installs a @callback function that will be called for significant
|
591
|
+
* events relating to the given @onscreen framebuffer.
|
592
|
+
*
|
593
|
+
* The @callback will be used to notify when the system compositor is
|
594
|
+
* ready for this application to render a new frame. In this case
|
595
|
+
* %COGL_FRAME_EVENT_SYNC will be passed as the event argument to the
|
596
|
+
* given @callback in addition to the #CoglFrameInfo corresponding to
|
597
|
+
* the frame beeing acknowledged by the compositor.
|
598
|
+
*
|
599
|
+
* The @callback will also be called to notify when the frame has
|
600
|
+
* ended. In this case %COGL_FRAME_EVENT_COMPLETE will be passed as
|
601
|
+
* the event argument to the given @callback in addition to the
|
602
|
+
* #CoglFrameInfo corresponding to the newly presented frame. The
|
603
|
+
* meaning of "ended" here simply means that no more timing
|
604
|
+
* information will be collected within the corresponding
|
605
|
+
* #CoglFrameInfo and so this is a good opportunity to analyse the
|
606
|
+
* given info. It does not necessarily mean that the GPU has finished
|
607
|
+
* rendering the corresponding frame.
|
608
|
+
*
|
609
|
+
* We highly recommend throttling your application according to
|
610
|
+
* %COGL_FRAME_EVENT_SYNC events so that your application can avoid
|
611
|
+
* wasting resources, drawing more frames than your system compositor
|
612
|
+
* can display.
|
613
|
+
*
|
614
|
+
* Return value: a #CoglFrameClosure pointer that can be used to
|
615
|
+
* remove the callback and associated @user_data later.
|
616
|
+
* Since: 1.14
|
617
|
+
* Stability: unstable
|
618
|
+
*/
|
619
|
+
CoglFrameClosure *
|
620
|
+
cogl_onscreen_add_frame_callback (CoglOnscreen *onscreen,
|
621
|
+
CoglFrameCallback callback,
|
622
|
+
void *user_data,
|
623
|
+
CoglUserDataDestroyCallback destroy);
|
624
|
+
|
625
|
+
/**
|
626
|
+
* cogl_onscreen_remove_frame_callback:
|
627
|
+
* @onscreen: A #CoglOnscreen
|
628
|
+
* @closure: A #CoglFrameClosure returned from
|
629
|
+
* cogl_onscreen_add_frame_callback()
|
630
|
+
*
|
631
|
+
* Removes a callback and associated user data that were previously
|
632
|
+
* registered using cogl_onscreen_add_frame_callback().
|
633
|
+
*
|
634
|
+
* If a destroy callback was passed to
|
635
|
+
* cogl_onscreen_add_frame_callback() to destroy the user data then
|
636
|
+
* this will get called.
|
637
|
+
*
|
638
|
+
* Since: 1.14
|
639
|
+
* Stability: unstable
|
640
|
+
*/
|
641
|
+
void
|
642
|
+
cogl_onscreen_remove_frame_callback (CoglOnscreen *onscreen,
|
643
|
+
CoglFrameClosure *closure);
|
644
|
+
|
645
|
+
typedef void (*CoglSwapBuffersNotify) (CoglFramebuffer *framebuffer,
|
646
|
+
void *user_data);
|
647
|
+
|
648
|
+
/**
|
649
|
+
* cogl_onscreen_add_swap_buffers_callback:
|
650
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
651
|
+
* @callback: (scope notified): A callback function to call when a swap
|
652
|
+
* has completed
|
653
|
+
* @user_data: (closure): A private pointer to be passed to @callback
|
654
|
+
*
|
655
|
+
* Installs a @callback function that should be called whenever a swap buffers
|
656
|
+
* request (made using cogl_onscreen_swap_buffers()) for the given
|
657
|
+
* @onscreen completes.
|
658
|
+
*
|
659
|
+
* <note>Applications should check for the %COGL_FEATURE_ID_SWAP_BUFFERS_EVENT
|
660
|
+
* feature before using this API. It's currently undefined when and if
|
661
|
+
* registered callbacks will be called if this feature is not supported.</note>
|
662
|
+
*
|
663
|
+
* We recommend using this mechanism when available to manually throttle your
|
664
|
+
* applications (in conjunction with cogl_onscreen_set_swap_throttled()) so
|
665
|
+
* your application will be able to avoid long blocks in the driver caused by
|
666
|
+
* throttling when you request to swap buffers too quickly.
|
667
|
+
*
|
668
|
+
* Return value: a unique identifier that can be used to remove to remove
|
669
|
+
* the callback later.
|
670
|
+
* Since: 1.10
|
671
|
+
* Stability: unstable
|
672
|
+
* Deprecated: 1.14: Use cogl_onscreen_add_frame_callback() instead
|
673
|
+
*/
|
674
|
+
COGL_DEPRECATED_IN_1_14_FOR (cogl_onscreen_add_frame_callback)
|
675
|
+
unsigned int
|
676
|
+
cogl_onscreen_add_swap_buffers_callback (CoglOnscreen *onscreen,
|
677
|
+
CoglSwapBuffersNotify callback,
|
678
|
+
void *user_data);
|
679
|
+
|
680
|
+
/**
|
681
|
+
* cogl_onscreen_remove_swap_buffers_callback:
|
682
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
683
|
+
* @id: An identifier returned from cogl_onscreen_add_swap_buffers_callback()
|
684
|
+
*
|
685
|
+
* Removes a callback that was previously registered
|
686
|
+
* using cogl_onscreen_add_swap_buffers_callback().
|
687
|
+
*
|
688
|
+
* Since: 1.10
|
689
|
+
* Stability: unstable
|
690
|
+
* Deprecated: 1.14: Use cogl_onscreen_remove_frame_callback() instead
|
691
|
+
*/
|
692
|
+
|
693
|
+
COGL_DEPRECATED_IN_1_14_FOR (cogl_onscreen_remove_frame_callback)
|
694
|
+
void
|
695
|
+
cogl_onscreen_remove_swap_buffers_callback (CoglOnscreen *onscreen,
|
696
|
+
unsigned int id);
|
697
|
+
|
698
|
+
/**
|
699
|
+
* cogl_onscreen_set_resizable:
|
700
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
701
|
+
*
|
702
|
+
* Lets you request Cogl to mark an @onscreen framebuffer as
|
703
|
+
* resizable or not.
|
704
|
+
*
|
705
|
+
* By default, if possible, a @onscreen will be created by Cogl
|
706
|
+
* as non resizable, but it is not guaranteed that this is always
|
707
|
+
* possible for all window systems.
|
708
|
+
*
|
709
|
+
* <note>Cogl does not know whether marking the @onscreen framebuffer
|
710
|
+
* is truly meaningful for your current window system (consider
|
711
|
+
* applications being run fullscreen on a phone or TV) so this
|
712
|
+
* function may not have any useful effect. If you are running on a
|
713
|
+
* multi windowing system such as X11 or Win32 or OSX then Cogl will
|
714
|
+
* request to the window system that users be allowed to resize the
|
715
|
+
* @onscreen, although it's still possible that some other window
|
716
|
+
* management policy will block this possibility.</note>
|
717
|
+
*
|
718
|
+
* <note>Whenever an @onscreen framebuffer is resized the viewport
|
719
|
+
* will be automatically updated to match the new size of the
|
720
|
+
* framebuffer with an origin of (0,0). If your application needs more
|
721
|
+
* specialized control of the viewport it will need to register a
|
722
|
+
* resize handler using cogl_onscreen_add_resize_callback() so that it
|
723
|
+
* can track when the viewport has been changed automatically.</note>
|
724
|
+
*
|
725
|
+
* Since: 2.0
|
726
|
+
*/
|
727
|
+
void
|
728
|
+
cogl_onscreen_set_resizable (CoglOnscreen *onscreen,
|
729
|
+
CoglBool resizable);
|
730
|
+
|
731
|
+
/**
|
732
|
+
* cogl_onscreen_get_resizable:
|
733
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
734
|
+
*
|
735
|
+
* Lets you query whether @onscreen has been marked as resizable via
|
736
|
+
* the cogl_onscreen_set_resizable() api.
|
737
|
+
*
|
738
|
+
* By default, if possible, a @onscreen will be created by Cogl
|
739
|
+
* as non resizable, but it is not guaranteed that this is always
|
740
|
+
* possible for all window systems.
|
741
|
+
*
|
742
|
+
* <note>If cogl_onscreen_set_resizable(@onscreen, %TRUE) has been
|
743
|
+
* previously called then this function will return %TRUE, but it's
|
744
|
+
* possible that the current windowing system being used does not
|
745
|
+
* support window resizing (consider fullscreen windows on a phone or
|
746
|
+
* a TV). This function is not aware of whether resizing is truly
|
747
|
+
* meaningful with your window system, only whether the @onscreen has
|
748
|
+
* been marked as resizable.</note>
|
749
|
+
*
|
750
|
+
* Return value: Returns whether @onscreen has been marked as
|
751
|
+
* resizable or not.
|
752
|
+
* Since: 2.0
|
753
|
+
*/
|
754
|
+
CoglBool
|
755
|
+
cogl_onscreen_get_resizable (CoglOnscreen *onscreen);
|
756
|
+
|
757
|
+
/**
|
758
|
+
* CoglOnscreenResizeCallback:
|
759
|
+
* @onscreen: A #CoglOnscreen framebuffer that was resized
|
760
|
+
* @width: The new width of @onscreen
|
761
|
+
* @height: The new height of @onscreen
|
762
|
+
* @user_data: The private passed to
|
763
|
+
* cogl_onscreen_add_resize_callback()
|
764
|
+
*
|
765
|
+
* Is a callback type used with the
|
766
|
+
* cogl_onscreen_add_resize_callback() allowing applications to be
|
767
|
+
* notified whenever an @onscreen framebuffer is resized.
|
768
|
+
*
|
769
|
+
* <note>Cogl automatically updates the viewport of an @onscreen
|
770
|
+
* framebuffer that is resized so this callback is also an indication
|
771
|
+
* that the viewport has been modified too</note>
|
772
|
+
*
|
773
|
+
* <note>A resize callback will only ever be called while dispatching
|
774
|
+
* Cogl events from the system mainloop; so for example during
|
775
|
+
* cogl_poll_renderer_dispatch(). This is so that callbacks shouldn't
|
776
|
+
* occur while an application might have arbitrary locks held for
|
777
|
+
* example.</note>
|
778
|
+
*
|
779
|
+
* Since: 2.0
|
780
|
+
*/
|
781
|
+
typedef void (*CoglOnscreenResizeCallback) (CoglOnscreen *onscreen,
|
782
|
+
int width,
|
783
|
+
int height,
|
784
|
+
void *user_data);
|
785
|
+
|
786
|
+
/**
|
787
|
+
* CoglOnscreenResizeClosure:
|
788
|
+
*
|
789
|
+
* An opaque type that tracks a #CoglOnscreenResizeCallback and
|
790
|
+
* associated user data. A #CoglOnscreenResizeClosure pointer will be
|
791
|
+
* returned from cogl_onscreen_add_resize_callback() and it allows you
|
792
|
+
* to remove a callback later using
|
793
|
+
* cogl_onscreen_remove_resize_callback().
|
794
|
+
*
|
795
|
+
* Since: 2.0
|
796
|
+
* Stability: unstable
|
797
|
+
*/
|
798
|
+
typedef struct _CoglClosure CoglOnscreenResizeClosure;
|
799
|
+
|
800
|
+
#ifdef COGL_HAS_GTYPE_SUPPORT
|
801
|
+
/**
|
802
|
+
* cogl_onscreen_resize_closure_get_gtype:
|
803
|
+
*
|
804
|
+
* Returns: a #GType that can be used with the GLib type system.
|
805
|
+
*/
|
806
|
+
GType cogl_onscreen_resize_closure_get_gtype (void);
|
807
|
+
#endif
|
808
|
+
|
809
|
+
/**
|
810
|
+
* cogl_onscreen_add_resize_callback:
|
811
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
812
|
+
* @callback: (scope notified): A #CoglOnscreenResizeCallback to call when
|
813
|
+
* the @onscreen changes size.
|
814
|
+
* @user_data: (closure): Private data to be passed to @callback.
|
815
|
+
* @destroy: (allow-none): An optional callback to destroy @user_data
|
816
|
+
* when the @callback is removed or @onscreen is freed.
|
817
|
+
*
|
818
|
+
* Registers a @callback with @onscreen that will be called whenever
|
819
|
+
* the @onscreen framebuffer changes size.
|
820
|
+
*
|
821
|
+
* The @callback can be removed using
|
822
|
+
* cogl_onscreen_remove_resize_callback() passing the returned closure
|
823
|
+
* pointer.
|
824
|
+
*
|
825
|
+
* <note>Since Cogl automatically updates the viewport of an @onscreen
|
826
|
+
* framebuffer that is resized, a resize callback can also be used to
|
827
|
+
* track when the viewport has been changed automatically by Cogl in
|
828
|
+
* case your application needs more specialized control over the
|
829
|
+
* viewport.</note>
|
830
|
+
*
|
831
|
+
* <note>A resize callback will only ever be called while dispatching
|
832
|
+
* Cogl events from the system mainloop; so for example during
|
833
|
+
* cogl_poll_renderer_dispatch(). This is so that callbacks shouldn't
|
834
|
+
* occur while an application might have arbitrary locks held for
|
835
|
+
* example.</note>
|
836
|
+
*
|
837
|
+
* Return value: a #CoglOnscreenResizeClosure pointer that can be used to
|
838
|
+
* remove the callback and associated @user_data later.
|
839
|
+
* Since: 2.0
|
840
|
+
*/
|
841
|
+
CoglOnscreenResizeClosure *
|
842
|
+
cogl_onscreen_add_resize_callback (CoglOnscreen *onscreen,
|
843
|
+
CoglOnscreenResizeCallback callback,
|
844
|
+
void *user_data,
|
845
|
+
CoglUserDataDestroyCallback destroy);
|
846
|
+
|
847
|
+
/**
|
848
|
+
* cogl_onscreen_remove_resize_callback:
|
849
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
850
|
+
* @closure: An identifier returned from cogl_onscreen_add_resize_callback()
|
851
|
+
*
|
852
|
+
* Removes a resize @callback and @user_data pair that were previously
|
853
|
+
* associated with @onscreen via cogl_onscreen_add_resize_callback().
|
854
|
+
*
|
855
|
+
* Since: 2.0
|
856
|
+
*/
|
857
|
+
void
|
858
|
+
cogl_onscreen_remove_resize_callback (CoglOnscreen *onscreen,
|
859
|
+
CoglOnscreenResizeClosure *closure);
|
860
|
+
|
861
|
+
/**
|
862
|
+
* CoglOnscreenDirtyInfo:
|
863
|
+
* @x: Left edge of the dirty rectangle
|
864
|
+
* @y: Top edge of the dirty rectangle, measured from the top of the window
|
865
|
+
* @width: Width of the dirty rectangle
|
866
|
+
* @height: Height of the dirty rectangle
|
867
|
+
*
|
868
|
+
* A structure passed to callbacks registered using
|
869
|
+
* cogl_onscreen_add_dirty_callback(). The members describe a
|
870
|
+
* rectangle within the onscreen buffer that should be redrawn.
|
871
|
+
*
|
872
|
+
* Since: 1.16
|
873
|
+
* Stability: unstable
|
874
|
+
*/
|
875
|
+
typedef struct _CoglOnscreenDirtyInfo CoglOnscreenDirtyInfo;
|
876
|
+
|
877
|
+
struct _CoglOnscreenDirtyInfo
|
878
|
+
{
|
879
|
+
int x, y;
|
880
|
+
int width, height;
|
881
|
+
};
|
882
|
+
|
883
|
+
/**
|
884
|
+
* CoglOnscreenDirtyCallback:
|
885
|
+
* @onscreen: The onscreen that the frame is associated with
|
886
|
+
* @info: A #CoglOnscreenDirtyInfo struct containing the details of the
|
887
|
+
* dirty area
|
888
|
+
* @user_data: The user pointer passed to
|
889
|
+
* cogl_onscreen_add_frame_callback()
|
890
|
+
*
|
891
|
+
* Is a callback that can be registered via
|
892
|
+
* cogl_onscreen_add_dirty_callback() to be called when the windowing
|
893
|
+
* system determines that a region of the onscreen window has been
|
894
|
+
* lost and the application should redraw it.
|
895
|
+
*
|
896
|
+
* Since: 1.16
|
897
|
+
* Stability: unstable
|
898
|
+
*/
|
899
|
+
typedef void (*CoglOnscreenDirtyCallback) (CoglOnscreen *onscreen,
|
900
|
+
const CoglOnscreenDirtyInfo *info,
|
901
|
+
void *user_data);
|
902
|
+
|
903
|
+
/**
|
904
|
+
* CoglOnscreenDirtyClosure:
|
905
|
+
*
|
906
|
+
* An opaque type that tracks a #CoglOnscreenDirtyCallback and associated
|
907
|
+
* user data. A #CoglOnscreenDirtyClosure pointer will be returned from
|
908
|
+
* cogl_onscreen_add_dirty_callback() and it allows you to remove a
|
909
|
+
* callback later using cogl_onscreen_remove_dirty_callback().
|
910
|
+
*
|
911
|
+
* Since: 1.16
|
912
|
+
* Stability: unstable
|
913
|
+
*/
|
914
|
+
typedef struct _CoglClosure CoglOnscreenDirtyClosure;
|
915
|
+
|
916
|
+
#ifdef COGL_HAS_GTYPE_SUPPORT
|
917
|
+
/**
|
918
|
+
* cogl_onscreen_dirty_closure_get_gtype:
|
919
|
+
*
|
920
|
+
* Returns: a #GType that can be used with the GLib type system.
|
921
|
+
*/
|
922
|
+
GType cogl_onscreen_dirty_closure_get_gtype (void);
|
923
|
+
#endif
|
924
|
+
|
925
|
+
/**
|
926
|
+
* cogl_onscreen_add_dirty_callback:
|
927
|
+
* @onscreen: A #CoglOnscreen framebuffer
|
928
|
+
* @callback: (scope notified): A callback function to call for dirty events
|
929
|
+
* @user_data: (closure): A private pointer to be passed to @callback
|
930
|
+
* @destroy: (allow-none): An optional callback to destroy @user_data when the
|
931
|
+
* @callback is removed or @onscreen is freed.
|
932
|
+
*
|
933
|
+
* Installs a @callback function that will be called whenever the
|
934
|
+
* window system has lost the contents of a region of the onscreen
|
935
|
+
* buffer and the application should redraw it to repair the buffer.
|
936
|
+
* For example this may happen in a window system without a compositor
|
937
|
+
* if a window that was previously covering up the onscreen window has
|
938
|
+
* been moved causing a region of the onscreen to be exposed.
|
939
|
+
*
|
940
|
+
* The @callback will be passed a #CoglOnscreenDirtyInfo struct which
|
941
|
+
* decribes a rectangle containing the newly dirtied region. Note that
|
942
|
+
* this may be called multiple times to describe a non-rectangular
|
943
|
+
* region composed of multiple smaller rectangles.
|
944
|
+
*
|
945
|
+
* The dirty events are separate from %COGL_FRAME_EVENT_SYNC events so
|
946
|
+
* the application should also listen for this event before rendering
|
947
|
+
* the dirty region to ensure that the framebuffer is actually ready
|
948
|
+
* for rendering.
|
949
|
+
*
|
950
|
+
* Return value: a #CoglOnscreenDirtyClosure pointer that can be used to
|
951
|
+
* remove the callback and associated @user_data later.
|
952
|
+
* Since: 1.16
|
953
|
+
* Stability: unstable
|
954
|
+
*/
|
955
|
+
CoglOnscreenDirtyClosure *
|
956
|
+
cogl_onscreen_add_dirty_callback (CoglOnscreen *onscreen,
|
957
|
+
CoglOnscreenDirtyCallback callback,
|
958
|
+
void *user_data,
|
959
|
+
CoglUserDataDestroyCallback destroy);
|
960
|
+
|
961
|
+
/**
|
962
|
+
* cogl_onscreen_remove_dirty_callback:
|
963
|
+
* @onscreen: A #CoglOnscreen
|
964
|
+
* @closure: A #CoglOnscreenDirtyClosure returned from
|
965
|
+
* cogl_onscreen_add_dirty_callback()
|
966
|
+
*
|
967
|
+
* Removes a callback and associated user data that were previously
|
968
|
+
* registered using cogl_onscreen_add_dirty_callback().
|
969
|
+
*
|
970
|
+
* If a destroy callback was passed to
|
971
|
+
* cogl_onscreen_add_dirty_callback() to destroy the user data then
|
972
|
+
* this will also get called.
|
973
|
+
*
|
974
|
+
* Since: 1.16
|
975
|
+
* Stability: unstable
|
976
|
+
*/
|
977
|
+
void
|
978
|
+
cogl_onscreen_remove_dirty_callback (CoglOnscreen *onscreen,
|
979
|
+
CoglOnscreenDirtyClosure *closure);
|
980
|
+
|
981
|
+
/**
|
982
|
+
* cogl_is_onscreen:
|
983
|
+
* @object: A #CoglObject pointer
|
984
|
+
*
|
985
|
+
* Gets whether the given object references a #CoglOnscreen.
|
986
|
+
*
|
987
|
+
* Return value: %TRUE if the object references a #CoglOnscreen
|
988
|
+
* and %FALSE otherwise.
|
989
|
+
* Since: 1.10
|
990
|
+
* Stability: unstable
|
991
|
+
*/
|
992
|
+
CoglBool
|
993
|
+
cogl_is_onscreen (void *object);
|
994
|
+
|
995
|
+
/**
|
996
|
+
* cogl_onscreen_get_frame_counter:
|
997
|
+
*
|
998
|
+
* Gets the value of the framebuffers frame counter. This is
|
999
|
+
* a counter that increases by one each time
|
1000
|
+
* cogl_onscreen_swap_buffers() or cogl_onscreen_swap_region()
|
1001
|
+
* is called.
|
1002
|
+
*
|
1003
|
+
* Return value: the current frame counter value
|
1004
|
+
* Since: 1.14
|
1005
|
+
* Stability: unstable
|
1006
|
+
*/
|
1007
|
+
int64_t
|
1008
|
+
cogl_onscreen_get_frame_counter (CoglOnscreen *onscreen);
|
1009
|
+
|
1010
|
+
COGL_END_DECLS
|
1011
|
+
|
1012
|
+
#endif /* __COGL_ONSCREEN_H */
|