clutter 2.2.4-x64-mingw32

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