opengl-bindings 1.6.7 → 1.6.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/opengl_linux.rb CHANGED
@@ -40,7 +40,7 @@ end
40
40
 
41
41
  =begin
42
42
  Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
43
- Copyright (c) 2013-2018 vaiorabbit <http://twitter.com/vaiorabbit>
43
+ Copyright (c) 2013-2019 vaiorabbit <http://twitter.com/vaiorabbit>
44
44
 
45
45
  This software is provided 'as-is', without any express or implied
46
46
  warranty. In no event will the authors be held liable for any damages
data/lib/opengl_macosx.rb CHANGED
@@ -45,7 +45,7 @@ end
45
45
 
46
46
  =begin
47
47
  Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
48
- Copyright (c) 2013-2018 vaiorabbit <http://twitter.com/vaiorabbit>
48
+ Copyright (c) 2013-2019 vaiorabbit <http://twitter.com/vaiorabbit>
49
49
 
50
50
  This software is provided 'as-is', without any express or implied
51
51
  warranty. In no event will the authors be held liable for any damages
@@ -20,7 +20,7 @@ end
20
20
 
21
21
  =begin
22
22
  Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
23
- Copyright (c) 2013-2018 vaiorabbit <http://twitter.com/vaiorabbit>
23
+ Copyright (c) 2013-2019 vaiorabbit <http://twitter.com/vaiorabbit>
24
24
 
25
25
  This software is provided 'as-is', without any express or implied
26
26
  warranty. In no event will the authors be held liable for any damages
@@ -48,7 +48,7 @@ end
48
48
 
49
49
  =begin
50
50
  Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
51
- Copyright (c) 2013-2018 vaiorabbit <http://twitter.com/vaiorabbit>
51
+ Copyright (c) 2013-2019 vaiorabbit <http://twitter.com/vaiorabbit>
52
52
 
53
53
  This software is provided 'as-is', without any express or implied
54
54
  warranty. In no event will the authors be held liable for any damages
data/sample/README.md CHANGED
@@ -3,12 +3,13 @@ For more samples, visit https://github.com/vaiorabbit/ruby-opengl/tree/master/sa
3
3
  ## Getting GLFW (http://www.glfw.org) ##
4
4
 
5
5
  * Windows
6
- * Put glfw3.dll here.
7
- * Windows pre-compiled binaries:
6
+ * Put glfw3.dll here. You can download pre-compiled binaries via:
8
7
  * http://www.glfw.org/download.html
8
+ * If you have RubyInstaller2 with DevKit(MSYS2 gcc & make) and CMake, you can use glfw_build.bat:
9
+ * > ./glfw_build.bat
9
10
 
10
11
  * Mac OS X
11
- * run ./glfwXX_build_dylib.sh to get ./libglfw.dylib.
12
+ * Run ./glfw_build.sh to get ./libglfw.dylib.
12
13
 
13
14
  ## Getting GLUT ##
14
15
 
@@ -30,12 +31,13 @@ For more samples, visit https://github.com/vaiorabbit/ruby-opengl/tree/master/sa
30
31
  ## GLFWのセットアップ (http://www.glfw.org) ##
31
32
 
32
33
  * Windows
33
- * glfw3.dll をここに配置してください。
34
- * コンパイル済みバイナリはこちら:
34
+ * glfw3.dll をここに配置してください。コンパイル済みバイナリはこちら:
35
35
  * http://www.glfw.org/download.html
36
+ * RubyInstaller2 とその DevKit(MSYS2 gcc & make)、さらに CMake もインストールしている場合は glfw_build.bat も使えます:
37
+ * > ./glfw_build.bat
36
38
 
37
39
  * Mac OS X
38
- * ./glfwXX_build_dylib.sh を実行すると ./libglfw.dylib ができあがります。
40
+ * ./glfw_build.sh を実行すると ./libglfw.dylib ができあがります。
39
41
 
40
42
  ## GLUTのセットアップ ##
41
43
 
@@ -0,0 +1,11 @@
1
+ ::
2
+ :: For Windows + RubyInstaller2 with DevKit(MSYS2 gcc & make) + CMake users.
3
+ :: - Use this script after "ridk enable"d. See https://github.com/oneclick/rubyinstaller2/wiki/The-ridk-tool for details.
4
+ ::
5
+ git clone --depth=1 https://github.com/glfw/glfw.git glfw_master
6
+ cd glfw_master/
7
+ mkdir build
8
+ cd build
9
+ "%PROGRAMFILES%"\CMake\bin\cmake -G "MSYS Makefiles" -D CMAKE_BUILD_TYPE=Release -D GLFW_NATIVE_API=1 -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=gcc ../
10
+ make
11
+ cp -R src/glfw3.dll ../..
@@ -0,0 +1,13 @@
1
+ #
2
+ # For Mac OS X + Xcode + CMake users.
3
+ #
4
+ # Ref.: https://github.com/malkia/ufo/blob/master/build/OSX/glfw.sh
5
+ #
6
+ git clone --depth=1 https://github.com/glfw/glfw.git glfw_master
7
+ cd glfw_master/
8
+ mkdir build
9
+ cd build
10
+ export MACOSX_DEPLOYMENT_TARGET=10.14
11
+ cmake -D CMAKE_BUILD_TYPE=Release -D GLFW_NATIVE_API=1 -D CMAKE_OSX_ARCHITECTURES="x86_64" -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=clang ../
12
+ make
13
+ cp -R src/libglfw* ../..
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opengl-bindings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.7
4
+ version: 1.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2019-02-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Ruby bindings for OpenGL - 4.6, OpenGL ES - 3.2 and all extensions using
14
14
  Fiddle (For MRI >= 2.0.0). GLFW/GLUT/GLU bindings are also available.
@@ -45,7 +45,8 @@ files:
45
45
  - lib/opengl_platform.rb
46
46
  - lib/opengl_windows.rb
47
47
  - sample/README.md
48
- - sample/glfw32_build_dylib.sh
48
+ - sample/glfw_build.bat
49
+ - sample/glfw_build.sh
49
50
  - sample/report_env.rb
50
51
  - sample/simple.rb
51
52
  - sample/simple_glut.rb
@@ -68,8 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
69
  - !ruby/object:Gem::Version
69
70
  version: '0'
70
71
  requirements: []
71
- rubyforge_project:
72
- rubygems_version: 2.7.7
72
+ rubygems_version: 3.0.2
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Bindings for OpenGL -4.6, ES - 3.2 and extensions (For MRI >= 2.0.0)
@@ -1,22 +0,0 @@
1
- #
2
- # For Mac OS X + Xcode + CMake users.
3
- #
4
- # Ref.: https://github.com/malkia/ufo/blob/master/build/OSX/glfw.sh
5
- #
6
- wget https://github.com/glfw/glfw/releases/download/3.2.1/glfw-3.2.1.zip
7
- tar xvjf glfw-3.2.1.zip
8
- cd glfw-3.2.1/
9
- mkdir build
10
- cd build
11
- export MACOSX_DEPLOYMENT_TARGET=10.11
12
- cmake -D CMAKE_BUILD_TYPE=Release -D GLFW_NATIVE_API=1 -D CMAKE_OSX_ARCHITECTURES="i386;x86_64" -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=clang ../
13
- make
14
-
15
- # 'ls -l src/libglfw*' should be:
16
- #
17
- # $ ls -l src/libglfw*
18
- # -rwxr-xr-x 1 foo staff 238148 8 27 23:13 src/libglfw.3.2.dylib
19
- # lrwxr-xr-x 1 foo staff 17 8 27 23:13 src/libglfw.3.dylib -> libglfw.3.2.dylib
20
- # lrwxr-xr-x 1 foo staff 15 8 27 23:13 src/libglfw.dylib -> libglfw.3.dylib
21
-
22
- cp -R src/libglfw* ../..