gosu 0.8.0.pre2 → 0.8.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05c915ec5bb6741b2f1e7096cc1a434a7dac9e44
4
- data.tar.gz: aa4c3de8acefbe1587f34adff4704bb55772f9e0
3
+ metadata.gz: 4d3b8c63fdb8bac539845da6a18d8f2313d9ba12
4
+ data.tar.gz: 65173f1f5bd56bbc78fa4f45c5aaff46fab385a0
5
5
  SHA512:
6
- metadata.gz: 9bce8f59fd4cb6a79e3e366487c97fef09b7ee22f35cd8e45d23c71917e01125eb8394c5b51e7f8244be4342adf1bff007dd2483ff392d164946dd641efbb05d
7
- data.tar.gz: ead46c15ca34bd1a930335fef40734e0242d38cadd2f0f07456eb7f56b94fbb8c66b9bfdb1954dedcd3d16d15da08d0fed782ed77946c60b8519c41c60d3f50c
6
+ metadata.gz: 33b65ff860f1c76c3256299c7639643e631d2e7afafa3646ed8b6466ecd52d0d028c22eca974ef43ec2e64994996166e299bda930f81602920432571e28681fe
7
+ data.tar.gz: 6fe10cb8bba4769f3f6287ad12a30ec5af6503c37d34c016118ec54f7f345139984adf6c60d8adfbfa012c313524f1479aadfa184442bc8e6ac2e88ba8740f8b
@@ -4,7 +4,7 @@
4
4
  #define GOSU_MAJOR_VERSION 0
5
5
  #define GOSU_MINOR_VERSION 8
6
6
  #define GOSU_POINT_VERSION 0
7
- #define GOSU_VERSION "0.8.0.pre2"
7
+ #define GOSU_VERSION "0.8.0.pre3"
8
8
 
9
9
  #define GOSU_COPYRIGHT_NOTICE \
10
10
  " " \
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 2.0.11
3
+ * Version 3.0.0
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -663,14 +663,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
663
663
  swig_module_info *iter = start;
664
664
  do {
665
665
  if (iter->size) {
666
- register size_t l = 0;
667
- register size_t r = iter->size - 1;
666
+ size_t l = 0;
667
+ size_t r = iter->size - 1;
668
668
  do {
669
669
  /* since l+r >= 0, we can (>> 1) instead (/ 2) */
670
- register size_t i = (l + r) >> 1;
670
+ size_t i = (l + r) >> 1;
671
671
  const char *iname = iter->types[i]->name;
672
672
  if (iname) {
673
- register int compare = strcmp(name, iname);
673
+ int compare = strcmp(name, iname);
674
674
  if (compare == 0) {
675
675
  return iter->types[i];
676
676
  } else if (compare < 0) {
@@ -714,7 +714,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
714
714
  of the str field (the human readable name) */
715
715
  swig_module_info *iter = start;
716
716
  do {
717
- register size_t i = 0;
717
+ size_t i = 0;
718
718
  for (; i < iter->size; ++i) {
719
719
  if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
720
720
  return iter->types[i];
@@ -733,10 +733,10 @@ SWIG_TypeQueryModule(swig_module_info *start,
733
733
  SWIGRUNTIME char *
734
734
  SWIG_PackData(char *c, void *ptr, size_t sz) {
735
735
  static const char hex[17] = "0123456789abcdef";
736
- register const unsigned char *u = (unsigned char *) ptr;
737
- register const unsigned char *eu = u + sz;
736
+ const unsigned char *u = (unsigned char *) ptr;
737
+ const unsigned char *eu = u + sz;
738
738
  for (; u != eu; ++u) {
739
- register unsigned char uu = *u;
739
+ unsigned char uu = *u;
740
740
  *(c++) = hex[(uu & 0xf0) >> 4];
741
741
  *(c++) = hex[uu & 0xf];
742
742
  }
@@ -748,11 +748,11 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
748
748
  */
749
749
  SWIGRUNTIME const char *
750
750
  SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
751
- register unsigned char *u = (unsigned char *) ptr;
752
- register const unsigned char *eu = u + sz;
751
+ unsigned char *u = (unsigned char *) ptr;
752
+ const unsigned char *eu = u + sz;
753
753
  for (; u != eu; ++u) {
754
- register char d = *(c++);
755
- register unsigned char uu;
754
+ char d = *(c++);
755
+ unsigned char uu;
756
756
  if ((d >= '0') && (d <= '9'))
757
757
  uu = ((d - '0') << 4);
758
758
  else if ((d >= 'a') && (d <= 'f'))
@@ -1465,14 +1465,13 @@ SWIG_Ruby_InitRuntime(void)
1465
1465
  SWIGRUNTIME void
1466
1466
  SWIG_Ruby_define_class(swig_type_info *type)
1467
1467
  {
1468
- VALUE klass;
1469
1468
  char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1470
1469
  sprintf(klass_name, "TYPE%s", type->name);
1471
1470
  if (NIL_P(_cSWIG_Pointer)) {
1472
1471
  _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1473
1472
  rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1474
1473
  }
1475
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1474
+ rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1476
1475
  free((void *) klass_name);
1477
1476
  }
1478
1477
 
@@ -1767,8 +1766,8 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1767
1766
  /* -----------------------------------------------------------------------------
1768
1767
  * director.swg
1769
1768
  *
1770
- * This file contains support for director classes that proxy
1771
- * method calls from C++ to Ruby extensions.
1769
+ * This file contains support for director classes so that Ruby proxy
1770
+ * methods can be called from C++.
1772
1771
  * ----------------------------------------------------------------------------- */
1773
1772
 
1774
1773
  /*
@@ -1781,105 +1780,86 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1781
1780
  #endif
1782
1781
  #endif
1783
1782
 
1784
- #ifdef __cplusplus
1785
-
1786
1783
  #include <string>
1787
1784
  #include <iostream>
1785
+ #include <exception>
1788
1786
  #include <map>
1789
1787
 
1790
1788
  # define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)
1791
1789
 
1792
1790
  namespace Swig {
1791
+
1793
1792
  /* memory handler */
1794
- struct GCItem
1795
- {
1796
- virtual ~GCItem()
1797
- {
1793
+ struct GCItem {
1794
+ virtual ~GCItem() {
1798
1795
  }
1799
1796
 
1800
- virtual ruby_owntype get_own() const
1801
- {
1797
+ virtual ruby_owntype get_own() const {
1802
1798
  return 0;
1803
1799
  }
1804
1800
  };
1805
-
1806
- struct GCItem_var
1807
- {
1808
- GCItem_var(GCItem *item = 0) : _item(item)
1809
- {
1801
+
1802
+ struct GCItem_var {
1803
+ GCItem_var(GCItem *item = 0) : _item(item) {
1810
1804
  }
1811
1805
 
1812
- GCItem_var& operator=(GCItem *item)
1813
- {
1806
+ GCItem_var& operator=(GCItem *item) {
1814
1807
  GCItem *tmp = _item;
1815
1808
  _item = item;
1816
1809
  delete tmp;
1817
1810
  return *this;
1818
1811
  }
1819
-
1820
- ~GCItem_var()
1821
- {
1812
+
1813
+ ~GCItem_var() {
1822
1814
  delete _item;
1823
1815
  }
1824
-
1825
- GCItem * operator->() const
1826
- {
1816
+
1817
+ GCItem *operator->() const {
1827
1818
  return _item;
1828
1819
  }
1829
-
1820
+
1830
1821
  private:
1831
1822
  GCItem *_item;
1832
1823
  };
1833
1824
 
1834
1825
 
1835
1826
  template <typename Type>
1836
- struct GCItem_T : GCItem
1837
- {
1838
- GCItem_T(Type *ptr) : _ptr(ptr)
1839
- {
1827
+ struct GCItem_T : GCItem {
1828
+ GCItem_T(Type *ptr) : _ptr(ptr) {
1840
1829
  }
1841
-
1842
- virtual ~GCItem_T()
1843
- {
1830
+
1831
+ virtual ~GCItem_T() {
1844
1832
  delete _ptr;
1845
1833
  }
1846
-
1834
+
1847
1835
  private:
1848
1836
  Type *_ptr;
1849
1837
  };
1850
1838
 
1851
- struct GCItem_Object : GCItem
1852
- {
1853
- GCItem_Object(ruby_owntype own) : _own(own)
1854
- {
1839
+ struct GCItem_Object : GCItem {
1840
+ GCItem_Object(ruby_owntype own) : _own(own) {
1855
1841
  }
1856
-
1857
- virtual ~GCItem_Object()
1858
- {
1842
+
1843
+ virtual ~GCItem_Object() {
1859
1844
  }
1860
1845
 
1861
- ruby_owntype get_own() const
1862
- {
1846
+ ruby_owntype get_own() const {
1863
1847
  return _own;
1864
1848
  }
1865
-
1849
+
1866
1850
  private:
1867
1851
  ruby_owntype _own;
1868
1852
  };
1869
1853
 
1870
-
1871
1854
  template <typename Type>
1872
- struct GCArray_T : GCItem
1873
- {
1874
- GCArray_T(Type *ptr) : _ptr(ptr)
1875
- {
1855
+ struct GCArray_T : GCItem {
1856
+ GCArray_T(Type *ptr) : _ptr(ptr) {
1876
1857
  }
1877
-
1878
- virtual ~GCArray_T()
1879
- {
1858
+
1859
+ virtual ~GCArray_T() {
1880
1860
  delete[] _ptr;
1881
1861
  }
1882
-
1862
+
1883
1863
  private:
1884
1864
  Type *_ptr;
1885
1865
  };
@@ -1892,21 +1872,18 @@ namespace Swig {
1892
1872
  int argc;
1893
1873
  VALUE *argv;
1894
1874
  };
1895
-
1875
+
1896
1876
  /* Base class for director exceptions */
1897
- class DirectorException {
1877
+ class DirectorException : public std::exception {
1898
1878
  protected:
1899
1879
  VALUE swig_error;
1900
1880
  std::string swig_msg;
1901
1881
  protected:
1902
- DirectorException(VALUE error)
1903
- : swig_error(error)
1904
- {
1882
+ DirectorException(VALUE error) : swig_error(error) {
1905
1883
  }
1906
-
1907
- DirectorException(VALUE error, const char* hdr, const char* msg ="")
1908
- : swig_error(error), swig_msg(hdr) {
1909
- if (strlen(msg)) {
1884
+
1885
+ DirectorException(VALUE error, const char *hdr, const char *msg ="") : swig_error(error), swig_msg(hdr) {
1886
+ if (msg[0]) {
1910
1887
  swig_msg += " ";
1911
1888
  swig_msg += msg;
1912
1889
  }
@@ -1917,56 +1894,60 @@ namespace Swig {
1917
1894
  swig_error = error;
1918
1895
  }
1919
1896
  }
1897
+
1920
1898
  public:
1921
- VALUE getType() const {
1922
- return CLASS_OF(swig_error);
1899
+ virtual ~DirectorException() throw() {
1900
+ }
1901
+
1902
+ VALUE getType() const {
1903
+ return CLASS_OF(swig_error);
1923
1904
  }
1905
+
1924
1906
  VALUE getError() const {
1925
1907
  return swig_error;
1926
1908
  }
1927
- const std::string& getMessage() const
1928
- {
1909
+
1910
+ /* Deprecated, use what() instead */
1911
+ const std::string& getMessage() const {
1929
1912
  return swig_msg;
1930
1913
  }
1931
-
1932
- virtual ~DirectorException() {}
1914
+
1915
+ const char *what() const throw() {
1916
+ return swig_msg.c_str();
1917
+ }
1933
1918
  };
1934
-
1935
- /* unknown exception handler */
1936
1919
 
1937
- class UnknownExceptionHandler
1938
- {
1920
+ /* unknown exception handler */
1921
+ class UnknownExceptionHandler {
1939
1922
  #ifdef SWIG_DIRECTOR_UEH
1940
1923
  static void handler() {
1941
1924
  try {
1942
1925
  throw;
1943
1926
  } catch (DirectorException& e) {
1944
1927
  std::cerr << "SWIG Director exception caught:" << std::endl
1945
- << e.getMessage() << std::endl;
1928
+ << e.what() << std::endl;
1946
1929
  } catch (std::exception& e) {
1947
1930
  std::cerr << "std::exception caught: "<< e.what() << std::endl;
1948
1931
  } catch (...) {
1949
1932
  std::cerr << "Unknown exception caught." << std::endl;
1950
- }
1933
+ }
1951
1934
  std::cerr << std::endl
1952
1935
  << "Ruby interpreter traceback:" << std::endl;
1953
- std::cerr << std::endl;
1936
+ std::cerr << std::endl;
1954
1937
  std::cerr << "This exception was caught by the SWIG unexpected exception handler." << std::endl
1955
1938
  << "Try using %feature(\"director:except\") to avoid reaching this point." << std::endl
1956
1939
  << std::endl
1957
1940
  << "Exception is being re-thrown, program will like abort/terminate." << std::endl;
1958
1941
  throw;
1959
1942
  }
1960
-
1961
- public:
1943
+
1944
+ public:
1962
1945
  std::unexpected_handler old;
1963
- UnknownExceptionHandler(std::unexpected_handler nh = handler)
1964
- {
1946
+ UnknownExceptionHandler(std::unexpected_handler nh = handler) {
1965
1947
  old = std::set_unexpected(nh);
1966
1948
  }
1967
1949
 
1968
- ~UnknownExceptionHandler()
1969
- {
1950
+ ~UnknownExceptionHandler() {
1970
1951
  std::set_unexpected(old);
1971
1952
  }
1972
1953
  #endif
@@ -1974,16 +1955,14 @@ namespace Swig {
1974
1955
 
1975
1956
 
1976
1957
  /* Type mismatch in the return value from a Ruby method call */
1977
- class DirectorTypeMismatchException : public Swig::DirectorException {
1958
+ class DirectorTypeMismatchException : public DirectorException {
1978
1959
  public:
1979
1960
  DirectorTypeMismatchException(VALUE error, const char *msg="")
1980
- : Swig::DirectorException(error, "SWIG director type mismatch", msg)
1981
- {
1961
+ : DirectorException(error, "SWIG director type mismatch", msg) {
1982
1962
  }
1983
1963
 
1984
1964
  DirectorTypeMismatchException(const char *msg="")
1985
- : Swig::DirectorException(rb_eTypeError, "SWIG director type mismatch", msg)
1986
- {
1965
+ : DirectorException(rb_eTypeError, "SWIG director type mismatch", msg) {
1987
1966
  }
1988
1967
 
1989
1968
  static void raise(VALUE error, const char *msg) {
@@ -1996,33 +1975,30 @@ namespace Swig {
1996
1975
  };
1997
1976
 
1998
1977
  /* Any Ruby exception that occurs during a director method call */
1999
- class DirectorMethodException : public Swig::DirectorException {
1978
+ class DirectorMethodException : public DirectorException {
2000
1979
  public:
2001
- DirectorMethodException(VALUE error)
2002
- : Swig::DirectorException(error) {
1980
+ DirectorMethodException(VALUE error)
1981
+ : DirectorException(error) {
2003
1982
  }
2004
1983
 
2005
- DirectorMethodException(const char* msg = "")
2006
- : Swig::DirectorException(rb_eRuntimeError, "SWIG director method error.", msg) {
1984
+ DirectorMethodException(const char *msg = "")
1985
+ : DirectorException(rb_eRuntimeError, "SWIG director method error.", msg) {
2007
1986
  }
2008
-
2009
- static void raise(VALUE error)
2010
- {
1987
+
1988
+ static void raise(VALUE error) {
2011
1989
  throw DirectorMethodException(error);
2012
- }
1990
+ }
2013
1991
  };
2014
1992
 
2015
1993
  /* Attempted to call a pure virtual method via a director method */
2016
- class DirectorPureVirtualException : public Swig::DirectorException
1994
+ class DirectorPureVirtualException : public DirectorException
2017
1995
  {
2018
1996
  public:
2019
- DirectorPureVirtualException(const char* msg = "")
2020
- : DirectorException(rb_eRuntimeError, "SWIG director pure virtual method called", msg)
2021
- {
1997
+ DirectorPureVirtualException(const char *msg = "")
1998
+ : DirectorException(rb_eRuntimeError, "SWIG director pure virtual method called", msg) {
2022
1999
  }
2023
2000
 
2024
- static void raise(const char *msg)
2025
- {
2001
+ static void raise(const char *msg) {
2026
2002
  throw DirectorPureVirtualException(msg);
2027
2003
  }
2028
2004
  };
@@ -2037,28 +2013,25 @@ namespace Swig {
2037
2013
  # define SWIG_MUTEX_INIT(var) var
2038
2014
  # else
2039
2015
  # include <pthread.h>
2040
- # define SWIG_MUTEX_INIT(var) var = PTHREAD_MUTEX_INITIALIZER
2016
+ # define SWIG_MUTEX_INIT(var) var = PTHREAD_MUTEX_INITIALIZER
2041
2017
  # endif
2042
2018
  #endif
2043
2019
 
2044
2020
  #ifdef __PTHREAD__
2045
- struct Guard
2046
- {
2021
+ struct Guard {
2047
2022
  pthread_mutex_t *_mutex;
2048
-
2049
- Guard(pthread_mutex_t &mutex) : _mutex(&mutex)
2050
- {
2023
+
2024
+ Guard(pthread_mutex_t &mutex) : _mutex(&mutex) {
2051
2025
  pthread_mutex_lock(_mutex);
2052
2026
  }
2053
-
2054
- ~Guard()
2055
- {
2027
+
2028
+ ~Guard() {
2056
2029
  pthread_mutex_unlock(_mutex);
2057
2030
  }
2058
2031
  };
2059
2032
  # define SWIG_GUARD(mutex) Guard _guard(mutex)
2060
2033
  #else
2061
- # define SWIG_GUARD(mutex)
2034
+ # define SWIG_GUARD(mutex)
2062
2035
  #endif
2063
2036
 
2064
2037
  /* director base class */
@@ -2079,21 +2052,20 @@ namespace Swig {
2079
2052
  }
2080
2053
 
2081
2054
  /* return a pointer to the wrapped Ruby object */
2082
- VALUE swig_get_self() const {
2083
- return swig_self;
2055
+ VALUE swig_get_self() const {
2056
+ return swig_self;
2084
2057
  }
2085
2058
 
2086
- /* acquire ownership of the wrapped Ruby object (the sense of "disown"
2087
- * is from Ruby) */
2088
- void swig_disown() const {
2089
- if (!swig_disown_flag) {
2059
+ /* acquire ownership of the wrapped Ruby object (the sense of "disown" is from Ruby) */
2060
+ void swig_disown() const {
2061
+ if (!swig_disown_flag) {
2090
2062
  swig_disown_flag = true;
2091
- }
2063
+ }
2092
2064
  }
2093
2065
 
2094
2066
  /* ownership management */
2095
2067
  private:
2096
- typedef std::map<void*, GCItem_var> swig_ownership_map;
2068
+ typedef std::map<void *, GCItem_var> swig_ownership_map;
2097
2069
  mutable swig_ownership_map swig_owner;
2098
2070
  #ifdef __PTHREAD__
2099
2071
  static pthread_mutex_t swig_mutex_own;
@@ -2101,33 +2073,29 @@ namespace Swig {
2101
2073
 
2102
2074
  public:
2103
2075
  template <typename Type>
2104
- void swig_acquire_ownership_array(Type *vptr) const
2105
- {
2076
+ void swig_acquire_ownership_array(Type *vptr) const {
2106
2077
  if (vptr) {
2107
2078
  SWIG_GUARD(swig_mutex_own);
2108
2079
  swig_owner[vptr] = new GCArray_T<Type>(vptr);
2109
2080
  }
2110
2081
  }
2111
-
2082
+
2112
2083
  template <typename Type>
2113
- void swig_acquire_ownership(Type *vptr) const
2114
- {
2084
+ void swig_acquire_ownership(Type *vptr) const {
2115
2085
  if (vptr) {
2116
2086
  SWIG_GUARD(swig_mutex_own);
2117
2087
  swig_owner[vptr] = new GCItem_T<Type>(vptr);
2118
2088
  }
2119
2089
  }
2120
2090
 
2121
- void swig_acquire_ownership_obj(void *vptr, ruby_owntype own) const
2122
- {
2091
+ void swig_acquire_ownership_obj(void *vptr, ruby_owntype own) const {
2123
2092
  if (vptr && own) {
2124
2093
  SWIG_GUARD(swig_mutex_own);
2125
2094
  swig_owner[vptr] = new GCItem_Object(own);
2126
2095
  }
2127
2096
  }
2128
-
2129
- ruby_owntype swig_release_ownership(void *vptr) const
2130
- {
2097
+
2098
+ ruby_owntype swig_release_ownership(void *vptr) const {
2131
2099
  ruby_owntype own = 0;
2132
2100
  if (vptr) {
2133
2101
  SWIG_GUARD(swig_mutex_own);
@@ -2142,9 +2110,6 @@ namespace Swig {
2142
2110
  };
2143
2111
  }
2144
2112
 
2145
- #endif /* __cplusplus */
2146
-
2147
-
2148
2113
 
2149
2114
  /* -------- TYPES TABLE (BEGIN) -------- */
2150
2115
 
@@ -2180,7 +2145,7 @@ static VALUE mGosu;
2180
2145
  #define SWIG_RUBY_THREAD_END_BLOCK
2181
2146
 
2182
2147
 
2183
- #define SWIGVERSION 0x020011
2148
+ #define SWIGVERSION 0x030000
2184
2149
  #define SWIG_VERSION SWIGVERSION
2185
2150
 
2186
2151
 
@@ -2421,13 +2386,13 @@ SWIG_ruby_failed(void)
2421
2386
  }
2422
2387
 
2423
2388
 
2424
- /*@SWIG:/usr/local/Cellar/swig/2.0.11/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2389
+ /*@SWIG:/usr/local/Cellar/swig/3.0.0/share/swig/3.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2425
2390
  SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
2426
2391
  {
2427
2392
  VALUE obj = args[0];
2428
2393
  VALUE type = TYPE(obj);
2429
2394
  double *res = (double *)(args[1]);
2430
- *res = NUM2DBL(obj);
2395
+ *res = NUM2DBL(obj); (void)type;
2431
2396
  return obj;
2432
2397
  }
2433
2398
  /*@SWIG@*/
@@ -2463,7 +2428,7 @@ SWIG_From_unsigned_SS_int (unsigned int value)
2463
2428
  #include <string>
2464
2429
 
2465
2430
 
2466
- /*@SWIG:/usr/local/Cellar/swig/2.0.11/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2431
+ /*@SWIG:/usr/local/Cellar/swig/3.0.0/share/swig/3.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2467
2432
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
2468
2433
  {
2469
2434
  VALUE obj = args[0];
@@ -2563,7 +2528,7 @@ SWIG_From_bool (bool value)
2563
2528
  }
2564
2529
 
2565
2530
 
2566
- /*@SWIG:/usr/local/Cellar/swig/2.0.11/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2531
+ /*@SWIG:/usr/local/Cellar/swig/3.0.0/share/swig/3.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2567
2532
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
2568
2533
  {
2569
2534
  VALUE obj = args[0];
@@ -9462,7 +9427,7 @@ _wrap_Window_button_id_to_char(int argc, VALUE *argv, VALUE self) {
9462
9427
  }
9463
9428
  {
9464
9429
  try {
9465
- result = Gosu_Window_buttonIdToChar(arg1);
9430
+ result = (wchar_t)Gosu_Window_buttonIdToChar(arg1);
9466
9431
  } catch (const std::exception& e) {
9467
9432
  SWIG_exception(SWIG_RuntimeError, e.what());
9468
9433
  }
@@ -10625,7 +10590,7 @@ static swig_cast_info *swig_cast_initial[] = {
10625
10590
  * array with the correct data and linking the correct swig_cast_info
10626
10591
  * structures together.
10627
10592
  *
10628
- * The generated swig_type_info structures are assigned staticly to an initial
10593
+ * The generated swig_type_info structures are assigned statically to an initial
10629
10594
  * array. We just loop through that array, and handle each type individually.
10630
10595
  * First we lookup if this type has been already loaded, and if so, use the
10631
10596
  * loaded structure instead of the generated one. Then we have to fill in the
@@ -10868,7 +10833,7 @@ SWIGEXPORT void Init_gosu(void) {
10868
10833
  rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(0)));
10869
10834
  rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(8)));
10870
10835
  rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(0)));
10871
- rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.8.0.pre2"));
10836
+ rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.8.0.pre3"));
10872
10837
  rb_define_const(mGosu, "GOSU_COPYRIGHT_NOTICE", SWIG_FromCharPtr(" \t\t GNU LIBRARY GENERAL PUBLIC LICENSE\t\t Version 2, June 1991\n\n\n\n Copyright (C) 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\n[This is the first released version of the library GPL. It is numbered 2 because it goes with version 2 of the ordinary GPL.]\n\n\t\t\t Preamble\n\n The licenses for most software are designed to take away yourfreedom to share and change it. By contrast, the GNU General PublicLicenses are intended to guarantee your freedom to share and changefree software--to make sure the software is free for all its users.\n\n This license, the Library General Public License, applies to somespecially designated Free Software Foundation software, and to anyother libraries whose authors decide to use it. You can use it foryour libraries, too.\n\n When we speak of free software, we are referring to freedom, notprice. Our General Public Licenses are designed to make sure that youhave the freedom to distribute copies of free software (and charge forthis service if you wish), that you receive source code or can get itif you want it, that you can change the software or use pieces of itin new free programs; and that you know you can do these things.\n\n To protect your rights, we need to make restrictions that forbidanyone to deny you these rights or to ask you to surrender the rights.These restrictions translate to certain responsibilities for you ifyou distribute copies of the library, or if you modify it.\n\n For example, if you distribute copies of the library, whether gratisor for a fee, you must give the recipients all the rights that we gaveyou. You must make sure that they, too, receive or can get the sourcecode. If you link a program with the library, you must providecomplete object files to the recipients so that they can relink themwith the library, after making changes to the library and recompilingit. And you must show them these terms so they know their rights.\n\n Our method of protecting your rights has two steps: (1) copyrightthe library, and (2) offer you this license which gives you legalpermission to copy, distribute and/or modify the library.\n\n Also, for each distributor\'s protection, we want to make certainthat everyone understands that there is no warranty for this freelibrary. If the library is modified by someone else and passed on, wewant its recipients to know that what they have is not the originalversion, so that any problems introduced by others will not reflect onthe original authors\' reputations.\14 Finally, any free program is threatened constantly by softwarepatents. We wish to avoid the danger that companies distributing freesoftware will individually obtain patent licenses, thus in effecttransforming the program into proprietary software. To prevent this,we have made it clear that any patent must be licensed for everyone\'sfree use or not licensed at all.\n\n Most GNU software, including some libraries, is covered by the ordinaryGNU General Public License, which was designed for utility programs. Thislicense, the GNU Library General Public License, applies to certaindesignated libraries. This license is quite different from the ordinaryone; be sure to read it in full, and don\'t assume that anything in it isthe same as in the ordinary license.\n\n The reason we have a separate public license for some libraries is thatthey blur the distinction we usually make between modifying or adding to aprogram and simply using it. Linking a program with a library, withoutchanging the library, is in some sense simply using the library, and isanalogous to running a utility program or application program. However, ina textual and legal sense, the linked executable is a combined work, aderivative of the original library, and the ordinary General Public Licensetreats it as such.\n\n Because of this blurred distinction, using the ordinary GeneralPublic License for libraries did not effectively promote softwaresharing, because most developers did not use the libraries. Weconcluded that weaker conditions might promote sharing better.\n\n However, unrestricted linking of non-free programs would deprive theusers of those programs of all benefit from the free status of thelibraries themselves. This Library General Public License is intended topermit developers of non-free programs to use free libraries, whilepreserving your freedom as a user of such programs to change the freelibraries that are incorporated in them. (We have not seen how to achievethis as regards changes in header files, but we have achieved it as regardschanges in the actual functions of the Library.) The hope is that thiswill lead to faster development of free libraries.\n\n The precise terms and conditions for copying, distribution andmodification follow. Pay close attention to the difference between a\"work based on the library\" and a \"work that uses the library\". Theformer contains code derived from the library, while the latter onlyworks together with the library.\n\n Note that it is possible for a library to be covered by the ordinaryGeneral Public License rather than by this special one.\14\t\t GNU LIBRARY GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. This License Agreement applies to any software library whichcontains a notice placed by the copyright holder or other authorizedparty saying it may be distributed under the terms of this LibraryGeneral Public License (also called \"this License\"). Each licensee isaddressed as \"you\".\n\n A \"library\" means a collection of software functions and/or dataprepared so as to be conveniently linked with application programs(which use some of those functions and data) to form executables.\n\n The \"Library\", below, refers to any such software library or workwhich has been distributed under these terms. A \"work based on theLibrary\" means either the Library or any derivative work undercopyright law: that is to say, a work containing the Library or aportion of it, either verbatim or with modifications and/or translatedstraightforwardly into another language. (Hereinafter, translation isincluded without limitation in the term \"modification\".)\n\n \"Source code\" for a work means the preferred form of the work formaking modifications to it. For a library, complete source code meansall the source code for all modules it contains, plus any associatedinterface definition files, plus the scripts used to control compilationand installation of the library.\n\n Activities other than copying, distribution and modification are notcovered by this License; they are outside its scope. The act ofrunning a program using the Library is not restricted, and output fromsuch a program is covered only if its contents constitute a work basedon the Library (independent of the use of the Library in a tool forwriting it). Whether that is true depends on what the Library doesand what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library\'scomplete source code as you receive it, in any medium, provided thatyou conspicuously and appropriately publish on each copy anappropriate copyright notice and disclaimer of warranty; keep intactall the notices that refer to this License and to the absence of anywarranty; and distribute a copy of this License along with theLibrary.\n\n You may charge a fee for the physical act of transferring a copy,and you may at your option offer warranty protection in exchange for afee.\14 2. You may modify your copy or copies of the Library or any portionof it, thus forming a work based on the Library, and copy anddistribute such modifications or work under the terms of Section 1above, provided that you also meet all of these conditions:\n\n a) The modified work must itself be a software library.\n\n b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change.\n\n c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License.\n\n d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful.\n\n (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.)\n\nThese requirements apply to the modified work as a whole. Ifidentifiable sections of that work are not derived from the Library,and can be reasonably considered independent and separate works inthemselves, then this License, and its terms, do not apply to thosesections when you distribute them as separate works. But when youdistribute the same sections as part of a whole which is a work basedon the Library, the distribution of the whole must be on the terms ofthis License, whose permissions for other licensees extend to theentire whole, and thus to each and every part regardless of who wroteit.\n\nThus, it is not the intent of this section to claim rights or contestyour rights to work written entirely by you; rather, the intent is toexercise the right to control the distribution of derivative orcollective works based on the Library.\n\nIn addition, mere aggregation of another work not based on the Librarywith the Library (or with a work based on the Library) on a volume ofa storage or distribution medium does not bring the other work underthe scope of this License.\n\n 3. You may opt to apply the terms of the ordinary GNU General PublicLicense instead of this License to a given copy of the Library. To dothis, you must alter all the notices that refer to this License, sothat they refer to the ordinary GNU General Public License, version 2,instead of to this License. (If a newer version than version 2 of theordinary GNU General Public License has appeared, then you can specifythat version instead if you wish.) Do not make any other change inthese notices.\14 Once this change is made in a given copy, it is irreversible forthat copy, so the ordinary GNU General Public License applies to allsubsequent copies and derivative works made from that copy.\n\n This option is useful when you wish to copy part of the code ofthe Library into a program that is not a library.\n\n 4. You may copy and distribute the Library (or a portion orderivative of it, under Section 2) in object code or executable formunder the terms of Sections 1 and 2 above provided that you accompanyit with the complete corresponding machine-readable source code, whichmust be distributed under the terms of Sections 1 and 2 above on amedium customarily used for software interchange.\n\n If distribution of object code is made by offering access to copyfrom a designated place, then offering equivalent access to copy thesource code from the same place satisfies the requirement todistribute the source code, even though third parties are notcompelled to copy the source along with the object code.\n\n 5. A program that contains no derivative of any portion of theLibrary, but is designed to work with the Library by being compiled orlinked with it, is called a \"work that uses the Library\". Such awork, in isolation, is not a derivative work of the Library, andtherefore falls outside the scope of this License.\n\n However, linking a \"work that uses the Library\" with the Librarycreates an executable that is a derivative of the Library (because itcontains portions of the Library), rather than a \"work that uses thelibrary\". The executable is therefore covered by this License.Section 6 states terms for distribution of such executables.\n\n When a \"work that uses the Library\" uses material from a header filethat is part of the Library, the object code for the work may be aderivative work of the Library even though the source code is not.Whether this is true is especially significant if the work can belinked without the Library, or if the work is itself a library. Thethreshold for this to be true is not precisely defined by law.\n\n If such an object file uses only numerical parameters, datastructure layouts and accessors, and small macros and small inlinefunctions (ten lines or less in length), then the use of the objectfile is unrestricted, regardless of whether it is legally a derivativework. (Executables containing this object code plus portions of theLibrary will still fall under Section 6.)\n\n Otherwise, if the work is a derivative of the Library, you maydistribute the object code for the work under the terms of Section 6.Any executables containing that work also fall under Section 6,whether or not they are linked directly with the Library itself.\14 6. As an exception to the Sections above, you may also compile orlink a \"work that uses the Library\" with the Library to produce awork containing portions of the Library, and distribute that workunder terms of your choice, provided that the terms permitmodification of the work for the customer\'s own use and reverseengineering for debugging such modifications.\n\n You must give prominent notice with each copy of the work that theLibrary is used in it and that the Library and its use are covered bythis License. You must supply a copy of this License. If the workduring execution displays copyright notices, you must include thecopyright notice for the Library among them, as well as a referencedirecting the user to the copy of this License. Also, you must do oneof these things:\n\n a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable \"work that uses the Library\", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.)\n\n b) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution.\n\n c) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place.\n\n d) Verify that the user has already received a copy of these materials or that you have already sent this user a copy.\n\n For an executable, the required form of the \"work that uses theLibrary\" must include any data and utility programs needed forreproducing the executable from it. However, as a special exception,the source code distributed need not include anything that is normallydistributed (in either source or binary form) with the majorcomponents (compiler, kernel, and so on) of the operating system onwhich the executable runs, unless that component itself accompaniesthe executable.\n\n It may happen that this requirement contradicts the licenserestrictions of other proprietary libraries that do not normallyaccompany the operating system. Such a contradiction means you cannotuse both them and the Library together in an executable that youdistribute.\14 7. You may place library facilities that are a work based on theLibrary side-by-side in a single library together with other libraryfacilities not covered by this License, and distribute such a combinedlibrary, provided that the separate distribution of the work based onthe Library and of the other library facilities is otherwisepermitted, and provided that you do these two things:\n\n a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above.\n\n b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.\n\n 8. You may not copy, modify, sublicense, link with, or distributethe Library except as expressly provided under this License. Anyattempt otherwise to copy, modify, sublicense, link with, ordistribute the Library is void, and will automatically terminate yourrights under this License. However, parties who have received copies,or rights, from you under this License will not have their licensesterminated so long as such parties remain in full compliance.\n\n 9. You are not required to accept this License, since you have notsigned it. However, nothing else grants you permission to modify ordistribute the Library or its derivative works. These actions areprohibited by law if you do not accept this License. Therefore, bymodifying or distributing the Library (or any work based on theLibrary), you indicate your acceptance of this License to do so, andall its terms and conditions for copying, distributing or modifyingthe Library or works based on it.\n\n 10. Each time you redistribute the Library (or any work based on theLibrary), the recipient automatically receives a license from theoriginal licensor to copy, distribute, link with or modify the Librarysubject to these terms and conditions. You may not impose any furtherrestrictions on the recipients\' exercise of the rights granted herein.You are not responsible for enforcing compliance by third parties tothis License.\14 11. If, as a consequence of a court judgment or allegation of patentinfringement or for any other reason (not limited to patent issues),conditions are imposed on you (whether by court order, agreement orotherwise) that contradict the conditions of this License, they do notexcuse you from the conditions of this License. If you cannotdistribute so as to satisfy simultaneously your obligations under thisLicense and any other pertinent obligations, then as a consequence youmay not distribute the Library at all. For example, if a patentlicense would not permit royalty-free redistribution of the Library byall those who receive copies directly or indirectly through you, thenthe only way you could satisfy both it and this License would be torefrain entirely from distribution of the Library.\n\nIf any portion of this section is held invalid or unenforceable under anyparticular circumstance, the balance of the section is intended to apply,and the section as a whole is intended to apply in other circumstances.\n\nIt is not the purpose of this section to induce you to infringe anypatents or other property right claims or to contest validity of anysuch claims; this section has the sole purpose of protecting theintegrity of the free software distribution system which isimplemented by public license practices. Many people have madegenerous contributions to the wide range of software distributedthrough that system in reliance on consistent application of thatsystem; it is up to the author/donor to decide if he or she is willingto distribute software through any other system and a licensee cannotimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed tobe a consequence of the rest of this License.\n\n 12. If the distribution and/or use of the Library is restricted incertain countries either by patents or by copyrighted interfaces, theoriginal copyright holder who places the Library under this License may addan explicit geographical distribution limitation excluding those countries,so that distribution is permitted only in or among countries not thusexcluded. In such case, this License incorporates the limitation as ifwritten in the body of this License.\n\n 13. The Free Software Foundation may publish revised and/or newversions of the Library General Public License from time to time.Such new versions will be similar in spirit to the present version,but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Libraryspecifies a version number of this License which applies to it and\"any later version\", you have the option of following the terms andconditions either of that version or of any later version published bythe Free Software Foundation. If the Library does not specify alicense version number, you may choose any version ever published bythe Free Software Foundation.\14 14. If you wish to incorporate parts of the Library into other freeprograms whose distribution conditions are incompatible with these,write to the author to ask for permission. For software which iscopyrighted by the Free Software Foundation, write to the FreeSoftware Foundation; we sometimes make exceptions for this. Ourdecision will be guided by the two goals of preserving the free statusof all derivatives of our free software and of promoting the sharingand reuse of software generally.\n\n\t\t\t NO WARRANTY\n\n 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NOWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OROTHER PARTIES PROVIDE THE LIBRARY \"AS IS\" WITHOUT WARRANTY OF ANYKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULARPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THELIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUMETHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO INWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFYAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOUFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL ORCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THELIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEINGRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR AFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IFSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCHDAMAGES.\n\n\t\t END OF TERMS AND CONDITIONS\14 Appendix: How to Apply These Terms to Your New Libraries\n\n If you develop a new library, and you want it to be of the greatestpossible use to the public, we recommend making it free software thateveryone can redistribute and change. You can do so by permittingredistribution under these terms (or, alternatively, under the terms of theordinary General Public License).\n\n To apply these terms, attach the following notices to the library. It issafest to attach them to the start of each source file to most effectivelyconvey the exclusion of warranty; and each file should have at least the\"copyright\" line and a pointer to where the full notice is found.\n\n <one line to give the library\'s name and a brief idea of what it does.> Copyright (C) <year> <name of author>\n\n This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\n\n This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.\n\n You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n\nAlso add information on how to contact you by electronic and paper mail.\n\nYou should also get your employer (if you work as a programmer) or yourschool, if any, to sign a \"copyright disclaimer\" for the library, ifnecessary. Here is a sample; alter the names:\n\n Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob\' (a library for tweaking knobs) written by James Random Hacker.\n\n <signature of Ty Coon>, 1 April 1990 Ty Coon, President of Vice\n\nThat\'s all there is to it!\n\nSee http://www.gnu.org/copyleft/lesser.html.May contain `ogg\', `vorbis\' libraries (c) 2002-2008 Xiph.org Foundation\n\nRedistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditionsare met:\n\n- Redistributions of source code must retain the above copyrightnotice, this list of conditions and the following disclaimer.\n\n- Redistributions in binary form must reproduce the above copyrightnotice, this list of conditions and the following disclaimer in thedocumentation and/or other materials provided with the distribution.\n\n- Neither the name of the Xiph.org Foundation nor the names of itscontributors may be used to endorse or promote products derived fromthis software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS``AS IS\'\' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATIONOR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."));
10873
10838
  rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
10874
10839
  rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 2.0.11
3
+ * Version 3.0.0
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -89,6 +89,12 @@ Gosu::Window::Window(unsigned width, unsigned height, bool fullscreen, double up
89
89
  actualWidth, actualHeight,
90
90
  SDL_WINDOW_OPENGL | SDL_WINDOW_ALLOW_HIGHDPI |
91
91
  (fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0));
92
+
93
+ #ifdef GOSU_IS_OPENGLES
94
+ SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
95
+ SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
96
+ #endif
97
+
92
98
  pimpl->context = SDL_GL_CreateContext(pimpl->window);
93
99
  SDL_GL_MakeCurrent(pimpl->window, pimpl->context);
94
100
  SDL_GL_SetSwapInterval(1);
@@ -101,14 +101,23 @@ else
101
101
  SOURCE_FILES = BASE_FILES + LINUX_FILES
102
102
 
103
103
  pkg_config 'sdl2'
104
+
105
+ if /Raspbian/ =~ `cat /etc/issue` then
106
+ $INCFLAGS << " -I/opt/vc/include/GLES"
107
+ $INCFLAGS << " -I/opt/vc/include"
108
+ $CFLAGS << " -DGOSU_IS_RASPBERRY_PI"
109
+ $LDFLAGS << " -L/opt/vc/lib"
110
+ $LDFLAGS << " -lGLESv1_CM"
111
+ else
112
+ pkg_config 'gl'
113
+ end
114
+
104
115
  pkg_config 'pangoft2'
105
-
106
- pkg_config 'gl'
107
116
  pkg_config 'vorbisfile'
108
117
  pkg_config 'openal'
109
118
  pkg_config 'sndfile'
110
119
 
111
- have_header 'SDL_ttf.h' if have_library('SDL_ttf', 'TTF_RenderUTF8_Blended')
120
+ have_header 'SDL_ttf.h' if have_library('SDL2_ttf', 'TTF_RenderUTF8_Blended')
112
121
  have_header 'FreeImage.h' if have_library('freeimage', 'FreeImage_ConvertFromRawBits')
113
122
  have_header 'AL/al.h' if have_library('openal')
114
123
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gosu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.pre2
4
+ version: 0.8.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Raschke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-24 00:00:00.000000000 Z
11
+ date: 2014-04-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.