texplay 0.2.1-x86-mswin32-60 → 0.2.2-x86-mswin32-60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +10 -0
 - data/README.markdown +35 -0
 - data/README1st +1 -1
 - data/Rakefile +87 -85
 - data/examples/example_alpha_blend.rb +1 -1
 - data/examples/example_bezier.rb +4 -13
 - data/examples/example_color_control.rb +3 -2
 - data/examples/example_color_transform.rb +3 -3
 - data/examples/example_dup.rb +1 -1
 - data/examples/example_each.rb +1 -1
 - data/examples/example_effect.rb +1 -1
 - data/examples/example_fill.rb +4 -9
 - data/examples/example_fill_old.rb +1 -1
 - data/examples/example_fluent.rb +1 -1
 - data/examples/example_gen_eval.rb +1 -1
 - data/examples/example_hash_arguments.rb +1 -1
 - data/examples/example_melt.rb +1 -1
 - data/examples/example_polyline.rb +1 -1
 - data/examples/example_simple.rb +4 -1
 - data/examples/example_splice.rb +33 -0
 - data/examples/example_sync.rb +1 -1
 - data/examples/example_turtle.rb +2 -2
 - data/lib/ctexplay.18.so +0 -0
 - data/lib/ctexplay.19.so +0 -0
 - data/lib/texplay-contrib.rb +8 -8
 - data/lib/texplay.rb +7 -7
 - data/src/Makefile +93 -62
 - data/src/actions.c +80 -55
 - data/src/actions.obj +0 -0
 - data/src/bindings.c +2 -2
 - data/src/bindings.obj +0 -0
 - data/src/cache.obj +0 -0
 - data/src/ctexplay-i386-mswin32.exp +0 -0
 - data/src/ctexplay-i386-mswin32.lib +0 -0
 - data/src/ctexplay-i386-mswin32.pdb +0 -0
 - data/src/ctexplay.so +0 -0
 - data/src/gen_eval.obj +0 -0
 - data/src/mkmf.log +33 -18
 - data/src/object2module.obj +0 -0
 - data/src/texplay.c +1 -1
 - data/src/texplay.obj +0 -0
 - data/src/utils.c +6 -5
 - data/src/utils.obj +0 -0
 - data/src/vc60.pdb +0 -0
 - metadata +4 -9
 - data/README +0 -21
 - data/examples/basic.rb +0 -48
 - data/examples/basic2.rb +0 -37
 - data/examples/benchmark.rb +0 -299
 - data/examples/specs.rb +0 -240
 - data/examples/test.rb +0 -70
 - 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 
     | 
    
         
            -
                
         
     |