texplay 0.2.1-x86-mswin32-60 → 0.2.2-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/CHANGELOG +10 -0
  2. data/README.markdown +35 -0
  3. data/README1st +1 -1
  4. data/Rakefile +87 -85
  5. data/examples/example_alpha_blend.rb +1 -1
  6. data/examples/example_bezier.rb +4 -13
  7. data/examples/example_color_control.rb +3 -2
  8. data/examples/example_color_transform.rb +3 -3
  9. data/examples/example_dup.rb +1 -1
  10. data/examples/example_each.rb +1 -1
  11. data/examples/example_effect.rb +1 -1
  12. data/examples/example_fill.rb +4 -9
  13. data/examples/example_fill_old.rb +1 -1
  14. data/examples/example_fluent.rb +1 -1
  15. data/examples/example_gen_eval.rb +1 -1
  16. data/examples/example_hash_arguments.rb +1 -1
  17. data/examples/example_melt.rb +1 -1
  18. data/examples/example_polyline.rb +1 -1
  19. data/examples/example_simple.rb +4 -1
  20. data/examples/example_splice.rb +33 -0
  21. data/examples/example_sync.rb +1 -1
  22. data/examples/example_turtle.rb +2 -2
  23. data/lib/ctexplay.18.so +0 -0
  24. data/lib/ctexplay.19.so +0 -0
  25. data/lib/texplay-contrib.rb +8 -8
  26. data/lib/texplay.rb +7 -7
  27. data/src/Makefile +93 -62
  28. data/src/actions.c +80 -55
  29. data/src/actions.obj +0 -0
  30. data/src/bindings.c +2 -2
  31. data/src/bindings.obj +0 -0
  32. data/src/cache.obj +0 -0
  33. data/src/ctexplay-i386-mswin32.exp +0 -0
  34. data/src/ctexplay-i386-mswin32.lib +0 -0
  35. data/src/ctexplay-i386-mswin32.pdb +0 -0
  36. data/src/ctexplay.so +0 -0
  37. data/src/gen_eval.obj +0 -0
  38. data/src/mkmf.log +33 -18
  39. data/src/object2module.obj +0 -0
  40. data/src/texplay.c +1 -1
  41. data/src/texplay.obj +0 -0
  42. data/src/utils.c +6 -5
  43. data/src/utils.obj +0 -0
  44. data/src/vc60.pdb +0 -0
  45. metadata +4 -9
  46. data/README +0 -21
  47. data/examples/basic.rb +0 -48
  48. data/examples/basic2.rb +0 -37
  49. data/examples/benchmark.rb +0 -299
  50. data/examples/specs.rb +0 -240
  51. data/examples/test.rb +0 -70
  52. data/examples/test2.rb +0 -72
data/examples/test2.rb DELETED
@@ -1,72 +0,0 @@
1
- require 'common'
2
- require 'gosu'
3
- require 'texplay'
4
-
5
- class MyWindow < Gosu::Window
6
- def initialize
7
- super(1024, 768, false, 20)
8
-
9
- # image for texture filling
10
- @gosu = Gosu::Image.new(self,"#{Common::MEDIA}/gosu.png")
11
-
12
- # images for testing
13
- @unchanged = Gosu::Image.new(self,"#{Common::MEDIA}/texplay.png")
14
- @simple = Gosu::Image.new(self,"#{Common::MEDIA}/texplay.png")
15
- @polyline = Gosu::Image.new(self,"#{Common::MEDIA}/texplay.png")
16
- @bezier = Gosu::Image.new(self,"#{Common::MEDIA}/texplay.png")
17
- @flood_fill = Gosu::Image.new(self,"#{Common::MEDIA}/texplay.png")
18
-
19
- # height and width
20
- @width = @simple.width
21
- @height = @simple.height
22
-
23
- # initializations
24
- setup_simple
25
- setup_polyline
26
- setup_bezier
27
- setup_flood_fill
28
-
29
- end
30
-
31
- def setup_simple
32
- @simple.line 0, 0, 1024, 1024
33
- @simple.rect 0,0, @width - 1, @height - 1
34
- @simple.circle @simple.width/2, @simple.height/2, 30
35
- end
36
-
37
- def setup_polyline
38
- @polyline.polyline [0, 0, @width / 2, @height - 1, @width - 1, 0]
39
- end
40
-
41
- def setup_bezier
42
- points = []
43
- 10.times {
44
- point = []
45
- point[0] = @width * rand
46
- point[1] = @height * rand
47
-
48
- points += point
49
- }
50
- @bezier.bezier points
51
- end
52
-
53
- def setup_flood_fill
54
- @flood_fill.fill 100, 96, :color => :random
55
- end
56
-
57
- def draw
58
-
59
- @simple.draw(20, 10, 1)
60
- @polyline.draw(20, 210, 1)
61
- @bezier.draw(20, 410, 1)
62
- @flood_fill.draw(400, 10, 1)
63
-
64
- @polyline.paint
65
-
66
- end
67
- end
68
-
69
- w = MyWindow.new
70
- w.show
71
-
72
-