raylib-bindings-tileson 0.7.2-x86_64-linux → 0.7.9-x86_64-linux

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
  SHA256:
3
- metadata.gz: a9730f22571e7fc9b603e6925eb502bc9cb4f781e688264d397ba35dabd544bb
4
- data.tar.gz: f96130a45388e2c09300bc609400ed9c622ad6eeaaabab730fb6dfe336ecf32f
3
+ metadata.gz: 544901b11c7d3d21c13d9986cf2e0f1ae01148af9f9b7e84f72c6a420d519bab
4
+ data.tar.gz: d962e54d116d659e77fb4114ebef59f5463aa44131e26df344fa406253680777
5
5
  SHA512:
6
- metadata.gz: a815d1f8f9b3356282c0028bdb94fd183a89904acbc1221b7c2d802d65b59c45fa00b9714aa7b54ef5b14e8a38e8c2fa6efde514cf9b5c89a7f0754b2d6ea7fc
7
- data.tar.gz: 4b2175bbf6fc03c27ffc99a1530b4e56060fee147583cc8d86337a4668db091087ff71732b9196b3608f4e95441b4d7b9994bd47d6b15b5acd12244e2da418b8
6
+ metadata.gz: 8d304d1a0f070b087938c399295c2ca5f9f2b7cdead2e11066ac0d43c3b9ffad49b0d089d47fbbd796e4f61bebf01701f6504fabb5e4bee8dc12aa26d28498a6
7
+ data.tar.gz: f817656afcd98056bbc2a4c3e86bef6a86fe06a588e3303c2f4d10cba13ece3a0f15f712bfd3de98dd6b887dace0be0d78c7076ce36abf6f3a628c9cd5b19bb9
data/ChangeLog CHANGED
@@ -1,24 +1,29 @@
1
- 2024-04-07 vaiorabbit <http://twitter.com/vaiorabbit>
2
-
3
- * Use raylib-bindings v0.7.2
4
-
5
- 2024-02-03 vaiorabbit <http://twitter.com/vaiorabbit>
6
-
7
- * Use raylib-bindings v0.7.0
8
-
9
- 2024-01-07 vaiorabbit <http://twitter.com/vaiorabbit>
10
-
11
- * Updated README
12
- * Use raylib-bindings v0.6.1
13
-
14
- 2024-01-05 vaiorabbit <http://twitter.com/vaiorabbit>
15
-
16
- * Updated raylib-bindings ( https://github.com/vaiorabbit/raylib-bindings/commit/45dfc6bae4176c7798a9b8af9a1b7f9c924aa453 )
17
-
18
- 2023-12-30 vaiorabbit <http://twitter.com/vaiorabbit>
19
-
20
- * Added example/map
21
-
22
- 2023-12-29 vaiorabbit <http://twitter.com/vaiorabbit>
23
-
24
- * v0.6.0pre
1
+ 2024-12-22 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * Use raylib-bindings v0.7.9
4
+ * Updated raylib-tileson ( https://github.com/RobLoach/raylib-tileson/commit/0d8ff468385f7bab64c1bdb9e45ffc501f11c799 )
5
+
6
+ 2024-04-07 vaiorabbit <http://twitter.com/vaiorabbit>
7
+
8
+ * Use raylib-bindings v0.7.2
9
+
10
+ 2024-02-03 vaiorabbit <http://twitter.com/vaiorabbit>
11
+
12
+ * Use raylib-bindings v0.7.0
13
+
14
+ 2024-01-07 vaiorabbit <http://twitter.com/vaiorabbit>
15
+
16
+ * Updated README
17
+ * Use raylib-bindings v0.6.1
18
+
19
+ 2024-01-05 vaiorabbit <http://twitter.com/vaiorabbit>
20
+
21
+ * Updated raylib-bindings ( https://github.com/vaiorabbit/raylib-bindings/commit/45dfc6bae4176c7798a9b8af9a1b7f9c924aa453 )
22
+
23
+ 2023-12-30 vaiorabbit <http://twitter.com/vaiorabbit>
24
+
25
+ * Added example/map
26
+
27
+ 2023-12-29 vaiorabbit <http://twitter.com/vaiorabbit>
28
+
29
+ * v0.6.0pre
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
@@ -1,76 +1,76 @@
1
- <!-- -*- mode:markdown; coding:utf-8; -*- -->
2
-
3
- # raylib-tileson wrapper for Ruby #
4
-
5
- * Created : 2023-12-23
6
- * Last modified : 2024-04-07
7
-
8
- <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings-tileson/main/doc/screenshot_00.png" width="600">
9
-
10
- Provides Ruby bindings for raylib-tileson ( https://github.com/RobLoach/raylib-tileson )
11
-
12
- ## Features ##
13
-
14
- * Based on Ruby/FFI ( https://github.com/ffi/ffi )
15
- * Pre-built binaries are inside:
16
- * Windows (x86_64)
17
- * macOS (x86_64, ARM64)
18
- * Linux (x86_64, ARM64)
19
-
20
- ## Quick Start ##
21
-
22
- ```
23
- D:\> gem install raylib-bindings
24
- D:\> gem install raylib-bindings-tileson
25
- ...
26
- D:\> cd examples
27
- D:\> ruby test.rb
28
- ```
29
-
30
- ## Prerequisites ##
31
-
32
- * Ruby interpreter
33
- * Tested on:
34
- * [macOS] https://rvm.io
35
- * ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
36
- * [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
37
- * ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x64-mingw-ucrt]
38
- * [Linux/x86_64 WSL] https://github.com/rvm/ubuntu_rvm
39
- * ruby 3.2.0preview1 (2022-04-03 master f801386f0c) [x86_64-linux]
40
- * [Linux/ARM64 Chromebook] https://github.com/rvm/ubuntu_rvm
41
- * ruby 3.2.0 (2022-12-25 revision a528908271) [aarch64-linux]
42
-
43
- ## License ##
44
-
45
- Shared libraries in `lib` directory are built on top of these products and are available under the terms of these licenses:
46
-
47
- * raylib-tileson
48
- * <https://github.com/RobLoach/raylib-tileson/blob/master/LICENSE>
49
-
50
- All ruby codes here are available under the terms of the 2-clause BSD License:
51
-
52
- BSD 2-Clause License
53
-
54
- Copyright (c) 2023-2024 vaiorabbit <http://twitter.com/vaiorabbit>
55
- All rights reserved.
56
-
57
- Redistribution and use in source and binary forms, with or without
58
- modification, are permitted provided that the following conditions are met:
59
-
60
- 1. Redistributions of source code must retain the above copyright notice, this
61
- list of conditions and the following disclaimer.
62
-
63
- 2. Redistributions in binary form must reproduce the above copyright notice,
64
- this list of conditions and the following disclaimer in the documentation
65
- and/or other materials provided with the distribution.
66
-
67
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
68
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
69
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
70
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
71
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
72
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
73
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
74
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
75
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
76
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+ <!-- -*- mode:markdown; coding:utf-8; -*- -->
2
+
3
+ # raylib-tileson wrapper for Ruby #
4
+
5
+ * Created : 2023-12-23
6
+ * Last modified : 2024-12-22
7
+
8
+ <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings-tileson/main/doc/screenshot_00.png" width="600">
9
+
10
+ Provides Ruby bindings for raylib-tileson ( https://github.com/RobLoach/raylib-tileson )
11
+
12
+ ## Features ##
13
+
14
+ * Based on Ruby/FFI ( https://github.com/ffi/ffi )
15
+ * Pre-built binaries are inside:
16
+ * Windows (x86_64)
17
+ * macOS (x86_64, ARM64)
18
+ * Linux (x86_64, ARM64)
19
+
20
+ ## Quick Start ##
21
+
22
+ ```
23
+ D:\> gem install raylib-bindings
24
+ D:\> gem install raylib-bindings-tileson
25
+ ...
26
+ D:\> cd examples
27
+ D:\> ruby test.rb
28
+ ```
29
+
30
+ ## Prerequisites ##
31
+
32
+ * Ruby interpreter
33
+ * Tested on:
34
+ * [macOS] https://rvm.io
35
+ * ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
36
+ * [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
37
+ * ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x64-mingw-ucrt]
38
+ * [Linux/x86_64 WSL] https://github.com/rvm/ubuntu_rvm
39
+ * ruby 3.2.0preview1 (2022-04-03 master f801386f0c) [x86_64-linux]
40
+ * [Linux/ARM64 Chromebook] https://github.com/rvm/ubuntu_rvm
41
+ * ruby 3.2.0 (2022-12-25 revision a528908271) [aarch64-linux]
42
+
43
+ ## License ##
44
+
45
+ Shared libraries in `lib` directory are built on top of these products and are available under the terms of these licenses:
46
+
47
+ * raylib-tileson
48
+ * <https://github.com/RobLoach/raylib-tileson/blob/master/LICENSE>
49
+
50
+ All ruby codes here are available under the terms of the 2-clause BSD License:
51
+
52
+ BSD 2-Clause License
53
+
54
+ Copyright (c) 2023-2024 vaiorabbit <http://twitter.com/vaiorabbit>
55
+ All rights reserved.
56
+
57
+ Redistribution and use in source and binary forms, with or without
58
+ modification, are permitted provided that the following conditions are met:
59
+
60
+ 1. Redistributions of source code must retain the above copyright notice, this
61
+ list of conditions and the following disclaimer.
62
+
63
+ 2. Redistributions in binary form must reproduce the above copyright notice,
64
+ this list of conditions and the following disclaimer in the documentation
65
+ and/or other materials provided with the distribution.
66
+
67
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
68
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
69
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
70
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
71
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
72
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
73
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
74
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
75
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
76
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/examples/test.rb CHANGED
@@ -1,23 +1,23 @@
1
- require_relative 'util/setup_dll'
2
-
3
- if __FILE__ == $PROGRAM_NAME
4
- screen_width = 480
5
- screen_height = 272
6
- position = Vector2.create
7
-
8
- InitWindow(screen_width, screen_height, "Ruby raylib-tileson bindings")
9
- SetTargetFPS(60)
10
-
11
- map = LoadTiled("map/sampleMap.tmj")
12
-
13
- until WindowShouldClose()
14
- BeginDrawing()
15
- ClearBackground(RAYWHITE)
16
- DrawTiled(map, position.x, position.y, WHITE)
17
- EndDrawing()
18
- end
19
-
20
- UnloadMap(map)
21
-
22
- CloseWindow()
23
- end
1
+ require_relative 'util/setup_dll'
2
+
3
+ if __FILE__ == $PROGRAM_NAME
4
+ screen_width = 480
5
+ screen_height = 272
6
+ position = Vector2.create
7
+
8
+ InitWindow(screen_width, screen_height, "Ruby raylib-tileson bindings")
9
+ SetTargetFPS(60)
10
+
11
+ map = LoadTiled("map/sampleMap.tmj")
12
+
13
+ until WindowShouldClose()
14
+ BeginDrawing()
15
+ ClearBackground(RAYWHITE)
16
+ DrawTiled(map, position.x, position.y, WHITE)
17
+ EndDrawing()
18
+ end
19
+
20
+ UnloadMap(map)
21
+
22
+ CloseWindow()
23
+ end
data/lib/tileson.rb CHANGED
@@ -1,62 +1,62 @@
1
- # raylib-tileson wrapper for Ruby
2
- #
3
- # * https://github.com/vaiorabbit/raylib-bindings-tileson
4
- #
5
- # Licensed under the BSD 2-Clause License.
6
- # * https://github.com/vaiorabbit/raylib-bindings-tileson/blob/main/LICENSE.txt
7
-
8
- require 'ffi'
9
- require 'raylib'
10
-
11
- module Raylib
12
- extend FFI::Library
13
-
14
- # Struct
15
-
16
- class Map < FFI::Struct
17
- layout(
18
- :width, :int,
19
- :height, :int,
20
- :tileWidth, :int,
21
- :tileHeight, :int,
22
- :data, :pointer,
23
- )
24
- def width = self[:width]
25
- def width=(v) self[:width] = v end
26
- def height = self[:height]
27
- def height=(v) self[:height] = v end
28
- def tileWidth = self[:tileWidth]
29
- def tileWidth=(v) self[:tileWidth] = v end
30
- def tileHeight = self[:tileHeight]
31
- def tileHeight=(v) self[:tileHeight] = v end
32
- def data = self[:data]
33
- def data=(v) self[:data] = v end
34
- end
35
-
36
-
37
- # Function
38
-
39
- def self.setup_tileson_symbols
40
- entries = [
41
- [:LoadTiledFromMemory, :LoadTiledFromMemory, [:pointer, :int, :pointer], Map.by_value],
42
- [:LoadTiled, :LoadTiled, [:pointer], Map.by_value],
43
- [:IsTiledReady, :IsTiledReady, [], :bool],
44
- [:DrawTiled, :DrawTiled, [Map.by_value, :int, :int, Color.by_value], :bool],
45
- [:UnloadMap, :UnloadMap, [Map.by_value], :void],
46
- ]
47
- entries.each do |entry|
48
- attach_function entry[0], entry[1], entry[2], entry[3]
49
- rescue FFI::NotFoundError => e
50
- warn "[Warning] Failed to import #{entry[0]} (#{e})."
51
- end
52
- end
53
-
54
- def self.load_tileson_lib(libpath)
55
- ffi_lib_flags :now, :global
56
- ffi_lib(libpath)
57
- setup_tileson_symbols
58
- rescue LoadError => e
59
- warn e
60
- end
61
-
62
- end
1
+ # raylib-tileson wrapper for Ruby
2
+ #
3
+ # * https://github.com/vaiorabbit/raylib-bindings-tileson
4
+ #
5
+ # Licensed under the BSD 2-Clause License.
6
+ # * https://github.com/vaiorabbit/raylib-bindings-tileson/blob/main/LICENSE.txt
7
+
8
+ require 'ffi'
9
+ require 'raylib'
10
+
11
+ module Raylib
12
+ extend FFI::Library
13
+
14
+ # Struct
15
+
16
+ class Map < FFI::Struct
17
+ layout(
18
+ :width, :int,
19
+ :height, :int,
20
+ :tileWidth, :int,
21
+ :tileHeight, :int,
22
+ :data, :pointer,
23
+ )
24
+ def width = self[:width]
25
+ def width=(v) self[:width] = v end
26
+ def height = self[:height]
27
+ def height=(v) self[:height] = v end
28
+ def tileWidth = self[:tileWidth]
29
+ def tileWidth=(v) self[:tileWidth] = v end
30
+ def tileHeight = self[:tileHeight]
31
+ def tileHeight=(v) self[:tileHeight] = v end
32
+ def data = self[:data]
33
+ def data=(v) self[:data] = v end
34
+ end
35
+
36
+
37
+ # Function
38
+
39
+ def self.setup_tileson_symbols
40
+ entries = [
41
+ [:LoadTiledFromMemory, :LoadTiledFromMemory, [:pointer, :int, :pointer], Map.by_value],
42
+ [:LoadTiled, :LoadTiled, [:pointer], Map.by_value],
43
+ [:IsTiledReady, :IsTiledReady, [], :bool],
44
+ [:DrawTiled, :DrawTiled, [Map.by_value, :int, :int, Color.by_value], :bool],
45
+ [:UnloadMap, :UnloadMap, [Map.by_value], :void],
46
+ ]
47
+ entries.each do |entry|
48
+ attach_function entry[0], entry[1], entry[2], entry[3]
49
+ rescue FFI::NotFoundError => e
50
+ warn "[Warning] Failed to import #{entry[0]} (#{e})."
51
+ end
52
+ end
53
+
54
+ def self.load_tileson_lib(libpath)
55
+ ffi_lib_flags :now, :global
56
+ ffi_lib(libpath)
57
+ setup_tileson_symbols
58
+ rescue LoadError => e
59
+ warn e
60
+ end
61
+
62
+ end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raylib-bindings-tileson
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.9
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-07 00:00:00.000000000 Z
11
+ date: 2024-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.5.5
76
+ rubygems_version: 3.5.11
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Ruby bindings for raylib-tileson