clutter 2.0.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (656) hide show
  1. data/Rakefile +129 -0
  2. data/lib/clutter.rb +145 -0
  3. data/lib/clutter/actor-iter.rb +33 -0
  4. data/lib/clutter/actor.rb +34 -0
  5. data/lib/clutter/animatable.rb +26 -0
  6. data/lib/clutter/cairo.rb +24 -0
  7. data/lib/clutter/color.rb +55 -0
  8. data/lib/clutter/event.rb +21 -0
  9. data/lib/clutter/point.rb +25 -0
  10. data/lib/clutter/text.rb +23 -0
  11. data/lib/clutter/threads.rb +38 -0
  12. data/sample/basic-actor.rb +125 -0
  13. data/sample/bin-layout.rb +215 -0
  14. data/sample/box-layout.rb +196 -0
  15. data/sample/canvas.rb +117 -0
  16. data/sample/constraints.rb +81 -0
  17. data/sample/drag-action.rb +177 -0
  18. data/sample/drop-action.rb +198 -0
  19. data/sample/easing-modes.rb +145 -0
  20. data/sample/flow-layout.rb +121 -0
  21. data/sample/grid-layout.rb +239 -0
  22. data/sample/image-content.rb +88 -0
  23. data/sample/pan-action.rb +100 -0
  24. data/sample/redhand.png +0 -0
  25. data/sample/rounded-rectangle.rb +90 -0
  26. data/sample/scroll-actor.rb +105 -0
  27. data/test/clutter-test-utils.rb +21 -0
  28. data/test/run-test.rb +50 -0
  29. data/vendor/local/bin/libclutter-1.0-0.dll +0 -0
  30. data/vendor/local/bin/libcogl-12.dll +0 -0
  31. data/vendor/local/bin/libcogl-pango-12.dll +0 -0
  32. data/vendor/local/bin/libglut-0.dll +0 -0
  33. data/vendor/local/bin/libjson-glib-1.0-0.dll +0 -0
  34. data/vendor/local/include/GL/freeglut.h +22 -0
  35. data/vendor/local/include/GL/freeglut_ext.h +239 -0
  36. data/vendor/local/include/GL/freeglut_std.h +636 -0
  37. data/vendor/local/include/GL/glut.h +21 -0
  38. data/vendor/local/include/clutter-1.0/cally/cally-actor.h +155 -0
  39. data/vendor/local/include/clutter-1.0/cally/cally-clone.h +82 -0
  40. data/vendor/local/include/clutter-1.0/cally/cally-factory.h +117 -0
  41. data/vendor/local/include/clutter-1.0/cally/cally-group.h +85 -0
  42. data/vendor/local/include/clutter-1.0/cally/cally-main.h +39 -0
  43. data/vendor/local/include/clutter-1.0/cally/cally-rectangle.h +82 -0
  44. data/vendor/local/include/clutter-1.0/cally/cally-root.h +82 -0
  45. data/vendor/local/include/clutter-1.0/cally/cally-stage.h +82 -0
  46. data/vendor/local/include/clutter-1.0/cally/cally-text.h +82 -0
  47. data/vendor/local/include/clutter-1.0/cally/cally-texture.h +82 -0
  48. data/vendor/local/include/clutter-1.0/cally/cally-util.h +80 -0
  49. data/vendor/local/include/clutter-1.0/cally/cally.h +40 -0
  50. data/vendor/local/include/clutter-1.0/clutter/clutter-action.h +103 -0
  51. data/vendor/local/include/clutter-1.0/clutter/clutter-actor-meta.h +113 -0
  52. data/vendor/local/include/clutter-1.0/clutter/clutter-actor.h +735 -0
  53. data/vendor/local/include/clutter-1.0/clutter/clutter-align-constraint.h +69 -0
  54. data/vendor/local/include/clutter-1.0/clutter/clutter-animatable.h +116 -0
  55. data/vendor/local/include/clutter-1.0/clutter/clutter-backend.h +74 -0
  56. data/vendor/local/include/clutter-1.0/clutter/clutter-bin-layout.h +84 -0
  57. data/vendor/local/include/clutter-1.0/clutter/clutter-bind-constraint.h +69 -0
  58. data/vendor/local/include/clutter-1.0/clutter/clutter-binding-pool.h +122 -0
  59. data/vendor/local/include/clutter-1.0/clutter/clutter-blur-effect.h +57 -0
  60. data/vendor/local/include/clutter-1.0/clutter/clutter-box-layout.h +159 -0
  61. data/vendor/local/include/clutter-1.0/clutter/clutter-brightness-contrast-effect.h +80 -0
  62. data/vendor/local/include/clutter-1.0/clutter/clutter-cairo.h +59 -0
  63. data/vendor/local/include/clutter-1.0/clutter/clutter-canvas.h +100 -0
  64. data/vendor/local/include/clutter-1.0/clutter/clutter-child-meta.h +120 -0
  65. data/vendor/local/include/clutter-1.0/clutter/clutter-click-action.h +114 -0
  66. data/vendor/local/include/clutter-1.0/clutter/clutter-clone.h +90 -0
  67. data/vendor/local/include/clutter-1.0/clutter/clutter-cogl-compat.h +52 -0
  68. data/vendor/local/include/clutter-1.0/clutter/clutter-color-static.h +79 -0
  69. data/vendor/local/include/clutter-1.0/clutter/clutter-color.h +175 -0
  70. data/vendor/local/include/clutter-1.0/clutter/clutter-colorize-effect.h +63 -0
  71. data/vendor/local/include/clutter-1.0/clutter/clutter-config.h +19 -0
  72. data/vendor/local/include/clutter-1.0/clutter/clutter-constraint.h +108 -0
  73. data/vendor/local/include/clutter-1.0/clutter/clutter-container.h +184 -0
  74. data/vendor/local/include/clutter-1.0/clutter/clutter-content.h +103 -0
  75. data/vendor/local/include/clutter-1.0/clutter/clutter-deform-effect.h +111 -0
  76. data/vendor/local/include/clutter-1.0/clutter/clutter-deprecated.h +43 -0
  77. data/vendor/local/include/clutter-1.0/clutter/clutter-desaturate-effect.h +61 -0
  78. data/vendor/local/include/clutter-1.0/clutter/clutter-device-manager.h +104 -0
  79. data/vendor/local/include/clutter-1.0/clutter/clutter-drag-action.h +142 -0
  80. data/vendor/local/include/clutter-1.0/clutter/clutter-drop-action.h +113 -0
  81. data/vendor/local/include/clutter-1.0/clutter/clutter-effect.h +120 -0
  82. data/vendor/local/include/clutter-1.0/clutter/clutter-enum-types.h +183 -0
  83. data/vendor/local/include/clutter-1.0/clutter/clutter-enums.h +1362 -0
  84. data/vendor/local/include/clutter-1.0/clutter/clutter-event.h +509 -0
  85. data/vendor/local/include/clutter-1.0/clutter/clutter-feature.h +40 -0
  86. data/vendor/local/include/clutter-1.0/clutter/clutter-fixed-layout.h +80 -0
  87. data/vendor/local/include/clutter-1.0/clutter/clutter-flow-layout.h +110 -0
  88. data/vendor/local/include/clutter-1.0/clutter/clutter-gesture-action.h +154 -0
  89. data/vendor/local/include/clutter-1.0/clutter/clutter-grid-layout.h +161 -0
  90. data/vendor/local/include/clutter-1.0/clutter/clutter-group.h +95 -0
  91. data/vendor/local/include/clutter-1.0/clutter/clutter-image.h +141 -0
  92. data/vendor/local/include/clutter-1.0/clutter/clutter-input-device.h +118 -0
  93. data/vendor/local/include/clutter-1.0/clutter/clutter-interval.h +141 -0
  94. data/vendor/local/include/clutter-1.0/clutter/clutter-keyframe-transition.h +120 -0
  95. data/vendor/local/include/clutter-1.0/clutter/clutter-keysyms.h +2304 -0
  96. data/vendor/local/include/clutter-1.0/clutter/clutter-layout-manager.h +215 -0
  97. data/vendor/local/include/clutter-1.0/clutter/clutter-layout-meta.h +101 -0
  98. data/vendor/local/include/clutter-1.0/clutter/clutter-list-model.h +88 -0
  99. data/vendor/local/include/clutter-1.0/clutter/clutter-macros.h +279 -0
  100. data/vendor/local/include/clutter-1.0/clutter/clutter-main.h +148 -0
  101. data/vendor/local/include/clutter-1.0/clutter/clutter-marshal.h +273 -0
  102. data/vendor/local/include/clutter-1.0/clutter/clutter-model.h +381 -0
  103. data/vendor/local/include/clutter-1.0/clutter/clutter-offscreen-effect.h +112 -0
  104. data/vendor/local/include/clutter-1.0/clutter/clutter-page-turn-effect.h +72 -0
  105. data/vendor/local/include/clutter-1.0/clutter/clutter-paint-node.h +102 -0
  106. data/vendor/local/include/clutter-1.0/clutter/clutter-paint-nodes.h +150 -0
  107. data/vendor/local/include/clutter-1.0/clutter/clutter-pan-action.h +147 -0
  108. data/vendor/local/include/clutter-1.0/clutter/clutter-path-constraint.h +66 -0
  109. data/vendor/local/include/clutter-1.0/clutter/clutter-path.h +155 -0
  110. data/vendor/local/include/clutter-1.0/clutter/clutter-property-transition.h +91 -0
  111. data/vendor/local/include/clutter-1.0/clutter/clutter-rotate-action.h +100 -0
  112. data/vendor/local/include/clutter-1.0/clutter/clutter-script.h +204 -0
  113. data/vendor/local/include/clutter-1.0/clutter/clutter-scriptable.h +107 -0
  114. data/vendor/local/include/clutter-1.0/clutter/clutter-scroll-actor.h +97 -0
  115. data/vendor/local/include/clutter-1.0/clutter/clutter-settings.h +25 -0
  116. data/vendor/local/include/clutter-1.0/clutter/clutter-shader-effect.h +114 -0
  117. data/vendor/local/include/clutter-1.0/clutter/clutter-shader-types.h +95 -0
  118. data/vendor/local/include/clutter-1.0/clutter/clutter-snap-constraint.h +73 -0
  119. data/vendor/local/include/clutter-1.0/clutter/clutter-stage-manager.h +81 -0
  120. data/vendor/local/include/clutter-1.0/clutter/clutter-stage.h +215 -0
  121. data/vendor/local/include/clutter-1.0/clutter/clutter-swipe-action.h +107 -0
  122. data/vendor/local/include/clutter-1.0/clutter/clutter-table-layout.h +157 -0
  123. data/vendor/local/include/clutter-1.0/clutter/clutter-tap-action.h +102 -0
  124. data/vendor/local/include/clutter-1.0/clutter/clutter-text-buffer.h +172 -0
  125. data/vendor/local/include/clutter-1.0/clutter/clutter-text.h +237 -0
  126. data/vendor/local/include/clutter-1.0/clutter/clutter-texture.h +128 -0
  127. data/vendor/local/include/clutter-1.0/clutter/clutter-timeline.h +201 -0
  128. data/vendor/local/include/clutter-1.0/clutter/clutter-transition-group.h +91 -0
  129. data/vendor/local/include/clutter-1.0/clutter/clutter-transition.h +132 -0
  130. data/vendor/local/include/clutter-1.0/clutter/clutter-types.h +715 -0
  131. data/vendor/local/include/clutter-1.0/clutter/clutter-units.h +166 -0
  132. data/vendor/local/include/clutter-1.0/clutter/clutter-version.h +302 -0
  133. data/vendor/local/include/clutter-1.0/clutter/clutter-zoom-action.h +114 -0
  134. data/vendor/local/include/clutter-1.0/clutter/clutter.h +118 -0
  135. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-actor.h +161 -0
  136. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-alpha.h +144 -0
  137. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-animatable.h +47 -0
  138. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-animation.h +206 -0
  139. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-animator.h +186 -0
  140. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-backend.h +64 -0
  141. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-depth.h +101 -0
  142. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-ellipse.h +159 -0
  143. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-opacity.h +115 -0
  144. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-path.h +135 -0
  145. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-rotate.h +119 -0
  146. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour-scale.h +107 -0
  147. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-behaviour.h +170 -0
  148. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-bin-layout.h +56 -0
  149. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-box.h +143 -0
  150. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-cairo-texture.h +139 -0
  151. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-container.h +93 -0
  152. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-fixed.h +97 -0
  153. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-frame-source.h +49 -0
  154. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-group.h +62 -0
  155. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-input-device.h +41 -0
  156. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-keysyms.h +2306 -0
  157. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-main.h +96 -0
  158. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-media.h +121 -0
  159. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-rectangle.h +117 -0
  160. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-score.h +144 -0
  161. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-shader.h +182 -0
  162. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-stage-manager.h +42 -0
  163. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-stage.h +102 -0
  164. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-state.h +187 -0
  165. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-texture.h +138 -0
  166. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-timeline.h +41 -0
  167. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-timeout-pool.h +69 -0
  168. data/vendor/local/include/clutter-1.0/clutter/deprecated/clutter-util.h +40 -0
  169. data/vendor/local/include/clutter-1.0/clutter/win32/clutter-win32.h +58 -0
  170. data/vendor/local/include/cogl/cogl-pango/cogl-pango.h +245 -0
  171. data/vendor/local/include/cogl/cogl/cogl-attribute-buffer.h +131 -0
  172. data/vendor/local/include/cogl/cogl/cogl-attribute.h +532 -0
  173. data/vendor/local/include/cogl/cogl/cogl-bitmap.h +314 -0
  174. data/vendor/local/include/cogl/cogl/cogl-buffer.h +309 -0
  175. data/vendor/local/include/cogl/cogl/cogl-clip-state.h +50 -0
  176. data/vendor/local/include/cogl/cogl/cogl-clutter.h +47 -0
  177. data/vendor/local/include/cogl/cogl/cogl-color.h +543 -0
  178. data/vendor/local/include/cogl/cogl/cogl-context.h +350 -0
  179. data/vendor/local/include/cogl/cogl/cogl-defines.h +50 -0
  180. data/vendor/local/include/cogl/cogl/cogl-deprecated.h +36 -0
  181. data/vendor/local/include/cogl/cogl/cogl-depth-state.h +264 -0
  182. data/vendor/local/include/cogl/cogl/cogl-display.h +192 -0
  183. data/vendor/local/include/cogl/cogl/cogl-enum-types.h +100 -0
  184. data/vendor/local/include/cogl/cogl/cogl-error.h +176 -0
  185. data/vendor/local/include/cogl/cogl/cogl-euler.h +251 -0
  186. data/vendor/local/include/cogl/cogl/cogl-fixed.h +804 -0
  187. data/vendor/local/include/cogl/cogl/cogl-frame-info.h +129 -0
  188. data/vendor/local/include/cogl/cogl/cogl-framebuffer.h +1829 -0
  189. data/vendor/local/include/cogl/cogl/cogl-gles2-types.h +474 -0
  190. data/vendor/local/include/cogl/cogl/cogl-gles2.h +374 -0
  191. data/vendor/local/include/cogl/cogl/cogl-glib-source.h +59 -0
  192. data/vendor/local/include/cogl/cogl/cogl-index-buffer.h +85 -0
  193. data/vendor/local/include/cogl/cogl/cogl-indices.h +145 -0
  194. data/vendor/local/include/cogl/cogl/cogl-material-compat.h +1276 -0
  195. data/vendor/local/include/cogl/cogl/cogl-matrix-stack.h +620 -0
  196. data/vendor/local/include/cogl/cogl/cogl-matrix.h +798 -0
  197. data/vendor/local/include/cogl/cogl/cogl-meta-texture.h +181 -0
  198. data/vendor/local/include/cogl/cogl/cogl-object.h +219 -0
  199. data/vendor/local/include/cogl/cogl/cogl-offscreen.h +117 -0
  200. data/vendor/local/include/cogl/cogl/cogl-onscreen-template.h +106 -0
  201. data/vendor/local/include/cogl/cogl/cogl-onscreen.h +741 -0
  202. data/vendor/local/include/cogl/cogl/cogl-output.h +242 -0
  203. data/vendor/local/include/cogl/cogl/cogl-pango.h +33 -0
  204. data/vendor/local/include/cogl/cogl/cogl-path-functions.h +430 -0
  205. data/vendor/local/include/cogl/cogl/cogl-path.h +102 -0
  206. data/vendor/local/include/cogl/cogl/cogl-pipeline-layer-state.h +613 -0
  207. data/vendor/local/include/cogl/cogl/cogl-pipeline-state.h +924 -0
  208. data/vendor/local/include/cogl/cogl/cogl-pipeline.h +173 -0
  209. data/vendor/local/include/cogl/cogl/cogl-pixel-buffer.h +114 -0
  210. data/vendor/local/include/cogl/cogl/cogl-poll.h +174 -0
  211. data/vendor/local/include/cogl/cogl/cogl-primitive-texture.h +98 -0
  212. data/vendor/local/include/cogl/cogl/cogl-primitive.h +866 -0
  213. data/vendor/local/include/cogl/cogl/cogl-primitives.h +190 -0
  214. data/vendor/local/include/cogl/cogl/cogl-quaternion.h +545 -0
  215. data/vendor/local/include/cogl/cogl/cogl-renderer.h +423 -0
  216. data/vendor/local/include/cogl/cogl/cogl-shader.h +654 -0
  217. data/vendor/local/include/cogl/cogl/cogl-snippet.h +786 -0
  218. data/vendor/local/include/cogl/cogl/cogl-sub-texture.h +122 -0
  219. data/vendor/local/include/cogl/cogl/cogl-swap-chain.h +51 -0
  220. data/vendor/local/include/cogl/cogl/cogl-texture-2d-gl.h +73 -0
  221. data/vendor/local/include/cogl/cogl/cogl-texture-2d-sliced.h +130 -0
  222. data/vendor/local/include/cogl/cogl/cogl-texture-2d.h +191 -0
  223. data/vendor/local/include/cogl/cogl/cogl-texture-3d.h +187 -0
  224. data/vendor/local/include/cogl/cogl/cogl-texture-rectangle.h +204 -0
  225. data/vendor/local/include/cogl/cogl/cogl-texture.h +611 -0
  226. data/vendor/local/include/cogl/cogl/cogl-types.h +912 -0
  227. data/vendor/local/include/cogl/cogl/cogl-vector.h +351 -0
  228. data/vendor/local/include/cogl/cogl/cogl-version.h +185 -0
  229. data/vendor/local/include/cogl/cogl/cogl-vertex-buffer.h +409 -0
  230. data/vendor/local/include/cogl/cogl/cogl-win32-renderer.h +99 -0
  231. data/vendor/local/include/cogl/cogl/cogl.h +151 -0
  232. data/vendor/local/include/cogl/cogl/cogl1-context.h +1169 -0
  233. data/vendor/local/include/cogl/cogl/cogl2-compatibility.h +55 -0
  234. data/vendor/local/include/cogl/cogl/cogl2-experimental.h +31 -0
  235. data/vendor/local/include/cogl/cogl/cogl2-path.h +506 -0
  236. data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-core-functions.h +191 -0
  237. data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-gles2-functions.h +36 -0
  238. data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-glsl-functions.h +279 -0
  239. data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-in-gles-core-functions.h +141 -0
  240. data/vendor/local/include/cogl/cogl/gl-prototypes/cogl-in-gles2-core-functions.h +179 -0
  241. data/vendor/local/include/json-glib-1.0/json-glib/json-builder.h +106 -0
  242. data/vendor/local/include/json-glib-1.0/json-glib/json-enum-types.h +36 -0
  243. data/vendor/local/include/json-glib-1.0/json-glib/json-generator.h +107 -0
  244. data/vendor/local/include/json-glib-1.0/json-glib/json-glib.h +46 -0
  245. data/vendor/local/include/json-glib-1.0/json-glib/json-gobject.h +182 -0
  246. data/vendor/local/include/json-glib-1.0/json-glib/json-gvariant.h +46 -0
  247. data/vendor/local/include/json-glib-1.0/json-glib/json-parser.h +173 -0
  248. data/vendor/local/include/json-glib-1.0/json-glib/json-path.h +97 -0
  249. data/vendor/local/include/json-glib-1.0/json-glib/json-reader.h +150 -0
  250. data/vendor/local/include/json-glib-1.0/json-glib/json-types.h +334 -0
  251. data/vendor/local/include/json-glib-1.0/json-glib/json-version.h +100 -0
  252. data/vendor/local/lib/girepository-1.0/Cally-1.0.typelib +0 -0
  253. data/vendor/local/lib/girepository-1.0/Clutter-1.0.typelib +0 -0
  254. data/vendor/local/lib/girepository-1.0/Cogl-1.0.typelib +0 -0
  255. data/vendor/local/lib/girepository-1.0/CoglPango-1.0.typelib +0 -0
  256. data/vendor/local/lib/girepository-1.0/Json-1.0.typelib +0 -0
  257. data/vendor/local/lib/libclutter-1.0.dll.a +0 -0
  258. data/vendor/local/lib/libclutter-1.0.la +41 -0
  259. data/vendor/local/lib/libcogl-pango.dll.a +0 -0
  260. data/vendor/local/lib/libcogl-pango.la +41 -0
  261. data/vendor/local/lib/libcogl.dll.a +0 -0
  262. data/vendor/local/lib/libcogl.la +41 -0
  263. data/vendor/local/lib/libglut.a +0 -0
  264. data/vendor/local/lib/libglut.dll.a +0 -0
  265. data/vendor/local/lib/libglut.la +41 -0
  266. data/vendor/local/lib/libjson-glib-1.0.dll.a +0 -0
  267. data/vendor/local/lib/libjson-glib-1.0.la +41 -0
  268. data/vendor/local/lib/pkgconfig/cally-1.0.pc +13 -0
  269. data/vendor/local/lib/pkgconfig/clutter-1.0.pc +24 -0
  270. data/vendor/local/lib/pkgconfig/clutter-win32-1.0.pc +24 -0
  271. data/vendor/local/lib/pkgconfig/cogl-1.0.pc +13 -0
  272. data/vendor/local/lib/pkgconfig/cogl-2.0-experimental.pc +13 -0
  273. data/vendor/local/lib/pkgconfig/cogl-gl-1.0.pc +13 -0
  274. data/vendor/local/lib/pkgconfig/cogl-pango-1.0.pc +13 -0
  275. data/vendor/local/lib/pkgconfig/cogl-pango-2.0-experimental.pc +13 -0
  276. data/vendor/local/lib/pkgconfig/json-glib-1.0.pc +11 -0
  277. data/vendor/local/share/cogl/examples-data/crate.jpg +0 -0
  278. data/vendor/local/share/gir-1.0/Cally-1.0.gir +679 -0
  279. data/vendor/local/share/gir-1.0/Clutter-1.0.gir +67473 -0
  280. data/vendor/local/share/gir-1.0/Cogl-1.0.gir +8383 -0
  281. data/vendor/local/share/gir-1.0/CoglPango-1.0.gir +306 -0
  282. data/vendor/local/share/gir-1.0/Json-1.0.gir +4333 -0
  283. data/vendor/local/share/gtk-doc/html/cally/CallyActor.html +415 -0
  284. data/vendor/local/share/gtk-doc/html/cally/CallyClone.html +136 -0
  285. data/vendor/local/share/gtk-doc/html/cally/CallyGroup.html +139 -0
  286. data/vendor/local/share/gtk-doc/html/cally/CallyRectangle.html +135 -0
  287. data/vendor/local/share/gtk-doc/html/cally/CallyRoot.html +123 -0
  288. data/vendor/local/share/gtk-doc/html/cally/CallyStage.html +140 -0
  289. data/vendor/local/share/gtk-doc/html/cally/CallyText.html +133 -0
  290. data/vendor/local/share/gtk-doc/html/cally/CallyTexture.html +135 -0
  291. data/vendor/local/share/gtk-doc/html/cally/CallyUtil.html +100 -0
  292. data/vendor/local/share/gtk-doc/html/cally/cally-General-API.html +167 -0
  293. data/vendor/local/share/gtk-doc/html/cally/cally.devhelp2 +73 -0
  294. data/vendor/local/share/gtk-doc/html/cally/callyannotationglossary.html +43 -0
  295. data/vendor/local/share/gtk-doc/html/cally/callybase.html +71 -0
  296. data/vendor/local/share/gtk-doc/html/cally/callyobjecthierarchy.html +45 -0
  297. data/vendor/local/share/gtk-doc/html/cally/callyobjectindex.html +64 -0
  298. data/vendor/local/share/gtk-doc/html/cally/callyobjects.html +39 -0
  299. data/vendor/local/share/gtk-doc/html/cally/ch01.html +53 -0
  300. data/vendor/local/share/gtk-doc/html/cally/ch02.html +41 -0
  301. data/vendor/local/share/gtk-doc/html/cally/clutter-overview.html +96 -0
  302. data/vendor/local/share/gtk-doc/html/cally/home.png +0 -0
  303. data/vendor/local/share/gtk-doc/html/cally/index.html +103 -0
  304. data/vendor/local/share/gtk-doc/html/cally/index.sgml +103 -0
  305. data/vendor/local/share/gtk-doc/html/cally/ix01.html +198 -0
  306. data/vendor/local/share/gtk-doc/html/cally/ix02.html +31 -0
  307. data/vendor/local/share/gtk-doc/html/cally/ix03.html +190 -0
  308. data/vendor/local/share/gtk-doc/html/cally/ix04.html +42 -0
  309. data/vendor/local/share/gtk-doc/html/cally/left.png +0 -0
  310. data/vendor/local/share/gtk-doc/html/cally/license.html +58 -0
  311. data/vendor/local/share/gtk-doc/html/cally/right.png +0 -0
  312. data/vendor/local/share/gtk-doc/html/cally/style.css +266 -0
  313. data/vendor/local/share/gtk-doc/html/cally/up.png +0 -0
  314. data/vendor/local/share/gtk-doc/html/clutter/ClutterAction.html +110 -0
  315. data/vendor/local/share/gtk-doc/html/clutter/ClutterActor.html +13714 -0
  316. data/vendor/local/share/gtk-doc/html/clutter/ClutterActorMeta.html +322 -0
  317. data/vendor/local/share/gtk-doc/html/clutter/ClutterAlignConstraint.html +404 -0
  318. data/vendor/local/share/gtk-doc/html/clutter/ClutterAlpha.html +747 -0
  319. data/vendor/local/share/gtk-doc/html/clutter/ClutterAnimatable.html +432 -0
  320. data/vendor/local/share/gtk-doc/html/clutter/ClutterAnimator.html +1218 -0
  321. data/vendor/local/share/gtk-doc/html/clutter/ClutterBackend.html +684 -0
  322. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviour.html +697 -0
  323. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourDepth.html +278 -0
  324. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourEllipse.html +844 -0
  325. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourOpacity.html +283 -0
  326. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourPath.html +450 -0
  327. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourRotate.html +608 -0
  328. data/vendor/local/share/gtk-doc/html/clutter/ClutterBehaviourScale.html +432 -0
  329. data/vendor/local/share/gtk-doc/html/clutter/ClutterBinLayout.html +1056 -0
  330. data/vendor/local/share/gtk-doc/html/clutter/ClutterBindConstraint.html +780 -0
  331. data/vendor/local/share/gtk-doc/html/clutter/ClutterBlurEffect.html +109 -0
  332. data/vendor/local/share/gtk-doc/html/clutter/ClutterBox.html +657 -0
  333. data/vendor/local/share/gtk-doc/html/clutter/ClutterBoxLayout.html +1232 -0
  334. data/vendor/local/share/gtk-doc/html/clutter/ClutterBrightnessContrastEffect.html +410 -0
  335. data/vendor/local/share/gtk-doc/html/clutter/ClutterCairoTexture.html +1018 -0
  336. data/vendor/local/share/gtk-doc/html/clutter/ClutterCanvas.html +469 -0
  337. data/vendor/local/share/gtk-doc/html/clutter/ClutterChildMeta.html +253 -0
  338. data/vendor/local/share/gtk-doc/html/clutter/ClutterClickAction.html +587 -0
  339. data/vendor/local/share/gtk-doc/html/clutter/ClutterClone.html +219 -0
  340. data/vendor/local/share/gtk-doc/html/clutter/ClutterColorizeEffect.html +193 -0
  341. data/vendor/local/share/gtk-doc/html/clutter/ClutterConstraint.html +336 -0
  342. data/vendor/local/share/gtk-doc/html/clutter/ClutterContainer.html +1346 -0
  343. data/vendor/local/share/gtk-doc/html/clutter/ClutterContent.html +309 -0
  344. data/vendor/local/share/gtk-doc/html/clutter/ClutterDeformEffect.html +353 -0
  345. data/vendor/local/share/gtk-doc/html/clutter/ClutterDesaturateEffect.html +200 -0
  346. data/vendor/local/share/gtk-doc/html/clutter/ClutterDeviceManager.html +408 -0
  347. data/vendor/local/share/gtk-doc/html/clutter/ClutterDragAction.html +1224 -0
  348. data/vendor/local/share/gtk-doc/html/clutter/ClutterDropAction.html +965 -0
  349. data/vendor/local/share/gtk-doc/html/clutter/ClutterEffect.html +386 -0
  350. data/vendor/local/share/gtk-doc/html/clutter/ClutterFixedLayout.html +115 -0
  351. data/vendor/local/share/gtk-doc/html/clutter/ClutterFlowLayout.html +1016 -0
  352. data/vendor/local/share/gtk-doc/html/clutter/ClutterGestureAction.html +867 -0
  353. data/vendor/local/share/gtk-doc/html/clutter/ClutterGridLayout.html +808 -0
  354. data/vendor/local/share/gtk-doc/html/clutter/ClutterGroup.html +231 -0
  355. data/vendor/local/share/gtk-doc/html/clutter/ClutterImage.html +674 -0
  356. data/vendor/local/share/gtk-doc/html/clutter/ClutterInputDevice.html +1488 -0
  357. data/vendor/local/share/gtk-doc/html/clutter/ClutterKeyframeTransition.html +525 -0
  358. data/vendor/local/share/gtk-doc/html/clutter/ClutterLayoutManager.html +1376 -0
  359. data/vendor/local/share/gtk-doc/html/clutter/ClutterLayoutMeta.html +161 -0
  360. data/vendor/local/share/gtk-doc/html/clutter/ClutterListModel.html +211 -0
  361. data/vendor/local/share/gtk-doc/html/clutter/ClutterMedia.html +900 -0
  362. data/vendor/local/share/gtk-doc/html/clutter/ClutterModel.html +1715 -0
  363. data/vendor/local/share/gtk-doc/html/clutter/ClutterModelIter.html +644 -0
  364. data/vendor/local/share/gtk-doc/html/clutter/ClutterOffscreenEffect.html +350 -0
  365. data/vendor/local/share/gtk-doc/html/clutter/ClutterPageTurnEffect.html +333 -0
  366. data/vendor/local/share/gtk-doc/html/clutter/ClutterPaintNode.html +534 -0
  367. data/vendor/local/share/gtk-doc/html/clutter/ClutterPanAction.html +785 -0
  368. data/vendor/local/share/gtk-doc/html/clutter/ClutterPath.html +1327 -0
  369. data/vendor/local/share/gtk-doc/html/clutter/ClutterPathConstraint.html +321 -0
  370. data/vendor/local/share/gtk-doc/html/clutter/ClutterPropertyTransition.html +216 -0
  371. data/vendor/local/share/gtk-doc/html/clutter/ClutterRectangle.html +369 -0
  372. data/vendor/local/share/gtk-doc/html/clutter/ClutterRotateAction.html +183 -0
  373. data/vendor/local/share/gtk-doc/html/clutter/ClutterScore.html +881 -0
  374. data/vendor/local/share/gtk-doc/html/clutter/ClutterScript.html +1365 -0
  375. data/vendor/local/share/gtk-doc/html/clutter/ClutterScriptable.html +311 -0
  376. data/vendor/local/share/gtk-doc/html/clutter/ClutterScrollActor.html +731 -0
  377. data/vendor/local/share/gtk-doc/html/clutter/ClutterSettings.html +301 -0
  378. data/vendor/local/share/gtk-doc/html/clutter/ClutterShaderEffect.html +595 -0
  379. data/vendor/local/share/gtk-doc/html/clutter/ClutterSnapConstraint.html +421 -0
  380. data/vendor/local/share/gtk-doc/html/clutter/ClutterStage.html +2252 -0
  381. data/vendor/local/share/gtk-doc/html/clutter/ClutterState.html +1558 -0
  382. data/vendor/local/share/gtk-doc/html/clutter/ClutterSwipeAction.html +280 -0
  383. data/vendor/local/share/gtk-doc/html/clutter/ClutterTableLayout.html +1146 -0
  384. data/vendor/local/share/gtk-doc/html/clutter/ClutterTapAction.html +192 -0
  385. data/vendor/local/share/gtk-doc/html/clutter/ClutterText.html +3058 -0
  386. data/vendor/local/share/gtk-doc/html/clutter/ClutterTextBuffer.html +736 -0
  387. data/vendor/local/share/gtk-doc/html/clutter/ClutterTexture.html +1829 -0
  388. data/vendor/local/share/gtk-doc/html/clutter/ClutterTimeline.html +2441 -0
  389. data/vendor/local/share/gtk-doc/html/clutter/ClutterTransition.html +574 -0
  390. data/vendor/local/share/gtk-doc/html/clutter/ClutterTransitionGroup.html +227 -0
  391. data/vendor/local/share/gtk-doc/html/clutter/ClutterZoomAction.html +400 -0
  392. data/vendor/local/share/gtk-doc/html/clutter/actor-box.png +0 -0
  393. data/vendor/local/share/gtk-doc/html/clutter/actor-example.png +0 -0
  394. data/vendor/local/share/gtk-doc/html/clutter/animator-key-frames.png +0 -0
  395. data/vendor/local/share/gtk-doc/html/clutter/annotation-glossary.html +111 -0
  396. data/vendor/local/share/gtk-doc/html/clutter/bin-layout.png +0 -0
  397. data/vendor/local/share/gtk-doc/html/clutter/box-layout.png +0 -0
  398. data/vendor/local/share/gtk-doc/html/clutter/building-clutter.html +275 -0
  399. data/vendor/local/share/gtk-doc/html/clutter/ch01.html +65 -0
  400. data/vendor/local/share/gtk-doc/html/clutter/ch02.html +47 -0
  401. data/vendor/local/share/gtk-doc/html/clutter/ch03.html +51 -0
  402. data/vendor/local/share/gtk-doc/html/clutter/ch04.html +59 -0
  403. data/vendor/local/share/gtk-doc/html/clutter/ch05.html +44 -0
  404. data/vendor/local/share/gtk-doc/html/clutter/ch06.html +57 -0
  405. data/vendor/local/share/gtk-doc/html/clutter/ch07.html +38 -0
  406. data/vendor/local/share/gtk-doc/html/clutter/ch08.html +38 -0
  407. data/vendor/local/share/gtk-doc/html/clutter/ch09.html +53 -0
  408. data/vendor/local/share/gtk-doc/html/clutter/ch10.html +78 -0
  409. data/vendor/local/share/gtk-doc/html/clutter/ch11.html +38 -0
  410. data/vendor/local/share/gtk-doc/html/clutter/ch12.html +41 -0
  411. data/vendor/local/share/gtk-doc/html/clutter/clutter-Base-geometric-types.html +3471 -0
  412. data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterGLXTexturePixmap.html +225 -0
  413. data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterWaylandSurface.html +314 -0
  414. data/vendor/local/share/gtk-doc/html/clutter/clutter-ClutterX11TexturePixmap.html +361 -0
  415. data/vendor/local/share/gtk-doc/html/clutter/clutter-Colors.html +1363 -0
  416. data/vendor/local/share/gtk-doc/html/clutter/clutter-EGL-Specific-Support.html +129 -0
  417. data/vendor/local/share/gtk-doc/html/clutter/clutter-Events.html +2653 -0
  418. data/vendor/local/share/gtk-doc/html/clutter/clutter-Features.html +200 -0
  419. data/vendor/local/share/gtk-doc/html/clutter/clutter-GDK-Specific-Support.html +249 -0
  420. data/vendor/local/share/gtk-doc/html/clutter/clutter-General.html +2550 -0
  421. data/vendor/local/share/gtk-doc/html/clutter/clutter-Implicit-Animations.html +2571 -0
  422. data/vendor/local/share/gtk-doc/html/clutter/clutter-Intel-CE3100-CE4100-Specific-Support.html +181 -0
  423. data/vendor/local/share/gtk-doc/html/clutter/clutter-Key-Bindings.html +890 -0
  424. data/vendor/local/share/gtk-doc/html/clutter/clutter-Paint-Nodes.html +351 -0
  425. data/vendor/local/share/gtk-doc/html/clutter/clutter-Shaders.html +1004 -0
  426. data/vendor/local/share/gtk-doc/html/clutter/clutter-Stage-Manager.html +341 -0
  427. data/vendor/local/share/gtk-doc/html/clutter/clutter-Unit-conversion.html +843 -0
  428. data/vendor/local/share/gtk-doc/html/clutter/clutter-Utilities.html +549 -0
  429. data/vendor/local/share/gtk-doc/html/clutter/clutter-Value-intervals.html +1023 -0
  430. data/vendor/local/share/gtk-doc/html/clutter/clutter-Versioning-Macros.html +525 -0
  431. data/vendor/local/share/gtk-doc/html/clutter/clutter-Wayland-compositor-specific-support.html +83 -0
  432. data/vendor/local/share/gtk-doc/html/clutter/clutter-Win32-Specific-Support.html +201 -0
  433. data/vendor/local/share/gtk-doc/html/clutter/clutter-X11-Specific-Support.html +806 -0
  434. data/vendor/local/share/gtk-doc/html/clutter/clutter-overview.html +77 -0
  435. data/vendor/local/share/gtk-doc/html/clutter/clutter.devhelp2 +2715 -0
  436. data/vendor/local/share/gtk-doc/html/clutter/clutteranimation.html +65 -0
  437. data/vendor/local/share/gtk-doc/html/clutter/clutterbackends.html +71 -0
  438. data/vendor/local/share/gtk-doc/html/clutter/clutterbase.html +202 -0
  439. data/vendor/local/share/gtk-doc/html/clutter/clutterglossary.html +37 -0
  440. data/vendor/local/share/gtk-doc/html/clutter/clutterobjecthierarchy.html +118 -0
  441. data/vendor/local/share/gtk-doc/html/clutter/clutterobjectindex.html +184 -0
  442. data/vendor/local/share/gtk-doc/html/clutter/clutterobjects.html +37 -0
  443. data/vendor/local/share/gtk-doc/html/clutter/cluttertools.html +105 -0
  444. data/vendor/local/share/gtk-doc/html/clutter/constraints-example.png +0 -0
  445. data/vendor/local/share/gtk-doc/html/clutter/deprecated.html +86 -0
  446. data/vendor/local/share/gtk-doc/html/clutter/easing-modes.png +0 -0
  447. data/vendor/local/share/gtk-doc/html/clutter/event-flow.png +0 -0
  448. data/vendor/local/share/gtk-doc/html/clutter/flow-layout.png +0 -0
  449. data/vendor/local/share/gtk-doc/html/clutter/go01.html +114 -0
  450. data/vendor/local/share/gtk-doc/html/clutter/home.png +0 -0
  451. data/vendor/local/share/gtk-doc/html/clutter/index.html +451 -0
  452. data/vendor/local/share/gtk-doc/html/clutter/index.sgml +3272 -0
  453. data/vendor/local/share/gtk-doc/html/clutter/iterating-paths.html +56 -0
  454. data/vendor/local/share/gtk-doc/html/clutter/ix01.html +8815 -0
  455. data/vendor/local/share/gtk-doc/html/clutter/ix02.html +1961 -0
  456. data/vendor/local/share/gtk-doc/html/clutter/ix03.html +454 -0
  457. data/vendor/local/share/gtk-doc/html/clutter/ix04.html +583 -0
  458. data/vendor/local/share/gtk-doc/html/clutter/ix05.html +957 -0
  459. data/vendor/local/share/gtk-doc/html/clutter/ix06.html +642 -0
  460. data/vendor/local/share/gtk-doc/html/clutter/ix07.html +1530 -0
  461. data/vendor/local/share/gtk-doc/html/clutter/ix08.html +820 -0
  462. data/vendor/local/share/gtk-doc/html/clutter/ix09.html +1005 -0
  463. data/vendor/local/share/gtk-doc/html/clutter/ix10.html +369 -0
  464. data/vendor/local/share/gtk-doc/html/clutter/ix11.html +366 -0
  465. data/vendor/local/share/gtk-doc/html/clutter/ix12.html +1078 -0
  466. data/vendor/local/share/gtk-doc/html/clutter/ix13.html +984 -0
  467. data/vendor/local/share/gtk-doc/html/clutter/ix14.html +99 -0
  468. data/vendor/local/share/gtk-doc/html/clutter/left.png +0 -0
  469. data/vendor/local/share/gtk-doc/html/clutter/license.html +58 -0
  470. data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterAnimation.html +223 -0
  471. data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterBehaviour.html +197 -0
  472. data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterEffect.html +154 -0
  473. data/vendor/local/share/gtk-doc/html/clutter/migrating-ClutterPath.html +156 -0
  474. data/vendor/local/share/gtk-doc/html/clutter/migration.html +49 -0
  475. data/vendor/local/share/gtk-doc/html/clutter/offscreen-redirect.png +0 -0
  476. data/vendor/local/share/gtk-doc/html/clutter/path-alpha-func.png +0 -0
  477. data/vendor/local/share/gtk-doc/html/clutter/pt09.html +31 -0
  478. data/vendor/local/share/gtk-doc/html/clutter/right.png +0 -0
  479. data/vendor/local/share/gtk-doc/html/clutter/running-clutter.html +373 -0
  480. data/vendor/local/share/gtk-doc/html/clutter/style.css +266 -0
  481. data/vendor/local/share/gtk-doc/html/clutter/table-layout.png +0 -0
  482. data/vendor/local/share/gtk-doc/html/clutter/up.png +0 -0
  483. data/vendor/local/share/gtk-doc/html/clutter/using-cairo.html +36 -0
  484. data/vendor/local/share/gtk-doc/html/json-glib/JsonBuilder.html +513 -0
  485. data/vendor/local/share/gtk-doc/html/json-glib/JsonGenerator.html +492 -0
  486. data/vendor/local/share/gtk-doc/html/json-glib/JsonParser.html +871 -0
  487. data/vendor/local/share/gtk-doc/html/json-glib/JsonPath.html +464 -0
  488. data/vendor/local/share/gtk-doc/html/json-glib/JsonReader.html +898 -0
  489. data/vendor/local/share/gtk-doc/html/json-glib/annotation-glossary.html +87 -0
  490. data/vendor/local/share/gtk-doc/html/json-glib/ch01.html +41 -0
  491. data/vendor/local/share/gtk-doc/html/json-glib/ch02.html +41 -0
  492. data/vendor/local/share/gtk-doc/html/json-glib/ch03.html +38 -0
  493. data/vendor/local/share/gtk-doc/html/json-glib/ch04.html +38 -0
  494. data/vendor/local/share/gtk-doc/html/json-glib/home.png +0 -0
  495. data/vendor/local/share/gtk-doc/html/json-glib/index.html +125 -0
  496. data/vendor/local/share/gtk-doc/html/json-glib/index.sgml +308 -0
  497. data/vendor/local/share/gtk-doc/html/json-glib/ix01.html +926 -0
  498. data/vendor/local/share/gtk-doc/html/json-glib/ix02.html +54 -0
  499. data/vendor/local/share/gtk-doc/html/json-glib/ix03.html +61 -0
  500. data/vendor/local/share/gtk-doc/html/json-glib/ix04.html +54 -0
  501. data/vendor/local/share/gtk-doc/html/json-glib/ix05.html +186 -0
  502. data/vendor/local/share/gtk-doc/html/json-glib/ix06.html +121 -0
  503. data/vendor/local/share/gtk-doc/html/json-glib/ix07.html +161 -0
  504. data/vendor/local/share/gtk-doc/html/json-glib/ix08.html +137 -0
  505. data/vendor/local/share/gtk-doc/html/json-glib/json-advanced.html +47 -0
  506. data/vendor/local/share/gtk-doc/html/json-glib/json-base.html +61 -0
  507. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Boxed-Types-Serialization.html +382 -0
  508. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-GObject-Serialization.html +310 -0
  509. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Array.html +850 -0
  510. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-GVariant-Integration.html +272 -0
  511. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Node.html +942 -0
  512. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Object.html +993 -0
  513. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Serializable-Interface.html +476 -0
  514. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Versioning-information.html +148 -0
  515. data/vendor/local/share/gtk-doc/html/json-glib/json-glib.devhelp2 +281 -0
  516. data/vendor/local/share/gtk-doc/html/json-glib/json-glib.html +38 -0
  517. data/vendor/local/share/gtk-doc/html/json-glib/json-streams.html +63 -0
  518. data/vendor/local/share/gtk-doc/html/json-glib/json-tools.html +39 -0
  519. data/vendor/local/share/gtk-doc/html/json-glib/left.png +0 -0
  520. data/vendor/local/share/gtk-doc/html/json-glib/license.html +58 -0
  521. data/vendor/local/share/gtk-doc/html/json-glib/right.png +0 -0
  522. data/vendor/local/share/gtk-doc/html/json-glib/style.css +266 -0
  523. data/vendor/local/share/gtk-doc/html/json-glib/up.png +0 -0
  524. data/vendor/local/share/license/clutter/COPYING +502 -0
  525. data/vendor/local/share/license/cogl/COPYING +502 -0
  526. data/vendor/local/share/license/freeglut/AUTHORS +39 -0
  527. data/vendor/local/share/license/freeglut/COPYING +27 -0
  528. data/vendor/local/share/license/json-glib/COPYING +504 -0
  529. data/vendor/local/share/locale/an/LC_MESSAGES/cogl.mo +0 -0
  530. data/vendor/local/share/locale/ar/LC_MESSAGES/clutter-1.0.mo +0 -0
  531. data/vendor/local/share/locale/ar/LC_MESSAGES/cogl.mo +0 -0
  532. data/vendor/local/share/locale/as/LC_MESSAGES/clutter-1.0.mo +0 -0
  533. data/vendor/local/share/locale/as/LC_MESSAGES/cogl.mo +0 -0
  534. data/vendor/local/share/locale/ast/LC_MESSAGES/clutter-1.0.mo +0 -0
  535. data/vendor/local/share/locale/ast/LC_MESSAGES/cogl.mo +0 -0
  536. data/vendor/local/share/locale/az_IR/LC_MESSAGES/clutter-1.0.mo +0 -0
  537. data/vendor/local/share/locale/be/LC_MESSAGES/clutter-1.0.mo +0 -0
  538. data/vendor/local/share/locale/be/LC_MESSAGES/cogl.mo +0 -0
  539. data/vendor/local/share/locale/bg/LC_MESSAGES/clutter-1.0.mo +0 -0
  540. data/vendor/local/share/locale/bg/LC_MESSAGES/cogl.mo +0 -0
  541. data/vendor/local/share/locale/ca/LC_MESSAGES/clutter-1.0.mo +0 -0
  542. data/vendor/local/share/locale/ca/LC_MESSAGES/cogl.mo +0 -0
  543. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/clutter-1.0.mo +0 -0
  544. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/cogl.mo +0 -0
  545. data/vendor/local/share/locale/cs/LC_MESSAGES/clutter-1.0.mo +0 -0
  546. data/vendor/local/share/locale/cs/LC_MESSAGES/cogl.mo +0 -0
  547. data/vendor/local/share/locale/cs/LC_MESSAGES/json-glib-1.0.mo +0 -0
  548. data/vendor/local/share/locale/da/LC_MESSAGES/clutter-1.0.mo +0 -0
  549. data/vendor/local/share/locale/da/LC_MESSAGES/cogl.mo +0 -0
  550. data/vendor/local/share/locale/de/LC_MESSAGES/clutter-1.0.mo +0 -0
  551. data/vendor/local/share/locale/de/LC_MESSAGES/cogl.mo +0 -0
  552. data/vendor/local/share/locale/de/LC_MESSAGES/json-glib-1.0.mo +0 -0
  553. data/vendor/local/share/locale/el/LC_MESSAGES/clutter-1.0.mo +0 -0
  554. data/vendor/local/share/locale/el/LC_MESSAGES/cogl.mo +0 -0
  555. data/vendor/local/share/locale/el/LC_MESSAGES/json-glib-1.0.mo +0 -0
  556. data/vendor/local/share/locale/en_CA/LC_MESSAGES/cogl.mo +0 -0
  557. data/vendor/local/share/locale/en_GB/LC_MESSAGES/clutter-1.0.mo +0 -0
  558. data/vendor/local/share/locale/en_GB/LC_MESSAGES/cogl.mo +0 -0
  559. data/vendor/local/share/locale/eo/LC_MESSAGES/clutter-1.0.mo +0 -0
  560. data/vendor/local/share/locale/eo/LC_MESSAGES/cogl.mo +0 -0
  561. data/vendor/local/share/locale/es/LC_MESSAGES/clutter-1.0.mo +0 -0
  562. data/vendor/local/share/locale/es/LC_MESSAGES/cogl.mo +0 -0
  563. data/vendor/local/share/locale/es/LC_MESSAGES/json-glib-1.0.mo +0 -0
  564. data/vendor/local/share/locale/eu/LC_MESSAGES/cogl.mo +0 -0
  565. data/vendor/local/share/locale/fa/LC_MESSAGES/clutter-1.0.mo +0 -0
  566. data/vendor/local/share/locale/fa/LC_MESSAGES/cogl.mo +0 -0
  567. data/vendor/local/share/locale/fi/LC_MESSAGES/clutter-1.0.mo +0 -0
  568. data/vendor/local/share/locale/fr/LC_MESSAGES/clutter-1.0.mo +0 -0
  569. data/vendor/local/share/locale/fr/LC_MESSAGES/cogl.mo +0 -0
  570. data/vendor/local/share/locale/gl/LC_MESSAGES/clutter-1.0.mo +0 -0
  571. data/vendor/local/share/locale/gl/LC_MESSAGES/cogl.mo +0 -0
  572. data/vendor/local/share/locale/gl/LC_MESSAGES/json-glib-1.0.mo +0 -0
  573. data/vendor/local/share/locale/he/LC_MESSAGES/clutter-1.0.mo +0 -0
  574. data/vendor/local/share/locale/he/LC_MESSAGES/cogl.mo +0 -0
  575. data/vendor/local/share/locale/hi/LC_MESSAGES/clutter-1.0.mo +0 -0
  576. data/vendor/local/share/locale/hi/LC_MESSAGES/cogl.mo +0 -0
  577. data/vendor/local/share/locale/hu/LC_MESSAGES/cogl.mo +0 -0
  578. data/vendor/local/share/locale/id/LC_MESSAGES/clutter-1.0.mo +0 -0
  579. data/vendor/local/share/locale/id/LC_MESSAGES/cogl.mo +0 -0
  580. data/vendor/local/share/locale/id/LC_MESSAGES/json-glib-1.0.mo +0 -0
  581. data/vendor/local/share/locale/it/LC_MESSAGES/clutter-1.0.mo +0 -0
  582. data/vendor/local/share/locale/it/LC_MESSAGES/cogl.mo +0 -0
  583. data/vendor/local/share/locale/it/LC_MESSAGES/json-glib-1.0.mo +0 -0
  584. data/vendor/local/share/locale/ja/LC_MESSAGES/clutter-1.0.mo +0 -0
  585. data/vendor/local/share/locale/ja/LC_MESSAGES/cogl.mo +0 -0
  586. data/vendor/local/share/locale/km/LC_MESSAGES/clutter-1.0.mo +0 -0
  587. data/vendor/local/share/locale/km/LC_MESSAGES/cogl.mo +0 -0
  588. data/vendor/local/share/locale/kn/LC_MESSAGES/clutter-1.0.mo +0 -0
  589. data/vendor/local/share/locale/kn/LC_MESSAGES/cogl.mo +0 -0
  590. data/vendor/local/share/locale/ko/LC_MESSAGES/cogl.mo +0 -0
  591. data/vendor/local/share/locale/lt/LC_MESSAGES/clutter-1.0.mo +0 -0
  592. data/vendor/local/share/locale/lt/LC_MESSAGES/cogl.mo +0 -0
  593. data/vendor/local/share/locale/lv/LC_MESSAGES/clutter-1.0.mo +0 -0
  594. data/vendor/local/share/locale/lv/LC_MESSAGES/cogl.mo +0 -0
  595. data/vendor/local/share/locale/mk/LC_MESSAGES/clutter-1.0.mo +0 -0
  596. data/vendor/local/share/locale/ml/LC_MESSAGES/clutter-1.0.mo +0 -0
  597. data/vendor/local/share/locale/ml/LC_MESSAGES/cogl.mo +0 -0
  598. data/vendor/local/share/locale/nb/LC_MESSAGES/clutter-1.0.mo +0 -0
  599. data/vendor/local/share/locale/nb/LC_MESSAGES/cogl.mo +0 -0
  600. data/vendor/local/share/locale/nb/LC_MESSAGES/json-glib-1.0.mo +0 -0
  601. data/vendor/local/share/locale/nl/LC_MESSAGES/clutter-1.0.mo +0 -0
  602. data/vendor/local/share/locale/nl/LC_MESSAGES/cogl.mo +0 -0
  603. data/vendor/local/share/locale/or/LC_MESSAGES/clutter-1.0.mo +0 -0
  604. data/vendor/local/share/locale/or/LC_MESSAGES/cogl.mo +0 -0
  605. data/vendor/local/share/locale/pa/LC_MESSAGES/clutter-1.0.mo +0 -0
  606. data/vendor/local/share/locale/pa/LC_MESSAGES/cogl.mo +0 -0
  607. data/vendor/local/share/locale/pa/LC_MESSAGES/json-glib-1.0.mo +0 -0
  608. data/vendor/local/share/locale/pl/LC_MESSAGES/clutter-1.0.mo +0 -0
  609. data/vendor/local/share/locale/pl/LC_MESSAGES/cogl.mo +0 -0
  610. data/vendor/local/share/locale/pl/LC_MESSAGES/json-glib-1.0.mo +0 -0
  611. data/vendor/local/share/locale/ps/LC_MESSAGES/clutter-1.0.mo +0 -0
  612. data/vendor/local/share/locale/pt/LC_MESSAGES/clutter-1.0.mo +0 -0
  613. data/vendor/local/share/locale/pt/LC_MESSAGES/cogl.mo +0 -0
  614. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/clutter-1.0.mo +0 -0
  615. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/cogl.mo +0 -0
  616. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/json-glib-1.0.mo +0 -0
  617. data/vendor/local/share/locale/ro/LC_MESSAGES/clutter-1.0.mo +0 -0
  618. data/vendor/local/share/locale/ru/LC_MESSAGES/clutter-1.0.mo +0 -0
  619. data/vendor/local/share/locale/ru/LC_MESSAGES/cogl.mo +0 -0
  620. data/vendor/local/share/locale/ru/LC_MESSAGES/json-glib-1.0.mo +0 -0
  621. data/vendor/local/share/locale/sk/LC_MESSAGES/clutter-1.0.mo +0 -0
  622. data/vendor/local/share/locale/sk/LC_MESSAGES/cogl.mo +0 -0
  623. data/vendor/local/share/locale/sl/LC_MESSAGES/clutter-1.0.mo +0 -0
  624. data/vendor/local/share/locale/sl/LC_MESSAGES/cogl.mo +0 -0
  625. data/vendor/local/share/locale/sl/LC_MESSAGES/json-glib-1.0.mo +0 -0
  626. data/vendor/local/share/locale/sr/LC_MESSAGES/clutter-1.0.mo +0 -0
  627. data/vendor/local/share/locale/sr/LC_MESSAGES/cogl.mo +0 -0
  628. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/clutter-1.0.mo +0 -0
  629. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/cogl.mo +0 -0
  630. data/vendor/local/share/locale/sv/LC_MESSAGES/clutter-1.0.mo +0 -0
  631. data/vendor/local/share/locale/sv/LC_MESSAGES/cogl.mo +0 -0
  632. data/vendor/local/share/locale/sv/LC_MESSAGES/json-glib-1.0.mo +0 -0
  633. data/vendor/local/share/locale/ta/LC_MESSAGES/clutter-1.0.mo +0 -0
  634. data/vendor/local/share/locale/ta/LC_MESSAGES/cogl.mo +0 -0
  635. data/vendor/local/share/locale/te/LC_MESSAGES/clutter-1.0.mo +0 -0
  636. data/vendor/local/share/locale/te/LC_MESSAGES/cogl.mo +0 -0
  637. data/vendor/local/share/locale/tg/LC_MESSAGES/clutter-1.0.mo +0 -0
  638. data/vendor/local/share/locale/th/LC_MESSAGES/cogl.mo +0 -0
  639. data/vendor/local/share/locale/tr/LC_MESSAGES/clutter-1.0.mo +0 -0
  640. data/vendor/local/share/locale/tr/LC_MESSAGES/cogl.mo +0 -0
  641. data/vendor/local/share/locale/tr/LC_MESSAGES/json-glib-1.0.mo +0 -0
  642. data/vendor/local/share/locale/ug/LC_MESSAGES/clutter-1.0.mo +0 -0
  643. data/vendor/local/share/locale/ug/LC_MESSAGES/cogl.mo +0 -0
  644. data/vendor/local/share/locale/uk/LC_MESSAGES/clutter-1.0.mo +0 -0
  645. data/vendor/local/share/locale/uk/LC_MESSAGES/cogl.mo +0 -0
  646. data/vendor/local/share/locale/ur/LC_MESSAGES/clutter-1.0.mo +0 -0
  647. data/vendor/local/share/locale/vi/LC_MESSAGES/cogl.mo +0 -0
  648. data/vendor/local/share/locale/vi/LC_MESSAGES/json-glib-1.0.mo +0 -0
  649. data/vendor/local/share/locale/yi/LC_MESSAGES/clutter-1.0.mo +0 -0
  650. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/clutter-1.0.mo +0 -0
  651. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/cogl.mo +0 -0
  652. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/clutter-1.0.mo +0 -0
  653. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/cogl.mo +0 -0
  654. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/clutter-1.0.mo +0 -0
  655. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/cogl.mo +0 -0
  656. metadata +747 -0
@@ -0,0 +1,187 @@
1
+ /*
2
+ * Cogl
3
+ *
4
+ * An object oriented GL/GLES Abstraction/Utility Layer
5
+ *
6
+ * Copyright (C) 2010 Intel Corporation.
7
+ *
8
+ * This library is free software; you can redistribute it and/or
9
+ * modify it under the terms of the GNU Lesser General Public
10
+ * License as published by the Free Software Foundation; either
11
+ * version 2 of the License, or (at your option) any later version.
12
+ *
13
+ * This library is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+ * Lesser General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Lesser General Public
19
+ * License along with this library; if not, write to the
20
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21
+ * Boston, MA 02111-1307, USA.
22
+ *
23
+ * Authors:
24
+ * Neil Roberts <neil@linux.intel.com>
25
+ */
26
+
27
+ #if !defined(__COGL_H_INSIDE__) && !defined(COGL_COMPILATION)
28
+ #error "Only <cogl/cogl.h> can be included directly."
29
+ #endif
30
+
31
+ #ifndef __COGL_TEXTURE_3D_H
32
+ #define __COGL_TEXTURE_3D_H
33
+
34
+ COGL_BEGIN_DECLS
35
+
36
+ /**
37
+ * SECTION:cogl-texture-3d
38
+ * @short_description: Functions for creating and manipulating 3D textures
39
+ *
40
+ * These functions allow 3D textures to be used. 3D textures can be
41
+ * thought of as layers of 2D images arranged into a cuboid
42
+ * shape. When choosing a texel from the texture, Cogl will take into
43
+ * account the 'r' texture coordinate to select one of the images.
44
+ */
45
+
46
+ typedef struct _CoglTexture3D CoglTexture3D;
47
+
48
+ #define COGL_TEXTURE_3D(X) ((CoglTexture3D *)X)
49
+
50
+ /**
51
+ * cogl_texture_3d_new_with_size:
52
+ * @context: a #CoglContext
53
+ * @width: width of the texture in pixels.
54
+ * @height: height of the texture in pixels.
55
+ * @depth: depth of the texture in pixels.
56
+ * @internal_format: the #CoglPixelFormat to use for the GPU
57
+ * storage of the texture.
58
+ *
59
+ * Creates a new #CoglTexture3D texture with the specified dimensions
60
+ * and pixel format.
61
+ *
62
+ * The storage for the texture is not allocated before this function
63
+ * returns. You can call cogl_texture_allocate() to explicitly
64
+ * allocate the underlying storage or preferably let Cogl
65
+ * automatically allocate storage lazily when it may know more about
66
+ * how the texture is going to be used and can optimize how it is
67
+ * allocated.
68
+ *
69
+ * <note>This texture will fail to allocate later if
70
+ * %COGL_FEATURE_ID_TEXTURE_3D is not advertised. Allocation can also
71
+ * fail if the requested dimensions are not supported by the
72
+ * GPU.</note>
73
+ *
74
+ * Returns: A new #CoglTexture3D object with no storage yet allocated.
75
+ * Since: 1.10
76
+ * Stability: Unstable
77
+ */
78
+ CoglTexture3D *
79
+ cogl_texture_3d_new_with_size (CoglContext *context,
80
+ int width,
81
+ int height,
82
+ int depth,
83
+ CoglPixelFormat internal_format);
84
+
85
+ /**
86
+ * cogl_texture_3d_new_from_data:
87
+ * @context: a #CoglContext
88
+ * @width: width of the texture in pixels.
89
+ * @height: height of the texture in pixels.
90
+ * @depth: depth of the texture in pixels.
91
+ * @format: the #CoglPixelFormat the buffer is stored in in RAM
92
+ * @internal_format: the #CoglPixelFormat that will be used for storing
93
+ * the buffer on the GPU. If %COGL_PIXEL_FORMAT_ANY is given then a
94
+ * premultiplied format similar to the format of the source data will
95
+ * be used. The default blending equations of Cogl expect premultiplied
96
+ * color data; the main use of passing a non-premultiplied format here
97
+ * is if you have non-premultiplied source data and are going to adjust
98
+ * the blend mode (see cogl_pipeline_set_blend()) or use the data for
99
+ * something other than straight blending.
100
+ * @rowstride: the memory offset in bytes between the starts of
101
+ * scanlines in @data or 0 to infer it from the width and format
102
+ * @image_stride: the number of bytes from one image to the next. This
103
+ * can be used to add padding between the images in a similar way
104
+ * that the rowstride can be used to add padding between
105
+ * rows. Alternatively 0 can be passed to infer the @image_stride
106
+ * from the @height.
107
+ * @data: pointer the memory region where the source buffer resides
108
+ * @error: A CoglError return location.
109
+ *
110
+ * Creates a new 3D texture and initializes it with @data. The data is
111
+ * assumed to be packed array of @depth images. There can be padding
112
+ * between the images using @image_stride.
113
+ *
114
+ * Note that this function will throw a #CoglError if
115
+ * %COGL_FEATURE_ID_TEXTURE_3D is not advertised. It can also fail if the
116
+ * requested dimensions are not supported by the GPU.
117
+ *
118
+ * Return value: the newly created #CoglTexture3D or %NULL if
119
+ * there was an error an an exception will be returned
120
+ * through @error.
121
+ * Since: 1.10
122
+ * Stability: Unstable
123
+ */
124
+ CoglTexture3D *
125
+ cogl_texture_3d_new_from_data (CoglContext *context,
126
+ int width,
127
+ int height,
128
+ int depth,
129
+ CoglPixelFormat format,
130
+ CoglPixelFormat internal_format,
131
+ int rowstride,
132
+ int image_stride,
133
+ const uint8_t *data,
134
+ CoglError **error);
135
+
136
+ /**
137
+ * cogl_texture_3d_new_from_bitmap:
138
+ * @bitmap: A #CoglBitmap object.
139
+ * @height: height of the texture in pixels.
140
+ * @depth: depth of the texture in pixels.
141
+ * @internal_format: the #CoglPixelFormat that will be used for storing
142
+ * the buffer on the GPU. If %COGL_PIXEL_FORMAT_ANY is given then a
143
+ * premultiplied format similar to the format of the source data will
144
+ * be used. The default blending equations of Cogl expect premultiplied
145
+ * color data; the main use of passing a non-premultiplied format here
146
+ * is if you have non-premultiplied source data and are going to adjust
147
+ * the blend mode (see cogl_pipeline_set_blend()) or use the data for
148
+ * something other than straight blending.
149
+ * @error: A CoglError return location.
150
+ *
151
+ * Creates a new 3D texture and initializes it with the images in
152
+ * @bitmap. The images are assumed to be packed together after one
153
+ * another in the increasing y axis. The height of individual image is
154
+ * given as @height and the number of images is given in @depth. The
155
+ * actual height of the bitmap can be larger than @height × @depth. In
156
+ * this case it assumes there is padding between the images.
157
+ *
158
+ * Return value: the newly created texture or %NULL if
159
+ * there was an error.
160
+ * Since: 2.0
161
+ * Stability: unstable
162
+ */
163
+ CoglTexture3D *
164
+ cogl_texture_3d_new_from_bitmap (CoglBitmap *bitmap,
165
+ unsigned int height,
166
+ unsigned int depth,
167
+ CoglPixelFormat internal_format,
168
+ CoglError **error);
169
+
170
+ /**
171
+ * cogl_is_texture_3d:
172
+ * @object: a #CoglObject
173
+ *
174
+ * Checks whether the given object references a #CoglTexture3D
175
+ *
176
+ * Return value: %TRUE if the passed object represents a 3D texture
177
+ * and %FALSE otherwise
178
+ *
179
+ * Since: 1.4
180
+ * Stability: Unstable
181
+ */
182
+ CoglBool
183
+ cogl_is_texture_3d (void *object);
184
+
185
+ COGL_END_DECLS
186
+
187
+ #endif /* __COGL_TEXTURE_3D_H */
@@ -0,0 +1,204 @@
1
+ /*
2
+ * Cogl
3
+ *
4
+ * An object oriented GL/GLES Abstraction/Utility Layer
5
+ *
6
+ * Copyright (C) 2011 Intel Corporation.
7
+ *
8
+ * This library is free software; you can redistribute it and/or
9
+ * modify it under the terms of the GNU Lesser General Public
10
+ * License as published by the Free Software Foundation; either
11
+ * version 2 of the License, or (at your option) any later version.
12
+ *
13
+ * This library is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+ * Lesser General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Lesser General Public
19
+ * License along with this library. If not, see
20
+ * <http://www.gnu.org/licenses/>.
21
+ *
22
+ *
23
+ * Authors:
24
+ * Robert Bragg <robert@linux.intel.com>
25
+ */
26
+
27
+ #ifndef __COGL_TEXURE_RECTANGLE_H
28
+ #define __COGL_TEXURE_RECTANGLE_H
29
+
30
+ #include "cogl-context.h"
31
+
32
+ COGL_BEGIN_DECLS
33
+
34
+ /**
35
+ * SECTION:cogl-texture-rectangle
36
+ * @short_description: Functions for creating and manipulating rectangle
37
+ * textures for use with non-normalized coordinates.
38
+ *
39
+ * These functions allow low-level "rectangle" textures to be allocated.
40
+ * These textures are never constrained to power-of-two sizes but they
41
+ * also don't support having a mipmap and can only be wrapped with
42
+ * %COGL_PIPELINE_WRAP_MODE_CLAMP_TO_EDGE.
43
+ *
44
+ * The most notable difference between rectangle textures and 2D
45
+ * textures is that rectangle textures are sampled using un-normalized
46
+ * texture coordinates, so instead of using coordinates (0,0) and
47
+ * (1,1) to map to the top-left and bottom right corners of the
48
+ * texture you would instead use (0,0) and (width,height).
49
+ *
50
+ * The use of non-normalized coordinates can be particularly
51
+ * convenient when writing glsl shaders that use a texture as a lookup
52
+ * table since you don't need to upload separate uniforms to map
53
+ * normalized coordinates to texels.
54
+ *
55
+ * If you want to sample from a rectangle texture from GLSL you should
56
+ * use the sampler2DRect sampler type.
57
+ *
58
+ * Applications wanting to use #CoglTextureRectangle should first check
59
+ * for the %COGL_FEATURE_ID_TEXTURE_RECTANGLE feature using
60
+ * cogl_has_feature().
61
+ */
62
+
63
+ typedef struct _CoglTextureRectangle CoglTextureRectangle;
64
+ #define COGL_TEXTURE_RECTANGLE(X) ((CoglTextureRectangle *)X)
65
+
66
+ /**
67
+ * cogl_is_texture_rectangle:
68
+ * @object: A #CoglObject
69
+ *
70
+ * Gets whether the given object references an existing
71
+ * #CoglTextureRectangle object.
72
+ *
73
+ * Return value: %TRUE if the object references a
74
+ * #CoglTextureRectangle, %FALSE otherwise.
75
+ */
76
+ CoglBool
77
+ cogl_is_texture_rectangle (void *object);
78
+
79
+ /**
80
+ * cogl_texture_rectangle_new_with_size:
81
+ * @ctx: A #CoglContext pointer
82
+ * @width: The texture width to allocate
83
+ * @height: The texture height to allocate
84
+ * @internal_format: The desired internal texture format
85
+ * @error: An optional CoglError pointer for reporting exceptions
86
+ *
87
+ * Allocates a new #CoglTextureRectangle texture with a given @width, @height
88
+ * and @internal_format. This texture is a low-level texture that
89
+ * the GPU can sample from directly unlike high-level textures such
90
+ * as #CoglTexture2DSliced and #CoglAtlasTexture.
91
+ *
92
+ * <note>Unlike for #CoglTexture2D textures, coordinates for
93
+ * #CoglTextureRectangle textures should not be normalized. So instead
94
+ * of using the coordinate (1, 1) to sample the bottom right corner of
95
+ * a rectangle texture you would use (@width, @height) where @width
96
+ * and @height are the width and height of the texture.</note>
97
+ *
98
+ * <note>If you want to sample from a rectangle texture from GLSL you
99
+ * should use the sampler2DRect sampler type.</note>
100
+ *
101
+ * <note>Applications wanting to use #CoglTextureRectangle should
102
+ * first check for the %COGL_FEATURE_ID_TEXTURE_RECTANGLE feature
103
+ * using cogl_has_feature().</note>
104
+ *
105
+ * Returns: A pointer to a newly allocated #CoglTextureRectangle texture
106
+ * or if the size was too large or there wasn't enough memory
107
+ * %NULL is returned and @error set.
108
+ *
109
+ * Since: 1.10
110
+ * Stability: unstable
111
+ */
112
+ CoglTextureRectangle *
113
+ cogl_texture_rectangle_new_with_size (CoglContext *ctx,
114
+ int width,
115
+ int height,
116
+ CoglPixelFormat internal_format,
117
+ CoglError **error);
118
+
119
+ /**
120
+ * cogl_texture_rectangle_new_from_bitmap:
121
+ * @bitmap: A #CoglBitmap
122
+ * @internal_format: the #CoglPixelFormat to use for the GPU storage of the
123
+ * texture
124
+ * @error: A return location for a CoglError or %NULL
125
+ *
126
+ * Allocates a new #CoglTextureRectangle texture which will be
127
+ * initialized with the pixel data from @bitmap. Internally the data
128
+ * will be stored in the format given by @internal_format. This
129
+ * texture is a low-level texture that the GPU can sample from
130
+ * directly unlike high-level textures such as #CoglTexture2DSliced
131
+ * and #CoglAtlasTexture.
132
+ *
133
+ * <note>Unlike for #CoglTexture2D textures, coordinates for
134
+ * #CoglTextureRectangle textures should not be normalized. So instead
135
+ * of using the coordinate (1, 1) to sample the bottom right corner of
136
+ * a rectangle texture you would use (@width, @height) where @width
137
+ * and @height are the width and height of the texture.</note>
138
+ *
139
+ * <note>If you want to sample from a rectangle texture from GLSL you
140
+ * should use the sampler2DRect sampler type.</note>
141
+ *
142
+ * <note>Applications wanting to use #CoglTextureRectangle should
143
+ * first check for the %COGL_FEATURE_ID_TEXTURE_RECTANGLE feature
144
+ * using cogl_has_feature().</note>
145
+ *
146
+ * Returns: A pointer to a newly allocated #CoglTextureRectangle texture
147
+ * or if the size was too large or there wasn't enough memory
148
+ * %NULL is returned and @error set.
149
+ * Since: 2.0
150
+ * Stability: unstable
151
+ */
152
+ CoglTextureRectangle *
153
+ cogl_texture_rectangle_new_from_bitmap (CoglBitmap *bitmap,
154
+ CoglPixelFormat internal_format,
155
+ CoglError **error);
156
+
157
+ /**
158
+ * cogl_texture_rectangle_new_from_foreign:
159
+ * @ctx: A #CoglContext
160
+ * @gl_handle: A GL handle for a GL_TEXTURE_RECTANGLE texture object
161
+ * @width: Width of the foreign GL texture
162
+ * @height: Height of the foreign GL texture
163
+ * @internal_format: The format of the texture
164
+ * @error: A #CoglError for exceptions
165
+ *
166
+ * Wraps an existing GL_TEXTURE_RECTANGLE texture object as a
167
+ * #CoglTextureRectangle. This can be used for integrating Cogl with
168
+ * software using OpenGL directly.
169
+ *
170
+ * <note>Unlike for #CoglTexture2D textures, coordinates for
171
+ * #CoglTextureRectangle textures should not be normalized. So instead
172
+ * of using the coordinate (1, 1) to sample the bottom right corner of
173
+ * a rectangle texture you would use (@width, @height) where @width
174
+ * and @height are the width and height of the texture.</note>
175
+ *
176
+ * <note>The results are undefined for passing an invalid @gl_handle
177
+ * or if @width or @height don't have the correct texture
178
+ * geometry.</note>
179
+ *
180
+ * <note>If you want to sample from a rectangle texture from GLSL you
181
+ * should use the sampler2DRect sampler type.</note>
182
+ *
183
+ * <note>Applications wanting to use #CoglTextureRectangle should
184
+ * first check for the %COGL_FEATURE_ID_TEXTURE_RECTANGLE feature
185
+ * using cogl_has_feature().</note>
186
+
187
+ * Returns: A newly allocated #CoglTextureRectangle, or if Cogl could
188
+ * not validate the @gl_handle in some way (perhaps because
189
+ * of an unsupported format) it will return %NULL and set
190
+ * @error.
191
+ *
192
+
193
+ */
194
+ CoglTextureRectangle *
195
+ cogl_texture_rectangle_new_from_foreign (CoglContext *ctx,
196
+ unsigned int gl_handle,
197
+ int width,
198
+ int height,
199
+ CoglPixelFormat format,
200
+ CoglError **error);
201
+
202
+ COGL_END_DECLS
203
+
204
+ #endif /* __COGL_TEXURE_RECTANGLE_H */
@@ -0,0 +1,611 @@
1
+ /*
2
+ * Cogl
3
+ *
4
+ * An object oriented GL/GLES Abstraction/Utility Layer
5
+ *
6
+ * Copyright (C) 2007,2008,2009,2010 Intel Corporation.
7
+ *
8
+ * This library is free software; you can redistribute it and/or
9
+ * modify it under the terms of the GNU Lesser General Public
10
+ * License as published by the Free Software Foundation; either
11
+ * version 2 of the License, or (at your option) any later version.
12
+ *
13
+ * This library is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+ * Lesser General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Lesser General Public
19
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ *
22
+ */
23
+
24
+ #if !defined(__COGL_H_INSIDE__) && !defined(COGL_COMPILATION)
25
+ #error "Only <cogl/cogl.h> can be included directly."
26
+ #endif
27
+
28
+ #ifndef __COGL_TEXTURE_H__
29
+ #define __COGL_TEXTURE_H__
30
+
31
+ /* We forward declare the CoglTexture type here to avoid some circular
32
+ * dependency issues with the following headers.
33
+ */
34
+ typedef struct _CoglTexture CoglTexture;
35
+
36
+ #include <cogl/cogl-types.h>
37
+ #include <cogl/cogl-defines.h>
38
+ #if defined (COGL_ENABLE_EXPERIMENTAL_API)
39
+ #include <cogl/cogl-pixel-buffer.h>
40
+ #endif
41
+ #include <cogl/cogl-bitmap.h>
42
+
43
+ COGL_BEGIN_DECLS
44
+
45
+ /**
46
+ * SECTION:cogl-texture
47
+ * @short_description: Functions for creating and manipulating textures
48
+ *
49
+ * Cogl allows creating and manipulating textures using a uniform
50
+ * API that tries to hide all the various complexities of creating,
51
+ * loading and manipulating textures.
52
+ */
53
+
54
+ #define COGL_TEXTURE(X) ((CoglTexture *)X)
55
+
56
+ #define COGL_TEXTURE_MAX_WASTE 127
57
+
58
+ /**
59
+ * COGL_TEXTURE_ERROR:
60
+ *
61
+ * #CoglError domain for texture errors.
62
+ *
63
+ * Since: 2.0
64
+ * Stability: Unstable
65
+ */
66
+ #define COGL_TEXTURE_ERROR (cogl_texture_error_quark ())
67
+
68
+
69
+ /**
70
+ * CoglTextureError:
71
+ * @COGL_TEXTURE_ERROR_SIZE: Unsupported size
72
+ *
73
+ * Error codes that can be thrown when allocating textures.
74
+ *
75
+ * Since: 2.0
76
+ * Stability: Unstable
77
+ */
78
+ typedef enum {
79
+ COGL_TEXTURE_ERROR_SIZE,
80
+ COGL_TEXTURE_ERROR_FORMAT,
81
+ COGL_TEXTURE_ERROR_BAD_PARAMETER,
82
+ COGL_TEXTURE_ERROR_TYPE
83
+ } CoglTextureError;
84
+
85
+ /**
86
+ * CoglTextureType:
87
+ * @COGL_TEXTURE_TYPE_2D: A #CoglTexture2D
88
+ * @COGL_TEXTURE_TYPE_3D: A #CoglTexture3D
89
+ * @COGL_TEXTURE_TYPE_RECTANGLE: A #CoglTextureRectangle
90
+ *
91
+ * Constants representing the underlying hardware texture type of a
92
+ * #CoglTexture.
93
+ *
94
+ * Stability: unstable
95
+ * Since: 1.10
96
+ */
97
+ typedef enum {
98
+ COGL_TEXTURE_TYPE_2D,
99
+ COGL_TEXTURE_TYPE_3D,
100
+ COGL_TEXTURE_TYPE_RECTANGLE
101
+ } CoglTextureType;
102
+
103
+ uint32_t cogl_texture_error_quark (void);
104
+
105
+ /**
106
+ * cogl_texture_new_with_size:
107
+ * @width: width of texture in pixels.
108
+ * @height: height of texture in pixels.
109
+ * @flags: Optional flags for the texture, or %COGL_TEXTURE_NONE
110
+ * @internal_format: the #CoglPixelFormat to use for the GPU storage of the
111
+ * texture.
112
+ *
113
+ * Creates a new #CoglTexture with the specified dimensions and pixel format.
114
+ *
115
+ * The storage for the texture is not necesarily created before this
116
+ * function returns. The storage can be explicitly allocated using
117
+ * cogl_texture_allocate() or preferably you can let Cogl
118
+ * automatically allocate the storage lazily when uploading data when
119
+ * Cogl may know more about how the texture will be used and can
120
+ * optimize how it is allocated.
121
+ *
122
+ * Return value: A newly created #CoglTexture
123
+ *
124
+ * Since: 0.8
125
+ */
126
+ CoglTexture *
127
+ cogl_texture_new_with_size (unsigned int width,
128
+ unsigned int height,
129
+ CoglTextureFlags flags,
130
+ CoglPixelFormat internal_format);
131
+
132
+ /**
133
+ * cogl_texture_new_from_file:
134
+ * @filename: the file to load
135
+ * @flags: Optional flags for the texture, or %COGL_TEXTURE_NONE
136
+ * @internal_format: the #CoglPixelFormat to use for the GPU storage of the
137
+ * texture. If %COGL_PIXEL_FORMAT_ANY is given then a premultiplied
138
+ * format similar to the format of the source data will be used. The
139
+ * default blending equations of Cogl expect premultiplied color data;
140
+ * the main use of passing a non-premultiplied format here is if you
141
+ * have non-premultiplied source data and are going to adjust the blend
142
+ * mode (see cogl_material_set_blend()) or use the data for something
143
+ * other than straight blending.
144
+ * @error: return location for a #CoglError or %NULL
145
+ *
146
+ * Creates a #CoglTexture from an image file.
147
+ *
148
+ * Return value: A newly created #CoglTexture or %NULL on failure
149
+ *
150
+ * Since: 0.8
151
+ */
152
+ CoglTexture *
153
+ cogl_texture_new_from_file (const char *filename,
154
+ CoglTextureFlags flags,
155
+ CoglPixelFormat internal_format,
156
+ CoglError **error);
157
+
158
+ /**
159
+ * cogl_texture_new_from_data:
160
+ * @width: width of texture in pixels
161
+ * @height: height of texture in pixels
162
+ * @flags: Optional flags for the texture, or %COGL_TEXTURE_NONE
163
+ * @format: the #CoglPixelFormat the buffer is stored in in RAM
164
+ * @internal_format: the #CoglPixelFormat that will be used for storing
165
+ * the buffer on the GPU. If COGL_PIXEL_FORMAT_ANY is given then a
166
+ * premultiplied format similar to the format of the source data will
167
+ * be used. The default blending equations of Cogl expect premultiplied
168
+ * color data; the main use of passing a non-premultiplied format here
169
+ * is if you have non-premultiplied source data and are going to adjust
170
+ * the blend mode (see cogl_material_set_blend()) or use the data for
171
+ * something other than straight blending.
172
+ * @rowstride: the memory offset in bytes between the starts of
173
+ * scanlines in @data
174
+ * @data: pointer the memory region where the source buffer resides
175
+ *
176
+ * Creates a new #CoglTexture based on data residing in memory.
177
+ *
178
+ * Return value: A newly created #CoglTexture or %NULL on failure
179
+ *
180
+ * Since: 0.8
181
+ */
182
+ CoglTexture *
183
+ cogl_texture_new_from_data (int width,
184
+ int height,
185
+ CoglTextureFlags flags,
186
+ CoglPixelFormat format,
187
+ CoglPixelFormat internal_format,
188
+ int rowstride,
189
+ const uint8_t *data);
190
+
191
+ /**
192
+ * cogl_texture_new_from_foreign:
193
+ * @gl_handle: opengl handle of foreign texture.
194
+ * @gl_target: opengl target type of foreign texture
195
+ * @width: width of foreign texture
196
+ * @height: height of foreign texture.
197
+ * @x_pot_waste: horizontal waste on the right hand edge of the texture.
198
+ * @y_pot_waste: vertical waste on the bottom edge of the texture.
199
+ * @format: format of the foreign texture.
200
+ *
201
+ * Creates a #CoglTexture based on an existing OpenGL texture; the
202
+ * width, height and format are passed along since it is not always
203
+ * possible to query these from OpenGL.
204
+ *
205
+ * The waste arguments allow you to create a Cogl texture that maps to
206
+ * a region smaller than the real OpenGL texture. For instance if your
207
+ * hardware only supports power-of-two textures you may load a
208
+ * non-power-of-two image into a larger power-of-two texture and use
209
+ * the waste arguments to tell Cogl which region should be mapped to
210
+ * the texture coordinate range [0:1].
211
+ *
212
+ * Return value: A newly created #CoglTexture or %NULL on failure
213
+ *
214
+ * Since: 0.8
215
+ */
216
+ CoglTexture *
217
+ cogl_texture_new_from_foreign (unsigned int gl_handle,
218
+ unsigned int gl_target,
219
+ unsigned int width,
220
+ unsigned int height,
221
+ unsigned int x_pot_waste,
222
+ unsigned int y_pot_waste,
223
+ CoglPixelFormat format);
224
+
225
+ /**
226
+ * cogl_texture_new_from_bitmap:
227
+ * @bitmap: A #CoglBitmap pointer
228
+ * @flags: Optional flags for the texture, or %COGL_TEXTURE_NONE
229
+ * @internal_format: the #CoglPixelFormat to use for the GPU storage of the
230
+ * texture
231
+ *
232
+ * Creates a #CoglTexture from a #CoglBitmap.
233
+ *
234
+ * Return value: A newly created #CoglTexture or %NULL on failure
235
+ *
236
+ * Since: 1.0
237
+ */
238
+ CoglTexture *
239
+ cogl_texture_new_from_bitmap (CoglBitmap *bitmap,
240
+ CoglTextureFlags flags,
241
+ CoglPixelFormat internal_format);
242
+
243
+ /**
244
+ * cogl_is_texture:
245
+ * @object: A #CoglObject pointer
246
+ *
247
+ * Gets whether the given object references a texture object.
248
+ *
249
+ * Return value: %TRUE if the @object references a texture, and
250
+ * %FALSE otherwise
251
+ */
252
+ CoglBool
253
+ cogl_is_texture (void *object);
254
+
255
+ /**
256
+ * cogl_texture_get_width:
257
+ * @texture: a #CoglTexture pointer.
258
+ *
259
+ * Queries the width of a cogl texture.
260
+ *
261
+ * Return value: the width of the GPU side texture in pixels
262
+ */
263
+ unsigned int
264
+ cogl_texture_get_width (CoglTexture *texture);
265
+
266
+ /**
267
+ * cogl_texture_get_height:
268
+ * @texture: a #CoglTexture pointer.
269
+ *
270
+ * Queries the height of a cogl texture.
271
+ *
272
+ * Return value: the height of the GPU side texture in pixels
273
+ */
274
+ unsigned int
275
+ cogl_texture_get_height (CoglTexture *texture);
276
+
277
+ /**
278
+ * cogl_texture_get_format:
279
+ * @texture: a #CoglTexture pointer.
280
+ *
281
+ * Queries the #CoglPixelFormat of a cogl texture.
282
+ *
283
+ * Return value: the #CoglPixelFormat of the GPU side texture
284
+ */
285
+ CoglPixelFormat
286
+ cogl_texture_get_format (CoglTexture *texture);
287
+
288
+
289
+ /**
290
+ * cogl_texture_get_rowstride:
291
+ * @texture a #CoglTexture pointer.
292
+ *
293
+ * Determines the bytes-per-pixel for the #CoglPixelFormat retrieved
294
+ * from cogl_texture_get_format() and multiplies that by the texture's
295
+ * width.
296
+ *
297
+ * <note>It's very unlikely that anyone would need to use this API to
298
+ * query the internal rowstride of a #CoglTexture which can just be
299
+ * considered an implementation detail. Actually it's not even useful
300
+ * internally since underlying drivers are free to use a different
301
+ * format</note>
302
+ *
303
+ * <note>This API is only here for backwards compatibility and
304
+ * shouldn't be used in new code. In particular please don't be
305
+ * mislead to pass the returned value to cogl_texture_get_data() for
306
+ * the rowstride, since you should be passing the rowstride you desire
307
+ * for your destination buffer not the rowstride of the source
308
+ * texture.</note>
309
+ *
310
+ * Return value: The bytes-per-pixel for the current format
311
+ * multiplied by the texture's width
312
+ *
313
+ * Deprecated: 1.10: There's no replacement for the API but there's
314
+ * also no known need for API either. It was just
315
+ * a mistake that it was ever published.
316
+ */
317
+ unsigned int
318
+ cogl_texture_get_rowstride (CoglTexture *texture);
319
+
320
+ /**
321
+ * cogl_texture_get_max_waste:
322
+ * @texture: a #CoglTexture pointer.
323
+ *
324
+ * Queries the maximum wasted (unused) pixels in one dimension of a GPU side
325
+ * texture.
326
+ *
327
+ * Return value: the maximum waste
328
+ */
329
+ int
330
+ cogl_texture_get_max_waste (CoglTexture *texture);
331
+
332
+ /**
333
+ * cogl_texture_is_sliced:
334
+ * @texture: a #CoglTexture pointer.
335
+ *
336
+ * Queries if a texture is sliced (stored as multiple GPU side tecture
337
+ * objects).
338
+ *
339
+ * Return value: %TRUE if the texture is sliced, %FALSE if the texture
340
+ * is stored as a single GPU texture
341
+ */
342
+ CoglBool
343
+ cogl_texture_is_sliced (CoglTexture *texture);
344
+
345
+ /**
346
+ * cogl_texture_get_gl_texture:
347
+ * @texture: a #CoglTexture pointer.
348
+ * @out_gl_handle: (out) (allow-none): pointer to return location for the
349
+ * textures GL handle, or %NULL.
350
+ * @out_gl_target: (out) (allow-none): pointer to return location for the
351
+ * GL target type, or %NULL.
352
+ *
353
+ * Queries the GL handles for a GPU side texture through its #CoglTexture.
354
+ *
355
+ * If the texture is spliced the data for the first sub texture will be
356
+ * queried.
357
+ *
358
+ * Return value: %TRUE if the handle was successfully retrieved, %FALSE
359
+ * if the handle was invalid
360
+ */
361
+ CoglBool
362
+ cogl_texture_get_gl_texture (CoglTexture *texture,
363
+ unsigned int *out_gl_handle,
364
+ unsigned int *out_gl_target);
365
+
366
+ /**
367
+ * cogl_texture_get_data:
368
+ * @texture: a #CoglTexture pointer.
369
+ * @format: the #CoglPixelFormat to store the texture as.
370
+ * @rowstride: the rowstride of @data in bytes or pass 0 to calculate
371
+ * from the bytes-per-pixel of @format multiplied by the
372
+ * @texture width.
373
+ * @data: memory location to write the @texture's contents, or %NULL
374
+ * to only query the data size through the return value.
375
+ *
376
+ * Copies the pixel data from a cogl texture to system memory.
377
+ *
378
+ * <note>Don't pass the value of cogl_texture_get_rowstride() as the
379
+ * @rowstride argument, the rowstride should be the rowstride you
380
+ * want for the destination @data buffer not the rowstride of the
381
+ * source texture</note>
382
+ *
383
+ * Return value: the size of the texture data in bytes
384
+ */
385
+ int
386
+ cogl_texture_get_data (CoglTexture *texture,
387
+ CoglPixelFormat format,
388
+ unsigned int rowstride,
389
+ uint8_t *data);
390
+
391
+ /**
392
+ * cogl_texture_set_region:
393
+ * @texture: a #CoglTexture.
394
+ * @src_x: upper left coordinate to use from source data.
395
+ * @src_y: upper left coordinate to use from source data.
396
+ * @dst_x: upper left destination horizontal coordinate.
397
+ * @dst_y: upper left destination vertical coordinate.
398
+ * @dst_width: width of destination region to write. (Must be less
399
+ * than or equal to @width)
400
+ * @dst_height: height of destination region to write. (Must be less
401
+ * than or equal to @height)
402
+ * @width: width of source data buffer.
403
+ * @height: height of source data buffer.
404
+ * @format: the #CoglPixelFormat used in the source buffer.
405
+ * @rowstride: rowstride of source buffer (computed from width if none
406
+ * specified)
407
+ * @data: the actual pixel data.
408
+ *
409
+ * Sets the pixels in a rectangular subregion of @texture from an in-memory
410
+ * buffer containing pixel data.
411
+ *
412
+ * <note>The region set can't be larger than the source @data</note>
413
+ *
414
+ * Return value: %TRUE if the subregion upload was successful, and
415
+ * %FALSE otherwise
416
+ */
417
+ CoglBool
418
+ cogl_texture_set_region (CoglTexture *texture,
419
+ int src_x,
420
+ int src_y,
421
+ int dst_x,
422
+ int dst_y,
423
+ unsigned int dst_width,
424
+ unsigned int dst_height,
425
+ int width,
426
+ int height,
427
+ CoglPixelFormat format,
428
+ unsigned int rowstride,
429
+ const uint8_t *data);
430
+
431
+ #if defined (COGL_ENABLE_EXPERIMENTAL_API)
432
+
433
+ /**
434
+ * cogl_texture_set_data:
435
+ * @texture a #CoglTexture.
436
+ * @format: the #CoglPixelFormat used in the source @data buffer.
437
+ * @rowstride: rowstride of the source @data buffer (computed from
438
+ * the texture width and @format if it equals 0)
439
+ * @data: the source data, pointing to the first top-left pixel to set
440
+ * @level: The mipmap level to update (Normally 0 for the largest,
441
+ * base texture)
442
+ * @error: A #CoglError to return exceptional errors
443
+ *
444
+ * Sets all the pixels for a given mipmap @level by copying the pixel
445
+ * data pointed to by the @data argument into the given @texture.
446
+ *
447
+ * @data should point to the first pixel to copy corresponding
448
+ * to the top left of the mipmap @level being set.
449
+ *
450
+ * If @rowstride equals 0 then it will be automatically calculated
451
+ * from the width of the mipmap level and the bytes-per-pixel for the
452
+ * given @format.
453
+ *
454
+ * A mipmap @level of 0 corresponds to the largest, base image of a
455
+ * texture and @level 1 is half the width and height of level 0. If
456
+ * dividing any dimension of the previous level by two results in a
457
+ * fraction then round the number down (floor()), but clamp to 1
458
+ * something like this:
459
+ *
460
+ * |[
461
+ * next_width = MAX (1, floor (prev_width));
462
+ * ]|
463
+ *
464
+ * You can determine the number of mipmap levels for a given texture
465
+ * like this:
466
+ *
467
+ * |[
468
+ * n_levels = 1 + floor (log2 (max_dimension));
469
+ * ]|
470
+ *
471
+ * Where %max_dimension is the larger of cogl_texture_get_width() and
472
+ * cogl_texture_get_height().
473
+ *
474
+ * It is an error to pass a @level number >= the number of levels that
475
+ * @texture can have according to the above calculation.
476
+ *
477
+ * <note>Since the storage for a #CoglTexture is allocated lazily then
478
+ * if the given @texture has not previously been allocated then this
479
+ * api can return %FALSE and throw an exceptional @error if there is
480
+ * not enough memory to allocate storage for @texture.</note>
481
+ *
482
+ * Return value: %TRUE if the data upload was successful, and
483
+ * %FALSE otherwise
484
+ */
485
+ CoglBool
486
+ cogl_texture_set_data (CoglTexture *texture,
487
+ CoglPixelFormat format,
488
+ int rowstride,
489
+ const uint8_t *data,
490
+ int level,
491
+ CoglError **error);
492
+
493
+ /**
494
+ * cogl_texture_set_region_from_bitmap:
495
+ * @texture: a #CoglTexture pointer
496
+ * @src_x: upper left coordinate to use from the source bitmap.
497
+ * @src_y: upper left coordinate to use from the source bitmap
498
+ * @dst_x: upper left destination horizontal coordinate.
499
+ * @dst_y: upper left destination vertical coordinate.
500
+ * @dst_width: width of destination region to write. (Must be less
501
+ * than or equal to the bitmap width)
502
+ * @dst_height: height of destination region to write. (Must be less
503
+ * than or equal to the bitmap height)
504
+ * @bitmap: The source bitmap to read from
505
+ *
506
+ * Copies a specified source region from @bitmap to the position
507
+ * (@src_x, @src_y) of the given destination texture @handle.
508
+ *
509
+ * <note>The region updated can't be larger than the source
510
+ * bitmap</note>
511
+ *
512
+ * Return value: %TRUE if the subregion upload was successful, and
513
+ * %FALSE otherwise
514
+ *
515
+ * Since: 1.8
516
+ * Stability: unstable
517
+ */
518
+ CoglBool
519
+ cogl_texture_set_region_from_bitmap (CoglTexture *texture,
520
+ int src_x,
521
+ int src_y,
522
+ int dst_x,
523
+ int dst_y,
524
+ unsigned int dst_width,
525
+ unsigned int dst_height,
526
+ CoglBitmap *bitmap);
527
+ #endif
528
+
529
+ /**
530
+ * cogl_texture_new_from_sub_texture:
531
+ * @full_texture: a #CoglTexture pointer
532
+ * @sub_x: X coordinate of the top-left of the subregion
533
+ * @sub_y: Y coordinate of the top-left of the subregion
534
+ * @sub_width: Width in pixels of the subregion
535
+ * @sub_height: Height in pixels of the subregion
536
+ *
537
+ * Creates a new texture which represents a subregion of another
538
+ * texture. The GL resources will be shared so that no new texture
539
+ * data is actually allocated.
540
+ *
541
+ * Sub textures have undefined behaviour texture coordinates outside
542
+ * of the range [0,1] are used. They also do not work with
543
+ * CoglVertexBuffers.
544
+ *
545
+ * The sub texture will keep a reference to the full texture so you do
546
+ * not need to keep one separately if you only want to use the sub
547
+ * texture.
548
+ *
549
+ * Return value: A newly created #CoglTexture or %NULL on failure
550
+ * Since: 1.2
551
+ */
552
+ CoglTexture *
553
+ cogl_texture_new_from_sub_texture (CoglTexture *full_texture,
554
+ int sub_x,
555
+ int sub_y,
556
+ int sub_width,
557
+ int sub_height);
558
+
559
+ #ifndef COGL_DISABLE_DEPRECATED
560
+
561
+ /**
562
+ * cogl_texture_ref:
563
+ * @texture: a #CoglTexture.
564
+ *
565
+ * Increment the reference count for a cogl texture.
566
+ *
567
+ * Deprecated: 1.2: Use cogl_object_ref() instead
568
+ *
569
+ * Return value: the @texture pointer.
570
+ */
571
+ void *
572
+ cogl_texture_ref (void *texture) G_GNUC_DEPRECATED;
573
+
574
+ /**
575
+ * cogl_texture_unref:
576
+ * @texture: a #CoglTexture.
577
+ *
578
+ * Decrement the reference count for a cogl texture.
579
+ *
580
+ * Deprecated: 1.2: Use cogl_object_unref() instead
581
+ */
582
+ void
583
+ cogl_texture_unref (void *texture) G_GNUC_DEPRECATED;
584
+
585
+ #endif /* COGL_DISABLE_DEPRECATED */
586
+
587
+ /**
588
+ * cogl_texture_allocate:
589
+ * @texture: A #CoglTexture
590
+ * @error: A #CoglError to return exceptional errors or %NULL
591
+ *
592
+ * Explicitly allocates the storage for the given @texture which
593
+ * allows you to be sure that there is enough memory for the
594
+ * texture and if not then the error can be handled gracefully.
595
+ *
596
+ * <note>Normally applications don't need to use this api directly
597
+ * since the texture will be implicitly allocated when data is set on
598
+ * the texture, or if the texture is attached to a #CoglOffscreen
599
+ * framebuffer and rendered too.</note>
600
+ *
601
+ * Return value: %TRUE if the texture was successfully allocated,
602
+ * otherwise %FALSE and @error will be updated if it
603
+ * wasn't %NULL.
604
+ */
605
+ CoglBool
606
+ cogl_texture_allocate (CoglTexture *texture,
607
+ CoglError **error);
608
+
609
+ COGL_END_DECLS
610
+
611
+ #endif /* __COGL_TEXTURE_H__ */