clutter 2.0.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (656) hide show
  1. data/Rakefile +129 -0
  2. data/lib/clutter.rb +145 -0
  3. data/lib/clutter/actor-iter.rb +33 -0
  4. data/lib/clutter/actor.rb +34 -0
  5. data/lib/clutter/animatable.rb +26 -0
  6. data/lib/clutter/cairo.rb +24 -0
  7. data/lib/clutter/color.rb +55 -0
  8. data/lib/clutter/event.rb +21 -0
  9. data/lib/clutter/point.rb +25 -0
  10. data/lib/clutter/text.rb +23 -0
  11. data/lib/clutter/threads.rb +38 -0
  12. data/sample/basic-actor.rb +125 -0
  13. data/sample/bin-layout.rb +215 -0
  14. data/sample/box-layout.rb +196 -0
  15. data/sample/canvas.rb +117 -0
  16. data/sample/constraints.rb +81 -0
  17. data/sample/drag-action.rb +177 -0
  18. data/sample/drop-action.rb +198 -0
  19. data/sample/easing-modes.rb +145 -0
  20. data/sample/flow-layout.rb +121 -0
  21. data/sample/grid-layout.rb +239 -0
  22. data/sample/image-content.rb +88 -0
  23. data/sample/pan-action.rb +100 -0
  24. data/sample/redhand.png +0 -0
  25. data/sample/rounded-rectangle.rb +90 -0
  26. data/sample/scroll-actor.rb +105 -0
  27. data/test/clutter-test-utils.rb +21 -0
  28. data/test/run-test.rb +50 -0
  29. data/vendor/local/bin/libclutter-1.0-0.dll +0 -0
  30. data/vendor/local/bin/libcogl-12.dll +0 -0
  31. data/vendor/local/bin/libcogl-pango-12.dll +0 -0
  32. data/vendor/local/bin/libglut-0.dll +0 -0
  33. data/vendor/local/bin/libjson-glib-1.0-0.dll +0 -0
  34. data/vendor/local/include/GL/freeglut.h +22 -0
  35. data/vendor/local/include/GL/freeglut_ext.h +239 -0
  36. data/vendor/local/include/GL/freeglut_std.h +636 -0
  37. data/vendor/local/include/GL/glut.h +21 -0
  38. data/vendor/local/include/clutter-1.0/cally/cally-actor.h +155 -0
  39. data/vendor/local/include/clutter-1.0/cally/cally-clone.h +82 -0
  40. data/vendor/local/include/clutter-1.0/cally/cally-factory.h +117 -0
  41. data/vendor/local/include/clutter-1.0/cally/cally-group.h +85 -0
  42. data/vendor/local/include/clutter-1.0/cally/cally-main.h +39 -0
  43. data/vendor/local/include/clutter-1.0/cally/cally-rectangle.h +82 -0
  44. data/vendor/local/include/clutter-1.0/cally/cally-root.h +82 -0
  45. data/vendor/local/include/clutter-1.0/cally/cally-stage.h +82 -0
  46. data/vendor/local/include/clutter-1.0/cally/cally-text.h +82 -0
  47. data/vendor/local/include/clutter-1.0/cally/cally-texture.h +82 -0
  48. data/vendor/local/include/clutter-1.0/cally/cally-util.h +80 -0
  49. data/vendor/local/include/clutter-1.0/cally/cally.h +40 -0
  50. data/vendor/local/include/clutter-1.0/clutter/clutter-action.h +103 -0
  51. data/vendor/local/include/clutter-1.0/clutter/clutter-actor-meta.h +113 -0
  52. data/vendor/local/include/clutter-1.0/clutter/clutter-actor.h +735 -0
  53. data/vendor/local/include/clutter-1.0/clutter/clutter-align-constraint.h +69 -0
  54. data/vendor/local/include/clutter-1.0/clutter/clutter-animatable.h +116 -0
  55. data/vendor/local/include/clutter-1.0/clutter/clutter-backend.h +74 -0
  56. data/vendor/local/include/clutter-1.0/clutter/clutter-bin-layout.h +84 -0
  57. data/vendor/local/include/clutter-1.0/clutter/clutter-bind-constraint.h +69 -0
  58. data/vendor/local/include/clutter-1.0/clutter/clutter-binding-pool.h +122 -0
  59. data/vendor/local/include/clutter-1.0/clutter/clutter-blur-effect.h +57 -0
  60. data/vendor/local/include/clutter-1.0/clutter/clutter-box-layout.h +159 -0
  61. data/vendor/local/include/clutter-1.0/clutter/clutter-brightness-contrast-effect.h +80 -0
  62. data/vendor/local/include/clutter-1.0/clutter/clutter-cairo.h +59 -0
  63. data/vendor/local/include/clutter-1.0/clutter/clutter-canvas.h +100 -0
  64. data/vendor/local/include/clutter-1.0/clutter/clutter-child-meta.h +120 -0
  65. data/vendor/local/include/clutter-1.0/clutter/clutter-click-action.h +114 -0
  66. data/vendor/local/include/clutter-1.0/clutter/clutter-clone.h +90 -0
  67. data/vendor/local/include/clutter-1.0/clutter/clutter-cogl-compat.h +52 -0
  68. data/vendor/local/include/clutter-1.0/clutter/clutter-color-static.h +79 -0
  69. data/vendor/local/include/clutter-1.0/clutter/clutter-color.h +175 -0
  70. data/vendor/local/include/clutter-1.0/clutter/clutter-colorize-effect.h +63 -0
  71. data/vendor/local/include/clutter-1.0/clutter/clutter-config.h +19 -0
  72. data/vendor/local/include/clutter-1.0/clutter/clutter-constraint.h +108 -0
  73. data/vendor/local/include/clutter-1.0/clutter/clutter-container.h +184 -0
  74. data/vendor/local/include/clutter-1.0/clutter/clutter-content.h +103 -0
  75. data/vendor/local/include/clutter-1.0/clutter/clutter-deform-effect.h +111 -0
  76. data/vendor/local/include/clutter-1.0/clutter/clutter-deprecated.h +43 -0
  77. data/vendor/local/include/clutter-1.0/clutter/clutter-desaturate-effect.h +61 -0
  78. data/vendor/local/include/clutter-1.0/clutter/clutter-device-manager.h +104 -0
  79. data/vendor/local/include/clutter-1.0/clutter/clutter-drag-action.h +142 -0
  80. data/vendor/local/include/clutter-1.0/clutter/clutter-drop-action.h +113 -0
  81. data/vendor/local/include/clutter-1.0/clutter/clutter-effect.h +120 -0
  82. data/vendor/local/include/clutter-1.0/clutter/clutter-enum-types.h +183 -0
  83. data/vendor/local/include/clutter-1.0/clutter/clutter-enums.h +1362 -0
  84. data/vendor/local/include/clutter-1.0/clutter/clutter-event.h +509 -0
  85. data/vendor/local/include/clutter-1.0/clutter/clutter-feature.h +40 -0
  86. data/vendor/local/include/clutter-1.0/clutter/clutter-fixed-layout.h +80 -0
  87. data/vendor/local/include/clutter-1.0/clutter/clutter-flow-layout.h +110 -0
  88. data/vendor/local/include/clutter-1.0/clutter/clutter-gesture-action.h +154 -0
  89. data/vendor/local/include/clutter-1.0/clutter/clutter-grid-layout.h +161 -0
  90. data/vendor/local/include/clutter-1.0/clutter/clutter-group.h +95 -0
  91. data/vendor/local/include/clutter-1.0/clutter/clutter-image.h +141 -0
  92. data/vendor/local/include/clutter-1.0/clutter/clutter-input-device.h +118 -0
  93. data/vendor/local/include/clutter-1.0/clutter/clutter-interval.h +141 -0
  94. data/vendor/local/include/clutter-1.0/clutter/clutter-keyframe-transition.h +120 -0
  95. data/vendor/local/include/clutter-1.0/clutter/clutter-keysyms.h +2304 -0
  96. data/vendor/local/include/clutter-1.0/clutter/clutter-layout-manager.h +215 -0
  97. data/vendor/local/include/clutter-1.0/clutter/clutter-layout-meta.h +101 -0
  98. data/vendor/local/include/clutter-1.0/clutter/clutter-list-model.h +88 -0
  99. data/vendor/local/include/clutter-1.0/clutter/clutter-macros.h +279 -0
  100. data/vendor/local/include/clutter-1.0/clutter/clutter-main.h +148 -0
  101. data/vendor/local/include/clutter-1.0/clutter/clutter-marshal.h +273 -0
  102. data/vendor/local/include/clutter-1.0/clutter/clutter-model.h +381 -0
  103. data/vendor/local/include/clutter-1.0/clutter/clutter-offscreen-effect.h +112 -0
  104. data/vendor/local/include/clutter-1.0/clutter/clutter-page-turn-effect.h +72 -0
  105. data/vendor/local/include/clutter-1.0/clutter/clutter-paint-node.h +102 -0
  106. data/vendor/local/include/clutter-1.0/clutter/clutter-paint-nodes.h +150 -0
  107. data/vendor/local/include/clutter-1.0/clutter/clutter-pan-action.h +147 -0
  108. data/vendor/local/include/clutter-1.0/clutter/clutter-path-constraint.h +66 -0
  109. data/vendor/local/include/clutter-1.0/clutter/clutter-path.h +155 -0
  110. data/vendor/local/include/clutter-1.0/clutter/clutter-property-transition.h +91 -0
  111. data/vendor/local/include/clutter-1.0/clutter/clutter-rotate-action.h +100 -0
  112. data/vendor/local/include/clutter-1.0/clutter/clutter-script.h +204 -0
  113. data/vendor/local/include/clutter-1.0/clutter/clutter-scriptable.h +107 -0
  114. data/vendor/local/include/clutter-1.0/clutter/clutter-scroll-actor.h +97 -0
  115. data/vendor/local/include/clutter-1.0/clutter/clutter-settings.h +25 -0
  116. data/vendor/local/include/clutter-1.0/clutter/clutter-shader-effect.h +114 -0
  117. data/vendor/local/include/clutter-1.0/clutter/clutter-shader-types.h +95 -0
  118. data/vendor/local/include/clutter-1.0/clutter/clutter-snap-constraint.h +73 -0
  119. data/vendor/local/include/clutter-1.0/clutter/clutter-stage-manager.h +81 -0
  120. data/vendor/local/include/clutter-1.0/clutter/clutter-stage.h +215 -0
  121. data/vendor/local/include/clutter-1.0/clutter/clutter-swipe-action.h +107 -0
  122. data/vendor/local/include/clutter-1.0/clutter/clutter-table-layout.h +157 -0
  123. data/vendor/local/include/clutter-1.0/clutter/clutter-tap-action.h +102 -0
  124. data/vendor/local/include/clutter-1.0/clutter/clutter-text-buffer.h +172 -0
  125. data/vendor/local/include/clutter-1.0/clutter/clutter-text.h +237 -0
  126. data/vendor/local/include/clutter-1.0/clutter/clutter-texture.h +128 -0
  127. data/vendor/local/include/clutter-1.0/clutter/clutter-timeline.h +201 -0
  128. data/vendor/local/include/clutter-1.0/clutter/clutter-transition-group.h +91 -0
  129. data/vendor/local/include/clutter-1.0/clutter/clutter-transition.h +132 -0
  130. data/vendor/local/include/clutter-1.0/clutter/clutter-types.h +715 -0
  131. data/vendor/local/include/clutter-1.0/clutter/clutter-units.h +166 -0
  132. data/vendor/local/include/clutter-1.0/clutter/clutter-version.h +302 -0
  133. data/vendor/local/include/clutter-1.0/clutter/clutter-zoom-action.h +114 -0
  134. data/vendor/local/include/clutter-1.0/clutter/clutter.h +118 -0
  135. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-actor.h +161 -0
  136. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-alpha.h +144 -0
  137. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-animatable.h +47 -0
  138. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-animation.h +206 -0
  139. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-animator.h +186 -0
  140. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-backend.h +64 -0
  141. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-depth.h +101 -0
  142. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-ellipse.h +159 -0
  143. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-opacity.h +115 -0
  144. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-path.h +135 -0
  145. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-rotate.h +119 -0
  146. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-scale.h +107 -0
  147. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour.h +170 -0
  148. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-bin-layout.h +56 -0
  149. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-box.h +143 -0
  150. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-cairo-texture.h +139 -0
  151. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-container.h +93 -0
  152. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-fixed.h +97 -0
  153. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-frame-source.h +49 -0
  154. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-group.h +62 -0
  155. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-input-device.h +41 -0
  156. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-keysyms.h +2306 -0
  157. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-main.h +96 -0
  158. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-media.h +121 -0
  159. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-rectangle.h +117 -0
  160. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-score.h +144 -0
  161. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-shader.h +182 -0
  162. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-stage-manager.h +42 -0
  163. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-stage.h +102 -0
  164. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-state.h +187 -0
  165. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-texture.h +138 -0
  166. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-timeline.h +41 -0
  167. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-timeout-pool.h +69 -0
  168. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-util.h +40 -0
  169. data/vendor/local/include/clutter-1.0/clutter/win32/clutter-win32.h +58 -0
  170. data/vendor/local/include/cogl/cogl-pango/cogl-pango.h +245 -0
  171. data/vendor/local/include/cogl/cogl/cogl-attribute-buffer.h +131 -0
  172. data/vendor/local/include/cogl/cogl/cogl-attribute.h +532 -0
  173. data/vendor/local/include/cogl/cogl/cogl-bitmap.h +314 -0
  174. data/vendor/local/include/cogl/cogl/cogl-buffer.h +309 -0
  175. data/vendor/local/include/cogl/cogl/cogl-clip-state.h +50 -0
  176. data/vendor/local/include/cogl/cogl/cogl-clutter.h +47 -0
  177. data/vendor/local/include/cogl/cogl/cogl-color.h +543 -0
  178. data/vendor/local/include/cogl/cogl/cogl-context.h +350 -0
  179. data/vendor/local/include/cogl/cogl/cogl-defines.h +50 -0
  180. data/vendor/local/include/cogl/cogl/cogl-deprecated.h +36 -0
  181. data/vendor/local/include/cogl/cogl/cogl-depth-state.h +264 -0
  182. data/vendor/local/include/cogl/cogl/cogl-display.h +192 -0
  183. data/vendor/local/include/cogl/cogl/cogl-enum-types.h +100 -0
  184. data/vendor/local/include/cogl/cogl/cogl-error.h +176 -0
  185. data/vendor/local/include/cogl/cogl/cogl-euler.h +251 -0
  186. data/vendor/local/include/cogl/cogl/cogl-fixed.h +804 -0
  187. data/vendor/local/include/cogl/cogl/cogl-frame-info.h +129 -0
  188. data/vendor/local/include/cogl/cogl/cogl-framebuffer.h +1829 -0
  189. data/vendor/local/include/cogl/cogl/cogl-gles2-types.h +474 -0
  190. data/vendor/local/include/cogl/cogl/cogl-gles2.h +374 -0
  191. data/vendor/local/include/cogl/cogl/cogl-glib-source.h +59 -0
  192. data/vendor/local/include/cogl/cogl/cogl-index-buffer.h +85 -0
  193. data/vendor/local/include/cogl/cogl/cogl-indices.h +145 -0
  194. data/vendor/local/include/cogl/cogl/cogl-material-compat.h +1276 -0
  195. data/vendor/local/include/cogl/cogl/cogl-matrix-stack.h +620 -0
  196. data/vendor/local/include/cogl/cogl/cogl-matrix.h +798 -0
  197. data/vendor/local/include/cogl/cogl/cogl-meta-texture.h +181 -0
  198. data/vendor/local/include/cogl/cogl/cogl-object.h +219 -0
  199. data/vendor/local/include/cogl/cogl/cogl-offscreen.h +117 -0
  200. data/vendor/local/include/cogl/cogl/cogl-onscreen-template.h +106 -0
  201. data/vendor/local/include/cogl/cogl/cogl-onscreen.h +741 -0
  202. data/vendor/local/include/cogl/cogl/cogl-output.h +242 -0
  203. data/vendor/local/include/cogl/cogl/cogl-pango.h +33 -0
  204. data/vendor/local/include/cogl/cogl/cogl-path-functions.h +430 -0
  205. data/vendor/local/include/cogl/cogl/cogl-path.h +102 -0
  206. data/vendor/local/include/cogl/cogl/cogl-pipeline-layer-state.h +613 -0
  207. data/vendor/local/include/cogl/cogl/cogl-pipeline-state.h +924 -0
  208. data/vendor/local/include/cogl/cogl/cogl-pipeline.h +173 -0
  209. data/vendor/local/include/cogl/cogl/cogl-pixel-buffer.h +114 -0
  210. data/vendor/local/include/cogl/cogl/cogl-poll.h +174 -0
  211. data/vendor/local/include/cogl/cogl/cogl-primitive-texture.h +98 -0
  212. data/vendor/local/include/cogl/cogl/cogl-primitive.h +866 -0
  213. data/vendor/local/include/cogl/cogl/cogl-primitives.h +190 -0
  214. data/vendor/local/include/cogl/cogl/cogl-quaternion.h +545 -0
  215. data/vendor/local/include/cogl/cogl/cogl-renderer.h +423 -0
  216. data/vendor/local/include/cogl/cogl/cogl-shader.h +654 -0
  217. data/vendor/local/include/cogl/cogl/cogl-snippet.h +786 -0
  218. data/vendor/local/include/cogl/cogl/cogl-sub-texture.h +122 -0
  219. data/vendor/local/include/cogl/cogl/cogl-swap-chain.h +51 -0
  220. data/vendor/local/include/cogl/cogl/cogl-texture-2d-gl.h +73 -0
  221. data/vendor/local/include/cogl/cogl/cogl-texture-2d-sliced.h +130 -0
  222. data/vendor/local/include/cogl/cogl/cogl-texture-2d.h +191 -0
  223. data/vendor/local/include/cogl/cogl/cogl-texture-3d.h +187 -0
  224. data/vendor/local/include/cogl/cogl/cogl-texture-rectangle.h +204 -0
  225. data/vendor/local/include/cogl/cogl/cogl-texture.h +611 -0
  226. data/vendor/local/include/cogl/cogl/cogl-types.h +912 -0
  227. data/vendor/local/include/cogl/cogl/cogl-vector.h +351 -0
  228. data/vendor/local/include/cogl/cogl/cogl-version.h +185 -0
  229. data/vendor/local/include/cogl/cogl/cogl-vertex-buffer.h +409 -0
  230. data/vendor/local/include/cogl/cogl/cogl-win32-renderer.h +99 -0
  231. data/vendor/local/include/cogl/cogl/cogl.h +151 -0
  232. data/vendor/local/include/cogl/cogl/cogl1-context.h +1169 -0
  233. data/vendor/local/include/cogl/cogl/cogl2-compatibility.h +55 -0
  234. data/vendor/local/include/cogl/cogl/cogl2-experimental.h +31 -0
  235. data/vendor/local/include/cogl/cogl/cogl2-path.h +506 -0
  236. data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-core-functions.h +191 -0
  237. data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-gles2-functions.h +36 -0
  238. data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-glsl-functions.h +279 -0
  239. data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-in-gles-core-functions.h +141 -0
  240. data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-in-gles2-core-functions.h +179 -0
  241. data/vendor/local/include/json-glib-1.0/json-glib/json-builder.h +106 -0
  242. data/vendor/local/include/json-glib-1.0/json-glib/json-enum-types.h +36 -0
  243. data/vendor/local/include/json-glib-1.0/json-glib/json-generator.h +107 -0
  244. data/vendor/local/include/json-glib-1.0/json-glib/json-glib.h +46 -0
  245. data/vendor/local/include/json-glib-1.0/json-glib/json-gobject.h +182 -0
  246. data/vendor/local/include/json-glib-1.0/json-glib/json-gvariant.h +46 -0
  247. data/vendor/local/include/json-glib-1.0/json-glib/json-parser.h +173 -0
  248. data/vendor/local/include/json-glib-1.0/json-glib/json-path.h +97 -0
  249. data/vendor/local/include/json-glib-1.0/json-glib/json-reader.h +150 -0
  250. data/vendor/local/include/json-glib-1.0/json-glib/json-types.h +334 -0
  251. data/vendor/local/include/json-glib-1.0/json-glib/json-version.h +100 -0
  252. data/vendor/local/lib/girepository-1.0/Cally-1.0.typelib +0 -0
  253. data/vendor/local/lib/girepository-1.0/Clutter-1.0.typelib +0 -0
  254. data/vendor/local/lib/girepository-1.0/Cogl-1.0.typelib +0 -0
  255. data/vendor/local/lib/girepository-1.0/CoglPango-1.0.typelib +0 -0
  256. data/vendor/local/lib/girepository-1.0/Json-1.0.typelib +0 -0
  257. data/vendor/local/lib/libclutter-1.0.dll.a +0 -0
  258. data/vendor/local/lib/libclutter-1.0.la +41 -0
  259. data/vendor/local/lib/libcogl-pango.dll.a +0 -0
  260. data/vendor/local/lib/libcogl-pango.la +41 -0
  261. data/vendor/local/lib/libcogl.dll.a +0 -0
  262. data/vendor/local/lib/libcogl.la +41 -0
  263. data/vendor/local/lib/libglut.a +0 -0
  264. data/vendor/local/lib/libglut.dll.a +0 -0
  265. data/vendor/local/lib/libglut.la +41 -0
  266. data/vendor/local/lib/libjson-glib-1.0.dll.a +0 -0
  267. data/vendor/local/lib/libjson-glib-1.0.la +41 -0
  268. data/vendor/local/lib/pkgconfig/cally-1.0.pc +13 -0
  269. data/vendor/local/lib/pkgconfig/clutter-1.0.pc +24 -0
  270. data/vendor/local/lib/pkgconfig/clutter-win32-1.0.pc +24 -0
  271. data/vendor/local/lib/pkgconfig/cogl-1.0.pc +13 -0
  272. data/vendor/local/lib/pkgconfig/cogl-2.0-experimental.pc +13 -0
  273. data/vendor/local/lib/pkgconfig/cogl-gl-1.0.pc +13 -0
  274. data/vendor/local/lib/pkgconfig/cogl-pango-1.0.pc +13 -0
  275. data/vendor/local/lib/pkgconfig/cogl-pango-2.0-experimental.pc +13 -0
  276. data/vendor/local/lib/pkgconfig/json-glib-1.0.pc +11 -0
  277. data/vendor/local/share/cogl/examples-data/crate.jpg +0 -0
  278. data/vendor/local/share/gir-1.0/Cally-1.0.gir +679 -0
  279. data/vendor/local/share/gir-1.0/Clutter-1.0.gir +67473 -0
  280. data/vendor/local/share/gir-1.0/Cogl-1.0.gir +8383 -0
  281. data/vendor/local/share/gir-1.0/CoglPango-1.0.gir +306 -0
  282. data/vendor/local/share/gir-1.0/Json-1.0.gir +4333 -0
  283. data/vendor/local/share/gtk-doc/html/cally/CallyActor.html +415 -0
  284. data/vendor/local/share/gtk-doc/html/cally/CallyClone.html +136 -0
  285. data/vendor/local/share/gtk-doc/html/cally/CallyGroup.html +139 -0
  286. data/vendor/local/share/gtk-doc/html/cally/CallyRectangle.html +135 -0
  287. data/vendor/local/share/gtk-doc/html/cally/CallyRoot.html +123 -0
  288. data/vendor/local/share/gtk-doc/html/cally/CallyStage.html +140 -0
  289. data/vendor/local/share/gtk-doc/html/cally/CallyText.html +133 -0
  290. data/vendor/local/share/gtk-doc/html/cally/CallyTexture.html +135 -0
  291. data/vendor/local/share/gtk-doc/html/cally/CallyUtil.html +100 -0
  292. data/vendor/local/share/gtk-doc/html/cally/cally-General-API.html +167 -0
  293. data/vendor/local/share/gtk-doc/html/cally/cally.devhelp2 +73 -0
  294. data/vendor/local/share/gtk-doc/html/cally/callyannotationglossary.html +43 -0
  295. data/vendor/local/share/gtk-doc/html/cally/callybase.html +71 -0
  296. data/vendor/local/share/gtk-doc/html/cally/callyobjecthierarchy.html +45 -0
  297. data/vendor/local/share/gtk-doc/html/cally/callyobjectindex.html +64 -0
  298. data/vendor/local/share/gtk-doc/html/cally/callyobjects.html +39 -0
  299. data/vendor/local/share/gtk-doc/html/cally/ch01.html +53 -0
  300. data/vendor/local/share/gtk-doc/html/cally/ch02.html +41 -0
  301. data/vendor/local/share/gtk-doc/html/cally/clutter-overview.html +96 -0
  302. data/vendor/local/share/gtk-doc/html/cally/home.png +0 -0
  303. data/vendor/local/share/gtk-doc/html/cally/index.html +103 -0
  304. data/vendor/local/share/gtk-doc/html/cally/index.sgml +103 -0
  305. data/vendor/local/share/gtk-doc/html/cally/ix01.html +198 -0
  306. data/vendor/local/share/gtk-doc/html/cally/ix02.html +31 -0
  307. data/vendor/local/share/gtk-doc/html/cally/ix03.html +190 -0
  308. data/vendor/local/share/gtk-doc/html/cally/ix04.html +42 -0
  309. data/vendor/local/share/gtk-doc/html/cally/left.png +0 -0
  310. data/vendor/local/share/gtk-doc/html/cally/license.html +58 -0
  311. data/vendor/local/share/gtk-doc/html/cally/right.png +0 -0
  312. data/vendor/local/share/gtk-doc/html/cally/style.css +266 -0
  313. data/vendor/local/share/gtk-doc/html/cally/up.png +0 -0
  314. data/vendor/local/share/gtk-doc/html/clutter/ClutterAction.html +110 -0
  315. data/vendor/local/share/gtk-doc/html/clutter/ClutterActor.html +13714 -0
  316. data/vendor/local/share/gtk-doc/html/clutter/ClutterActorMeta.html +322 -0
  317. data/vendor/local/share/gtk-doc/html/clutter/ClutterAlignConstraint.html +404 -0
  318. data/vendor/local/share/gtk-doc/html/clutter/ClutterAlpha.html +747 -0
  319. data/vendor/local/share/gtk-doc/html/clutter/ClutterAnimatable.html +432 -0
  320. data/vendor/local/share/gtk-doc/html/clutter/ClutterAnimator.html +1218 -0
  321. data/vendor/local/share/gtk-doc/html/clutter/ClutterBackend.html +684 -0
  322. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviour.html +697 -0
  323. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourDepth.html +278 -0
  324. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourEllipse.html +844 -0
  325. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourOpacity.html +283 -0
  326. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourPath.html +450 -0
  327. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourRotate.html +608 -0
  328. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourScale.html +432 -0
  329. data/vendor/local/share/gtk-doc/html/clutter/ClutterBinLayout.html +1056 -0
  330. data/vendor/local/share/gtk-doc/html/clutter/ClutterBindConstraint.html +780 -0
  331. data/vendor/local/share/gtk-doc/html/clutter/ClutterBlurEffect.html +109 -0
  332. data/vendor/local/share/gtk-doc/html/clutter/ClutterBox.html +657 -0
  333. data/vendor/local/share/gtk-doc/html/clutter/ClutterBoxLayout.html +1232 -0
  334. data/vendor/local/share/gtk-doc/html/clutter/ClutterBrightnessContrastEffect.html +410 -0
  335. data/vendor/local/share/gtk-doc/html/clutter/ClutterCairoTexture.html +1018 -0
  336. data/vendor/local/share/gtk-doc/html/clutter/ClutterCanvas.html +469 -0
  337. data/vendor/local/share/gtk-doc/html/clutter/ClutterChildMeta.html +253 -0
  338. data/vendor/local/share/gtk-doc/html/clutter/ClutterClickAction.html +587 -0
  339. data/vendor/local/share/gtk-doc/html/clutter/ClutterClone.html +219 -0
  340. data/vendor/local/share/gtk-doc/html/clutter/ClutterColorizeEffect.html +193 -0
  341. data/vendor/local/share/gtk-doc/html/clutter/ClutterConstraint.html +336 -0
  342. data/vendor/local/share/gtk-doc/html/clutter/ClutterContainer.html +1346 -0
  343. data/vendor/local/share/gtk-doc/html/clutter/ClutterContent.html +309 -0
  344. data/vendor/local/share/gtk-doc/html/clutter/ClutterDeformEffect.html +353 -0
  345. data/vendor/local/share/gtk-doc/html/clutter/ClutterDesaturateEffect.html +200 -0
  346. data/vendor/local/share/gtk-doc/html/clutter/ClutterDeviceManager.html +408 -0
  347. data/vendor/local/share/gtk-doc/html/clutter/ClutterDragAction.html +1224 -0
  348. data/vendor/local/share/gtk-doc/html/clutter/ClutterDropAction.html +965 -0
  349. data/vendor/local/share/gtk-doc/html/clutter/ClutterEffect.html +386 -0
  350. data/vendor/local/share/gtk-doc/html/clutter/ClutterFixedLayout.html +115 -0
  351. data/vendor/local/share/gtk-doc/html/clutter/ClutterFlowLayout.html +1016 -0
  352. data/vendor/local/share/gtk-doc/html/clutter/ClutterGestureAction.html +867 -0
  353. data/vendor/local/share/gtk-doc/html/clutter/ClutterGridLayout.html +808 -0
  354. data/vendor/local/share/gtk-doc/html/clutter/ClutterGroup.html +231 -0
  355. data/vendor/local/share/gtk-doc/html/clutter/ClutterImage.html +674 -0
  356. data/vendor/local/share/gtk-doc/html/clutter/ClutterInputDevice.html +1488 -0
  357. data/vendor/local/share/gtk-doc/html/clutter/ClutterKeyframeTransition.html +525 -0
  358. data/vendor/local/share/gtk-doc/html/clutter/ClutterLayoutManager.html +1376 -0
  359. data/vendor/local/share/gtk-doc/html/clutter/ClutterLayoutMeta.html +161 -0
  360. data/vendor/local/share/gtk-doc/html/clutter/ClutterListModel.html +211 -0
  361. data/vendor/local/share/gtk-doc/html/clutter/ClutterMedia.html +900 -0
  362. data/vendor/local/share/gtk-doc/html/clutter/ClutterModel.html +1715 -0
  363. data/vendor/local/share/gtk-doc/html/clutter/ClutterModelIter.html +644 -0
  364. data/vendor/local/share/gtk-doc/html/clutter/ClutterOffscreenEffect.html +350 -0
  365. data/vendor/local/share/gtk-doc/html/clutter/ClutterPageTurnEffect.html +333 -0
  366. data/vendor/local/share/gtk-doc/html/clutter/ClutterPaintNode.html +534 -0
  367. data/vendor/local/share/gtk-doc/html/clutter/ClutterPanAction.html +785 -0
  368. data/vendor/local/share/gtk-doc/html/clutter/ClutterPath.html +1327 -0
  369. data/vendor/local/share/gtk-doc/html/clutter/ClutterPathConstraint.html +321 -0
  370. data/vendor/local/share/gtk-doc/html/clutter/ClutterPropertyTransition.html +216 -0
  371. data/vendor/local/share/gtk-doc/html/clutter/ClutterRectangle.html +369 -0
  372. data/vendor/local/share/gtk-doc/html/clutter/ClutterRotateAction.html +183 -0
  373. data/vendor/local/share/gtk-doc/html/clutter/ClutterScore.html +881 -0
  374. data/vendor/local/share/gtk-doc/html/clutter/ClutterScript.html +1365 -0
  375. data/vendor/local/share/gtk-doc/html/clutter/ClutterScriptable.html +311 -0
  376. data/vendor/local/share/gtk-doc/html/clutter/ClutterScrollActor.html +731 -0
  377. data/vendor/local/share/gtk-doc/html/clutter/ClutterSettings.html +301 -0
  378. data/vendor/local/share/gtk-doc/html/clutter/ClutterShaderEffect.html +595 -0
  379. data/vendor/local/share/gtk-doc/html/clutter/ClutterSnapConstraint.html +421 -0
  380. data/vendor/local/share/gtk-doc/html/clutter/ClutterStage.html +2252 -0
  381. data/vendor/local/share/gtk-doc/html/clutter/ClutterState.html +1558 -0
  382. data/vendor/local/share/gtk-doc/html/clutter/ClutterSwipeAction.html +280 -0
  383. data/vendor/local/share/gtk-doc/html/clutter/ClutterTableLayout.html +1146 -0
  384. data/vendor/local/share/gtk-doc/html/clutter/ClutterTapAction.html +192 -0
  385. data/vendor/local/share/gtk-doc/html/clutter/ClutterText.html +3058 -0
  386. data/vendor/local/share/gtk-doc/html/clutter/ClutterTextBuffer.html +736 -0
  387. data/vendor/local/share/gtk-doc/html/clutter/ClutterTexture.html +1829 -0
  388. data/vendor/local/share/gtk-doc/html/clutter/ClutterTimeline.html +2441 -0
  389. data/vendor/local/share/gtk-doc/html/clutter/ClutterTransition.html +574 -0
  390. data/vendor/local/share/gtk-doc/html/clutter/ClutterTransitionGroup.html +227 -0
  391. data/vendor/local/share/gtk-doc/html/clutter/ClutterZoomAction.html +400 -0
  392. data/vendor/local/share/gtk-doc/html/clutter/actor-box.png +0 -0
  393. data/vendor/local/share/gtk-doc/html/clutter/actor-example.png +0 -0
  394. data/vendor/local/share/gtk-doc/html/clutter/animator-key-frames.png +0 -0
  395. data/vendor/local/share/gtk-doc/html/clutter/annotation-glossary.html +111 -0
  396. data/vendor/local/share/gtk-doc/html/clutter/bin-layout.png +0 -0
  397. data/vendor/local/share/gtk-doc/html/clutter/box-layout.png +0 -0
  398. data/vendor/local/share/gtk-doc/html/clutter/building-clutter.html +275 -0
  399. data/vendor/local/share/gtk-doc/html/clutter/ch01.html +65 -0
  400. data/vendor/local/share/gtk-doc/html/clutter/ch02.html +47 -0
  401. data/vendor/local/share/gtk-doc/html/clutter/ch03.html +51 -0
  402. data/vendor/local/share/gtk-doc/html/clutter/ch04.html +59 -0
  403. data/vendor/local/share/gtk-doc/html/clutter/ch05.html +44 -0
  404. data/vendor/local/share/gtk-doc/html/clutter/ch06.html +57 -0
  405. data/vendor/local/share/gtk-doc/html/clutter/ch07.html +38 -0
  406. data/vendor/local/share/gtk-doc/html/clutter/ch08.html +38 -0
  407. data/vendor/local/share/gtk-doc/html/clutter/ch09.html +53 -0
  408. data/vendor/local/share/gtk-doc/html/clutter/ch10.html +78 -0
  409. data/vendor/local/share/gtk-doc/html/clutter/ch11.html +38 -0
  410. data/vendor/local/share/gtk-doc/html/clutter/ch12.html +41 -0
  411. data/vendor/local/share/gtk-doc/html/clutter/clutter-Base-geometric-types.html +3471 -0
  412. data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterGLXTexturePixmap.html +225 -0
  413. data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterWaylandSurface.html +314 -0
  414. data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterX11TexturePixmap.html +361 -0
  415. data/vendor/local/share/gtk-doc/html/clutter/clutter-Colors.html +1363 -0
  416. data/vendor/local/share/gtk-doc/html/clutter/clutter-EGL-Specific-Support.html +129 -0
  417. data/vendor/local/share/gtk-doc/html/clutter/clutter-Events.html +2653 -0
  418. data/vendor/local/share/gtk-doc/html/clutter/clutter-Features.html +200 -0
  419. data/vendor/local/share/gtk-doc/html/clutter/clutter-GDK-Specific-Support.html +249 -0
  420. data/vendor/local/share/gtk-doc/html/clutter/clutter-General.html +2550 -0
  421. data/vendor/local/share/gtk-doc/html/clutter/clutter-Implicit-Animations.html +2571 -0
  422. data/vendor/local/share/gtk-doc/html/clutter/clutter-Intel-CE3100-CE4100-Specific-Support.html +181 -0
  423. data/vendor/local/share/gtk-doc/html/clutter/clutter-Key-Bindings.html +890 -0
  424. data/vendor/local/share/gtk-doc/html/clutter/clutter-Paint-Nodes.html +351 -0
  425. data/vendor/local/share/gtk-doc/html/clutter/clutter-Shaders.html +1004 -0
  426. data/vendor/local/share/gtk-doc/html/clutter/clutter-Stage-Manager.html +341 -0
  427. data/vendor/local/share/gtk-doc/html/clutter/clutter-Unit-conversion.html +843 -0
  428. data/vendor/local/share/gtk-doc/html/clutter/clutter-Utilities.html +549 -0
  429. data/vendor/local/share/gtk-doc/html/clutter/clutter-Value-intervals.html +1023 -0
  430. data/vendor/local/share/gtk-doc/html/clutter/clutter-Versioning-Macros.html +525 -0
  431. data/vendor/local/share/gtk-doc/html/clutter/clutter-Wayland-compositor-specific-support.html +83 -0
  432. data/vendor/local/share/gtk-doc/html/clutter/clutter-Win32-Specific-Support.html +201 -0
  433. data/vendor/local/share/gtk-doc/html/clutter/clutter-X11-Specific-Support.html +806 -0
  434. data/vendor/local/share/gtk-doc/html/clutter/clutter-overview.html +77 -0
  435. data/vendor/local/share/gtk-doc/html/clutter/clutter.devhelp2 +2715 -0
  436. data/vendor/local/share/gtk-doc/html/clutter/clutteranimation.html +65 -0
  437. data/vendor/local/share/gtk-doc/html/clutter/clutterbackends.html +71 -0
  438. data/vendor/local/share/gtk-doc/html/clutter/clutterbase.html +202 -0
  439. data/vendor/local/share/gtk-doc/html/clutter/clutterglossary.html +37 -0
  440. data/vendor/local/share/gtk-doc/html/clutter/clutterobjecthierarchy.html +118 -0
  441. data/vendor/local/share/gtk-doc/html/clutter/clutterobjectindex.html +184 -0
  442. data/vendor/local/share/gtk-doc/html/clutter/clutterobjects.html +37 -0
  443. data/vendor/local/share/gtk-doc/html/clutter/cluttertools.html +105 -0
  444. data/vendor/local/share/gtk-doc/html/clutter/constraints-example.png +0 -0
  445. data/vendor/local/share/gtk-doc/html/clutter/deprecated.html +86 -0
  446. data/vendor/local/share/gtk-doc/html/clutter/easing-modes.png +0 -0
  447. data/vendor/local/share/gtk-doc/html/clutter/event-flow.png +0 -0
  448. data/vendor/local/share/gtk-doc/html/clutter/flow-layout.png +0 -0
  449. data/vendor/local/share/gtk-doc/html/clutter/go01.html +114 -0
  450. data/vendor/local/share/gtk-doc/html/clutter/home.png +0 -0
  451. data/vendor/local/share/gtk-doc/html/clutter/index.html +451 -0
  452. data/vendor/local/share/gtk-doc/html/clutter/index.sgml +3272 -0
  453. data/vendor/local/share/gtk-doc/html/clutter/iterating-paths.html +56 -0
  454. data/vendor/local/share/gtk-doc/html/clutter/ix01.html +8815 -0
  455. data/vendor/local/share/gtk-doc/html/clutter/ix02.html +1961 -0
  456. data/vendor/local/share/gtk-doc/html/clutter/ix03.html +454 -0
  457. data/vendor/local/share/gtk-doc/html/clutter/ix04.html +583 -0
  458. data/vendor/local/share/gtk-doc/html/clutter/ix05.html +957 -0
  459. data/vendor/local/share/gtk-doc/html/clutter/ix06.html +642 -0
  460. data/vendor/local/share/gtk-doc/html/clutter/ix07.html +1530 -0
  461. data/vendor/local/share/gtk-doc/html/clutter/ix08.html +820 -0
  462. data/vendor/local/share/gtk-doc/html/clutter/ix09.html +1005 -0
  463. data/vendor/local/share/gtk-doc/html/clutter/ix10.html +369 -0
  464. data/vendor/local/share/gtk-doc/html/clutter/ix11.html +366 -0
  465. data/vendor/local/share/gtk-doc/html/clutter/ix12.html +1078 -0
  466. data/vendor/local/share/gtk-doc/html/clutter/ix13.html +984 -0
  467. data/vendor/local/share/gtk-doc/html/clutter/ix14.html +99 -0
  468. data/vendor/local/share/gtk-doc/html/clutter/left.png +0 -0
  469. data/vendor/local/share/gtk-doc/html/clutter/license.html +58 -0
  470. data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterAnimation.html +223 -0
  471. data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterBehaviour.html +197 -0
  472. data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterEffect.html +154 -0
  473. data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterPath.html +156 -0
  474. data/vendor/local/share/gtk-doc/html/clutter/migration.html +49 -0
  475. data/vendor/local/share/gtk-doc/html/clutter/offscreen-redirect.png +0 -0
  476. data/vendor/local/share/gtk-doc/html/clutter/path-alpha-func.png +0 -0
  477. data/vendor/local/share/gtk-doc/html/clutter/pt09.html +31 -0
  478. data/vendor/local/share/gtk-doc/html/clutter/right.png +0 -0
  479. data/vendor/local/share/gtk-doc/html/clutter/running-clutter.html +373 -0
  480. data/vendor/local/share/gtk-doc/html/clutter/style.css +266 -0
  481. data/vendor/local/share/gtk-doc/html/clutter/table-layout.png +0 -0
  482. data/vendor/local/share/gtk-doc/html/clutter/up.png +0 -0
  483. data/vendor/local/share/gtk-doc/html/clutter/using-cairo.html +36 -0
  484. data/vendor/local/share/gtk-doc/html/json-glib/JsonBuilder.html +513 -0
  485. data/vendor/local/share/gtk-doc/html/json-glib/JsonGenerator.html +492 -0
  486. data/vendor/local/share/gtk-doc/html/json-glib/JsonParser.html +871 -0
  487. data/vendor/local/share/gtk-doc/html/json-glib/JsonPath.html +464 -0
  488. data/vendor/local/share/gtk-doc/html/json-glib/JsonReader.html +898 -0
  489. data/vendor/local/share/gtk-doc/html/json-glib/annotation-glossary.html +87 -0
  490. data/vendor/local/share/gtk-doc/html/json-glib/ch01.html +41 -0
  491. data/vendor/local/share/gtk-doc/html/json-glib/ch02.html +41 -0
  492. data/vendor/local/share/gtk-doc/html/json-glib/ch03.html +38 -0
  493. data/vendor/local/share/gtk-doc/html/json-glib/ch04.html +38 -0
  494. data/vendor/local/share/gtk-doc/html/json-glib/home.png +0 -0
  495. data/vendor/local/share/gtk-doc/html/json-glib/index.html +125 -0
  496. data/vendor/local/share/gtk-doc/html/json-glib/index.sgml +308 -0
  497. data/vendor/local/share/gtk-doc/html/json-glib/ix01.html +926 -0
  498. data/vendor/local/share/gtk-doc/html/json-glib/ix02.html +54 -0
  499. data/vendor/local/share/gtk-doc/html/json-glib/ix03.html +61 -0
  500. data/vendor/local/share/gtk-doc/html/json-glib/ix04.html +54 -0
  501. data/vendor/local/share/gtk-doc/html/json-glib/ix05.html +186 -0
  502. data/vendor/local/share/gtk-doc/html/json-glib/ix06.html +121 -0
  503. data/vendor/local/share/gtk-doc/html/json-glib/ix07.html +161 -0
  504. data/vendor/local/share/gtk-doc/html/json-glib/ix08.html +137 -0
  505. data/vendor/local/share/gtk-doc/html/json-glib/json-advanced.html +47 -0
  506. data/vendor/local/share/gtk-doc/html/json-glib/json-base.html +61 -0
  507. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Boxed-Types-Serialization.html +382 -0
  508. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-GObject-Serialization.html +310 -0
  509. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Array.html +850 -0
  510. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-GVariant-Integration.html +272 -0
  511. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Node.html +942 -0
  512. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Object.html +993 -0
  513. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Serializable-Interface.html +476 -0
  514. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Versioning-information.html +148 -0
  515. data/vendor/local/share/gtk-doc/html/json-glib/json-glib.devhelp2 +281 -0
  516. data/vendor/local/share/gtk-doc/html/json-glib/json-glib.html +38 -0
  517. data/vendor/local/share/gtk-doc/html/json-glib/json-streams.html +63 -0
  518. data/vendor/local/share/gtk-doc/html/json-glib/json-tools.html +39 -0
  519. data/vendor/local/share/gtk-doc/html/json-glib/left.png +0 -0
  520. data/vendor/local/share/gtk-doc/html/json-glib/license.html +58 -0
  521. data/vendor/local/share/gtk-doc/html/json-glib/right.png +0 -0
  522. data/vendor/local/share/gtk-doc/html/json-glib/style.css +266 -0
  523. data/vendor/local/share/gtk-doc/html/json-glib/up.png +0 -0
  524. data/vendor/local/share/license/clutter/COPYING +502 -0
  525. data/vendor/local/share/license/cogl/COPYING +502 -0
  526. data/vendor/local/share/license/freeglut/AUTHORS +39 -0
  527. data/vendor/local/share/license/freeglut/COPYING +27 -0
  528. data/vendor/local/share/license/json-glib/COPYING +504 -0
  529. data/vendor/local/share/locale/an/LC_MESSAGES/cogl.mo +0 -0
  530. data/vendor/local/share/locale/ar/LC_MESSAGES/clutter-1.0.mo +0 -0
  531. data/vendor/local/share/locale/ar/LC_MESSAGES/cogl.mo +0 -0
  532. data/vendor/local/share/locale/as/LC_MESSAGES/clutter-1.0.mo +0 -0
  533. data/vendor/local/share/locale/as/LC_MESSAGES/cogl.mo +0 -0
  534. data/vendor/local/share/locale/ast/LC_MESSAGES/clutter-1.0.mo +0 -0
  535. data/vendor/local/share/locale/ast/LC_MESSAGES/cogl.mo +0 -0
  536. data/vendor/local/share/locale/az_IR/LC_MESSAGES/clutter-1.0.mo +0 -0
  537. data/vendor/local/share/locale/be/LC_MESSAGES/clutter-1.0.mo +0 -0
  538. data/vendor/local/share/locale/be/LC_MESSAGES/cogl.mo +0 -0
  539. data/vendor/local/share/locale/bg/LC_MESSAGES/clutter-1.0.mo +0 -0
  540. data/vendor/local/share/locale/bg/LC_MESSAGES/cogl.mo +0 -0
  541. data/vendor/local/share/locale/ca/LC_MESSAGES/clutter-1.0.mo +0 -0
  542. data/vendor/local/share/locale/ca/LC_MESSAGES/cogl.mo +0 -0
  543. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/clutter-1.0.mo +0 -0
  544. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/cogl.mo +0 -0
  545. data/vendor/local/share/locale/cs/LC_MESSAGES/clutter-1.0.mo +0 -0
  546. data/vendor/local/share/locale/cs/LC_MESSAGES/cogl.mo +0 -0
  547. data/vendor/local/share/locale/cs/LC_MESSAGES/json-glib-1.0.mo +0 -0
  548. data/vendor/local/share/locale/da/LC_MESSAGES/clutter-1.0.mo +0 -0
  549. data/vendor/local/share/locale/da/LC_MESSAGES/cogl.mo +0 -0
  550. data/vendor/local/share/locale/de/LC_MESSAGES/clutter-1.0.mo +0 -0
  551. data/vendor/local/share/locale/de/LC_MESSAGES/cogl.mo +0 -0
  552. data/vendor/local/share/locale/de/LC_MESSAGES/json-glib-1.0.mo +0 -0
  553. data/vendor/local/share/locale/el/LC_MESSAGES/clutter-1.0.mo +0 -0
  554. data/vendor/local/share/locale/el/LC_MESSAGES/cogl.mo +0 -0
  555. data/vendor/local/share/locale/el/LC_MESSAGES/json-glib-1.0.mo +0 -0
  556. data/vendor/local/share/locale/en_CA/LC_MESSAGES/cogl.mo +0 -0
  557. data/vendor/local/share/locale/en_GB/LC_MESSAGES/clutter-1.0.mo +0 -0
  558. data/vendor/local/share/locale/en_GB/LC_MESSAGES/cogl.mo +0 -0
  559. data/vendor/local/share/locale/eo/LC_MESSAGES/clutter-1.0.mo +0 -0
  560. data/vendor/local/share/locale/eo/LC_MESSAGES/cogl.mo +0 -0
  561. data/vendor/local/share/locale/es/LC_MESSAGES/clutter-1.0.mo +0 -0
  562. data/vendor/local/share/locale/es/LC_MESSAGES/cogl.mo +0 -0
  563. data/vendor/local/share/locale/es/LC_MESSAGES/json-glib-1.0.mo +0 -0
  564. data/vendor/local/share/locale/eu/LC_MESSAGES/cogl.mo +0 -0
  565. data/vendor/local/share/locale/fa/LC_MESSAGES/clutter-1.0.mo +0 -0
  566. data/vendor/local/share/locale/fa/LC_MESSAGES/cogl.mo +0 -0
  567. data/vendor/local/share/locale/fi/LC_MESSAGES/clutter-1.0.mo +0 -0
  568. data/vendor/local/share/locale/fr/LC_MESSAGES/clutter-1.0.mo +0 -0
  569. data/vendor/local/share/locale/fr/LC_MESSAGES/cogl.mo +0 -0
  570. data/vendor/local/share/locale/gl/LC_MESSAGES/clutter-1.0.mo +0 -0
  571. data/vendor/local/share/locale/gl/LC_MESSAGES/cogl.mo +0 -0
  572. data/vendor/local/share/locale/gl/LC_MESSAGES/json-glib-1.0.mo +0 -0
  573. data/vendor/local/share/locale/he/LC_MESSAGES/clutter-1.0.mo +0 -0
  574. data/vendor/local/share/locale/he/LC_MESSAGES/cogl.mo +0 -0
  575. data/vendor/local/share/locale/hi/LC_MESSAGES/clutter-1.0.mo +0 -0
  576. data/vendor/local/share/locale/hi/LC_MESSAGES/cogl.mo +0 -0
  577. data/vendor/local/share/locale/hu/LC_MESSAGES/cogl.mo +0 -0
  578. data/vendor/local/share/locale/id/LC_MESSAGES/clutter-1.0.mo +0 -0
  579. data/vendor/local/share/locale/id/LC_MESSAGES/cogl.mo +0 -0
  580. data/vendor/local/share/locale/id/LC_MESSAGES/json-glib-1.0.mo +0 -0
  581. data/vendor/local/share/locale/it/LC_MESSAGES/clutter-1.0.mo +0 -0
  582. data/vendor/local/share/locale/it/LC_MESSAGES/cogl.mo +0 -0
  583. data/vendor/local/share/locale/it/LC_MESSAGES/json-glib-1.0.mo +0 -0
  584. data/vendor/local/share/locale/ja/LC_MESSAGES/clutter-1.0.mo +0 -0
  585. data/vendor/local/share/locale/ja/LC_MESSAGES/cogl.mo +0 -0
  586. data/vendor/local/share/locale/km/LC_MESSAGES/clutter-1.0.mo +0 -0
  587. data/vendor/local/share/locale/km/LC_MESSAGES/cogl.mo +0 -0
  588. data/vendor/local/share/locale/kn/LC_MESSAGES/clutter-1.0.mo +0 -0
  589. data/vendor/local/share/locale/kn/LC_MESSAGES/cogl.mo +0 -0
  590. data/vendor/local/share/locale/ko/LC_MESSAGES/cogl.mo +0 -0
  591. data/vendor/local/share/locale/lt/LC_MESSAGES/clutter-1.0.mo +0 -0
  592. data/vendor/local/share/locale/lt/LC_MESSAGES/cogl.mo +0 -0
  593. data/vendor/local/share/locale/lv/LC_MESSAGES/clutter-1.0.mo +0 -0
  594. data/vendor/local/share/locale/lv/LC_MESSAGES/cogl.mo +0 -0
  595. data/vendor/local/share/locale/mk/LC_MESSAGES/clutter-1.0.mo +0 -0
  596. data/vendor/local/share/locale/ml/LC_MESSAGES/clutter-1.0.mo +0 -0
  597. data/vendor/local/share/locale/ml/LC_MESSAGES/cogl.mo +0 -0
  598. data/vendor/local/share/locale/nb/LC_MESSAGES/clutter-1.0.mo +0 -0
  599. data/vendor/local/share/locale/nb/LC_MESSAGES/cogl.mo +0 -0
  600. data/vendor/local/share/locale/nb/LC_MESSAGES/json-glib-1.0.mo +0 -0
  601. data/vendor/local/share/locale/nl/LC_MESSAGES/clutter-1.0.mo +0 -0
  602. data/vendor/local/share/locale/nl/LC_MESSAGES/cogl.mo +0 -0
  603. data/vendor/local/share/locale/or/LC_MESSAGES/clutter-1.0.mo +0 -0
  604. data/vendor/local/share/locale/or/LC_MESSAGES/cogl.mo +0 -0
  605. data/vendor/local/share/locale/pa/LC_MESSAGES/clutter-1.0.mo +0 -0
  606. data/vendor/local/share/locale/pa/LC_MESSAGES/cogl.mo +0 -0
  607. data/vendor/local/share/locale/pa/LC_MESSAGES/json-glib-1.0.mo +0 -0
  608. data/vendor/local/share/locale/pl/LC_MESSAGES/clutter-1.0.mo +0 -0
  609. data/vendor/local/share/locale/pl/LC_MESSAGES/cogl.mo +0 -0
  610. data/vendor/local/share/locale/pl/LC_MESSAGES/json-glib-1.0.mo +0 -0
  611. data/vendor/local/share/locale/ps/LC_MESSAGES/clutter-1.0.mo +0 -0
  612. data/vendor/local/share/locale/pt/LC_MESSAGES/clutter-1.0.mo +0 -0
  613. data/vendor/local/share/locale/pt/LC_MESSAGES/cogl.mo +0 -0
  614. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/clutter-1.0.mo +0 -0
  615. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/cogl.mo +0 -0
  616. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/json-glib-1.0.mo +0 -0
  617. data/vendor/local/share/locale/ro/LC_MESSAGES/clutter-1.0.mo +0 -0
  618. data/vendor/local/share/locale/ru/LC_MESSAGES/clutter-1.0.mo +0 -0
  619. data/vendor/local/share/locale/ru/LC_MESSAGES/cogl.mo +0 -0
  620. data/vendor/local/share/locale/ru/LC_MESSAGES/json-glib-1.0.mo +0 -0
  621. data/vendor/local/share/locale/sk/LC_MESSAGES/clutter-1.0.mo +0 -0
  622. data/vendor/local/share/locale/sk/LC_MESSAGES/cogl.mo +0 -0
  623. data/vendor/local/share/locale/sl/LC_MESSAGES/clutter-1.0.mo +0 -0
  624. data/vendor/local/share/locale/sl/LC_MESSAGES/cogl.mo +0 -0
  625. data/vendor/local/share/locale/sl/LC_MESSAGES/json-glib-1.0.mo +0 -0
  626. data/vendor/local/share/locale/sr/LC_MESSAGES/clutter-1.0.mo +0 -0
  627. data/vendor/local/share/locale/sr/LC_MESSAGES/cogl.mo +0 -0
  628. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/clutter-1.0.mo +0 -0
  629. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/cogl.mo +0 -0
  630. data/vendor/local/share/locale/sv/LC_MESSAGES/clutter-1.0.mo +0 -0
  631. data/vendor/local/share/locale/sv/LC_MESSAGES/cogl.mo +0 -0
  632. data/vendor/local/share/locale/sv/LC_MESSAGES/json-glib-1.0.mo +0 -0
  633. data/vendor/local/share/locale/ta/LC_MESSAGES/clutter-1.0.mo +0 -0
  634. data/vendor/local/share/locale/ta/LC_MESSAGES/cogl.mo +0 -0
  635. data/vendor/local/share/locale/te/LC_MESSAGES/clutter-1.0.mo +0 -0
  636. data/vendor/local/share/locale/te/LC_MESSAGES/cogl.mo +0 -0
  637. data/vendor/local/share/locale/tg/LC_MESSAGES/clutter-1.0.mo +0 -0
  638. data/vendor/local/share/locale/th/LC_MESSAGES/cogl.mo +0 -0
  639. data/vendor/local/share/locale/tr/LC_MESSAGES/clutter-1.0.mo +0 -0
  640. data/vendor/local/share/locale/tr/LC_MESSAGES/cogl.mo +0 -0
  641. data/vendor/local/share/locale/tr/LC_MESSAGES/json-glib-1.0.mo +0 -0
  642. data/vendor/local/share/locale/ug/LC_MESSAGES/clutter-1.0.mo +0 -0
  643. data/vendor/local/share/locale/ug/LC_MESSAGES/cogl.mo +0 -0
  644. data/vendor/local/share/locale/uk/LC_MESSAGES/clutter-1.0.mo +0 -0
  645. data/vendor/local/share/locale/uk/LC_MESSAGES/cogl.mo +0 -0
  646. data/vendor/local/share/locale/ur/LC_MESSAGES/clutter-1.0.mo +0 -0
  647. data/vendor/local/share/locale/vi/LC_MESSAGES/cogl.mo +0 -0
  648. data/vendor/local/share/locale/vi/LC_MESSAGES/json-glib-1.0.mo +0 -0
  649. data/vendor/local/share/locale/yi/LC_MESSAGES/clutter-1.0.mo +0 -0
  650. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/clutter-1.0.mo +0 -0
  651. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/cogl.mo +0 -0
  652. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/clutter-1.0.mo +0 -0
  653. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/cogl.mo +0 -0
  654. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/clutter-1.0.mo +0 -0
  655. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/cogl.mo +0 -0
  656. metadata +747 -0
@@ -0,0 +1,151 @@
1
+ /*
2
+ * Cogl
3
+ *
4
+ * An object oriented GL/GLES Abstraction/Utility Layer
5
+ *
6
+ * Copyright (C) 2008,2009 Intel Corporation.
7
+ *
8
+ * This library is free software; you can redistribute it and/or
9
+
10
+ * modify it under the terms of the GNU Lesser General Public
11
+ * License as published by the Free Software Foundation; either
12
+ * version 2 of the License, or (at your option) any later version.
13
+ *
14
+ * This library is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
+ * Lesser General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU Lesser General Public
20
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ *
23
+ */
24
+
25
+ #ifndef __COGL_H__
26
+ #define __COGL_H__
27
+
28
+ #define __COGL_H_INSIDE__
29
+
30
+ #ifdef COGL_ENABLE_EXPERIMENTAL_2_0_API
31
+ #ifndef COGL_ENABLE_EXPERIMENTAL_API
32
+ #define COGL_ENABLE_EXPERIMENTAL_API
33
+ #endif
34
+ #endif
35
+
36
+ /* We currently keep gtype integration delimited in case we eventually
37
+ * want to split it out into a separate utility library when Cogl
38
+ * becomes a standalone project. (like cairo-gobject.so)
39
+ */
40
+ #define _COGL_SUPPORTS_GTYPE_INTEGRATION
41
+
42
+ /*
43
+ * API common to the 1.x and 2.0 api...
44
+ */
45
+
46
+ #include <cogl/cogl-defines.h>
47
+ #include <cogl/cogl-error.h>
48
+
49
+ #include <cogl/cogl-object.h>
50
+ #include <cogl/cogl1-context.h>
51
+ #include <cogl/cogl-bitmap.h>
52
+ #include <cogl/cogl-color.h>
53
+ #include <cogl/cogl-matrix.h>
54
+ #include <cogl/cogl-matrix-stack.h>
55
+ #include <cogl/cogl-offscreen.h>
56
+ #include <cogl/cogl-primitives.h>
57
+ #include <cogl/cogl-texture.h>
58
+ #include <cogl/cogl-types.h>
59
+ #include <cogl/cogl-version.h>
60
+
61
+ /*
62
+ * 1.x only api...
63
+ */
64
+ #ifndef COGL_ENABLE_EXPERIMENTAL_2_0_API
65
+ #include <cogl/cogl-path.h>
66
+ #include <cogl/cogl-clip-state.h>
67
+ #include <cogl/cogl-vertex-buffer.h>
68
+ #include <cogl/cogl-enum-types.h>
69
+ #include <cogl/cogl-fixed.h>
70
+ #include <cogl/cogl-material-compat.h>
71
+ #include <cogl/cogl-shader.h>
72
+ #endif
73
+
74
+ /*
75
+ * 2.0 api that's compatible with the 1.x api...
76
+ */
77
+ #if defined (COGL_ENABLE_EXPERIMENTAL_API)
78
+ #include <cogl/cogl-swap-chain.h>
79
+ #include <cogl/cogl-renderer.h>
80
+ #include <cogl/cogl-output.h>
81
+ #include <cogl/cogl-display.h>
82
+ #include <cogl/cogl-context.h>
83
+ #include <cogl/cogl-buffer.h>
84
+ #include <cogl/cogl-pixel-buffer.h>
85
+ #include <cogl/cogl-vector.h>
86
+ #include <cogl/cogl-euler.h>
87
+ #include <cogl/cogl-quaternion.h>
88
+ #include <cogl/cogl-texture-2d.h>
89
+ #include <cogl/cogl-texture-2d-gl.h>
90
+ #include <cogl/cogl-texture-rectangle.h>
91
+ #include <cogl/cogl-texture-3d.h>
92
+ #include <cogl/cogl-texture-2d-sliced.h>
93
+ #include <cogl/cogl-sub-texture.h>
94
+ #include <cogl/cogl-meta-texture.h>
95
+ #include <cogl/cogl-primitive-texture.h>
96
+ #include <cogl/cogl-index-buffer.h>
97
+ #include <cogl/cogl-attribute-buffer.h>
98
+ #include <cogl/cogl-indices.h>
99
+ #include <cogl/cogl-attribute.h>
100
+ #include <cogl/cogl-primitive.h>
101
+ #include <cogl/cogl-depth-state.h>
102
+ #include <cogl/cogl-pipeline.h>
103
+ #include <cogl/cogl-pipeline-state.h>
104
+ #include <cogl/cogl-pipeline-layer-state.h>
105
+ #include <cogl/cogl-snippet.h>
106
+ #include <cogl/cogl-framebuffer.h>
107
+ #include <cogl/cogl-onscreen.h>
108
+ #include <cogl/cogl-frame-info.h>
109
+ #include <cogl/cogl-poll.h>
110
+ #if defined (COGL_HAS_EGL_PLATFORM_KMS_SUPPORT)
111
+ #include <cogl/cogl-kms-renderer.h>
112
+ #include <cogl/cogl-kms-display.h>
113
+ #endif
114
+ #ifdef COGL_HAS_WIN32_SUPPORT
115
+ #include <cogl/cogl-win32-renderer.h>
116
+ #endif
117
+ #ifdef COGL_HAS_GLIB_SUPPORT
118
+ #include <cogl/cogl-glib-source.h>
119
+ #endif
120
+ /* XXX: This will definitly go away once all the Clutter winsys
121
+ * code has been migrated down into Cogl! */
122
+ #include <cogl/cogl-clutter.h>
123
+ #endif
124
+ #ifdef COGL_HAS_SDL_SUPPORT
125
+ #include <cogl/cogl-sdl.h>
126
+ #endif
127
+
128
+ /*
129
+ * 2.0 only api...
130
+ */
131
+ #ifdef COGL_ENABLE_EXPERIMENTAL_2_0_API
132
+ #include <cogl/cogl2-path.h>
133
+ /* This header will be removed in Cogl 1.12 */
134
+ #include <cogl/cogl2-compatibility.h>
135
+ #endif
136
+
137
+ /*
138
+ * API deprecations
139
+ */
140
+ #include <cogl/cogl-deprecated.h>
141
+
142
+ /**
143
+ * SECTION:cogl
144
+ * @short_description: General purpose API
145
+ *
146
+ * General utility functions for COGL.
147
+ */
148
+
149
+ #undef __COGL_H_INSIDE__
150
+
151
+ #endif /* __COGL_H__ */
@@ -0,0 +1,1169 @@
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, see
20
+ * <http://www.gnu.org/licenses/>.
21
+ *
22
+ * Authors:
23
+ * Robert Bragg <robert@linux.intel.com>
24
+ *
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_1_CONTEXT_H__
32
+ #define __COGL_1_CONTEXT_H__
33
+
34
+ #include <cogl/cogl-types.h>
35
+ #include <cogl/cogl-texture.h>
36
+ #include <cogl/cogl-framebuffer.h>
37
+
38
+ COGL_BEGIN_DECLS
39
+
40
+ /**
41
+ * cogl_get_option_group:
42
+ *
43
+ * Retrieves the #GOptionGroup used by Cogl to parse the command
44
+ * line options. Clutter uses this to handle the Cogl command line
45
+ * options during its initialization process.
46
+ *
47
+ * Return value: a #GOptionGroup
48
+ *
49
+ * Since: 1.0
50
+ */
51
+ GOptionGroup *
52
+ cogl_get_option_group (void);
53
+
54
+ /* Misc */
55
+ /**
56
+ * cogl_get_features:
57
+ *
58
+ * Returns all of the features supported by COGL.
59
+ *
60
+ * Return value: A logical OR of all the supported COGL features.
61
+ *
62
+ * Since: 0.8
63
+ */
64
+ CoglFeatureFlags
65
+ cogl_get_features (void);
66
+
67
+ /**
68
+ * cogl_features_available:
69
+ * @features: A bitmask of features to check for
70
+ *
71
+ * Checks whether the given COGL features are available. Multiple
72
+ * features can be checked for by or-ing them together with the '|'
73
+ * operator. %TRUE is only returned if all of the requested features
74
+ * are available.
75
+ *
76
+ * Return value: %TRUE if the features are available, %FALSE otherwise.
77
+ */
78
+ CoglBool
79
+ cogl_features_available (CoglFeatureFlags features);
80
+
81
+ /**
82
+ * cogl_get_proc_address:
83
+ * @name: the name of the function.
84
+ *
85
+ * Gets a pointer to a given GL or GL ES extension function. This acts
86
+ * as a wrapper around glXGetProcAddress() or whatever is the
87
+ * appropriate function for the current backend.
88
+ *
89
+ * <note>This function should not be used to query core opengl API
90
+ * symbols since eglGetProcAddress for example doesn't allow this and
91
+ * and may return a junk pointer if you do.</note>
92
+ *
93
+ * Return value: a pointer to the requested function or %NULL if the
94
+ * function is not available.
95
+ */
96
+ CoglFuncPtr
97
+ cogl_get_proc_address (const char *name);
98
+
99
+ #ifndef COGL_DISABLE_DEPRECATED
100
+
101
+ /**
102
+ * cogl_check_extension:
103
+ * @name: extension to check for
104
+ * @ext: list of extensions
105
+ *
106
+ * Check whether @name occurs in list of extensions in @ext.
107
+ *
108
+ * Return value: %TRUE if the extension occurs in the list, %FALSE otherwise.
109
+ *
110
+ * Deprecated: 1.2: OpenGL is an implementation detail for Cogl and so it's
111
+ * not appropriate to expose OpenGL extensions through the Cogl API. This
112
+ * function can be replaced by the following equivalent code:
113
+ * |[
114
+ * CoglBool retval = (strstr (ext, name) != NULL) ? TRUE : FALSE;
115
+ * ]|
116
+ */
117
+ CoglBool
118
+ cogl_check_extension (const char *name,
119
+ const char *ext) G_GNUC_DEPRECATED;
120
+
121
+ #endif /* COGL_DISABLE_DEPRECATED */
122
+
123
+ /**
124
+ * cogl_get_bitmasks:
125
+ * @red: (out): Return location for the number of red bits or %NULL
126
+ * @green: (out): Return location for the number of green bits or %NULL
127
+ * @blue: (out): Return location for the number of blue bits or %NULL
128
+ * @alpha: (out): Return location for the number of alpha bits or %NULL
129
+ *
130
+ * Gets the number of bitplanes used for each of the color components
131
+ * in the color buffer. Pass %NULL for any of the arguments if the
132
+ * value is not required.
133
+ */
134
+ void
135
+ cogl_get_bitmasks (int *red,
136
+ int *green,
137
+ int *blue,
138
+ int *alpha);
139
+
140
+ /**
141
+ * cogl_perspective:
142
+ * @fovy: Vertical field of view angle in degrees.
143
+ * @aspect: The (width over height) aspect ratio for display
144
+ * @z_near: The distance to the near clipping plane (Must be positive)
145
+ * @z_far: The distance to the far clipping plane (Must be positive)
146
+ *
147
+ * Replaces the current projection matrix with a perspective matrix
148
+ * based on the provided values.
149
+ *
150
+ * <note>You should be careful not to have to great a @z_far / @z_near
151
+ * ratio since that will reduce the effectiveness of depth testing
152
+ * since there wont be enough precision to identify the depth of
153
+ * objects near to each other.</note>
154
+ */
155
+ void
156
+ cogl_perspective (float fovy,
157
+ float aspect,
158
+ float z_near,
159
+ float z_far);
160
+
161
+ /**
162
+ * cogl_frustum:
163
+ * @left: X position of the left clipping plane where it
164
+ * intersects the near clipping plane
165
+ * @right: X position of the right clipping plane where it
166
+ * intersects the near clipping plane
167
+ * @bottom: Y position of the bottom clipping plane where it
168
+ * intersects the near clipping plane
169
+ * @top: Y position of the top clipping plane where it intersects
170
+ * the near clipping plane
171
+ * @z_near: The distance to the near clipping plane (Must be positive)
172
+ * @z_far: The distance to the far clipping plane (Must be positive)
173
+ *
174
+ * Replaces the current projection matrix with a perspective matrix
175
+ * for a given viewing frustum defined by 4 side clip planes that
176
+ * all cross through the origin and 2 near and far clip planes.
177
+ *
178
+ * Since: 0.8.2
179
+ */
180
+ void
181
+ cogl_frustum (float left,
182
+ float right,
183
+ float bottom,
184
+ float top,
185
+ float z_near,
186
+ float z_far);
187
+
188
+ /**
189
+ * cogl_ortho:
190
+ * @left: The coordinate for the left clipping plane
191
+ * @right: The coordinate for the right clipping plane
192
+ * @bottom: The coordinate for the bottom clipping plane
193
+ * @top: The coordinate for the top clipping plane
194
+ * @near: The <emphasis>distance</emphasis> to the near clipping
195
+ * plane (negative if the plane is behind the viewer)
196
+ * @far: The <emphasis>distance</emphasis> for the far clipping
197
+ * plane (negative if the plane is behind the viewer)
198
+ *
199
+ * Replaces the current projection matrix with an orthographic projection
200
+ * matrix. See <xref linkend="cogl-ortho-matrix"/> to see how the matrix is
201
+ * calculated.
202
+ *
203
+ * <figure id="cogl-ortho-matrix">
204
+ * <title></title>
205
+ * <graphic fileref="cogl_ortho.png" format="PNG"/>
206
+ * </figure>
207
+ *
208
+ * <note>This function copies the arguments from OpenGL's glOrtho() even
209
+ * though they are unnecessarily confusing due to the z near and z far
210
+ * arguments actually being a "distance" from the origin, where
211
+ * negative values are behind the viewer, instead of coordinates for
212
+ * the z clipping planes which would have been consistent with the
213
+ * left, right bottom and top arguments.</note>
214
+ *
215
+ * Since: 1.0
216
+ */
217
+ void
218
+ cogl_ortho (float left,
219
+ float right,
220
+ float bottom,
221
+ float top,
222
+ float near,
223
+ float far);
224
+
225
+ #ifndef COGL_DISABLE_DEPRECATED
226
+
227
+ /**
228
+ * cogl_viewport:
229
+ * @width: Width of the viewport
230
+ * @height: Height of the viewport
231
+ *
232
+ * Replace the current viewport with the given values.
233
+ *
234
+ * Since: 0.8.2
235
+ *
236
+ * Deprecated: 1.2: Use cogl_set_viewport() instead
237
+ */
238
+ void
239
+ cogl_viewport (unsigned int width,
240
+ unsigned int height) G_GNUC_DEPRECATED;
241
+
242
+ #endif /* COGL_DISABLE_DEPRECATED */
243
+
244
+ /**
245
+ * cogl_set_viewport:
246
+ * @x: X offset of the viewport
247
+ * @y: Y offset of the viewport
248
+ * @width: Width of the viewport
249
+ * @height: Height of the viewport
250
+ *
251
+ * Replaces the current viewport with the given values.
252
+ *
253
+ * Since: 1.2
254
+ */
255
+ void
256
+ cogl_set_viewport (int x,
257
+ int y,
258
+ int width,
259
+ int height);
260
+
261
+ /**
262
+ * cogl_push_matrix:
263
+ *
264
+ * Stores the current model-view matrix on the matrix stack. The matrix
265
+ * can later be restored with cogl_pop_matrix().
266
+ */
267
+ void
268
+ cogl_push_matrix (void);
269
+
270
+ /**
271
+ * cogl_pop_matrix:
272
+ *
273
+ * Restores the current model-view matrix from the matrix stack.
274
+ */
275
+ void
276
+ cogl_pop_matrix (void);
277
+
278
+ /**
279
+ * cogl_scale:
280
+ * @x: Amount to scale along the x-axis
281
+ * @y: Amount to scale along the y-axis
282
+ * @z: Amount to scale along the z-axis
283
+ *
284
+ * Multiplies the current model-view matrix by one that scales the x,
285
+ * y and z axes by the given values.
286
+ */
287
+ void
288
+ cogl_scale (float x,
289
+ float y,
290
+ float z);
291
+
292
+ /**
293
+ * cogl_translate:
294
+ * @x: Distance to translate along the x-axis
295
+ * @y: Distance to translate along the y-axis
296
+ * @z: Distance to translate along the z-axis
297
+ *
298
+ * Multiplies the current model-view matrix by one that translates the
299
+ * model along all three axes according to the given values.
300
+ */
301
+ void
302
+ cogl_translate (float x,
303
+ float y,
304
+ float z);
305
+
306
+ /**
307
+ * cogl_rotate:
308
+ * @angle: Angle in degrees to rotate.
309
+ * @x: X-component of vertex to rotate around.
310
+ * @y: Y-component of vertex to rotate around.
311
+ * @z: Z-component of vertex to rotate around.
312
+ *
313
+ * Multiplies the current model-view matrix by one that rotates the
314
+ * model around the vertex specified by @x, @y and @z. The rotation
315
+ * follows the right-hand thumb rule so for example rotating by 10
316
+ * degrees about the vertex (0, 0, 1) causes a small counter-clockwise
317
+ * rotation.
318
+ */
319
+ void
320
+ cogl_rotate (float angle,
321
+ float x,
322
+ float y,
323
+ float z);
324
+
325
+ /**
326
+ * cogl_transform:
327
+ * @matrix: the matrix to multiply with the current model-view
328
+ *
329
+ * Multiplies the current model-view matrix by the given matrix.
330
+ *
331
+ * Since: 1.4
332
+ */
333
+ void
334
+ cogl_transform (const CoglMatrix *matrix);
335
+
336
+ /**
337
+ * cogl_get_modelview_matrix:
338
+ * @matrix: (out): return location for the model-view matrix
339
+ *
340
+ * Stores the current model-view matrix in @matrix.
341
+ */
342
+ void
343
+ cogl_get_modelview_matrix (CoglMatrix *matrix);
344
+
345
+ /**
346
+ * cogl_set_modelview_matrix:
347
+ * @matrix: the new model-view matrix
348
+ *
349
+ * Loads @matrix as the new model-view matrix.
350
+ */
351
+ void
352
+ cogl_set_modelview_matrix (CoglMatrix *matrix);
353
+
354
+ /**
355
+ * cogl_get_projection_matrix:
356
+ * @matrix: (out): return location for the projection matrix
357
+ *
358
+ * Stores the current projection matrix in @matrix.
359
+ */
360
+ void
361
+ cogl_get_projection_matrix (CoglMatrix *matrix);
362
+
363
+ /**
364
+ * cogl_set_projection_matrix:
365
+ * @matrix: the new projection matrix
366
+ *
367
+ * Loads matrix as the new projection matrix.
368
+ */
369
+ void
370
+ cogl_set_projection_matrix (CoglMatrix *matrix);
371
+
372
+ /**
373
+ * cogl_get_viewport:
374
+ * @v: (out) (array fixed-size=4): pointer to a 4 element array
375
+ * of #float<!-- -->s to receive the viewport dimensions.
376
+ *
377
+ * Stores the current viewport in @v. @v[0] and @v[1] get the x and y
378
+ * position of the viewport and @v[2] and @v[3] get the width and
379
+ * height.
380
+ */
381
+ void
382
+ cogl_get_viewport (float v[4]);
383
+
384
+ /**
385
+ * cogl_set_depth_test_enabled:
386
+ * @setting: %TRUE to enable depth testing or %FALSE to disable.
387
+ *
388
+ * Sets whether depth testing is enabled. If it is disabled then the
389
+ * order that actors are layered on the screen depends solely on the
390
+ * order specified using clutter_actor_raise() and
391
+ * clutter_actor_lower(), otherwise it will also take into account the
392
+ * actor's depth. Depth testing is disabled by default.
393
+ *
394
+ * Deprecated: 1.4: Use cogl_material_set_depth_test_enabled()
395
+ * instead.
396
+ */
397
+ void
398
+ cogl_set_depth_test_enabled (CoglBool setting);
399
+
400
+ /**
401
+ * cogl_get_depth_test_enabled:
402
+ *
403
+ * Queries if depth testing has been enabled via cogl_set_depth_test_enable()
404
+ *
405
+ * Return value: %TRUE if depth testing is enabled, and %FALSE otherwise
406
+ *
407
+ * Deprecated: 1.4: Use cogl_material_get_depth_test_enabled()
408
+ * instead.
409
+ */
410
+ CoglBool
411
+ cogl_get_depth_test_enabled (void);
412
+
413
+ /**
414
+ * cogl_set_backface_culling_enabled:
415
+ * @setting: %TRUE to enable backface culling or %FALSE to disable.
416
+ *
417
+ * Sets whether textures positioned so that their backface is showing
418
+ * should be hidden. This can be used to efficiently draw two-sided
419
+ * textures or fully closed cubes without enabling depth testing. This
420
+ * only affects calls to the cogl_rectangle* family of functions and
421
+ * cogl_vertex_buffer_draw*. Backface culling is disabled by default.
422
+ */
423
+ void
424
+ cogl_set_backface_culling_enabled (CoglBool setting);
425
+
426
+ /**
427
+ * cogl_get_backface_culling_enabled:
428
+ *
429
+ * Queries if backface culling has been enabled via
430
+ * cogl_set_backface_culling_enabled()
431
+ *
432
+ * Return value: %TRUE if backface culling is enabled, and %FALSE otherwise
433
+ */
434
+ CoglBool
435
+ cogl_get_backface_culling_enabled (void);
436
+
437
+ /**
438
+ * cogl_set_fog:
439
+ * @fog_color: The color of the fog
440
+ * @mode: A #CoglFogMode that determines the equation used to calculate the
441
+ * fogging blend factor.
442
+ * @density: Used by %COGL_FOG_MODE_EXPONENTIAL and by
443
+ * %COGL_FOG_MODE_EXPONENTIAL_SQUARED equations.
444
+ * @z_near: Position along Z axis where no fogging should be applied
445
+ * @z_far: Position along Z axis where full fogging should be applied
446
+ *
447
+ * Enables fogging. Fogging causes vertices that are further away from the eye
448
+ * to be rendered with a different color. The color is determined according to
449
+ * the chosen fog mode; at it's simplest the color is linearly interpolated so
450
+ * that vertices at @z_near are drawn fully with their original color and
451
+ * vertices at @z_far are drawn fully with @fog_color. Fogging will remain
452
+ * enabled until you call cogl_disable_fog().
453
+ *
454
+ * <note>The fogging functions only work correctly when primitives use
455
+ * unmultiplied alpha colors. By default Cogl will premultiply textures
456
+ * and cogl_set_source_color() will premultiply colors, so unless you
457
+ * explicitly load your textures requesting an unmultiplied internal format
458
+ * and use cogl_material_set_color() you can only use fogging with fully
459
+ * opaque primitives. This might improve in the future when we can depend
460
+ * on fragment shaders.</note>
461
+ */
462
+ void
463
+ cogl_set_fog (const CoglColor *fog_color,
464
+ CoglFogMode mode,
465
+ float density,
466
+ float z_near,
467
+ float z_far);
468
+
469
+ /**
470
+ * cogl_disable_fog:
471
+ *
472
+ * This function disables fogging, so primitives drawn afterwards will not be
473
+ * blended with any previously set fog color.
474
+ */
475
+ void
476
+ cogl_disable_fog (void);
477
+
478
+ /**
479
+ * cogl_clear:
480
+ * @color: Background color to clear to
481
+ * @buffers: A mask of #CoglBufferBit<!-- -->'s identifying which auxiliary
482
+ * buffers to clear
483
+ *
484
+ * Clears all the auxiliary buffers identified in the @buffers mask, and if
485
+ * that includes the color buffer then the specified @color is used.
486
+ */
487
+ void
488
+ cogl_clear (const CoglColor *color,
489
+ unsigned long buffers);
490
+
491
+ /**
492
+ * cogl_set_source:
493
+ * @material: A #CoglMaterial
494
+ *
495
+ * This function changes the material at the top of the source stack.
496
+ * The material at the top of this stack defines the GPU state used to
497
+ * process subsequent primitives, such as rectangles drawn with
498
+ * cogl_rectangle() or vertices drawn using cogl_vertex_buffer_draw().
499
+ *
500
+ * Since: 1.0
501
+ */
502
+ void
503
+ cogl_set_source (void *material);
504
+
505
+ /**
506
+ * cogl_get_source:
507
+ *
508
+ * Returns the current source material as previously set using
509
+ * cogl_set_source().
510
+ *
511
+ * <note>You should typically consider the returned material immutable
512
+ * and not try to change any of its properties unless you own a
513
+ * reference to that material. At times you may be able to get a
514
+ * reference to an internally managed materials and the result of
515
+ * modifying such materials is undefined.</note>
516
+ *
517
+ * Return value: The current source material.
518
+ *
519
+ * Since: 1.6
520
+ */
521
+ void *
522
+ cogl_get_source (void);
523
+
524
+ /**
525
+ * cogl_push_source:
526
+ * @material: A #CoglMaterial
527
+ *
528
+ * Pushes the given @material to the top of the source stack. The
529
+ * material at the top of this stack defines the GPU state used to
530
+ * process later primitives as defined by cogl_set_source().
531
+ *
532
+ * Since: 1.6
533
+ */
534
+ void
535
+ cogl_push_source (void *material);
536
+
537
+ /**
538
+ * cogl_pop_source:
539
+ *
540
+ * Removes the material at the top of the source stack. The material
541
+ * at the top of this stack defines the GPU state used to process
542
+ * later primitives as defined by cogl_set_source().
543
+ *
544
+ * Since: 1.6
545
+ */
546
+ void
547
+ cogl_pop_source (void);
548
+
549
+ /**
550
+ * cogl_set_source_color:
551
+ * @color: a #CoglColor
552
+ *
553
+ * This is a convenience function for creating a solid fill source material
554
+ * from the given color. This color will be used for any subsequent drawing
555
+ * operation.
556
+ *
557
+ * The color will be premultiplied by Cogl, so the color should be
558
+ * non-premultiplied. For example: use (1.0, 0.0, 0.0, 0.5) for
559
+ * semi-transparent red.
560
+ *
561
+ * See also cogl_set_source_color4ub() and cogl_set_source_color4f()
562
+ * if you already have the color components.
563
+ *
564
+ * Since: 1.0
565
+ */
566
+ void
567
+ cogl_set_source_color (const CoglColor *color);
568
+
569
+ /**
570
+ * cogl_set_source_color4ub:
571
+ * @red: value of the red channel, between 0 and 255
572
+ * @green: value of the green channel, between 0 and 255
573
+ * @blue: value of the blue channel, between 0 and 255
574
+ * @alpha: value of the alpha channel, between 0 and 255
575
+ *
576
+ * This is a convenience function for creating a solid fill source material
577
+ * from the given color using unsigned bytes for each component. This
578
+ * color will be used for any subsequent drawing operation.
579
+ *
580
+ * The value for each component is an unsigned byte in the range
581
+ * between 0 and 255.
582
+ *
583
+ * Since: 1.0
584
+ */
585
+ void
586
+ cogl_set_source_color4ub (uint8_t red,
587
+ uint8_t green,
588
+ uint8_t blue,
589
+ uint8_t alpha);
590
+
591
+ /**
592
+ * cogl_set_source_color4f:
593
+ * @red: value of the red channel, between 0 and %1.0
594
+ * @green: value of the green channel, between 0 and %1.0
595
+ * @blue: value of the blue channel, between 0 and %1.0
596
+ * @alpha: value of the alpha channel, between 0 and %1.0
597
+ *
598
+ * This is a convenience function for creating a solid fill source material
599
+ * from the given color using normalized values for each component. This color
600
+ * will be used for any subsequent drawing operation.
601
+ *
602
+ * The value for each component is a fixed point number in the range
603
+ * between 0 and %1.0. If the values passed in are outside that
604
+ * range, they will be clamped.
605
+ *
606
+ * Since: 1.0
607
+ */
608
+ void
609
+ cogl_set_source_color4f (float red,
610
+ float green,
611
+ float blue,
612
+ float alpha);
613
+
614
+ /**
615
+ * cogl_set_source_texture:
616
+ * @texture: The #CoglTexture you want as your source
617
+ *
618
+ * This is a convenience function for creating a material with the first
619
+ * layer set to @texture and setting that material as the source with
620
+ * cogl_set_source.
621
+ *
622
+ * Note: There is no interaction between calls to cogl_set_source_color
623
+ * and cogl_set_source_texture. If you need to blend a texture with a color then
624
+ * you can create a simple material like this:
625
+ * <programlisting>
626
+ * material = cogl_material_new ();
627
+ * cogl_material_set_color4ub (material, 0xff, 0x00, 0x00, 0x80);
628
+ * cogl_material_set_layer (material, 0, tex_handle);
629
+ * cogl_set_source (material);
630
+ * </programlisting>
631
+ *
632
+ * Since: 1.0
633
+ */
634
+ void
635
+ cogl_set_source_texture (CoglTexture *texture);
636
+
637
+
638
+ /**
639
+ * SECTION:cogl-clipping
640
+ * @short_description: Fuctions for manipulating a stack of clipping regions
641
+ *
642
+ * To support clipping your geometry to rectangles or paths Cogl exposes a
643
+ * stack based API whereby each clip region you push onto the stack is
644
+ * intersected with the previous region.
645
+ */
646
+
647
+ #ifndef COGL_DISABLE_DEPRECATED
648
+
649
+ /**
650
+ * cogl_clip_push_window_rect:
651
+ * @x_offset: left edge of the clip rectangle in window coordinates
652
+ * @y_offset: top edge of the clip rectangle in window coordinates
653
+ * @width: width of the clip rectangle
654
+ * @height: height of the clip rectangle
655
+ *
656
+ * Specifies a rectangular clipping area for all subsequent drawing
657
+ * operations. Any drawing commands that extend outside the rectangle
658
+ * will be clipped so that only the portion inside the rectangle will
659
+ * be displayed. The rectangle dimensions are not transformed by the
660
+ * current model-view matrix.
661
+ *
662
+ * The rectangle is intersected with the current clip region. To undo
663
+ * the effect of this function, call cogl_clip_pop().
664
+ *
665
+ * Deprecated: 1.2: Use cogl_clip_push_window_rectangle() instead
666
+ */
667
+ void
668
+ cogl_clip_push_window_rect (float x_offset,
669
+ float y_offset,
670
+ float width,
671
+ float height) G_GNUC_DEPRECATED;
672
+
673
+ #endif /* COGL_DISABLE_DEPRECATED */
674
+
675
+ /**
676
+ * cogl_clip_push_window_rectangle:
677
+ * @x_offset: left edge of the clip rectangle in window coordinates
678
+ * @y_offset: top edge of the clip rectangle in window coordinates
679
+ * @width: width of the clip rectangle
680
+ * @height: height of the clip rectangle
681
+ *
682
+ * Specifies a rectangular clipping area for all subsequent drawing
683
+ * operations. Any drawing commands that extend outside the rectangle
684
+ * will be clipped so that only the portion inside the rectangle will
685
+ * be displayed. The rectangle dimensions are not transformed by the
686
+ * current model-view matrix.
687
+ *
688
+ * The rectangle is intersected with the current clip region. To undo
689
+ * the effect of this function, call cogl_clip_pop().
690
+ *
691
+ * Since: 1.2
692
+ */
693
+ void
694
+ cogl_clip_push_window_rectangle (int x_offset,
695
+ int y_offset,
696
+ int width,
697
+ int height);
698
+
699
+ #ifndef COGL_DISABLE_DEPRECATED
700
+
701
+ /**
702
+ * cogl_clip_push:
703
+ * @x_offset: left edge of the clip rectangle
704
+ * @y_offset: top edge of the clip rectangle
705
+ * @width: width of the clip rectangle
706
+ * @height: height of the clip rectangle
707
+ *
708
+ * Specifies a rectangular clipping area for all subsequent drawing
709
+ * operations. Any drawing commands that extend outside the rectangle
710
+ * will be clipped so that only the portion inside the rectangle will
711
+ * be displayed. The rectangle dimensions are transformed by the
712
+ * current model-view matrix.
713
+ *
714
+ * The rectangle is intersected with the current clip region. To undo
715
+ * the effect of this function, call cogl_clip_pop().
716
+ *
717
+ * Deprecated: 1.2: The x, y, width, height arguments are inconsistent
718
+ * with other API that specify rectangles in model space, and when used
719
+ * with a coordinate space that puts the origin at the center and y+
720
+ * extending up, it's awkward to use. Please use cogl_clip_push_rectangle()
721
+ * instead
722
+ */
723
+ void
724
+ cogl_clip_push (float x_offset,
725
+ float y_offset,
726
+ float width,
727
+ float height) G_GNUC_DEPRECATED;
728
+
729
+ #endif /* COGL_DISABLE_DEPRECATED */
730
+
731
+ /**
732
+ * cogl_clip_push_rectangle:
733
+ * @x0: x coordinate for top left corner of the clip rectangle
734
+ * @y0: y coordinate for top left corner of the clip rectangle
735
+ * @x1: x coordinate for bottom right corner of the clip rectangle
736
+ * @y1: y coordinate for bottom right corner of the clip rectangle
737
+ *
738
+ * Specifies a rectangular clipping area for all subsequent drawing
739
+ * operations. Any drawing commands that extend outside the rectangle
740
+ * will be clipped so that only the portion inside the rectangle will
741
+ * be displayed. The rectangle dimensions are transformed by the
742
+ * current model-view matrix.
743
+ *
744
+ * The rectangle is intersected with the current clip region. To undo
745
+ * the effect of this function, call cogl_clip_pop().
746
+ *
747
+ * Since: 1.2
748
+ */
749
+ void
750
+ cogl_clip_push_rectangle (float x0,
751
+ float y0,
752
+ float x1,
753
+ float y1);
754
+
755
+ /**
756
+ * cogl_clip_push_from_path_preserve:
757
+ *
758
+ * Sets a new clipping area using the current path. The current path
759
+ * is then cleared. The clipping area is intersected with the previous
760
+ * clipping area. To restore the previous clipping area, call
761
+ * cogl_clip_pop().
762
+ *
763
+ * Since: 1.0
764
+ */
765
+ void
766
+ cogl_clip_push_from_path_preserve (void);
767
+
768
+ #ifdef COGL_ENABLE_EXPERIMENTAL_2_0_API
769
+ /**
770
+ * cogl_clip_push_primitive:
771
+ * @primitive: A #CoglPrimitive describing a flat 2D shape
772
+ * @bounds_x1: x coordinate for the top-left corner of the primitives
773
+ * bounds
774
+ * @bounds_y1: y coordinate for the top-left corner of the primitives
775
+ * bounds
776
+ * @bounds_x2: x coordinate for the top-left corner of the primitives
777
+ * bounds
778
+ * @bounds_y2: x coordinate for the bottom-right corner of the
779
+ * primitives bounds.
780
+ * @bounds_x1: y coordinate for the bottom-right corner of the
781
+ * primitives bounds.
782
+ *
783
+ * Sets a new clipping area using a 2D shaped described with a
784
+ * #CoglPrimitive. The shape must not contain self overlapping
785
+ * geometry and must lie on a single 2D plane. A bounding box of the
786
+ * 2D shape in local coordinates (the same coordinates used to
787
+ * describe the shape) must be given. It is acceptable for the bounds
788
+ * to be larger than the true bounds but behaviour is undefined if the
789
+ * bounds are smaller than the true bounds.
790
+ *
791
+ * The primitive is transformed by the current model-view matrix and
792
+ * the silhouette is intersected with the previous clipping area. To
793
+ * restore the previous clipping area, call
794
+ * cogl_clip_pop().
795
+ *
796
+ * Since: 1.10
797
+ * Stability: unstable
798
+ */
799
+ void
800
+ cogl_clip_push_primitive (CoglPrimitive *primitive,
801
+ float bounds_x1,
802
+ float bounds_y1,
803
+ float bounds_x2,
804
+ float bounds_y2);
805
+ #endif
806
+
807
+ /**
808
+ * cogl_clip_pop:
809
+ *
810
+ * Reverts the clipping region to the state before the last call to
811
+ * cogl_clip_push().
812
+ */
813
+ void
814
+ cogl_clip_pop (void);
815
+
816
+ #ifndef COGL_DISABLE_DEPRECATED
817
+
818
+ /**
819
+ * cogl_clip_ensure:
820
+ *
821
+ * Ensures that the current clipping region has been set in GL. This
822
+ * will automatically be called before any Cogl primitives but it
823
+ * maybe be neccessary to call if you are using raw GL calls with
824
+ * clipping.
825
+ *
826
+ * Deprecated: 1.2: Calling this function has no effect
827
+ *
828
+ * Since: 1.0
829
+ */
830
+ void
831
+ cogl_clip_ensure (void) G_GNUC_DEPRECATED;
832
+
833
+ /**
834
+ * cogl_clip_stack_save:
835
+ *
836
+ * Save the entire state of the clipping stack and then clear all
837
+ * clipping. The previous state can be returned to with
838
+ * cogl_clip_stack_restore(). Each call to cogl_clip_push() after this
839
+ * must be matched by a call to cogl_clip_pop() before calling
840
+ * cogl_clip_stack_restore().
841
+ *
842
+ * Deprecated: 1.2: This was originally added to allow us to save the
843
+ * clip stack when switching to an offscreen framebuffer, but it's
844
+ * not necessary anymore given that framebuffers now own separate
845
+ * clip stacks which will be automatically switched between when a
846
+ * new buffer is set. Calling this function has no effect
847
+ *
848
+ * Since: 0.8.2
849
+ */
850
+ void
851
+ cogl_clip_stack_save (void) G_GNUC_DEPRECATED;
852
+
853
+ /**
854
+ * cogl_clip_stack_restore:
855
+ *
856
+ * Restore the state of the clipping stack that was previously saved
857
+ * by cogl_clip_stack_save().
858
+ *
859
+ * Deprecated: 1.2: This was originally added to allow us to restore
860
+ * the clip stack when switching back from an offscreen framebuffer,
861
+ * but it's not necessary anymore given that framebuffers now own
862
+ * separate clip stacks which will be automatically switched between
863
+ * when a new buffer is set. Calling this function has no effect
864
+ *
865
+ * Since: 0.8.2
866
+ */
867
+ void
868
+ cogl_clip_stack_restore (void) G_GNUC_DEPRECATED;
869
+
870
+ #endif /* COGL_DISABLE_DEPRECATED */
871
+
872
+ /**
873
+ * cogl_set_framebuffer:
874
+ * @buffer: A #CoglFramebuffer object, either onscreen or offscreen.
875
+ *
876
+ * This redirects all subsequent drawing to the specified framebuffer. This can
877
+ * either be an offscreen buffer created with cogl_offscreen_new_to_texture ()
878
+ * or in the future it may be an onscreen framebuffers too.
879
+ *
880
+ * Since: 1.2
881
+ */
882
+ void
883
+ cogl_set_framebuffer (CoglFramebuffer *buffer);
884
+
885
+ /**
886
+ * cogl_push_framebuffer:
887
+ * @buffer: A #CoglFramebuffer object, either onscreen or offscreen.
888
+ *
889
+ * Redirects all subsequent drawing to the specified framebuffer. This can
890
+ * either be an offscreen buffer created with cogl_offscreen_new_to_texture ()
891
+ * or in the future it may be an onscreen framebuffer too.
892
+ *
893
+ * You should understand that a framebuffer owns the following state:
894
+ * <itemizedlist>
895
+ * <listitem><simpara>The projection matrix</simpara></listitem>
896
+ * <listitem><simpara>The modelview matrix stack</simpara></listitem>
897
+ * <listitem><simpara>The viewport</simpara></listitem>
898
+ * <listitem><simpara>The clip stack</simpara></listitem>
899
+ * </itemizedlist>
900
+ * So these items will automatically be saved and restored when you
901
+ * push and pop between different framebuffers.
902
+ *
903
+ * Also remember a newly allocated framebuffer will have an identity matrix for
904
+ * the projection and modelview matrices which gives you a coordinate space
905
+ * like OpenGL with (-1, -1) corresponding to the top left of the viewport,
906
+ * (1, 1) corresponding to the bottom right and +z coming out towards the
907
+ * viewer.
908
+ *
909
+ * If you want to set up a coordinate space like Clutter does with (0, 0)
910
+ * corresponding to the top left and (framebuffer_width, framebuffer_height)
911
+ * corresponding to the bottom right you can do so like this:
912
+ *
913
+ * |[
914
+ * static void
915
+ * setup_viewport (unsigned int width,
916
+ * unsigned int height,
917
+ * float fovy,
918
+ * float aspect,
919
+ * float z_near,
920
+ * float z_far)
921
+ * {
922
+ * float z_camera;
923
+ * CoglMatrix projection_matrix;
924
+ * CoglMatrix mv_matrix;
925
+ *
926
+ * cogl_set_viewport (0, 0, width, height);
927
+ * cogl_perspective (fovy, aspect, z_near, z_far);
928
+ *
929
+ * cogl_get_projection_matrix (&amp;projection_matrix);
930
+ * z_camera = 0.5 * projection_matrix.xx;
931
+ *
932
+ * cogl_matrix_init_identity (&amp;mv_matrix);
933
+ * cogl_matrix_translate (&amp;mv_matrix, -0.5f, -0.5f, -z_camera);
934
+ * cogl_matrix_scale (&amp;mv_matrix, 1.0f / width, -1.0f / height, 1.0f / width);
935
+ * cogl_matrix_translate (&amp;mv_matrix, 0.0f, -1.0 * height, 0.0f);
936
+ * cogl_set_modelview_matrix (&amp;mv_matrix);
937
+ * }
938
+ *
939
+ * static void
940
+ * my_init_framebuffer (ClutterStage *stage,
941
+ * CoglFramebuffer *framebuffer,
942
+ * unsigned int framebuffer_width,
943
+ * unsigned int framebuffer_height)
944
+ * {
945
+ * ClutterPerspective perspective;
946
+ *
947
+ * clutter_stage_get_perspective (stage, &perspective);
948
+ *
949
+ * cogl_push_framebuffer (framebuffer);
950
+ * setup_viewport (framebuffer_width,
951
+ * framebuffer_height,
952
+ * perspective.fovy,
953
+ * perspective.aspect,
954
+ * perspective.z_near,
955
+ * perspective.z_far);
956
+ * }
957
+ * ]|
958
+ *
959
+ * The previous framebuffer can be restored by calling cogl_pop_framebuffer()
960
+ *
961
+ * Since: 1.2
962
+ */
963
+ void
964
+ cogl_push_framebuffer (CoglFramebuffer *buffer);
965
+
966
+ /**
967
+ * cogl_pop_framebuffer:
968
+ *
969
+ * Restores the framebuffer that was previously at the top of the stack.
970
+ * All subsequent drawing will be redirected to this framebuffer.
971
+ *
972
+ * Since: 1.2
973
+ */
974
+ void
975
+ cogl_pop_framebuffer (void);
976
+
977
+ #ifndef COGL_DISABLE_DEPRECATED
978
+
979
+ /**
980
+ * cogl_set_draw_buffer:
981
+ * @target: A #CoglBufferTarget that specifies what kind of framebuffer you
982
+ * are setting as the render target.
983
+ * @offscreen: If you are setting a framebuffer of type COGL_OFFSCREEN_BUFFER
984
+ * then this is a CoglHandle for the offscreen buffer.
985
+ *
986
+ * Redirects all subsequent drawing to the specified framebuffer. This
987
+ * can either be an offscreen buffer created with
988
+ * cogl_offscreen_new_to_texture () or you can revert to your original
989
+ * on screen window buffer.
990
+ *
991
+ * Deprecated: 1.2: The target argument was redundant since we could look at
992
+ * the type of CoglHandle given instead.
993
+ */
994
+ void
995
+ cogl_set_draw_buffer (CoglBufferTarget target,
996
+ CoglHandle offscreen) G_GNUC_DEPRECATED;
997
+
998
+ /**
999
+ * cogl_push_draw_buffer:
1000
+ *
1001
+ * Save cogl_set_draw_buffer() state.
1002
+ *
1003
+ * Deprecated: 1.2: The draw buffer API was replaced with a framebuffer API
1004
+ */
1005
+ void
1006
+ cogl_push_draw_buffer (void) COGL_GNUC_DEPRECATED;
1007
+
1008
+ /**
1009
+ * cogl_pop_draw_buffer:
1010
+ *
1011
+ * Restore cogl_set_draw_buffer() state.
1012
+ *
1013
+ * Deprecated: 1.2: The draw buffer API was replaced with a framebuffer API
1014
+ */
1015
+ void
1016
+ cogl_pop_draw_buffer (void) COGL_GNUC_DEPRECATED;
1017
+
1018
+ #endif /* COGL_DISABLE_DEPRECATED */
1019
+
1020
+ /**
1021
+ * cogl_read_pixels:
1022
+ * @x: The window x position to start reading from
1023
+ * @y: The window y position to start reading from
1024
+ * @width: The width of the rectangle you want to read
1025
+ * @height: The height of the rectangle you want to read
1026
+ * @source: Identifies which auxillary buffer you want to read
1027
+ * (only COGL_READ_PIXELS_COLOR_BUFFER supported currently)
1028
+ * @format: The pixel format you want the result in
1029
+ * (only COGL_PIXEL_FORMAT_RGBA_8888 supported currently)
1030
+ * @pixels: The location to write the pixel data.
1031
+ *
1032
+ * This reads a rectangle of pixels from the current framebuffer where
1033
+ * position (0, 0) is the top left. The pixel at (x, y) is the first
1034
+ * read, and the data is returned with a rowstride of (width * 4).
1035
+ *
1036
+ * Currently Cogl assumes that the framebuffer is in a premultiplied
1037
+ * format so if @format is non-premultiplied it will convert it. To
1038
+ * read the pixel values without any conversion you should either
1039
+ * specify a format that doesn't use an alpha channel or use one of
1040
+ * the formats ending in PRE.
1041
+ */
1042
+ void
1043
+ cogl_read_pixels (int x,
1044
+ int y,
1045
+ int width,
1046
+ int height,
1047
+ CoglReadPixelsFlags source,
1048
+ CoglPixelFormat format,
1049
+ uint8_t *pixels);
1050
+
1051
+ /**
1052
+ * cogl_flush:
1053
+ *
1054
+ * This function should only need to be called in exceptional circumstances.
1055
+ *
1056
+ * As an optimization Cogl drawing functions may batch up primitives
1057
+ * internally, so if you are trying to use raw GL outside of Cogl you stand a
1058
+ * better chance of being successful if you ask Cogl to flush any batched
1059
+ * geometry before making your state changes.
1060
+ *
1061
+ * It only ensure that the underlying driver is issued all the commands
1062
+ * necessary to draw the batched primitives. It provides no guarantees about
1063
+ * when the driver will complete the rendering.
1064
+ *
1065
+ * This provides no guarantees about the GL state upon returning and to avoid
1066
+ * confusing Cogl you should aim to restore any changes you make before
1067
+ * resuming use of Cogl.
1068
+ *
1069
+ * If you are making state changes with the intention of affecting Cogl drawing
1070
+ * primitives you are 100% on your own since you stand a good chance of
1071
+ * conflicting with Cogl internals. For example clutter-gst which currently
1072
+ * uses direct GL calls to bind ARBfp programs will very likely break when Cogl
1073
+ * starts to use ARBfb programs itself for the material API.
1074
+ *
1075
+ * Since: 1.0
1076
+ */
1077
+ void
1078
+ cogl_flush (void);
1079
+
1080
+ /**
1081
+ * cogl_begin_gl:
1082
+ *
1083
+ * We do not advise nor reliably support the interleaving of raw GL drawing and
1084
+ * Cogl drawing functions, but if you insist, cogl_begin_gl() and cogl_end_gl()
1085
+ * provide a simple mechanism that may at least give you a fighting chance of
1086
+ * succeeding.
1087
+ *
1088
+ * Note: this doesn't help you modify the behaviour of Cogl drawing functions
1089
+ * through the modification of GL state; that will never be reliably supported,
1090
+ * but if you are trying to do something like:
1091
+ *
1092
+ * |[
1093
+ * {
1094
+ * - setup some OpenGL state.
1095
+ * - draw using OpenGL (e.g. glDrawArrays() )
1096
+ * - reset modified OpenGL state.
1097
+ * - continue using Cogl to draw
1098
+ * }
1099
+ * ]|
1100
+ *
1101
+ * You should surround blocks of drawing using raw GL with cogl_begin_gl()
1102
+ * and cogl_end_gl():
1103
+ *
1104
+ * |[
1105
+ * {
1106
+ * cogl_begin_gl ();
1107
+ * - setup some OpenGL state.
1108
+ * - draw using OpenGL (e.g. glDrawArrays() )
1109
+ * - reset modified OpenGL state.
1110
+ * cogl_end_gl ();
1111
+ * - continue using Cogl to draw
1112
+ * }
1113
+ * ]|
1114
+ *
1115
+ * Don't ever try and do:
1116
+ *
1117
+ * |[
1118
+ * {
1119
+ * - setup some OpenGL state.
1120
+ * - use Cogl to draw
1121
+ * - reset modified OpenGL state.
1122
+ * }
1123
+ * ]|
1124
+ *
1125
+ * When the internals of Cogl evolves, this is very liable to break.
1126
+ *
1127
+ * This function will flush all batched primitives, and subsequently flush
1128
+ * all internal Cogl state to OpenGL as if it were going to draw something
1129
+ * itself.
1130
+ *
1131
+ * The result is that the OpenGL modelview matrix will be setup; the state
1132
+ * corresponding to the current source material will be set up and other world
1133
+ * state such as backface culling, depth and fogging enabledness will be sent
1134
+ * to OpenGL.
1135
+ *
1136
+ * <note>No special material state is flushed, so if you want Cogl to setup a
1137
+ * simplified material state it is your responsibility to set a simple source
1138
+ * material before calling cogl_begin_gl(). E.g. by calling
1139
+ * cogl_set_source_color4ub().</note>
1140
+ *
1141
+ * <note>It is your responsibility to restore any OpenGL state that you modify
1142
+ * to how it was after calling cogl_begin_gl() if you don't do this then the
1143
+ * result of further Cogl calls is undefined.</note>
1144
+ *
1145
+ * <note>You can not nest begin/end blocks.</note>
1146
+ *
1147
+ * Again we would like to stress, we do not advise the use of this API and if
1148
+ * possible we would prefer to improve Cogl than have developers require raw
1149
+ * OpenGL.
1150
+ *
1151
+ * Since: 1.0
1152
+ */
1153
+ void
1154
+ cogl_begin_gl (void);
1155
+
1156
+ /**
1157
+ * cogl_end_gl:
1158
+ *
1159
+ * This is the counterpart to cogl_begin_gl() used to delimit blocks of drawing
1160
+ * code using raw OpenGL. Please refer to cogl_begin_gl() for full details.
1161
+ *
1162
+ * Since: 1.0
1163
+ */
1164
+ void
1165
+ cogl_end_gl (void);
1166
+
1167
+ COGL_END_DECLS
1168
+
1169
+ #endif /* __COGL_1_CONTEXT_H__ */