pango 3.1.1-x64-mingw32 → 3.1.2-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +27 -5
- data/ext/pango/depend +2 -2
- data/ext/pango/extconf.rb +32 -28
- data/ext/pango/pango.def +0 -16
- data/ext/pango/rb-pango-attr-list.c +64 -0
- data/ext/pango/rb-pango-attribute.c +147 -0
- data/ext/pango/rb-pango-context.c +79 -0
- data/ext/pango/{rbpangoconversions.h → rb-pango-conversions.h} +4 -6
- data/ext/pango/rb-pango-private.h +27 -0
- data/ext/pango/rb-pango.c +32 -0
- data/ext/pango/rb-pango.h +29 -0
- data/extconf.rb +25 -9
- data/lib/2.2/pango.so +0 -0
- data/lib/2.3/pango.so +0 -0
- data/lib/2.4/pango.so +0 -0
- data/lib/pango.rb +24 -68
- data/lib/pango/cairo-loader.rb +63 -0
- data/lib/pango/color.rb +31 -0
- data/lib/pango/deprecated.rb +37 -0
- data/lib/pango/font-description.rb +29 -0
- data/lib/pango/language.rb +29 -0
- data/lib/pango/layout.rb +41 -0
- data/lib/pango/loader.rb +87 -0
- data/lib/pango/markup.rb +31 -0
- data/lib/pango/matrix.rb +64 -0
- data/lib/pango/rectangle.rb +28 -0
- data/lib/pango/version.rb +30 -0
- data/test/pango-test-utils.rb +7 -7
- data/test/run-test.rb +34 -8
- data/test/test-attr-list.rb +28 -0
- data/test/test-color.rb +1 -3
- data/test/test-context.rb +4 -4
- data/test/test-enum.rb +37 -0
- data/test/test-font-description.rb +31 -0
- data/test/test-language.rb +2 -1
- data/test/test-layout.rb +12 -0
- data/test/test-markup.rb +30 -0
- data/test/test-matrix.rb +131 -5
- data/test/test-rectangle.rb +16 -3
- data/vendor/local/bin/derb.exe +0 -0
- data/vendor/local/bin/genbrk.exe +0 -0
- data/vendor/local/bin/genccode.exe +0 -0
- data/vendor/local/bin/gencfu.exe +0 -0
- data/vendor/local/bin/gencmn.exe +0 -0
- data/vendor/local/bin/gencnval.exe +0 -0
- data/vendor/local/bin/gendict.exe +0 -0
- data/vendor/local/bin/gennorm2.exe +0 -0
- data/vendor/local/bin/genrb.exe +0 -0
- data/vendor/local/bin/gensprep.exe +0 -0
- data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
- data/vendor/local/bin/hb-shape.exe +0 -0
- data/vendor/local/bin/hb-view.exe +0 -0
- data/vendor/local/bin/icuinfo.exe +0 -0
- data/vendor/local/bin/icupkg.exe +0 -0
- data/vendor/local/bin/libgraphene-1.0-0.dll +0 -0
- data/vendor/local/bin/libharfbuzz-0.dll +0 -0
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/makeconv.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/bin/pkgdata.exe +0 -0
- data/vendor/local/bin/uconv.exe +0 -0
- data/vendor/local/include/graphene-1.0/graphene-box.h +148 -0
- data/vendor/local/include/graphene-1.0/graphene-euler.h +140 -0
- data/vendor/local/include/graphene-1.0/graphene-frustum.h +93 -0
- data/vendor/local/include/graphene-1.0/graphene-gobject.h +119 -0
- data/vendor/local/include/graphene-1.0/graphene-macros.h +105 -0
- data/vendor/local/include/graphene-1.0/graphene-matrix.h +288 -0
- data/vendor/local/include/graphene-1.0/graphene-plane.h +99 -0
- data/vendor/local/include/graphene-1.0/graphene-point.h +120 -0
- data/vendor/local/include/graphene-1.0/graphene-point3d.h +140 -0
- data/vendor/local/include/graphene-1.0/graphene-quad.h +80 -0
- data/vendor/local/include/graphene-1.0/graphene-quaternion.h +136 -0
- data/vendor/local/include/graphene-1.0/graphene-ray.h +98 -0
- data/vendor/local/include/graphene-1.0/graphene-rect.h +180 -0
- data/vendor/local/include/graphene-1.0/graphene-simd4f.h +1870 -0
- data/vendor/local/include/graphene-1.0/graphene-simd4x4f.h +1045 -0
- data/vendor/local/include/graphene-1.0/graphene-size.h +105 -0
- data/vendor/local/include/graphene-1.0/graphene-sphere.h +97 -0
- data/vendor/local/include/graphene-1.0/graphene-triangle.h +105 -0
- data/vendor/local/include/graphene-1.0/graphene-types.h +88 -0
- data/vendor/local/include/graphene-1.0/graphene-vec2.h +130 -0
- data/vendor/local/include/graphene-1.0/graphene-vec3.h +155 -0
- data/vendor/local/include/graphene-1.0/graphene-vec4.h +156 -0
- data/vendor/local/include/graphene-1.0/graphene-version-macros.h +185 -0
- data/vendor/local/include/graphene-1.0/graphene-version.h +70 -0
- data/vendor/local/include/graphene-1.0/graphene.h +61 -0
- data/vendor/local/include/harfbuzz/hb-common.h +36 -0
- data/vendor/local/include/harfbuzz/hb-font.h +18 -1
- data/vendor/local/include/harfbuzz/hb-ot-var.h +105 -0
- data/vendor/local/include/harfbuzz/hb-ot.h +1 -0
- data/vendor/local/include/harfbuzz/hb-shape.h +0 -16
- data/vendor/local/include/harfbuzz/hb-version.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-engine.h +6 -6
- data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-layout.h +1 -1
- data/vendor/local/lib/girepository-1.0/Graphene-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
- data/vendor/local/lib/graphene-1.0/include/graphene-config.h +89 -0
- data/vendor/local/lib/icudt.dll +0 -0
- data/vendor/local/lib/icudt58.dll +0 -0
- data/vendor/local/lib/icuin.dll +0 -0
- data/vendor/local/lib/icuin58.dll +0 -0
- data/vendor/local/lib/icuio.dll +0 -0
- data/vendor/local/lib/icuio58.dll +0 -0
- data/vendor/local/lib/icutest.dll +0 -0
- data/vendor/local/lib/icutest58.dll +0 -0
- data/vendor/local/lib/icutu.dll +0 -0
- data/vendor/local/lib/icutu58.dll +0 -0
- data/vendor/local/lib/icuuc.dll +0 -0
- data/vendor/local/lib/icuuc58.dll +0 -0
- data/vendor/local/lib/libgraphene-1.0.dll.a +0 -0
- data/vendor/local/lib/libgraphene-1.0.la +41 -0
- data/vendor/local/lib/libharfbuzz-icu.a +0 -0
- data/vendor/local/lib/libharfbuzz-icu.la +1 -1
- data/vendor/local/lib/libharfbuzz.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz.la +1 -1
- data/vendor/local/lib/libicudt.dll.a +0 -0
- data/vendor/local/lib/libicuin.dll.a +0 -0
- data/vendor/local/lib/libicuio.dll.a +0 -0
- data/vendor/local/lib/libicutest.dll.a +0 -0
- data/vendor/local/lib/libicutu.dll.a +0 -0
- data/vendor/local/lib/libicuuc.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.la +1 -1
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.la +1 -1
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.la +1 -1
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +1 -1
- data/vendor/local/lib/pkgconfig/graphene-1.0.pc +15 -0
- data/vendor/local/lib/pkgconfig/graphene-gobject-1.0.pc +15 -0
- data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +1 -1
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
- data/vendor/local/lib/pkgconfig/pango.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
- data/vendor/local/share/gir-1.0/Graphene-1.0.gir +8180 -0
- data/vendor/local/share/gir-1.0/Pango-1.0.gir +12 -16
- data/vendor/local/share/gtk-doc/html/graphene/annotation-glossary.html +57 -0
- data/vendor/local/share/gtk-doc/html/graphene/api-index.html +1985 -0
- data/vendor/local/share/gtk-doc/html/graphene/ch01.html +97 -0
- data/vendor/local/share/gtk-doc/html/graphene/deprecated-api-index.html +34 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Box.html +1252 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Euler.html +886 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Frustum.html +527 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-GObject-integration.html +147 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Matrix.html +2959 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Plane.html +641 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Point.html +689 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Point3D.html +916 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Quad.html +418 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Quaternion.html +1056 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Ray.html +596 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Rectangle.html +1483 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-matrix.html +1475 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-vector.html +3046 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Size.html +489 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Sphere.html +641 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Triangle.html +705 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Vectors.html +3715 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Versioning-information.html +104 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene.devhelp2 +534 -0
- data/vendor/local/share/gtk-doc/html/graphene/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/index.html +107 -0
- data/vendor/local/share/gtk-doc/html/graphene/ix03.html +1313 -0
- data/vendor/local/share/gtk-doc/html/graphene/ix04.html +582 -0
- data/vendor/local/share/gtk-doc/html/graphene/ix05.html +151 -0
- data/vendor/local/share/gtk-doc/html/graphene/ix06.html +34 -0
- data/vendor/local/share/gtk-doc/html/graphene/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/{pango/api-index-1-40.html → graphene/object-tree.html} +14 -11
- data/vendor/local/share/gtk-doc/html/graphene/rectangle-intersection.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/rectangle-union.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/rectangle.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/style.css +479 -0
- data/vendor/local/share/gtk-doc/html/graphene/triangle-barycentric.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-2-3.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/{api-index-1-4-0.html → api-index-1-3-3.html} +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +104 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +9 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Shaping.html +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +156 -40
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +73 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +1 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +49 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-math.html +174 -177
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +40 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +28 -10
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/index.html +2 -23
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +69 -69
- data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +5 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +5 -4
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +8 -4
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +3 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +1 -1
- data/vendor/local/share/man/man1/pango-view.1 +2 -2
- metadata +119 -78
- data/README +0 -32
- data/ext/pango/rbpango.c +0 -356
- data/ext/pango/rbpango.h +0 -95
- data/ext/pango/rbpangoanalysis.c +0 -218
- data/ext/pango/rbpangoattribute.c +0 -506
- data/ext/pango/rbpangoattriterator.c +0 -141
- data/ext/pango/rbpangoattrlist.c +0 -101
- data/ext/pango/rbpangocairo.c +0 -122
- data/ext/pango/rbpangocairocontext.c +0 -131
- data/ext/pango/rbpangocolor.c +0 -120
- data/ext/pango/rbpangocontext.c +0 -344
- data/ext/pango/rbpangocoverage.c +0 -106
- data/ext/pango/rbpangoengine.c +0 -73
- data/ext/pango/rbpangofont.c +0 -110
- data/ext/pango/rbpangofontdescription.c +0 -282
- data/ext/pango/rbpangofontface.c +0 -73
- data/ext/pango/rbpangofontfamily.c +0 -79
- data/ext/pango/rbpangofontmap.c +0 -102
- data/ext/pango/rbpangofontmetrics.c +0 -85
- data/ext/pango/rbpangofontset.c +0 -69
- data/ext/pango/rbpangofontsetsimple.c +0 -60
- data/ext/pango/rbpangoglyphinfo.c +0 -123
- data/ext/pango/rbpangoglyphitem.c +0 -125
- data/ext/pango/rbpangoglyphstring.c +0 -151
- data/ext/pango/rbpangogravity.c +0 -54
- data/ext/pango/rbpangoitem.c +0 -95
- data/ext/pango/rbpangolanguage.c +0 -94
- data/ext/pango/rbpangolayout.c +0 -583
- data/ext/pango/rbpangolayoutiter.c +0 -189
- data/ext/pango/rbpangolayoutline.c +0 -243
- data/ext/pango/rbpangologattr.c +0 -109
- data/ext/pango/rbpangomatrix.c +0 -143
- data/ext/pango/rbpangoprivate.h +0 -49
- data/ext/pango/rbpangorectangle.c +0 -170
- data/ext/pango/rbpangorenderer.c +0 -193
- data/ext/pango/rbpangoscript.c +0 -84
- data/ext/pango/rbpangoscriptiter.c +0 -92
- data/ext/pango/rbpangotabarray.c +0 -128
- data/sample/attribute.rb +0 -82
- data/sample/break.rb +0 -28
- data/sample/gdk_layout.rb +0 -27
- data/sample/glyphstring.rb +0 -61
- data/sample/item.rb +0 -37
- data/sample/label.rb +0 -23
- data/sample/layout.rb +0 -102
- data/sample/pango_cairo.rb +0 -66
- data/sample/parse.rb +0 -33
- data/sample/sample.txt +0 -10
- data/sample/script.rb +0 -23
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +0 -134
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +0 -48
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +0 -63
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +0 -227
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +0 -151
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +0 -121
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +0 -86
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +0 -123
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +0 -96
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +0 -45
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +0 -38
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +0 -38
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +0 -52
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +0 -41
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +0 -38
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-38.html +0 -79
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +0 -200
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +0 -164
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +0 -170
- data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +0 -441
@@ -0,0 +1,155 @@
|
|
1
|
+
/* graphene-vec3.h: 3-coords vector
|
2
|
+
*
|
3
|
+
* Copyright 2014 Emmanuele Bassi
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/
|
23
|
+
|
24
|
+
#ifndef __GRAPHENE_VEC3_H__
|
25
|
+
#define __GRAPHENE_VEC3_H__
|
26
|
+
|
27
|
+
#if !defined(GRAPHENE_H_INSIDE) && !defined(GRAPHENE_COMPILATION)
|
28
|
+
#error "Only graphene.h can be included directly."
|
29
|
+
#endif
|
30
|
+
|
31
|
+
#include "graphene-types.h"
|
32
|
+
|
33
|
+
GRAPHENE_BEGIN_DECLS
|
34
|
+
|
35
|
+
/**
|
36
|
+
* graphene_vec3_t:
|
37
|
+
*
|
38
|
+
* A structure capable of holding a vector with three dimensions: x, y, and z.
|
39
|
+
*
|
40
|
+
* The contents of the #graphene_vec3_t structure are private and should
|
41
|
+
* never be accessed directly.
|
42
|
+
*/
|
43
|
+
struct _graphene_vec3_t
|
44
|
+
{
|
45
|
+
/*< private >*/
|
46
|
+
GRAPHENE_PRIVATE_FIELD (graphene_simd4f_t, value);
|
47
|
+
};
|
48
|
+
|
49
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
50
|
+
graphene_vec3_t * graphene_vec3_alloc (void);
|
51
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
52
|
+
void graphene_vec3_free (graphene_vec3_t *v);
|
53
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
54
|
+
graphene_vec3_t * graphene_vec3_init (graphene_vec3_t *v,
|
55
|
+
float x,
|
56
|
+
float y,
|
57
|
+
float z);
|
58
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
59
|
+
graphene_vec3_t * graphene_vec3_init_from_vec3 (graphene_vec3_t *v,
|
60
|
+
const graphene_vec3_t *src);
|
61
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
62
|
+
graphene_vec3_t * graphene_vec3_init_from_float (graphene_vec3_t *v,
|
63
|
+
const float *src);
|
64
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
65
|
+
void graphene_vec3_to_float (const graphene_vec3_t *v,
|
66
|
+
float *dest);
|
67
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
68
|
+
void graphene_vec3_add (const graphene_vec3_t *a,
|
69
|
+
const graphene_vec3_t *b,
|
70
|
+
graphene_vec3_t *res);
|
71
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
72
|
+
void graphene_vec3_subtract (const graphene_vec3_t *a,
|
73
|
+
const graphene_vec3_t *b,
|
74
|
+
graphene_vec3_t *res);
|
75
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
76
|
+
void graphene_vec3_multiply (const graphene_vec3_t *a,
|
77
|
+
const graphene_vec3_t *b,
|
78
|
+
graphene_vec3_t *res);
|
79
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
80
|
+
void graphene_vec3_divide (const graphene_vec3_t *a,
|
81
|
+
const graphene_vec3_t *b,
|
82
|
+
graphene_vec3_t *res);
|
83
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
84
|
+
void graphene_vec3_cross (const graphene_vec3_t *a,
|
85
|
+
const graphene_vec3_t *b,
|
86
|
+
graphene_vec3_t *res);
|
87
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
88
|
+
float graphene_vec3_dot (const graphene_vec3_t *a,
|
89
|
+
const graphene_vec3_t *b);
|
90
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
91
|
+
float graphene_vec3_length (const graphene_vec3_t *v);
|
92
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
93
|
+
void graphene_vec3_normalize (const graphene_vec3_t *v,
|
94
|
+
graphene_vec3_t *res);
|
95
|
+
GRAPHENE_AVAILABLE_IN_1_2
|
96
|
+
void graphene_vec3_scale (const graphene_vec3_t *v,
|
97
|
+
float factor,
|
98
|
+
graphene_vec3_t *res);
|
99
|
+
GRAPHENE_AVAILABLE_IN_1_2
|
100
|
+
void graphene_vec3_negate (const graphene_vec3_t *v,
|
101
|
+
graphene_vec3_t *res);
|
102
|
+
GRAPHENE_AVAILABLE_IN_1_2
|
103
|
+
bool graphene_vec3_equal (const graphene_vec3_t *v1,
|
104
|
+
const graphene_vec3_t *v2);
|
105
|
+
GRAPHENE_AVAILABLE_IN_1_2
|
106
|
+
bool graphene_vec3_near (const graphene_vec3_t *v1,
|
107
|
+
const graphene_vec3_t *v2,
|
108
|
+
float epsilon);
|
109
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
110
|
+
void graphene_vec3_min (const graphene_vec3_t *a,
|
111
|
+
const graphene_vec3_t *b,
|
112
|
+
graphene_vec3_t *res);
|
113
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
114
|
+
void graphene_vec3_max (const graphene_vec3_t *a,
|
115
|
+
const graphene_vec3_t *b,
|
116
|
+
graphene_vec3_t *res);
|
117
|
+
|
118
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
119
|
+
float graphene_vec3_get_x (const graphene_vec3_t *v);
|
120
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
121
|
+
float graphene_vec3_get_y (const graphene_vec3_t *v);
|
122
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
123
|
+
float graphene_vec3_get_z (const graphene_vec3_t *v);
|
124
|
+
|
125
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
126
|
+
void graphene_vec3_get_xy (const graphene_vec3_t *v,
|
127
|
+
graphene_vec2_t *res);
|
128
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
129
|
+
void graphene_vec3_get_xy0 (const graphene_vec3_t *v,
|
130
|
+
graphene_vec3_t *res);
|
131
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
132
|
+
void graphene_vec3_get_xyz0 (const graphene_vec3_t *v,
|
133
|
+
graphene_vec4_t *res);
|
134
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
135
|
+
void graphene_vec3_get_xyz1 (const graphene_vec3_t *v,
|
136
|
+
graphene_vec4_t *res);
|
137
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
138
|
+
void graphene_vec3_get_xyzw (const graphene_vec3_t *v,
|
139
|
+
float w,
|
140
|
+
graphene_vec4_t *res);
|
141
|
+
|
142
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
143
|
+
const graphene_vec3_t * graphene_vec3_zero (void);
|
144
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
145
|
+
const graphene_vec3_t * graphene_vec3_one (void);
|
146
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
147
|
+
const graphene_vec3_t * graphene_vec3_x_axis (void);
|
148
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
149
|
+
const graphene_vec3_t * graphene_vec3_y_axis (void);
|
150
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
151
|
+
const graphene_vec3_t * graphene_vec3_z_axis (void);
|
152
|
+
|
153
|
+
GRAPHENE_END_DECLS
|
154
|
+
|
155
|
+
#endif /* __GRAPHENE_VEC3_H__ */
|
@@ -0,0 +1,156 @@
|
|
1
|
+
/* graphene-vec4.h: 4-coords vector
|
2
|
+
*
|
3
|
+
* Copyright 2014 Emmanuele Bassi
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/
|
23
|
+
|
24
|
+
#ifndef __GRAPHENE_VEC4_H__
|
25
|
+
#define __GRAPHENE_VEC4_H__
|
26
|
+
|
27
|
+
#if !defined(GRAPHENE_H_INSIDE) && !defined(GRAPHENE_COMPILATION)
|
28
|
+
#error "Only graphene.h can be included directly."
|
29
|
+
#endif
|
30
|
+
|
31
|
+
#include "graphene-types.h"
|
32
|
+
|
33
|
+
GRAPHENE_BEGIN_DECLS
|
34
|
+
|
35
|
+
/**
|
36
|
+
* graphene_vec4_t:
|
37
|
+
*
|
38
|
+
* A structure capable of holding a vector with four dimensions: x, y, z, and w.
|
39
|
+
*
|
40
|
+
* The contents of the #graphene_vec4_t structure are private and should
|
41
|
+
* never be accessed directly.
|
42
|
+
*/
|
43
|
+
struct _graphene_vec4_t
|
44
|
+
{
|
45
|
+
/*< private >*/
|
46
|
+
GRAPHENE_PRIVATE_FIELD (graphene_simd4f_t, value);
|
47
|
+
};
|
48
|
+
|
49
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
50
|
+
graphene_vec4_t * graphene_vec4_alloc (void);
|
51
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
52
|
+
void graphene_vec4_free (graphene_vec4_t *v);
|
53
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
54
|
+
graphene_vec4_t * graphene_vec4_init (graphene_vec4_t *v,
|
55
|
+
float x,
|
56
|
+
float y,
|
57
|
+
float z,
|
58
|
+
float w);
|
59
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
60
|
+
graphene_vec4_t * graphene_vec4_init_from_vec4 (graphene_vec4_t *v,
|
61
|
+
const graphene_vec4_t *src);
|
62
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
63
|
+
graphene_vec4_t * graphene_vec4_init_from_vec3 (graphene_vec4_t *v,
|
64
|
+
const graphene_vec3_t *src,
|
65
|
+
float w);
|
66
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
67
|
+
graphene_vec4_t * graphene_vec4_init_from_vec2 (graphene_vec4_t *v,
|
68
|
+
const graphene_vec2_t *src,
|
69
|
+
float z,
|
70
|
+
float w);
|
71
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
72
|
+
graphene_vec4_t * graphene_vec4_init_from_float (graphene_vec4_t *v,
|
73
|
+
const float *src);
|
74
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
75
|
+
void graphene_vec4_to_float (const graphene_vec4_t *v,
|
76
|
+
float *dest);
|
77
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
78
|
+
void graphene_vec4_add (const graphene_vec4_t *a,
|
79
|
+
const graphene_vec4_t *b,
|
80
|
+
graphene_vec4_t *res);
|
81
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
82
|
+
void graphene_vec4_subtract (const graphene_vec4_t *a,
|
83
|
+
const graphene_vec4_t *b,
|
84
|
+
graphene_vec4_t *res);
|
85
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
86
|
+
void graphene_vec4_multiply (const graphene_vec4_t *a,
|
87
|
+
const graphene_vec4_t *b,
|
88
|
+
graphene_vec4_t *res);
|
89
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
90
|
+
void graphene_vec4_divide (const graphene_vec4_t *a,
|
91
|
+
const graphene_vec4_t *b,
|
92
|
+
graphene_vec4_t *res);
|
93
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
94
|
+
float graphene_vec4_dot (const graphene_vec4_t *a,
|
95
|
+
const graphene_vec4_t *b);
|
96
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
97
|
+
float graphene_vec4_length (const graphene_vec4_t *v);
|
98
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
99
|
+
void graphene_vec4_normalize (const graphene_vec4_t *v,
|
100
|
+
graphene_vec4_t *res);
|
101
|
+
GRAPHENE_AVAILABLE_IN_1_2
|
102
|
+
void graphene_vec4_scale (const graphene_vec4_t *v,
|
103
|
+
float factor,
|
104
|
+
graphene_vec4_t *res);
|
105
|
+
GRAPHENE_AVAILABLE_IN_1_2
|
106
|
+
void graphene_vec4_negate (const graphene_vec4_t *v,
|
107
|
+
graphene_vec4_t *res);
|
108
|
+
GRAPHENE_AVAILABLE_IN_1_2
|
109
|
+
bool graphene_vec4_equal (const graphene_vec4_t *v1,
|
110
|
+
const graphene_vec4_t *v2);
|
111
|
+
GRAPHENE_AVAILABLE_IN_1_2
|
112
|
+
bool graphene_vec4_near (const graphene_vec4_t *v1,
|
113
|
+
const graphene_vec4_t *v2,
|
114
|
+
float epsilon);
|
115
|
+
|
116
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
117
|
+
void graphene_vec4_min (const graphene_vec4_t *a,
|
118
|
+
const graphene_vec4_t *b,
|
119
|
+
graphene_vec4_t *res);
|
120
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
121
|
+
void graphene_vec4_max (const graphene_vec4_t *a,
|
122
|
+
const graphene_vec4_t *b,
|
123
|
+
graphene_vec4_t *res);
|
124
|
+
|
125
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
126
|
+
float graphene_vec4_get_x (const graphene_vec4_t *v);
|
127
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
128
|
+
float graphene_vec4_get_y (const graphene_vec4_t *v);
|
129
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
130
|
+
float graphene_vec4_get_z (const graphene_vec4_t *v);
|
131
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
132
|
+
float graphene_vec4_get_w (const graphene_vec4_t *v);
|
133
|
+
|
134
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
135
|
+
void graphene_vec4_get_xy (const graphene_vec4_t *v,
|
136
|
+
graphene_vec2_t *res);
|
137
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
138
|
+
void graphene_vec4_get_xyz (const graphene_vec4_t *v,
|
139
|
+
graphene_vec3_t *res);
|
140
|
+
|
141
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
142
|
+
const graphene_vec4_t * graphene_vec4_zero (void);
|
143
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
144
|
+
const graphene_vec4_t * graphene_vec4_one (void);
|
145
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
146
|
+
const graphene_vec4_t * graphene_vec4_x_axis (void);
|
147
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
148
|
+
const graphene_vec4_t * graphene_vec4_y_axis (void);
|
149
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
150
|
+
const graphene_vec4_t * graphene_vec4_z_axis (void);
|
151
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
152
|
+
const graphene_vec4_t * graphene_vec4_w_axis (void);
|
153
|
+
|
154
|
+
GRAPHENE_END_DECLS
|
155
|
+
|
156
|
+
#endif /* __GRAPHENE_VECTORS_H__ */
|
@@ -0,0 +1,185 @@
|
|
1
|
+
/* graphene-version.h: Versioning macros
|
2
|
+
*
|
3
|
+
* Copyright 2014 Emmanuele Bassi
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/
|
23
|
+
|
24
|
+
#ifndef __GRAPHENE_VERSION_MACROS_H__
|
25
|
+
#define __GRAPHENE_VERSION_MACROS_H__
|
26
|
+
|
27
|
+
#if !defined(GRAPHENE_H_INSIDE) && !defined(GRAPHENE_COMPILATION)
|
28
|
+
#error "Only graphene.h can be included directly."
|
29
|
+
#endif
|
30
|
+
|
31
|
+
#include "graphene-version.h"
|
32
|
+
|
33
|
+
/**
|
34
|
+
* GRAPHENE_ENCODE_VERSION:
|
35
|
+
* @major: a major version
|
36
|
+
* @minor: a minor version
|
37
|
+
* @micro: a micro version
|
38
|
+
*
|
39
|
+
* Encodes the given components into a value that can be used for
|
40
|
+
* version checks.
|
41
|
+
*
|
42
|
+
* Since: 1.0
|
43
|
+
*/
|
44
|
+
#define GRAPHENE_ENCODE_VERSION(major,minor,micro) \
|
45
|
+
((major) << 24 | (minor) << 16 | (micro) << 8)
|
46
|
+
|
47
|
+
#define _GRAPHENE_ENCODE_VERSION(maj,min) \
|
48
|
+
((maj) << 16 | (min) << 8)
|
49
|
+
|
50
|
+
#ifdef GRAPHENE_DISABLE_DEPRECATION_WARNINGS
|
51
|
+
# define GRAPHENE_DEPRECATED _GRAPHENE_PUBLIC
|
52
|
+
# define GRAPHENE_DEPRECATED_FOR(f) _GRAPHENE_PUBLIC
|
53
|
+
# define GRAPHENE_UNAVAILABLE(maj,min) _GRAPHENE_PUBLIC
|
54
|
+
#else
|
55
|
+
# define GRAPHENE_DEPRECATED _GRAPHENE_DEPRECATED _GRAPHENE_PUBLIC
|
56
|
+
# define GRAPHENE_DEPRECATED_FOR(f) _GRAPHENE_DEPRECATED_FOR(f) _GRAPHENE_PUBLIC
|
57
|
+
# define GRAPHENE_UNAVAILABLE(maj,min) _GRAPHENE_UNAVAILABLE(maj,min) _GRAPHENE_PUBLIC
|
58
|
+
#endif
|
59
|
+
|
60
|
+
/**
|
61
|
+
* GRAPHENE_VERSION:
|
62
|
+
*
|
63
|
+
* The current version of the library, as encoded through
|
64
|
+
* the %GRAPHENE_ENCODE_VERSION macro. Can be used for version
|
65
|
+
* checking, for instance:
|
66
|
+
*
|
67
|
+
* |[<!-- language="C" -->
|
68
|
+
* #if GRAPHENE_VERSION >= GRAPHENE_ENCODE_VERSION (1, 2, 3)
|
69
|
+
* // code that uses API introduced after version 1.2.3
|
70
|
+
* #endif
|
71
|
+
* ]|
|
72
|
+
*
|
73
|
+
* Since: 1.0
|
74
|
+
*/
|
75
|
+
#define GRAPHENE_VERSION \
|
76
|
+
GRAPHENE_ENCODE_VERSION (GRAPHENE_MAJOR_VERSION, \
|
77
|
+
GRAPHENE_MINOR_VERSION, \
|
78
|
+
GRAPHENE_MICRO_VERSION)
|
79
|
+
|
80
|
+
#define GRAPHENE_CHECK_VERSION(major,minor,micro) \
|
81
|
+
((major) > GRAPHENE_MAJOR_VERSION || \
|
82
|
+
(major) == GRAPHENE_MAJOR_VERSION && (minor) > GRAPHENE_MINOR_VERSION || \
|
83
|
+
(major) == GRAPHENE_MAJOR_VERSION && (minor) == GRAPHENE_MINOR_VERSION && (micro) >= GRAPHENE_MICRO_VERSION)
|
84
|
+
|
85
|
+
/* evaluates to the current stable release; for development cycles
|
86
|
+
* this means the next stable target.
|
87
|
+
*/
|
88
|
+
#if (GRAPHENE_MINOR_VERSION == 99)
|
89
|
+
# define GRAPHENE_VERSION_CUR_STABLE (_GRAPHENE_ENCODE_VERSION (GRAPHENE_MAJOR_VERSION + 1, 0))
|
90
|
+
#elif (GRAPHENE_MINOR_VERSION % 2)
|
91
|
+
# define GRAPHENE_VERSION_CUR_STABLE (_GRAPHENE_ENCODE_VERSION (GRAPHENE_MAJOR_VERSION, GRAPHENE_MINOR_VERSION + 1))
|
92
|
+
#else
|
93
|
+
# define GRAPHENE_VERSION_CUR_STABLE (_GRAPHENE_ENCODE_VERSION (GRAPHENE_MAJOR_VERSION, GRAPHENE_MINOR_VERSION))
|
94
|
+
#endif
|
95
|
+
|
96
|
+
/* evaluates to the previous stable version */
|
97
|
+
#if (GRAPHENE_MINOR_VERSION == 99)
|
98
|
+
# define GRAPHENE_VERSION_PREV_STABLE (_GRAPHENE_ENCODE_VERSION (GRAPHENE_MAJOR_VERSION + 1, 0))
|
99
|
+
#elif (GRAPHENE_MINOR_VERSION % 2)
|
100
|
+
# define GRAPHENE_VERSION_PREV_STABLE (_GRAPHENE_ENCODE_VERSION (GRAPHENE_MAJOR_VERSION, GRAPHENE_MINOR_VERSION - 1))
|
101
|
+
#else
|
102
|
+
# define GRAPHENE_VERSION_PREV_STABLE (_GRAPHENE_ENCODE_VERSION (GRAPHENE_MAJOR_VERSION, GRAPHENE_MINOR_VERSION - 2))
|
103
|
+
#endif
|
104
|
+
|
105
|
+
/* version defines
|
106
|
+
*
|
107
|
+
* remember to add new macros at the beginning of each development cycle
|
108
|
+
*/
|
109
|
+
|
110
|
+
#define GRAPHENE_VERSION_1_0 (_GRAPHENE_ENCODE_VERSION (1, 0))
|
111
|
+
#define GRAPHENE_VERSION_1_2 (_GRAPHENE_ENCODE_VERSION (1, 2))
|
112
|
+
#define GRAPHENE_VERSION_1_4 (_GRAPHENE_ENCODE_VERSION (1, 4))
|
113
|
+
#define GRAPHENE_VERSION_1_6 (_GRAPHENE_ENCODE_VERSION (1, 6))
|
114
|
+
|
115
|
+
#ifndef GRAPHENE_VERSION_MIN_REQUIRED
|
116
|
+
# define GRAPHENE_VERSION_MIN_REQUIRED (GRAPHENE_VERSION_1_0)
|
117
|
+
#endif
|
118
|
+
|
119
|
+
#ifndef GRAPHENE_VERSION_MAX_ALLOWED
|
120
|
+
# if GRAPHENE_VERSION_MIN_REQUIRED > GRAPHENE_VERSION_PREV_STABLE
|
121
|
+
# define GRAPHENE_VERSION_MAX_ALLOWED (GRAPHENE_VERSION_MIN_REQUIRED)
|
122
|
+
# else
|
123
|
+
# define GRAPHENE_VERSION_MAX_ALLOWED (GRAPHENE_VERSION_CUR_STABLE)
|
124
|
+
# endif
|
125
|
+
#endif
|
126
|
+
|
127
|
+
/* sanity checks */
|
128
|
+
#if GRAPHENE_VERSION_MAX_ALLOWED < GRAPHENE_VERSION_MIN_REQUIRED
|
129
|
+
# error "GRAPHENE_VERSION_MAX_ALLOWED must be >= GRAPHENE_VERSION_MIN_REQUIRED"
|
130
|
+
#endif
|
131
|
+
#if GRAPHENE_VERSION_MIN_REQUIRED < GRAPHENE_VERSION_1_0
|
132
|
+
# error "GRAPHENE_VERSION_MIN_REQUIRED must be >= GRAPHENE_VERSION_1_0"
|
133
|
+
#endif
|
134
|
+
|
135
|
+
/* unconditional */
|
136
|
+
#define GRAPHENE_DEPRECATED_IN_1_0 GRAPHENE_DEPRECATED
|
137
|
+
#define GRAPHENE_DEPRECATED_IN_1_0_FOR(f) GRAPHENE_DEPRECATED_FOR(f)
|
138
|
+
#define GRAPHENE_AVAILABLE_IN_1_0 _GRAPHENE_PUBLIC
|
139
|
+
|
140
|
+
/* Graphene 1.2 */
|
141
|
+
#if GRAPHENE_VERSION_MIN_REQUIRED >= GRAPHENE_VERSION_1_2
|
142
|
+
# define GRAPHENE_DEPRECATED_IN_1_2 GRAPHENE_DEPRECATED
|
143
|
+
# define GRAPHENE_DEPRECATED_IN_1_2_FOR(f) GRAPHENE_DEPRECATED_FOR(f)
|
144
|
+
#else
|
145
|
+
# define GRAPHENE_DEPRECATED_IN_1_2 _GRAPHENE_PUBLIC
|
146
|
+
# define GRAPHENE_DEPRECATED_IN_1_2_FOR(f) _GRAPHENE_PUBLIC
|
147
|
+
#endif
|
148
|
+
|
149
|
+
#if GRAPHENE_VERSION_MAX_ALLOWED < GRAPHENE_VERSION_1_2
|
150
|
+
# define GRAPHENE_AVAILABLE_IN_1_2 GRAPHENE_UNAVAILABLE(1,2)
|
151
|
+
#else
|
152
|
+
# define GRAPHENE_AVAILABLE_IN_1_2 _GRAPHENE_PUBLIC
|
153
|
+
#endif
|
154
|
+
|
155
|
+
/* Graphene 1.4 */
|
156
|
+
#if GRAPHENE_VERSION_MIN_REQUIRED >= GRAPHENE_VERSION_1_4
|
157
|
+
# define GRAPHENE_DEPRECATED_IN_1_4 GRAPHENE_DEPRECATED
|
158
|
+
# define GRAPHENE_DEPRECATED_IN_1_4_FOR(f) GRAPHENE_DEPRECATED_FOR(f)
|
159
|
+
#else
|
160
|
+
# define GRAPHENE_DEPRECATED_IN_1_4 _GRAPHENE_PUBLIC
|
161
|
+
# define GRAPHENE_DEPRECATED_IN_1_4_FOR(f) _GRAPHENE_PUBLIC
|
162
|
+
#endif
|
163
|
+
|
164
|
+
#if GRAPHENE_VERSION_MAX_ALLOWED < GRAPHENE_VERSION_1_4
|
165
|
+
# define GRAPHENE_AVAILABLE_IN_1_4 GRAPHENE_UNAVAILABLE(1,4)
|
166
|
+
#else
|
167
|
+
# define GRAPHENE_AVAILABLE_IN_1_4 _GRAPHENE_PUBLIC
|
168
|
+
#endif
|
169
|
+
|
170
|
+
/* Graphene 1.6 */
|
171
|
+
#if GRAPHENE_VERSION_MIN_REQUIRED >= GRAPHENE_VERSION_1_4
|
172
|
+
# define GRAPHENE_DEPRECATED_IN_1_6 GRAPHENE_DEPRECATED
|
173
|
+
# define GRAPHENE_DEPRECATED_IN_1_6_FOR(f) GRAPHENE_DEPRECATED_FOR(f)
|
174
|
+
#else
|
175
|
+
# define GRAPHENE_DEPRECATED_IN_1_6 _GRAPHENE_PUBLIC
|
176
|
+
# define GRAPHENE_DEPRECATED_IN_1_6_FOR(f) _GRAPHENE_PUBLIC
|
177
|
+
#endif
|
178
|
+
|
179
|
+
#if GRAPHENE_VERSION_MAX_ALLOWED < GRAPHENE_VERSION_1_4
|
180
|
+
# define GRAPHENE_AVAILABLE_IN_1_6 GRAPHENE_UNAVAILABLE(1,6)
|
181
|
+
#else
|
182
|
+
# define GRAPHENE_AVAILABLE_IN_1_6 _GRAPHENE_PUBLIC
|
183
|
+
#endif
|
184
|
+
|
185
|
+
#endif /* __GRAPHENE_VERSION_MACROS_H__ */
|