texplay 0.4.3 → 0.4.4.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG +225 -222
- data/README.markdown +48 -48
- data/Rakefile +16 -16
- data/examples/common.rb +18 -18
- data/examples/example_alpha_blend.rb +29 -29
- data/examples/example_bezier.rb +41 -41
- data/examples/example_blank.rb +37 -37
- data/examples/example_cache.rb +21 -21
- data/examples/example_color_control.rb +69 -69
- data/examples/example_color_transform.rb +62 -62
- data/examples/example_color_transform_circle.rb +34 -34
- data/examples/example_darken.rb +24 -24
- data/examples/example_dup.rb +73 -73
- data/examples/example_each.rb +39 -39
- data/examples/example_effect.rb +34 -34
- data/examples/example_fill.rb +43 -43
- data/examples/example_fill_old.rb +48 -48
- data/examples/example_fluent.rb +29 -29
- data/examples/example_font.rb +31 -31
- data/examples/example_hash_arguments.rb +46 -46
- data/examples/example_ippa.rb +23 -23
- data/examples/example_light.rb +75 -75
- data/examples/example_light_multiply.rb +18 -18
- data/examples/example_lsystem.rb +61 -61
- data/examples/example_melt.rb +25 -25
- data/examples/example_meyet.rb +62 -62
- data/examples/example_polyline.rb +42 -42
- data/examples/example_scale.rb +27 -27
- data/examples/example_select.rb +36 -36
- data/examples/example_select2.rb +25 -25
- data/examples/example_simple.rb +46 -46
- data/examples/example_splice.rb +26 -26
- data/examples/example_sync.rb +59 -59
- data/examples/example_tiles.rb +41 -41
- data/examples/example_trace.rb +22 -22
- data/examples/example_transparent.rb +28 -28
- data/examples/example_transparent2.rb +24 -24
- data/examples/example_transparent3.rb +20 -20
- data/examples/example_turtle.rb +39 -39
- data/examples/example_weird.rb +22 -22
- data/examples/example_window_render_to_image.rb +41 -41
- data/examples/example_window_to_blob.rb +35 -35
- data/examples/media/maria.png +0 -0
- data/examples/media/rose.bmp +0 -0
- data/ext/texplay/actions.c +1011 -1006
- data/ext/texplay/actions.h +60 -60
- data/ext/texplay/bindings.c +1130 -1125
- data/ext/texplay/bindings.h +46 -46
- data/ext/texplay/cache.c +123 -118
- data/ext/texplay/cache.h +24 -24
- data/ext/texplay/compat.h +21 -27
- data/ext/texplay/extconf.rb +38 -38
- data/ext/texplay/graphics_utils.c +1318 -1313
- data/ext/texplay/graphics_utils.h +22 -22
- data/ext/texplay/texplay.c +206 -201
- data/ext/texplay/texplay.h +153 -153
- data/ext/texplay/utils.c +896 -891
- data/ext/texplay/utils.h +153 -153
- data/lib/texplay-contrib.rb +147 -147
- data/lib/texplay.rb +347 -347
- data/lib/texplay/alone.rb +20 -20
- data/lib/texplay/c_function_docs.rb +178 -178
- data/lib/texplay/live.rb +84 -84
- data/lib/texplay/version.rb +3 -3
- data/live/live.rb +85 -85
- data/test/image_spec.rb +45 -45
- data/test/texplay_spec.rb +144 -144
- metadata +42 -52
- data/lib/texplay/1.8/texplay.so +0 -0
- data/lib/texplay/1.9/texplay.so +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7cb3fc2c92e083c9c79c27e0ee5177c96d863234
|
4
|
+
data.tar.gz: 6b02709511491a382229b51b35479b55fe20b415
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: daba54ad58f10260caab17de25188f7e488f0b00d8deff458d85f20e33a19d23c6efadf01c78e8c1bcde2e16bf78f390519979b1c24f090704313bdea8d90006
|
7
|
+
data.tar.gz: 6b0465d46937b092bf8ddd3314ea4c5209494b714a1a29f657c6688e7cac922cfe70972a745f2765f839f458c425d5bcda5e7cf00bf9ba716ea6eae05914c678
|
data/CHANGELOG
CHANGED
@@ -1,222 +1,225 @@
|
|
1
|
-
*
|
2
|
-
* added
|
3
|
-
|
4
|
-
*
|
5
|
-
* added
|
6
|
-
|
7
|
-
*
|
8
|
-
*
|
9
|
-
|
10
|
-
*1/
|
11
|
-
|
12
|
-
*
|
13
|
-
*
|
14
|
-
|
15
|
-
*
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
*
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
* TexPlay.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
*
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
*
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
*
|
92
|
-
*
|
93
|
-
|
94
|
-
*
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
*
|
114
|
-
*
|
115
|
-
|
116
|
-
|
117
|
-
*
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
8
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
* fixed
|
151
|
-
*
|
152
|
-
*
|
153
|
-
*
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
version 0.
|
162
|
-
*
|
163
|
-
|
164
|
-
|
165
|
-
*
|
166
|
-
*
|
167
|
-
*
|
168
|
-
|
169
|
-
*
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
*
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
version 0.1.1
|
218
|
-
*
|
219
|
-
|
220
|
-
version 0.1.
|
221
|
-
*
|
222
|
-
|
1
|
+
*29/6/14 version 0.4.4.pre
|
2
|
+
* added support for Ruby 2.1.x
|
3
|
+
* pushing test gem
|
4
|
+
*22/2/11 version 0.3.5
|
5
|
+
* added :source, :dest, :source_with_alpha, :dest_with_alpha options to
|
6
|
+
:alpha_blend
|
7
|
+
* added live.rb (repl image editor)
|
8
|
+
* added alone.rb (run texplay image manip independent from gosu)
|
9
|
+
|
10
|
+
*1/11/10 version 0.3.0
|
11
|
+
* pushed gems
|
12
|
+
* tested
|
13
|
+
*1/10/10
|
14
|
+
version 0.2.983pre2
|
15
|
+
* added Window#to_texture(...) seems to be broken! releasing pre2 so
|
16
|
+
* others can test it :)
|
17
|
+
|
18
|
+
*27/9/10
|
19
|
+
version 0.2.983pre1
|
20
|
+
* added Window#to_blob(x,y,width,height), grab a screenshot region
|
21
|
+
|
22
|
+
*24/9/10
|
23
|
+
version 0.2.982pre1
|
24
|
+
* added :default drawing mode (equivalent to :mode => nil)
|
25
|
+
* changed Linux texture size to 512
|
26
|
+
|
27
|
+
16/8/10
|
28
|
+
version 0.2.981
|
29
|
+
* oops, added :caching => false to TexPlay#dup
|
30
|
+
* oops, put 'self' inside the capture block for TexPlay#clear
|
31
|
+
* got rid of tolerance member from rgba struct, as tolerance is now stored
|
32
|
+
separately
|
33
|
+
|
34
|
+
|
35
|
+
16/8/10
|
36
|
+
version 0.2.980
|
37
|
+
* added :caching option to TexPlay.set_options, and Gosu::Image.new. For
|
38
|
+
control over whether images are cached or not. (accepts true and
|
39
|
+
false values)
|
40
|
+
* TexPlay.create_image() no longer calls refresh_cache
|
41
|
+
* added new TexPlay#clear() method, just draws a filled rect over image.
|
42
|
+
|
43
|
+
14/8/10
|
44
|
+
version 0.2.975
|
45
|
+
* fixed :tolerance bug (was in special_cmp_color_with_tolerance, was checking color1.alpha <= tolerance instead of color2.alpha <= tolerance)
|
46
|
+
* modified TexPlay.create_image() so it only draws a colored, filled rect if a :color parameter is specified
|
47
|
+
|
48
|
+
14/8/10
|
49
|
+
version 0.2.970
|
50
|
+
* fixed :transparent bug (bug was in rb_convert_rb_color_to_rgba(), :transparent was being matched as
|
51
|
+
not_a_color)
|
52
|
+
* limited not_a_color() to match just color.red == -1 && color.green == -1, etc rather than color.red < 0
|
53
|
+
* Now we can use negative values to define other pseudo-colors (in similar vein to :transparent)
|
54
|
+
|
55
|
+
16/7/10
|
56
|
+
version 0.2.965
|
57
|
+
* fixed MAX_TEXTURE_SIZE at 1024 for linux (to avoid segfault)
|
58
|
+
|
59
|
+
4/7/10
|
60
|
+
version 0.2.960
|
61
|
+
* added :transparent pseudo-color
|
62
|
+
* added :tolerance option (applies to :trace and :source_select etc
|
63
|
+
family)
|
64
|
+
* fixed memleak in to_blob
|
65
|
+
|
66
|
+
10/6/10
|
67
|
+
version 0.2.950
|
68
|
+
* fixed bug in apply_drawing_mode, wasn't using blended_pixel as source_pixel
|
69
|
+
* hex literal colors now accepted, e.g 0xffff0000 (red)
|
70
|
+
|
71
|
+
9/6/10
|
72
|
+
version 0.2.940
|
73
|
+
* hopefully fixed :trace behaviour. Should now return nil for color when
|
74
|
+
pixel out of bounds.
|
75
|
+
|
76
|
+
9/6/10
|
77
|
+
version 0.2.930
|
78
|
+
* not_a_color now returns true when color channel < 0
|
79
|
+
|
80
|
+
8/6/10
|
81
|
+
version 0.2.920
|
82
|
+
* :trace now supports :color_mode => :gosu
|
83
|
+
|
84
|
+
7/6/10
|
85
|
+
version 0.2.910
|
86
|
+
* 1.8.7 incompatibility fixed
|
87
|
+
|
88
|
+
7/6/10
|
89
|
+
version 0.2.900
|
90
|
+
* added source_select, source_ignore, dest_select, dest_ignore
|
91
|
+
* :chroma_key now deprecated (by above functionality)
|
92
|
+
* using Gosu::MAX_TEXTURE_SIZE, hopefully fixes crashes on some linux
|
93
|
+
distros
|
94
|
+
* Gosu::Color objects now accepted (and optionally returned by get_pixel)
|
95
|
+
* Monkey patched Gosu::Image.from_text() for auto-caching
|
96
|
+
* bitwise drawing modes no longer affect alpha
|
97
|
+
* rows and columns methods added to Gosu::Image, allowed Gosu::Image to be
|
98
|
+
reopened by Gosu::Image.new (works with Gosu::Image#to_blob)
|
99
|
+
|
100
|
+
|
101
|
+
23/03/10
|
102
|
+
version 0.2.800
|
103
|
+
* added 28 drawing modes (using :mode option)
|
104
|
+
* added linear interpolation (:lerp)
|
105
|
+
* added 'trace' option to line for efficient pixel-based collision detection
|
106
|
+
|
107
|
+
12/03/10
|
108
|
+
version 0.2.721
|
109
|
+
* fixed bug in alpha_blend (now blends alpha channels too)
|
110
|
+
|
111
|
+
6/12/09
|
112
|
+
version 0.2.710
|
113
|
+
* fixed bug in line drawing code (wasn't drawing final pixel)
|
114
|
+
* fixed bug in filled rect code (wasn't drawing final row)
|
115
|
+
* fixed bug in flood fill (wasn't drawing on first column)
|
116
|
+
* added glDisable(GL_TEXTURE_2D) calls to cache.c, and removed 'restore previous texture binding' (i doubt there is any previous binding to restore)
|
117
|
+
* using version.rb to help manage versions
|
118
|
+
|
119
|
+
23/11/09
|
120
|
+
* fixed bug in texplay.rb. Replaced TexPlay::TP_MAX_QUAD_SIZE - 2 with
|
121
|
+
just TexPlay::TP_MAX_QUAD_SIZE (the -2 is now built into the constant)
|
122
|
+
|
123
|
+
16/10/09
|
124
|
+
version 0.2.700
|
125
|
+
* removed memory leak from Gosu::Image#to_blob, now writing directly to RSTRING_PTR
|
126
|
+
|
127
|
+
12/10/09
|
128
|
+
version 0.2.666
|
129
|
+
* added Gosu::Image#to_blob
|
130
|
+
* to_blob functionality enables Gosu::Images to work with DevIL library
|
131
|
+
|
132
|
+
6/10/09
|
133
|
+
version 0.2.5
|
134
|
+
* fixed quad_draw flicker bug
|
135
|
+
* added splice_and_scale (to texplay-contrib.rb)
|
136
|
+
* now using rake-compiler to run build process
|
137
|
+
|
138
|
+
15/9/09
|
139
|
+
version 0.2.4
|
140
|
+
* added lsystem
|
141
|
+
* made lsystem both 1.9.1 and 1.8.6 compatible
|
142
|
+
|
143
|
+
11/9/09
|
144
|
+
version 0.2.3
|
145
|
+
* added Ruby 1.8.7 compatibility by modifying extconf.rb to define RUBY_19 macro
|
146
|
+
* and modified compat.h to get rid of feature test (fails on 1.8.7)
|
147
|
+
|
148
|
+
8/9/09
|
149
|
+
version 0.2.2
|
150
|
+
* fixed color_control bug, action_struct->color was being overwritten (now using a temp).
|
151
|
+
* fixed faulty error msg where max tex size was being displayed as 1024 but is actually 1022
|
152
|
+
* added :start_angle parameter to ngon action
|
153
|
+
* fixed example screen height from 769 to 768
|
154
|
+
* arity of -1 and 0 now supported for color_control procs
|
155
|
+
* fixed parameter checks for circle and ngon
|
156
|
+
* updated documentation to reflect changes, and added details on caching
|
157
|
+
|
158
|
+
2/9/09
|
159
|
+
version 0.2.1
|
160
|
+
* releasing a gem for TexPlay
|
161
|
+
* bumped version number so can add add gosu 0.7.14 dependency to github gem
|
162
|
+
* hopefully gem works on both github and rubyforge
|
163
|
+
31/8/09
|
164
|
+
version 0.2.0
|
165
|
+
* added each iterator
|
166
|
+
* added alternative to proc for :color_control proc (allowing static linear transforms to pixels)
|
167
|
+
* no longer segfaulting on windows (no idea why not)
|
168
|
+
* rewrote EmptyImageStub in ruby, using philomory's code. now alot faster.
|
169
|
+
* implemented 'shadow' in terms of static :color_control pixel transform
|
170
|
+
* added more example code demonstrating each iterator (example_each.rb) and new color_control behaviour
|
171
|
+
i.e example_color_transform.rb
|
172
|
+
* should be relatively stable now!
|
173
|
+
|
174
|
+
28/8/09
|
175
|
+
version 0.1.9.1 (still BETA)
|
176
|
+
* experimental features: Gosu::Image#dup and Gosu::Image#clone
|
177
|
+
* also TexPlay::create_blank_image(window, width, height)
|
178
|
+
* I noticed these features SEG FAULT on my setup in windows, so be warned
|
179
|
+
* This is a BETA release
|
180
|
+
|
181
|
+
14/8/09
|
182
|
+
version 0.1.9.0 (BETA)
|
183
|
+
* major rewrite. TP now supports beziers, polylines, polygons, and more
|
184
|
+
* also supports alpha_blending (though still tempermental)
|
185
|
+
* This is a BETA release
|
186
|
+
|
187
|
+
1/7/09
|
188
|
+
version 0.1.6.2
|
189
|
+
* fixed another subtle bug in constrain_local_boundaries(). Function was
|
190
|
+
unable to deal with drawing actions that were 100% outside the image
|
191
|
+
boundaries.
|
192
|
+
|
193
|
+
28/6/09
|
194
|
+
version 0.1.6
|
195
|
+
* gen_eval now working as a replacement for instance_eval in the #paint block. Allows for more user-friendly interface.
|
196
|
+
* #paint can now be called without a block; if invoked this way it executes any commands in the action queue, e.g
|
197
|
+
@img.circle 20, 20, 40
|
198
|
+
@img.pixel 30, 30
|
199
|
+
@img.paint
|
200
|
+
* above will function as if: @img.paint { circle 20, 20, 40; pixel 30, 30 }
|
201
|
+
* collected 1.8.6/1.9.1 compatibility into compat.h
|
202
|
+
|
203
|
+
16/6/09
|
204
|
+
version 0.1.4.6
|
205
|
+
* allowed arity of 0 (as well as -1) for ruby 1.9 compatibility
|
206
|
+
|
207
|
+
13/6/09
|
208
|
+
version 0.1.4.5
|
209
|
+
* major bugfix with TexPlay#splice method (segfaut). Also added new color format parameter: color [1, 1, 0, 1] (e.g purple with full alpha).
|
210
|
+
Also fixed subtle edge-case bug in constrain_local_boundaries().
|
211
|
+
|
212
|
+
9/6/09
|
213
|
+
version 0.1.4
|
214
|
+
* improved error checking. should work better with later gosu releases
|
215
|
+
|
216
|
+
20/2/09
|
217
|
+
version 0.1.1
|
218
|
+
* rerelease of this version fixing the oversized image bug for refresh_cache (i.e images over 500 x 500
|
219
|
+
|
220
|
+
version 0.1.1
|
221
|
+
* oops, bug in leftshift/rightshift functions, fixed!
|
222
|
+
|
223
|
+
version 0.1.0
|
224
|
+
* release!
|
225
|
+
|