clutter 2.0.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +129 -0
- data/lib/clutter.rb +145 -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/cairo.rb +24 -0
- data/lib/clutter/color.rb +55 -0
- data/lib/clutter/event.rb +21 -0
- data/lib/clutter/point.rb +25 -0
- data/lib/clutter/text.rb +23 -0
- data/lib/clutter/threads.rb +38 -0
- data/sample/basic-actor.rb +125 -0
- data/sample/bin-layout.rb +215 -0
- data/sample/box-layout.rb +196 -0
- data/sample/canvas.rb +117 -0
- data/sample/constraints.rb +81 -0
- data/sample/drag-action.rb +177 -0
- data/sample/drop-action.rb +198 -0
- data/sample/easing-modes.rb +145 -0
- data/sample/flow-layout.rb +121 -0
- data/sample/grid-layout.rb +239 -0
- data/sample/image-content.rb +88 -0
- data/sample/pan-action.rb +100 -0
- data/sample/redhand.png +0 -0
- data/sample/rounded-rectangle.rb +90 -0
- data/sample/scroll-actor.rb +105 -0
- data/test/clutter-test-utils.rb +21 -0
- data/test/run-test.rb +50 -0
- data/vendor/local/bin/libclutter-1.0-0.dll +0 -0
- data/vendor/local/bin/libcogl-12.dll +0 -0
- data/vendor/local/bin/libcogl-pango-12.dll +0 -0
- data/vendor/local/bin/libglut-0.dll +0 -0
- data/vendor/local/bin/libjson-glib-1.0-0.dll +0 -0
- data/vendor/local/include/GL/freeglut.h +22 -0
- data/vendor/local/include/GL/freeglut_ext.h +239 -0
- data/vendor/local/include/GL/freeglut_std.h +636 -0
- data/vendor/local/include/GL/glut.h +21 -0
- data/vendor/local/include/clutter-1.0/cally/cally-actor.h +155 -0
- data/vendor/local/include/clutter-1.0/cally/cally-clone.h +82 -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 +85 -0
- data/vendor/local/include/clutter-1.0/cally/cally-main.h +39 -0
- data/vendor/local/include/clutter-1.0/cally/cally-rectangle.h +82 -0
- data/vendor/local/include/clutter-1.0/cally/cally-root.h +82 -0
- data/vendor/local/include/clutter-1.0/cally/cally-stage.h +82 -0
- data/vendor/local/include/clutter-1.0/cally/cally-text.h +82 -0
- data/vendor/local/include/clutter-1.0/cally/cally-texture.h +82 -0
- data/vendor/local/include/clutter-1.0/cally/cally-util.h +80 -0
- data/vendor/local/include/clutter-1.0/cally/cally.h +40 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-action.h +103 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-actor-meta.h +113 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-actor.h +735 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-align-constraint.h +69 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-animatable.h +116 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-backend.h +74 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-bin-layout.h +84 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-bind-constraint.h +69 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-binding-pool.h +122 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-blur-effect.h +57 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-box-layout.h +159 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-brightness-contrast-effect.h +80 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-cairo.h +59 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-canvas.h +100 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-child-meta.h +120 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-click-action.h +114 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-clone.h +90 -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 +175 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-colorize-effect.h +63 -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 +108 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-container.h +184 -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 +111 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-deprecated.h +43 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-desaturate-effect.h +61 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-device-manager.h +104 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-drag-action.h +142 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-drop-action.h +113 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-effect.h +120 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-enum-types.h +183 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-enums.h +1362 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-event.h +509 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-feature.h +40 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-fixed-layout.h +80 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-flow-layout.h +110 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-gesture-action.h +154 -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 +95 -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 +118 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-interval.h +141 -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 +215 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-layout-meta.h +101 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-list-model.h +88 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-macros.h +279 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-main.h +148 -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 +381 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-offscreen-effect.h +112 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-page-turn-effect.h +72 -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 +66 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-path.h +155 -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 +204 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-scriptable.h +107 -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 +25 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-shader-effect.h +114 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-shader-types.h +95 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-snap-constraint.h +73 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-stage-manager.h +81 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-stage.h +215 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-swipe-action.h +107 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-table-layout.h +157 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-tap-action.h +102 -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 +237 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-texture.h +128 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-timeline.h +201 -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 +715 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-units.h +166 -0
- data/vendor/local/include/clutter-1.0/clutter/clutter-version.h +302 -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 +118 -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 +97 -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-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 +58 -0
- data/vendor/local/include/cogl/cogl-pango/cogl-pango.h +245 -0
- data/vendor/local/include/cogl/cogl/cogl-attribute-buffer.h +131 -0
- data/vendor/local/include/cogl/cogl/cogl-attribute.h +532 -0
- data/vendor/local/include/cogl/cogl/cogl-bitmap.h +314 -0
- data/vendor/local/include/cogl/cogl/cogl-buffer.h +309 -0
- data/vendor/local/include/cogl/cogl/cogl-clip-state.h +50 -0
- data/vendor/local/include/cogl/cogl/cogl-clutter.h +47 -0
- data/vendor/local/include/cogl/cogl/cogl-color.h +543 -0
- data/vendor/local/include/cogl/cogl/cogl-context.h +350 -0
- data/vendor/local/include/cogl/cogl/cogl-defines.h +50 -0
- data/vendor/local/include/cogl/cogl/cogl-deprecated.h +36 -0
- data/vendor/local/include/cogl/cogl/cogl-depth-state.h +264 -0
- data/vendor/local/include/cogl/cogl/cogl-display.h +192 -0
- data/vendor/local/include/cogl/cogl/cogl-enum-types.h +100 -0
- data/vendor/local/include/cogl/cogl/cogl-error.h +176 -0
- data/vendor/local/include/cogl/cogl/cogl-euler.h +251 -0
- data/vendor/local/include/cogl/cogl/cogl-fixed.h +804 -0
- data/vendor/local/include/cogl/cogl/cogl-frame-info.h +129 -0
- data/vendor/local/include/cogl/cogl/cogl-framebuffer.h +1829 -0
- data/vendor/local/include/cogl/cogl/cogl-gles2-types.h +474 -0
- data/vendor/local/include/cogl/cogl/cogl-gles2.h +374 -0
- data/vendor/local/include/cogl/cogl/cogl-glib-source.h +59 -0
- data/vendor/local/include/cogl/cogl/cogl-index-buffer.h +85 -0
- data/vendor/local/include/cogl/cogl/cogl-indices.h +145 -0
- data/vendor/local/include/cogl/cogl/cogl-material-compat.h +1276 -0
- data/vendor/local/include/cogl/cogl/cogl-matrix-stack.h +620 -0
- data/vendor/local/include/cogl/cogl/cogl-matrix.h +798 -0
- data/vendor/local/include/cogl/cogl/cogl-meta-texture.h +181 -0
- data/vendor/local/include/cogl/cogl/cogl-object.h +219 -0
- data/vendor/local/include/cogl/cogl/cogl-offscreen.h +117 -0
- data/vendor/local/include/cogl/cogl/cogl-onscreen-template.h +106 -0
- data/vendor/local/include/cogl/cogl/cogl-onscreen.h +741 -0
- data/vendor/local/include/cogl/cogl/cogl-output.h +242 -0
- data/vendor/local/include/cogl/cogl/cogl-pango.h +33 -0
- data/vendor/local/include/cogl/cogl/cogl-path-functions.h +430 -0
- data/vendor/local/include/cogl/cogl/cogl-path.h +102 -0
- data/vendor/local/include/cogl/cogl/cogl-pipeline-layer-state.h +613 -0
- data/vendor/local/include/cogl/cogl/cogl-pipeline-state.h +924 -0
- data/vendor/local/include/cogl/cogl/cogl-pipeline.h +173 -0
- data/vendor/local/include/cogl/cogl/cogl-pixel-buffer.h +114 -0
- data/vendor/local/include/cogl/cogl/cogl-poll.h +174 -0
- data/vendor/local/include/cogl/cogl/cogl-primitive-texture.h +98 -0
- data/vendor/local/include/cogl/cogl/cogl-primitive.h +866 -0
- data/vendor/local/include/cogl/cogl/cogl-primitives.h +190 -0
- data/vendor/local/include/cogl/cogl/cogl-quaternion.h +545 -0
- data/vendor/local/include/cogl/cogl/cogl-renderer.h +423 -0
- data/vendor/local/include/cogl/cogl/cogl-shader.h +654 -0
- data/vendor/local/include/cogl/cogl/cogl-snippet.h +786 -0
- data/vendor/local/include/cogl/cogl/cogl-sub-texture.h +122 -0
- data/vendor/local/include/cogl/cogl/cogl-swap-chain.h +51 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-2d-gl.h +73 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-2d-sliced.h +130 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-2d.h +191 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-3d.h +187 -0
- data/vendor/local/include/cogl/cogl/cogl-texture-rectangle.h +204 -0
- data/vendor/local/include/cogl/cogl/cogl-texture.h +611 -0
- data/vendor/local/include/cogl/cogl/cogl-types.h +912 -0
- data/vendor/local/include/cogl/cogl/cogl-vector.h +351 -0
- data/vendor/local/include/cogl/cogl/cogl-version.h +185 -0
- data/vendor/local/include/cogl/cogl/cogl-vertex-buffer.h +409 -0
- data/vendor/local/include/cogl/cogl/cogl-win32-renderer.h +99 -0
- data/vendor/local/include/cogl/cogl/cogl.h +151 -0
- data/vendor/local/include/cogl/cogl/cogl1-context.h +1169 -0
- data/vendor/local/include/cogl/cogl/cogl2-compatibility.h +55 -0
- data/vendor/local/include/cogl/cogl/cogl2-experimental.h +31 -0
- data/vendor/local/include/cogl/cogl/cogl2-path.h +506 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-core-functions.h +191 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-gles2-functions.h +36 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-glsl-functions.h +279 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-in-gles-core-functions.h +141 -0
- data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-in-gles2-core-functions.h +179 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-builder.h +106 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-enum-types.h +36 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-generator.h +107 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-glib.h +46 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-gobject.h +182 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-gvariant.h +46 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-parser.h +173 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-path.h +97 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-reader.h +150 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-types.h +334 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-version.h +100 -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/CoglPango-1.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.dll.a +0 -0
- data/vendor/local/lib/libcogl.la +41 -0
- data/vendor/local/lib/libglut.a +0 -0
- data/vendor/local/lib/libglut.dll.a +0 -0
- data/vendor/local/lib/libglut.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/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 +679 -0
- data/vendor/local/share/gir-1.0/Clutter-1.0.gir +67473 -0
- data/vendor/local/share/gir-1.0/Cogl-1.0.gir +8383 -0
- data/vendor/local/share/gir-1.0/CoglPango-1.0.gir +306 -0
- data/vendor/local/share/gir-1.0/Json-1.0.gir +4333 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyActor.html +415 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyClone.html +136 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyGroup.html +139 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyRectangle.html +135 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyRoot.html +123 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyStage.html +140 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyText.html +133 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyTexture.html +135 -0
- data/vendor/local/share/gtk-doc/html/cally/CallyUtil.html +100 -0
- data/vendor/local/share/gtk-doc/html/cally/cally-General-API.html +167 -0
- data/vendor/local/share/gtk-doc/html/cally/cally.devhelp2 +73 -0
- data/vendor/local/share/gtk-doc/html/cally/callyannotationglossary.html +43 -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 +103 -0
- data/vendor/local/share/gtk-doc/html/cally/ix01.html +198 -0
- data/vendor/local/share/gtk-doc/html/cally/ix02.html +31 -0
- data/vendor/local/share/gtk-doc/html/cally/ix03.html +190 -0
- data/vendor/local/share/gtk-doc/html/cally/ix04.html +42 -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.png +0 -0
- data/vendor/local/share/gtk-doc/html/cally/style.css +266 -0
- data/vendor/local/share/gtk-doc/html/cally/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAction.html +110 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterActor.html +13714 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterActorMeta.html +322 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAlignConstraint.html +404 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAlpha.html +747 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAnimatable.html +432 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterAnimator.html +1218 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBackend.html +684 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviour.html +697 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourDepth.html +278 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourEllipse.html +844 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourOpacity.html +283 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourPath.html +450 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourRotate.html +608 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourScale.html +432 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBinLayout.html +1056 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBindConstraint.html +780 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBlurEffect.html +109 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBox.html +657 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBoxLayout.html +1232 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterBrightnessContrastEffect.html +410 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterCairoTexture.html +1018 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterCanvas.html +469 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterChildMeta.html +253 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterClickAction.html +587 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterClone.html +219 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterColorizeEffect.html +193 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterConstraint.html +336 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterContainer.html +1346 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterContent.html +309 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDeformEffect.html +353 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDesaturateEffect.html +200 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDeviceManager.html +408 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDragAction.html +1224 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterDropAction.html +965 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterEffect.html +386 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterFixedLayout.html +115 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterFlowLayout.html +1016 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterGestureAction.html +867 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterGridLayout.html +808 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterGroup.html +231 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterImage.html +674 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterInputDevice.html +1488 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterKeyframeTransition.html +525 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterLayoutManager.html +1376 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterLayoutMeta.html +161 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterListModel.html +211 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterMedia.html +900 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterModel.html +1715 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterModelIter.html +644 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterOffscreenEffect.html +350 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPageTurnEffect.html +333 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPaintNode.html +534 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPanAction.html +785 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPath.html +1327 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPathConstraint.html +321 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterPropertyTransition.html +216 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterRectangle.html +369 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterRotateAction.html +183 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScore.html +881 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScript.html +1365 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScriptable.html +311 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterScrollActor.html +731 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterSettings.html +301 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterShaderEffect.html +595 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterSnapConstraint.html +421 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterStage.html +2252 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterState.html +1558 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterSwipeAction.html +280 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTableLayout.html +1146 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTapAction.html +192 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterText.html +3058 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTextBuffer.html +736 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTexture.html +1829 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTimeline.html +2441 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTransition.html +574 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterTransitionGroup.html +227 -0
- data/vendor/local/share/gtk-doc/html/clutter/ClutterZoomAction.html +400 -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 +111 -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 +47 -0
- data/vendor/local/share/gtk-doc/html/clutter/ch03.html +51 -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 +3471 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterGLXTexturePixmap.html +225 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterWaylandSurface.html +314 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterX11TexturePixmap.html +361 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Colors.html +1363 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-EGL-Specific-Support.html +129 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Events.html +2653 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Features.html +200 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-GDK-Specific-Support.html +249 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-General.html +2550 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Implicit-Animations.html +2571 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Intel-CE3100-CE4100-Specific-Support.html +181 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Key-Bindings.html +890 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Paint-Nodes.html +351 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Shaders.html +1004 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Stage-Manager.html +341 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Unit-conversion.html +843 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Utilities.html +549 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Value-intervals.html +1023 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Versioning-Macros.html +525 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Wayland-compositor-specific-support.html +83 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-Win32-Specific-Support.html +201 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-X11-Specific-Support.html +806 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter-overview.html +77 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutter.devhelp2 +2715 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutteranimation.html +65 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterbackends.html +71 -0
- data/vendor/local/share/gtk-doc/html/clutter/clutterbase.html +202 -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 +86 -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 +114 -0
- data/vendor/local/share/gtk-doc/html/clutter/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/index.html +451 -0
- data/vendor/local/share/gtk-doc/html/clutter/index.sgml +3272 -0
- data/vendor/local/share/gtk-doc/html/clutter/iterating-paths.html +56 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix01.html +8815 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix02.html +1961 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix03.html +454 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix04.html +583 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix05.html +957 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix06.html +642 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix07.html +1530 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix08.html +820 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix09.html +1005 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix10.html +369 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix11.html +366 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix12.html +1078 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix13.html +984 -0
- data/vendor/local/share/gtk-doc/html/clutter/ix14.html +99 -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 +156 -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.png +0 -0
- data/vendor/local/share/gtk-doc/html/clutter/running-clutter.html +373 -0
- data/vendor/local/share/gtk-doc/html/clutter/style.css +266 -0
- data/vendor/local/share/gtk-doc/html/clutter/table-layout.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 +513 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonGenerator.html +492 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonParser.html +871 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonPath.html +464 -0
- data/vendor/local/share/gtk-doc/html/json-glib/JsonReader.html +898 -0
- data/vendor/local/share/gtk-doc/html/json-glib/annotation-glossary.html +87 -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/ch04.html +38 -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 +125 -0
- data/vendor/local/share/gtk-doc/html/json-glib/index.sgml +308 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix01.html +926 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix02.html +54 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix03.html +61 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix04.html +54 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix05.html +186 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix06.html +121 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix07.html +161 -0
- data/vendor/local/share/gtk-doc/html/json-glib/ix08.html +137 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-advanced.html +47 -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-glib-Boxed-Types-Serialization.html +382 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-GObject-Serialization.html +310 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Array.html +850 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-GVariant-Integration.html +272 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Node.html +942 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Object.html +993 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Serializable-Interface.html +476 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Versioning-information.html +148 -0
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib.devhelp2 +281 -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 +39 -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.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/style.css +266 -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 +502 -0
- data/vendor/local/share/license/freeglut/AUTHORS +39 -0
- data/vendor/local/share/license/freeglut/COPYING +27 -0
- data/vendor/local/share/license/json-glib/COPYING +504 -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/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/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@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/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/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/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/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/eu/LC_MESSAGES/cogl.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/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/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/hu/LC_MESSAGES/cogl.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/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/cogl.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/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/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/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/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_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/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@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/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/tg/LC_MESSAGES/clutter-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/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/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_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_TW/LC_MESSAGES/clutter-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/cogl.mo +0 -0
- metadata +747 -0
@@ -0,0 +1,251 @@
|
|
1
|
+
/*
|
2
|
+
* Cogl
|
3
|
+
*
|
4
|
+
* An object oriented GL/GLES Abstraction/Utility Layer
|
5
|
+
*
|
6
|
+
* Copyright (C) 2010 Intel Corporation.
|
7
|
+
*
|
8
|
+
* This library is free software; you can redistribute it and/or
|
9
|
+
* modify it under the terms of the GNU Lesser General Public
|
10
|
+
* License as published by the Free Software Foundation; either
|
11
|
+
* version 2 of the License, or (at your option) any later version.
|
12
|
+
*
|
13
|
+
* This library is distributed in the hope that it will be useful,
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16
|
+
* Lesser General Public License for more details.
|
17
|
+
*
|
18
|
+
* You should have received a copy of the GNU Lesser General Public
|
19
|
+
* License along with this library; if not, write to the
|
20
|
+
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
21
|
+
* Boston, MA 02111-1307, USA.
|
22
|
+
*
|
23
|
+
* Authors:
|
24
|
+
* Robert Bragg <robert@linux.intel.com>
|
25
|
+
*/
|
26
|
+
|
27
|
+
#if !defined(__COGL_H_INSIDE__) && !defined(COGL_COMPILATION)
|
28
|
+
#error "Only <cogl/cogl.h> can be included directly."
|
29
|
+
#endif
|
30
|
+
|
31
|
+
#ifndef __COGL_EULER_H
|
32
|
+
#define __COGL_EULER_H
|
33
|
+
|
34
|
+
#include <cogl/cogl-types.h>
|
35
|
+
|
36
|
+
COGL_BEGIN_DECLS
|
37
|
+
|
38
|
+
/**
|
39
|
+
* SECTION:cogl-euler
|
40
|
+
* @short_description: Functions for initializing and manipulating
|
41
|
+
* euler angles.
|
42
|
+
*
|
43
|
+
* Euler angles are a simple representation of a 3 dimensional
|
44
|
+
* rotation; comprised of 3 ordered heading, pitch and roll rotations.
|
45
|
+
* An important thing to understand is that the axis of rotation
|
46
|
+
* belong to the object being rotated and so they also rotate as each
|
47
|
+
* of the heading, pitch and roll rotations are applied.
|
48
|
+
*
|
49
|
+
* One way to consider euler angles is to imagine controlling an
|
50
|
+
* aeroplane, where you first choose a heading (Such as flying south
|
51
|
+
* east), then you set the pitch (such as 30 degrees to take off) and
|
52
|
+
* then you might set a roll, by dipping the left, wing as you prepare
|
53
|
+
* to turn.
|
54
|
+
*
|
55
|
+
* They have some advantages and limitations that it helps to be
|
56
|
+
* aware of:
|
57
|
+
*
|
58
|
+
* Advantages:
|
59
|
+
* <itemizedlist>
|
60
|
+
* <listitem>
|
61
|
+
* Easy to understand and use, compared to quaternions and matrices,
|
62
|
+
* so may be a good choice for a user interface.
|
63
|
+
* </listitem>
|
64
|
+
* <listitem>
|
65
|
+
* Efficient storage, needing only 3 components any rotation can be
|
66
|
+
* represented.
|
67
|
+
* <note>Actually the #CoglEuler type isn't optimized for size because
|
68
|
+
* we may cache the equivalent #CoglQuaternion along with a euler
|
69
|
+
* rotation, but it would be trivial for an application to track the
|
70
|
+
* components of euler rotations in a packed float array if optimizing
|
71
|
+
* for size was important. The values could be passed to Cogl only when
|
72
|
+
* manipulation is necessary.</note>
|
73
|
+
* </listitem>
|
74
|
+
* </itemizedlist>
|
75
|
+
*
|
76
|
+
* Disadvantages:
|
77
|
+
* <itemizedlist>
|
78
|
+
* <listitem>
|
79
|
+
* Aliasing: it's possible to represent some rotations with multiple
|
80
|
+
* different heading, pitch and roll rotations.
|
81
|
+
* </listitem>
|
82
|
+
* <listitem>
|
83
|
+
* They can suffer from a problem called Gimbal Lock. A good
|
84
|
+
* explanation of this can be seen on wikipedia here:
|
85
|
+
* http://en.wikipedia.org/wiki/Gimbal_lock but basically two
|
86
|
+
* of the axis of rotation may become aligned and so you loose a
|
87
|
+
* degree of freedom. For example a pitch of +-90° would mean that
|
88
|
+
* heading and bank rotate around the same axis.
|
89
|
+
* </listitem>
|
90
|
+
* <listitem>
|
91
|
+
* If you use euler angles to orient something in 3D space and try to
|
92
|
+
* transition between orientations by interpolating the component
|
93
|
+
* angles you probably wont get the transitions you expect as they may
|
94
|
+
* not follow the shortest path between the two orientations.
|
95
|
+
* </listitem>
|
96
|
+
* <listitem>
|
97
|
+
* There's no standard to what order the component axis rotations are
|
98
|
+
* applied. The most common convention seems to be what we do in Cogl
|
99
|
+
* with heading (y-axis), pitch (x-axis) and then roll (z-axis), but
|
100
|
+
* other software might apply x-axis, y-axis then z-axis or any other
|
101
|
+
* order so you need to consider this if you are accepting euler
|
102
|
+
* rotations from some other software. Other software may also use
|
103
|
+
* slightly different aeronautical terms, such as "yaw" instead of
|
104
|
+
* "heading" or "bank" instead of "roll".
|
105
|
+
* </listitem>
|
106
|
+
* </itemizedlist>
|
107
|
+
*
|
108
|
+
* To minimize the aliasing issue we may refer to "Canonical Euler"
|
109
|
+
* angles where heading and roll are restricted to +- 180° and pitch is
|
110
|
+
* restricted to +- 90°. If pitch is +- 90° bank is set to 0°.
|
111
|
+
*
|
112
|
+
* Quaternions don't suffer from Gimbal Lock and they can be nicely
|
113
|
+
* interpolated between, their disadvantage is that they don't have an
|
114
|
+
* intuitive representation.
|
115
|
+
*
|
116
|
+
* A common practice is to accept angles in the intuitive Euler form
|
117
|
+
* and convert them to quaternions internally to avoid Gimbal Lock and
|
118
|
+
* handle interpolations. See cogl_quaternion_init_from_euler().
|
119
|
+
*/
|
120
|
+
|
121
|
+
/**
|
122
|
+
* CoglEuler:
|
123
|
+
* @heading: Angle to rotate around an object's y axis
|
124
|
+
* @pitch: Angle to rotate around an object's x axis
|
125
|
+
* @roll: Angle to rotate around an object's z axis
|
126
|
+
*
|
127
|
+
* Represents an ordered rotation first of @heading degrees around an
|
128
|
+
* object's y axis, then @pitch degrees around an object's x axis and
|
129
|
+
* finally @roll degrees around an object's z axis.
|
130
|
+
*
|
131
|
+
* <note>It's important to understand the that axis are associated
|
132
|
+
* with the object being rotated, so the axis also rotate in sequence
|
133
|
+
* with the rotations being applied.</note>
|
134
|
+
*
|
135
|
+
* The members of a #CoglEuler can be initialized, for example, with
|
136
|
+
* cogl_euler_init() and cogl_euler_init_from_quaternion ().
|
137
|
+
*
|
138
|
+
* You may also want to look at cogl_quaternion_init_from_euler() if
|
139
|
+
* you want to do interpolation between 3d rotations.
|
140
|
+
*
|
141
|
+
* Since: 2.0
|
142
|
+
*/
|
143
|
+
struct _CoglEuler
|
144
|
+
{
|
145
|
+
/*< public > */
|
146
|
+
float heading;
|
147
|
+
float pitch;
|
148
|
+
float roll;
|
149
|
+
|
150
|
+
/*< private > */
|
151
|
+
/* May cached a quaternion here in the future */
|
152
|
+
float padding0;
|
153
|
+
float padding1;
|
154
|
+
float padding2;
|
155
|
+
float padding3;
|
156
|
+
float padding4;
|
157
|
+
};
|
158
|
+
COGL_STRUCT_SIZE_ASSERT (CoglEuler, 32);
|
159
|
+
|
160
|
+
/**
|
161
|
+
* cogl_euler_init:
|
162
|
+
* @euler: The #CoglEuler angle to initialize
|
163
|
+
* @heading: Angle to rotate around an object's y axis
|
164
|
+
* @pitch: Angle to rotate around an object's x axis
|
165
|
+
* @roll: Angle to rotate around an object's z axis
|
166
|
+
*
|
167
|
+
* Initializes @euler to represent a rotation of @x_angle degrees
|
168
|
+
* around the x axis, then @y_angle degrees around the y_axis and
|
169
|
+
* @z_angle degrees around the z axis.
|
170
|
+
*
|
171
|
+
* Since: 2.0
|
172
|
+
*/
|
173
|
+
void
|
174
|
+
cogl_euler_init (CoglEuler *euler,
|
175
|
+
float heading,
|
176
|
+
float pitch,
|
177
|
+
float roll);
|
178
|
+
|
179
|
+
/**
|
180
|
+
* cogl_euler_init_from_matrix:
|
181
|
+
* @euler: The #CoglEuler angle to initialize
|
182
|
+
* @matrix: A #CoglMatrix containing a rotation, but no scaling,
|
183
|
+
* mirroring or skewing.
|
184
|
+
*
|
185
|
+
* Extracts a euler rotation from the given @matrix and
|
186
|
+
* initializses @euler with the component x, y and z rotation angles.
|
187
|
+
*/
|
188
|
+
void
|
189
|
+
cogl_euler_init_from_matrix (CoglEuler *euler,
|
190
|
+
const CoglMatrix *matrix);
|
191
|
+
|
192
|
+
/**
|
193
|
+
* cogl_euler_init_from_quaternion:
|
194
|
+
* @euler: The #CoglEuler angle to initialize
|
195
|
+
* @quaternion: A #CoglEuler with the rotation to initialize with
|
196
|
+
*
|
197
|
+
* Initializes a @euler rotation with the equivalent rotation
|
198
|
+
* represented by the given @quaternion.
|
199
|
+
*/
|
200
|
+
void
|
201
|
+
cogl_euler_init_from_quaternion (CoglEuler *euler,
|
202
|
+
const CoglQuaternion *quaternion);
|
203
|
+
|
204
|
+
/**
|
205
|
+
* cogl_euler_equal:
|
206
|
+
* @v1: The first euler angle to compare
|
207
|
+
* @v2: The second euler angle to compare
|
208
|
+
*
|
209
|
+
* Compares the two given euler angles @v1 and @v1 and it they are
|
210
|
+
* equal returns %TRUE else %FALSE.
|
211
|
+
*
|
212
|
+
* <note>This function only checks that all three components rotations
|
213
|
+
* are numerically equal, it does not consider that some rotations
|
214
|
+
* can be represented with different component rotations</note>
|
215
|
+
*
|
216
|
+
* Returns: %TRUE if @v1 and @v2 are equal else %FALSE.
|
217
|
+
* Since: 2.0
|
218
|
+
*/
|
219
|
+
CoglBool
|
220
|
+
cogl_euler_equal (const void *v1, const void *v2);
|
221
|
+
|
222
|
+
/**
|
223
|
+
* cogl_euler_copy:
|
224
|
+
* @src: A #CoglEuler to copy
|
225
|
+
*
|
226
|
+
* Allocates a new #CoglEuler and initilizes it with the component
|
227
|
+
* angles of @src. The newly allocated euler should be freed using
|
228
|
+
* cogl_euler_free().
|
229
|
+
*
|
230
|
+
* Returns: A newly allocated #CoglEuler
|
231
|
+
* Since: 2.0
|
232
|
+
*/
|
233
|
+
CoglEuler *
|
234
|
+
cogl_euler_copy (const CoglEuler *src);
|
235
|
+
|
236
|
+
/**
|
237
|
+
* cogl_euler_free:
|
238
|
+
* @euler: A #CoglEuler allocated via cogl_euler_copy()
|
239
|
+
*
|
240
|
+
* Frees a #CoglEuler that was previously allocated using
|
241
|
+
* cogl_euler_copy().
|
242
|
+
*
|
243
|
+
* Since: 2.0
|
244
|
+
*/
|
245
|
+
void
|
246
|
+
cogl_euler_free (CoglEuler *euler);
|
247
|
+
|
248
|
+
COGL_END_DECLS
|
249
|
+
|
250
|
+
#endif /* __COGL_EULER_H */
|
251
|
+
|
@@ -0,0 +1,804 @@
|
|
1
|
+
/*
|
2
|
+
* Cogl
|
3
|
+
*
|
4
|
+
* An object oriented GL/GLES Abstraction/Utility Layer
|
5
|
+
*
|
6
|
+
* Copyright (C) 2007,2008,2009 Intel Corporation.
|
7
|
+
*
|
8
|
+
* This library is free software; you can redistribute it and/or
|
9
|
+
* modify it under the terms of the GNU Lesser General Public
|
10
|
+
* License as published by the Free Software Foundation; either
|
11
|
+
* version 2 of the License, or (at your option) any later version.
|
12
|
+
*
|
13
|
+
* This library is distributed in the hope that it will be useful,
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16
|
+
* Lesser General Public License for more details.
|
17
|
+
*
|
18
|
+
* You should have received a copy of the GNU Lesser General Public
|
19
|
+
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
20
|
+
*
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
|
24
|
+
#if !defined(__COGL_H_INSIDE__) && !defined(COGL_COMPILATION)
|
25
|
+
#error "Only <cogl/cogl.h> can be included directly."
|
26
|
+
#endif
|
27
|
+
|
28
|
+
#ifndef __COGL_FIXED_H__
|
29
|
+
#define __COGL_FIXED_H__
|
30
|
+
|
31
|
+
#include <cogl/cogl-types.h>
|
32
|
+
|
33
|
+
/**
|
34
|
+
* SECTION:cogl-fixed
|
35
|
+
* @short_description: Fixed Point API
|
36
|
+
*
|
37
|
+
* COGL has a fixed point API targeted at platforms without a floating
|
38
|
+
* point unit, such as embedded devices. On such platforms this API should
|
39
|
+
* be preferred to the floating point one as it does not trigger the slow
|
40
|
+
* path of software emulation, relying on integer math for fixed-to-floating
|
41
|
+
* and floating-to-fixed notations conversion.
|
42
|
+
*
|
43
|
+
* It is not recommened for use on platforms with a floating point unit
|
44
|
+
* (e.g. desktop systems), nor for use in language bindings.
|
45
|
+
*
|
46
|
+
* Basic rules of Fixed Point arithmethic:
|
47
|
+
* <itemizedlist>
|
48
|
+
* <listitem>
|
49
|
+
* <para>Two fixed point numbers can be directly added, subtracted and
|
50
|
+
* have their modulus taken.</para>
|
51
|
+
* </listitem>
|
52
|
+
* <listitem>
|
53
|
+
* <para>To add other numerical type to a fixed point number it has to
|
54
|
+
* be first converted to fixed point.</para>
|
55
|
+
* </listitem>
|
56
|
+
* <listitem>
|
57
|
+
* <para>A fixed point number can be directly multiplied or divided by
|
58
|
+
* an integer.</para>
|
59
|
+
* </listitem>
|
60
|
+
* <listitem>
|
61
|
+
* <para>Two fixed point numbers can only be multiplied and divided by
|
62
|
+
* the provided %COGL_FIXED_MUL and %COGL_FIXED_DIV macros.</para>
|
63
|
+
* </listitem>
|
64
|
+
* </itemizedlist>
|
65
|
+
*
|
66
|
+
* The fixed point API is available since COGL 1.0.
|
67
|
+
*/
|
68
|
+
|
69
|
+
COGL_BEGIN_DECLS
|
70
|
+
|
71
|
+
/**
|
72
|
+
* COGL_FIXED_BITS:
|
73
|
+
*
|
74
|
+
* Evaluates to the number of bits used by the #CoglFixed type.
|
75
|
+
*
|
76
|
+
* Since: 1.0
|
77
|
+
*/
|
78
|
+
#define COGL_FIXED_BITS (32)
|
79
|
+
|
80
|
+
/**
|
81
|
+
* COGL_FIXED_Q:
|
82
|
+
*
|
83
|
+
* Evaluates to the number of bits used for the non-integer part
|
84
|
+
* of the #CoglFixed type.
|
85
|
+
*
|
86
|
+
* Since: 1.0
|
87
|
+
*/
|
88
|
+
#define COGL_FIXED_Q (COGL_FIXED_BITS - 16)
|
89
|
+
|
90
|
+
/**
|
91
|
+
* COGL_FIXED_1:
|
92
|
+
*
|
93
|
+
* The number 1 expressed as a #CoglFixed number.
|
94
|
+
*
|
95
|
+
* Since: 1.0
|
96
|
+
*/
|
97
|
+
#define COGL_FIXED_1 (1 << COGL_FIXED_Q)
|
98
|
+
|
99
|
+
/**
|
100
|
+
* COGL_FIXED_0_5:
|
101
|
+
*
|
102
|
+
* The number 0.5 expressed as a #CoglFixed number.
|
103
|
+
*
|
104
|
+
* Since: 1.0
|
105
|
+
*/
|
106
|
+
#define COGL_FIXED_0_5 (32768)
|
107
|
+
|
108
|
+
/**
|
109
|
+
* COGL_FIXED_EPSILON:
|
110
|
+
*
|
111
|
+
* A very small number expressed as a #CoglFixed number.
|
112
|
+
*
|
113
|
+
* Since: 1.0
|
114
|
+
*/
|
115
|
+
#define COGL_FIXED_EPSILON (1)
|
116
|
+
|
117
|
+
/**
|
118
|
+
* COGL_FIXED_MAX:
|
119
|
+
*
|
120
|
+
* The biggest number representable using #CoglFixed
|
121
|
+
*
|
122
|
+
* Since: 1.0
|
123
|
+
*/
|
124
|
+
#define COGL_FIXED_MAX (0x7fffffff)
|
125
|
+
|
126
|
+
/**
|
127
|
+
* COGL_FIXED_MIN:
|
128
|
+
*
|
129
|
+
* The smallest number representable using #CoglFixed
|
130
|
+
*
|
131
|
+
* Since: 1.0
|
132
|
+
*/
|
133
|
+
#define COGL_FIXED_MIN (0x80000000)
|
134
|
+
|
135
|
+
/**
|
136
|
+
* COGL_FIXED_PI:
|
137
|
+
*
|
138
|
+
* The number pi, expressed as a #CoglFixed number.
|
139
|
+
*
|
140
|
+
* Since: 1.0
|
141
|
+
*/
|
142
|
+
#define COGL_FIXED_PI (0x0003243f)
|
143
|
+
|
144
|
+
/**
|
145
|
+
* COGL_FIXED_2_PI:
|
146
|
+
*
|
147
|
+
* Two times pi, expressed as a #CoglFixed number.
|
148
|
+
*
|
149
|
+
* Since: 1.0
|
150
|
+
*/
|
151
|
+
#define COGL_FIXED_2_PI (0x0006487f)
|
152
|
+
|
153
|
+
/**
|
154
|
+
* COGL_FIXED_PI_2:
|
155
|
+
*
|
156
|
+
* Half pi, expressed as a #CoglFixed number.
|
157
|
+
*
|
158
|
+
* Since: 1.0
|
159
|
+
*/
|
160
|
+
#define COGL_FIXED_PI_2 (0x00019220)
|
161
|
+
|
162
|
+
/**
|
163
|
+
* COGL_FIXED_PI_4:
|
164
|
+
*
|
165
|
+
* pi / 4, expressed as #CoglFixed number.
|
166
|
+
*
|
167
|
+
* Since: 1.0
|
168
|
+
*/
|
169
|
+
#define COGL_FIXED_PI_4 (0x0000c910)
|
170
|
+
|
171
|
+
/**
|
172
|
+
* COGL_FIXED_360:
|
173
|
+
*
|
174
|
+
* Evaluates to the number 360 in fixed point notation.
|
175
|
+
*
|
176
|
+
* Since: 1.0
|
177
|
+
*/
|
178
|
+
#define COGL_FIXED_360 (COGL_FIXED_FROM_INT (360))
|
179
|
+
|
180
|
+
/**
|
181
|
+
* COGL_FIXED_270:
|
182
|
+
*
|
183
|
+
* Evaluates to the number 270 in fixed point notation.
|
184
|
+
*
|
185
|
+
* Since: 1.0
|
186
|
+
*/
|
187
|
+
#define COGL_FIXED_270 (COGL_FIXED_FROM_INT (270))
|
188
|
+
|
189
|
+
/**
|
190
|
+
* COGL_FIXED_255:
|
191
|
+
*
|
192
|
+
* Evaluates to the number 255 in fixed point notation.
|
193
|
+
*
|
194
|
+
* Since: 1.0
|
195
|
+
*/
|
196
|
+
#define COGL_FIXED_255 (COGL_FIXED_FROM_INT (255))
|
197
|
+
|
198
|
+
/**
|
199
|
+
* COGL_FIXED_240:
|
200
|
+
*
|
201
|
+
* Evaluates to the number 240 in fixed point notation.
|
202
|
+
*
|
203
|
+
* Since: 1.0
|
204
|
+
*/
|
205
|
+
#define COGL_FIXED_240 (COGL_FIXED_FROM_INT (240))
|
206
|
+
|
207
|
+
/**
|
208
|
+
* COGL_FIXED_180:
|
209
|
+
*
|
210
|
+
* Evaluates to the number 180 in fixed point notation.
|
211
|
+
*
|
212
|
+
* Since: 1.0
|
213
|
+
*/
|
214
|
+
#define COGL_FIXED_180 (COGL_FIXED_FROM_INT (180))
|
215
|
+
|
216
|
+
/**
|
217
|
+
* COGL_FIXED_120:
|
218
|
+
*
|
219
|
+
* Evaluates to the number 120 in fixed point notation.
|
220
|
+
*
|
221
|
+
* Since: 1.0
|
222
|
+
*/
|
223
|
+
#define COGL_FIXED_120 (COGL_FIXED_FROM_INT (120))
|
224
|
+
|
225
|
+
/**
|
226
|
+
* COGL_FIXED_90:
|
227
|
+
*
|
228
|
+
* Evaluates to the number 90 in fixed point notation.
|
229
|
+
*
|
230
|
+
* Since: 1.0
|
231
|
+
*/
|
232
|
+
#define COGL_FIXED_90 (COGL_FIXED_FROM_INT (90))
|
233
|
+
|
234
|
+
/**
|
235
|
+
* COGL_FIXED_60:
|
236
|
+
*
|
237
|
+
* Evaluates to the number 60 in fixed point notation.
|
238
|
+
*
|
239
|
+
* Since: 1.0
|
240
|
+
*/
|
241
|
+
#define COGL_FIXED_60 (COGL_FIXED_FROM_INT (60))
|
242
|
+
|
243
|
+
/**
|
244
|
+
* COGL_FIXED_45:
|
245
|
+
*
|
246
|
+
* Evaluates to the number 45 in fixed point notation.
|
247
|
+
*
|
248
|
+
* Since: 1.0
|
249
|
+
*/
|
250
|
+
#define COGL_FIXED_45 (COGL_FIXED_FROM_INT (45))
|
251
|
+
|
252
|
+
/**
|
253
|
+
* COGL_FIXED_30:
|
254
|
+
*
|
255
|
+
* Evaluates to the number 30 in fixed point notation.
|
256
|
+
*
|
257
|
+
* Since: 1.0
|
258
|
+
*/
|
259
|
+
#define COGL_FIXED_30 (COGL_FIXED_FROM_INT (30))
|
260
|
+
|
261
|
+
/**
|
262
|
+
* COGL_RADIANS_TO_DEGREES:
|
263
|
+
*
|
264
|
+
* Evaluates to 180 / pi in fixed point notation.
|
265
|
+
*
|
266
|
+
* Since: 1.0
|
267
|
+
*/
|
268
|
+
#define COGL_RADIANS_TO_DEGREES (0x394bb8)
|
269
|
+
|
270
|
+
/*
|
271
|
+
* conversion macros
|
272
|
+
*/
|
273
|
+
|
274
|
+
/**
|
275
|
+
* COGL_FIXED_FROM_FLOAT:
|
276
|
+
* @x: a floating point number
|
277
|
+
*
|
278
|
+
* Converts @x from a floating point to a fixed point notation.
|
279
|
+
*
|
280
|
+
* Since: 1.0
|
281
|
+
*/
|
282
|
+
#define COGL_FIXED_FROM_FLOAT(x) ((float) cogl_double_to_fixed (x))
|
283
|
+
|
284
|
+
/**
|
285
|
+
* COGL_FIXED_TO_FLOAT:
|
286
|
+
* @x: a #CoglFixed number
|
287
|
+
*
|
288
|
+
* Converts @x from a fixed point to a floating point notation, in
|
289
|
+
* single precision.
|
290
|
+
*
|
291
|
+
* Since: 1.0
|
292
|
+
*/
|
293
|
+
#define COGL_FIXED_TO_FLOAT(x) ((float) ((int)(x) / 65536.0))
|
294
|
+
|
295
|
+
/**
|
296
|
+
* COGL_FIXED_FROM_DOUBLE:
|
297
|
+
* @x: a floating point number
|
298
|
+
*
|
299
|
+
* Converts @x from a double precision, floating point to a fixed
|
300
|
+
* point notation.
|
301
|
+
*
|
302
|
+
* Since: 1.0
|
303
|
+
*/
|
304
|
+
#define COGL_FIXED_FROM_DOUBLE(x) (cogl_double_to_fixed (x))
|
305
|
+
|
306
|
+
/**
|
307
|
+
* COGL_FIXED_TO_DOUBLE:
|
308
|
+
* @x: a #CoglFixed number
|
309
|
+
*
|
310
|
+
* Converts @x from a fixed point to a floating point notation, in
|
311
|
+
* double precision.
|
312
|
+
*
|
313
|
+
* Since: 1.0
|
314
|
+
*/
|
315
|
+
#define COGL_FIXED_TO_DOUBLE(x) ((double) ((int)(x) / 65536.0))
|
316
|
+
|
317
|
+
/**
|
318
|
+
* COGL_FIXED_FROM_INT:
|
319
|
+
* @x: an integer number
|
320
|
+
*
|
321
|
+
* Converts @x from an integer to a fixed point notation.
|
322
|
+
*
|
323
|
+
* Since: 1.0
|
324
|
+
*/
|
325
|
+
#define COGL_FIXED_FROM_INT(x) ((x) << COGL_FIXED_Q)
|
326
|
+
|
327
|
+
/**
|
328
|
+
* COGL_FIXED_TO_INT:
|
329
|
+
* @x: a #CoglFixed number
|
330
|
+
*
|
331
|
+
* Converts @x from a fixed point notation to an integer, dropping
|
332
|
+
* the fractional part without rounding.
|
333
|
+
*
|
334
|
+
* Since: 1.0
|
335
|
+
*/
|
336
|
+
#define COGL_FIXED_TO_INT(x) ((x) >> COGL_FIXED_Q)
|
337
|
+
|
338
|
+
/**
|
339
|
+
* COGL_FLOAT_TO_INT:
|
340
|
+
* @x: a floatint point number
|
341
|
+
*
|
342
|
+
* Converts @x from a floating point notation to a signed integer.
|
343
|
+
*
|
344
|
+
* Since: 1.0
|
345
|
+
*/
|
346
|
+
#define COGL_FLOAT_TO_INT(x) (cogl_double_to_int ((x)))
|
347
|
+
|
348
|
+
/**
|
349
|
+
* COGL_FLOAT_TO_UINT:
|
350
|
+
* @x: a floatint point number
|
351
|
+
*
|
352
|
+
* Converts @x from a floating point notation to an unsigned integer.
|
353
|
+
*
|
354
|
+
* Since: 1.0
|
355
|
+
*/
|
356
|
+
#define COGL_FLOAT_TO_UINT(x) (cogl_double_to_uint ((x)))
|
357
|
+
|
358
|
+
/*
|
359
|
+
* fixed point math functions
|
360
|
+
*/
|
361
|
+
|
362
|
+
/**
|
363
|
+
* COGL_FIXED_FRACTION:
|
364
|
+
* @x: a #CoglFixed number
|
365
|
+
*
|
366
|
+
* Retrieves the fractionary part of @x.
|
367
|
+
*
|
368
|
+
* Since: 1.0
|
369
|
+
*/
|
370
|
+
#define COGL_FIXED_FRACTION(x) ((x) & ((1 << COGL_FIXED_Q) - 1))
|
371
|
+
|
372
|
+
/**
|
373
|
+
* COGL_FIXED_FLOOR:
|
374
|
+
* @x: a #CoglFixed number
|
375
|
+
*
|
376
|
+
* Rounds down a fixed point number to the previous integer.
|
377
|
+
*
|
378
|
+
* Since: 1.0
|
379
|
+
*/
|
380
|
+
#define COGL_FIXED_FLOOR(x) (((x) >= 0) ? ((x) >> COGL_FIXED_Q) \
|
381
|
+
: ~((~(x)) >> COGL_FIXED_Q))
|
382
|
+
|
383
|
+
/**
|
384
|
+
* COGL_FIXED_CEIL:
|
385
|
+
* @x: a #CoglFixed number
|
386
|
+
*
|
387
|
+
* Rounds up a fixed point number to the next integer.
|
388
|
+
*
|
389
|
+
* Since: 1.0
|
390
|
+
*/
|
391
|
+
#define COGL_FIXED_CEIL(x) (COGL_FIXED_FLOOR ((x) + 0xffff))
|
392
|
+
|
393
|
+
/**
|
394
|
+
* COGL_FIXED_MUL:
|
395
|
+
* @a: a #CoglFixed number
|
396
|
+
* @b: a #CoglFixed number
|
397
|
+
*
|
398
|
+
* Computes (a * b).
|
399
|
+
*
|
400
|
+
* Since: 1.0
|
401
|
+
*/
|
402
|
+
#define COGL_FIXED_MUL(a,b) (cogl_fixed_mul ((a), (b)))
|
403
|
+
|
404
|
+
/**
|
405
|
+
* COGL_FIXED_DIV:
|
406
|
+
* @a: a #CoglFixed number
|
407
|
+
* @b: a #CoglFixed number
|
408
|
+
*
|
409
|
+
* Computes (a / b).
|
410
|
+
*
|
411
|
+
* Since: 1.0
|
412
|
+
*/
|
413
|
+
#define COGL_FIXED_DIV(a,b) (cogl_fixed_div ((a), (b)))
|
414
|
+
|
415
|
+
/**
|
416
|
+
* COGL_FIXED_MUL_DIV:
|
417
|
+
* @a: a #CoglFixed number
|
418
|
+
* @b: a #CoglFixed number
|
419
|
+
* @c: a #CoglFixed number
|
420
|
+
*
|
421
|
+
* Computes ((a * b) / c). It is logically equivalent to:
|
422
|
+
*
|
423
|
+
* |[
|
424
|
+
* res = COGL_FIXED_DIV (COGL_FIXED_MUL (a, b), c);
|
425
|
+
* ]|
|
426
|
+
*
|
427
|
+
* But it is shorter to type.
|
428
|
+
*
|
429
|
+
* Since: 1.0
|
430
|
+
*/
|
431
|
+
#define COGL_FIXED_MUL_DIV(a,b,c) (cogl_fixed_mul_div ((a), (b), (c)))
|
432
|
+
|
433
|
+
/**
|
434
|
+
* COGL_FIXED_FAST_MUL:
|
435
|
+
* @a: a #CoglFixed number
|
436
|
+
* @b: a #CoglFixed number
|
437
|
+
*
|
438
|
+
* Fast version of %COGL_FIXED_MUL, implemented as a macro.
|
439
|
+
*
|
440
|
+
* <note>This macro might lose precision. If the precision of the result
|
441
|
+
* is important use %COGL_FIXED_MUL instead.</note>
|
442
|
+
*
|
443
|
+
* Since: 1.0
|
444
|
+
*/
|
445
|
+
#define COGL_FIXED_FAST_MUL(a,b) ((a) >> 8) * ((b) >> 8)
|
446
|
+
|
447
|
+
/**
|
448
|
+
* COGL_FIXED_FAST_DIV:
|
449
|
+
* @a: a #CoglFixed number
|
450
|
+
* @b: a #CoglFixed number
|
451
|
+
*
|
452
|
+
* Fast version of %COGL_FIXED_DIV, implemented as a macro.
|
453
|
+
*
|
454
|
+
* <note>This macro might lose precision. If the precision of the result
|
455
|
+
* is important use %COGL_FIXED_DIV instead.</note>
|
456
|
+
*
|
457
|
+
* Since: 1.0
|
458
|
+
*/
|
459
|
+
#define COGL_FIXED_FAST_DIV(a,b) ((((a) << 8) / (b)) << 8)
|
460
|
+
|
461
|
+
/**
|
462
|
+
* cogl_fixed_sin:
|
463
|
+
* @angle: a #CoglFixed number
|
464
|
+
*
|
465
|
+
* Computes the sine of @angle.
|
466
|
+
*
|
467
|
+
* Return value: the sine of the passed angle, in fixed point notation
|
468
|
+
*
|
469
|
+
* Since: 1.0
|
470
|
+
*/
|
471
|
+
CoglFixed
|
472
|
+
cogl_fixed_sin (CoglFixed angle);
|
473
|
+
|
474
|
+
/**
|
475
|
+
* cogl_fixed_tan:
|
476
|
+
* @angle: a #CoglFixed number
|
477
|
+
*
|
478
|
+
* Computes the tangent of @angle.
|
479
|
+
*
|
480
|
+
* Return value: the tangent of the passed angle, in fixed point notation
|
481
|
+
*
|
482
|
+
* Since: 1.0
|
483
|
+
*/
|
484
|
+
CoglFixed
|
485
|
+
cogl_fixed_tan (CoglFixed angle);
|
486
|
+
|
487
|
+
/**
|
488
|
+
* cogl_fixed_cos:
|
489
|
+
* @angle: a #CoglFixed number
|
490
|
+
*
|
491
|
+
* Computes the cosine of @angle.
|
492
|
+
*
|
493
|
+
* Return value: the cosine of the passed angle, in fixed point notation
|
494
|
+
*
|
495
|
+
* Since: 1.0
|
496
|
+
*/
|
497
|
+
CoglFixed cogl_fixed_cos (CoglFixed angle);
|
498
|
+
|
499
|
+
/**
|
500
|
+
* cogl_fixed_atan:
|
501
|
+
* @a: a #CoglFixed number
|
502
|
+
*
|
503
|
+
* Computes the arc tangent of @a.
|
504
|
+
*
|
505
|
+
* Return value: the arc tangent of the passed value, in fixed point notation
|
506
|
+
*
|
507
|
+
* Since: 1.0
|
508
|
+
*/
|
509
|
+
CoglFixed
|
510
|
+
cogl_fixed_atan (CoglFixed a);
|
511
|
+
|
512
|
+
/**
|
513
|
+
* cogl_fixed_atan2:
|
514
|
+
* @a: the numerator as a #CoglFixed number
|
515
|
+
* @b: the denominator as a #CoglFixed number
|
516
|
+
*
|
517
|
+
* Computes the arc tangent of @a / @b but uses the sign of both
|
518
|
+
* arguments to return the angle in right quadrant.
|
519
|
+
*
|
520
|
+
* Return value: the arc tangent of the passed fraction, in fixed point
|
521
|
+
* notation
|
522
|
+
*
|
523
|
+
* Since: 1.0
|
524
|
+
*/
|
525
|
+
CoglFixed
|
526
|
+
cogl_fixed_atan2 (CoglFixed a,
|
527
|
+
CoglFixed b);
|
528
|
+
|
529
|
+
/*< public >*/
|
530
|
+
|
531
|
+
/* Fixed point math routines */
|
532
|
+
G_INLINE_FUNC CoglFixed
|
533
|
+
cogl_fixed_mul (CoglFixed a,
|
534
|
+
CoglFixed b);
|
535
|
+
|
536
|
+
G_INLINE_FUNC CoglFixed
|
537
|
+
cogl_fixed_div (CoglFixed a,
|
538
|
+
CoglFixed b);
|
539
|
+
|
540
|
+
G_INLINE_FUNC CoglFixed
|
541
|
+
cogl_fixed_mul_div (CoglFixed a,
|
542
|
+
CoglFixed b,
|
543
|
+
CoglFixed c);
|
544
|
+
|
545
|
+
/**
|
546
|
+
* COGL_SQRTI_ARG_MAX:
|
547
|
+
*
|
548
|
+
* Maximum argument that can be passed to cogl_sqrti() function.
|
549
|
+
*
|
550
|
+
* Since: 1.0
|
551
|
+
*/
|
552
|
+
#ifndef __SSE2__
|
553
|
+
#define COGL_SQRTI_ARG_MAX 0x3fffff
|
554
|
+
#else
|
555
|
+
#define COGL_SQRTI_ARG_MAX INT_MAX
|
556
|
+
#endif
|
557
|
+
|
558
|
+
/**
|
559
|
+
* COGL_SQRTI_ARG_5_PERCENT:
|
560
|
+
*
|
561
|
+
* Maximum argument that can be passed to cogl_sqrti() for which the
|
562
|
+
* resulting error is < 5%
|
563
|
+
*
|
564
|
+
* Since: 1.0
|
565
|
+
*/
|
566
|
+
#ifndef __SSE2__
|
567
|
+
#define COGL_SQRTI_ARG_5_PERCENT 210
|
568
|
+
#else
|
569
|
+
#define COGL_SQRTI_ARG_5_PERCENT INT_MAX
|
570
|
+
#endif
|
571
|
+
|
572
|
+
/**
|
573
|
+
* COGL_SQRTI_ARG_10_PERCENT:
|
574
|
+
*
|
575
|
+
* Maximum argument that can be passed to cogl_sqrti() for which the
|
576
|
+
* resulting error is < 10%
|
577
|
+
*
|
578
|
+
* Since: 1.0
|
579
|
+
*/
|
580
|
+
#ifndef __SSE2__
|
581
|
+
#define COGL_SQRTI_ARG_10_PERCENT 5590
|
582
|
+
#else
|
583
|
+
#define COGL_SQRTI_ARG_10_PERCENT INT_MAX
|
584
|
+
#endif
|
585
|
+
|
586
|
+
/**
|
587
|
+
* cogl_fixed_sqrt:
|
588
|
+
* @x: a #CoglFixed number
|
589
|
+
*
|
590
|
+
* Computes the square root of @x.
|
591
|
+
*
|
592
|
+
* Return value: the square root of the passed value, in floating point
|
593
|
+
* notation
|
594
|
+
*
|
595
|
+
* Since: 1.0
|
596
|
+
*/
|
597
|
+
CoglFixed
|
598
|
+
cogl_fixed_sqrt (CoglFixed x);
|
599
|
+
|
600
|
+
/**
|
601
|
+
* cogl_fixed_log2:
|
602
|
+
* @x: value to calculate base 2 logarithm from
|
603
|
+
*
|
604
|
+
* Calculates base 2 logarithm.
|
605
|
+
*
|
606
|
+
* This function is some 2.5 times faster on x86, and over 12 times faster on
|
607
|
+
* fpu-less arm, than using libc log().
|
608
|
+
*
|
609
|
+
* Return value: base 2 logarithm.
|
610
|
+
*
|
611
|
+
* Since: 1.0
|
612
|
+
*/
|
613
|
+
CoglFixed
|
614
|
+
cogl_fixed_log2 (unsigned int x);
|
615
|
+
|
616
|
+
/**
|
617
|
+
* cogl_fixed_pow2:
|
618
|
+
* @x: a #CoglFixed number
|
619
|
+
*
|
620
|
+
* Calculates 2 to the @x power.
|
621
|
+
*
|
622
|
+
* This function is around 11 times faster on x86, and around 22 times faster
|
623
|
+
* on fpu-less arm than libc pow(2, x).
|
624
|
+
*
|
625
|
+
* Return value: the power of 2 to the passed value
|
626
|
+
*
|
627
|
+
* Since: 1.0
|
628
|
+
*/
|
629
|
+
unsigned int
|
630
|
+
cogl_fixed_pow2 (CoglFixed x);
|
631
|
+
|
632
|
+
/**
|
633
|
+
* cogl_fixed_pow:
|
634
|
+
* @x: base
|
635
|
+
* @y: #CoglFixed exponent
|
636
|
+
*
|
637
|
+
* Calculates @x to the @y power.
|
638
|
+
*
|
639
|
+
* Return value: the power of @x to the @y
|
640
|
+
*
|
641
|
+
* Since: 1.0
|
642
|
+
*/
|
643
|
+
unsigned int
|
644
|
+
cogl_fixed_pow (unsigned int x,
|
645
|
+
CoglFixed y);
|
646
|
+
|
647
|
+
/**
|
648
|
+
* cogl_sqrti:
|
649
|
+
* @x: integer value
|
650
|
+
*
|
651
|
+
* Very fast fixed point implementation of square root for integers.
|
652
|
+
*
|
653
|
+
* This function is at least 6x faster than clib sqrt() on x86, and (this is
|
654
|
+
* not a typo!) about 500x faster on ARM without FPU. It's error is less than
|
655
|
+
* 5% for arguments smaller than %COGL_SQRTI_ARG_5_PERCENT and less than 10%
|
656
|
+
* for narguments smaller than %COGL_SQRTI_ARG_10_PERCENT. The maximum
|
657
|
+
* argument that can be passed to this function is %COGL_SQRTI_ARG_MAX.
|
658
|
+
*
|
659
|
+
* Return value: integer square root.
|
660
|
+
*
|
661
|
+
* Since: 1.0
|
662
|
+
*/
|
663
|
+
int
|
664
|
+
cogl_sqrti (int x);
|
665
|
+
|
666
|
+
/**
|
667
|
+
* COGL_ANGLE_FROM_DEG:
|
668
|
+
* @x: an angle in degrees in floating point notation
|
669
|
+
*
|
670
|
+
* Converts an angle in degrees into a #CoglAngle.
|
671
|
+
*
|
672
|
+
* Since: 1.0
|
673
|
+
*/
|
674
|
+
#define COGL_ANGLE_FROM_DEG(x) (COGL_FLOAT_TO_INT (((float)(x) * 1024.0f) / 360.0f))
|
675
|
+
|
676
|
+
/**
|
677
|
+
* COGL_ANGLE_TO_DEG:
|
678
|
+
* @x: a #CoglAngle
|
679
|
+
*
|
680
|
+
* Converts a #CoglAngle into an angle in degrees, using floatint point
|
681
|
+
* notation.
|
682
|
+
*
|
683
|
+
* Since: 1.0
|
684
|
+
*/
|
685
|
+
#define COGL_ANGLE_TO_DEG(x) (((float)(x) * 360.0) / 1024.0)
|
686
|
+
|
687
|
+
/**
|
688
|
+
* COGL_ANGLE_FROM_DEGX:
|
689
|
+
* @x: an angle in degrees in fixed point notation
|
690
|
+
*
|
691
|
+
* Converts an angle in degrees into a #CoglAngle.
|
692
|
+
*
|
693
|
+
* Since: 1.0
|
694
|
+
*/
|
695
|
+
#define COGL_ANGLE_FROM_DEGX(x) (COGL_FIXED_TO_INT ((((x) / 360) * 1024) + COGL_FIXED_0_5))
|
696
|
+
|
697
|
+
/**
|
698
|
+
* COGL_ANGLE_TO_DEGX:
|
699
|
+
* @x: a #CoglAngle
|
700
|
+
*
|
701
|
+
* Converts a #CoglAngle into an angle in degrees, using fixed point notation
|
702
|
+
*
|
703
|
+
* Since: 1.0
|
704
|
+
*/
|
705
|
+
#define COGL_ANGLE_TO_DEGX(x) (COGL_FIXED_FROM_INT ((x) * 45) / 128)
|
706
|
+
|
707
|
+
/**
|
708
|
+
* cogl_angle_sin:
|
709
|
+
* @angle: an angle expressed using #CoglAngle
|
710
|
+
*
|
711
|
+
* Computes the sine of @angle
|
712
|
+
*
|
713
|
+
* Return value: the sine of the passed angle
|
714
|
+
*
|
715
|
+
* Since: 1.0
|
716
|
+
*/
|
717
|
+
CoglFixed
|
718
|
+
cogl_angle_sin (CoglAngle angle);
|
719
|
+
|
720
|
+
/**
|
721
|
+
* cogl_angle_tan:
|
722
|
+
* @angle: an angle expressed using #CoglAngle
|
723
|
+
*
|
724
|
+
* Computes the tangent of @angle
|
725
|
+
*
|
726
|
+
* Return value: the tangent of the passed angle
|
727
|
+
*
|
728
|
+
* Since: 1.0
|
729
|
+
*/
|
730
|
+
CoglFixed
|
731
|
+
cogl_angle_tan (CoglAngle angle);
|
732
|
+
|
733
|
+
/**
|
734
|
+
* cogl_angle_cos:
|
735
|
+
* @angle: an angle expressed using #CoglAngle
|
736
|
+
*
|
737
|
+
* Computes the cosine of @angle
|
738
|
+
*
|
739
|
+
* Return value: the cosine of the passed angle
|
740
|
+
*
|
741
|
+
* Since: 1.0
|
742
|
+
*/
|
743
|
+
CoglFixed
|
744
|
+
cogl_angle_cos (CoglAngle angle);
|
745
|
+
|
746
|
+
/*< private >*/
|
747
|
+
|
748
|
+
#if defined (G_CAN_INLINE)
|
749
|
+
G_INLINE_FUNC CoglFixed
|
750
|
+
cogl_fixed_mul (CoglFixed a,
|
751
|
+
CoglFixed b)
|
752
|
+
{
|
753
|
+
# ifdef __arm__
|
754
|
+
int res_low, res_hi;
|
755
|
+
|
756
|
+
__asm__ ("smull %0, %1, %2, %3 \n"
|
757
|
+
"mov %0, %0, lsr %4 \n"
|
758
|
+
"add %1, %0, %1, lsl %5 \n"
|
759
|
+
: "=r"(res_hi), "=r"(res_low)\
|
760
|
+
: "r"(a), "r"(b), "i"(COGL_FIXED_Q), "i"(32 - COGL_FIXED_Q));
|
761
|
+
|
762
|
+
return (CoglFixed) res_low;
|
763
|
+
# else
|
764
|
+
long long r = (long long) a * (long long) b;
|
765
|
+
|
766
|
+
return (unsigned int)(r >> COGL_FIXED_Q);
|
767
|
+
# endif
|
768
|
+
}
|
769
|
+
#endif
|
770
|
+
|
771
|
+
#if defined (G_CAN_INLINE)
|
772
|
+
G_INLINE_FUNC CoglFixed
|
773
|
+
cogl_fixed_div (CoglFixed a,
|
774
|
+
CoglFixed b)
|
775
|
+
{
|
776
|
+
return (CoglFixed) ((((int64_t) a) << COGL_FIXED_Q) / b);
|
777
|
+
}
|
778
|
+
#endif
|
779
|
+
|
780
|
+
#if defined(G_CAN_INLINE)
|
781
|
+
G_INLINE_FUNC CoglFixed
|
782
|
+
cogl_fixed_mul_div (CoglFixed a,
|
783
|
+
CoglFixed b,
|
784
|
+
CoglFixed c)
|
785
|
+
{
|
786
|
+
CoglFixed ab = cogl_fixed_mul (a, b);
|
787
|
+
CoglFixed quo = cogl_fixed_div (ab, c);
|
788
|
+
|
789
|
+
return quo;
|
790
|
+
}
|
791
|
+
#endif
|
792
|
+
|
793
|
+
CoglFixed
|
794
|
+
cogl_double_to_fixed (double value);
|
795
|
+
|
796
|
+
int
|
797
|
+
cogl_double_to_int (double value);
|
798
|
+
|
799
|
+
unsigned int
|
800
|
+
cogl_double_to_uint (double value);
|
801
|
+
|
802
|
+
COGL_END_DECLS
|
803
|
+
|
804
|
+
#endif /* __COGL_FIXED_H__ */
|