dxrubynd 1.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +12 -0
- data/README.md +31 -0
- data/Rakefile +9 -0
- data/dxrubynd.gemspec +41 -0
- data/ext/dxruby/COPYING +13 -0
- data/ext/dxruby/collision.c +1460 -0
- data/ext/dxruby/collision.h +47 -0
- data/ext/dxruby/dxruby-i386-mswin32.def +4 -0
- data/ext/dxruby/dxruby.c +5861 -0
- data/ext/dxruby/dxruby.h +392 -0
- data/ext/dxruby/extconf.rb +29 -0
- data/ext/dxruby/font.c +686 -0
- data/ext/dxruby/font.h +20 -0
- data/ext/dxruby/image.c +3391 -0
- data/ext/dxruby/image.h +22 -0
- data/ext/dxruby/input.c +2522 -0
- data/ext/dxruby/input.h +4 -0
- data/ext/dxruby/matrix.c +1221 -0
- data/ext/dxruby/matrix.h +30 -0
- data/ext/dxruby/messagethread.c +1180 -0
- data/ext/dxruby/messagethread.h +22 -0
- data/ext/dxruby/sound.c +1516 -0
- data/ext/dxruby/sound.h +1 -0
- data/ext/dxruby/sprite.c +1313 -0
- data/ext/dxruby/sprite.h +29 -0
- data/ext/dxruby/version.h +10 -0
- data/lib/dxrubynd/version.rb +5 -0
- data/lib/dxrubynd.rb +4 -0
- data/sig/dxrubynd.rbs +4 -0
- metadata +91 -0
data/ext/dxruby/image.h
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
/* Image�I�u�W�F�N�g�̒��g */
|
2
|
+
struct DXRubyImage {
|
3
|
+
struct DXRubyTexture *texture;
|
4
|
+
int x; /* x�n�_�ʒu */
|
5
|
+
int y; /* y�n�_�ʒu */
|
6
|
+
int width; /* �C���[�W�̕� */
|
7
|
+
int height;/* �C���[�W�̍��� */
|
8
|
+
// int lockcount; /* ���b�N�J�E���g */
|
9
|
+
};
|
10
|
+
|
11
|
+
void Init_dxruby_Image( void );
|
12
|
+
void finalize_dxruby_Image( void );
|
13
|
+
|
14
|
+
void Image_release( struct DXRubyImage* image );
|
15
|
+
VALUE Image_drawFontEx( int argc, VALUE *argv, VALUE obj );
|
16
|
+
VALUE Image_dispose( VALUE self );
|
17
|
+
VALUE Image_allocate( VALUE klass );
|
18
|
+
VALUE Image_initialize( int argc, VALUE *argv, VALUE obj );
|
19
|
+
int array2color( VALUE color );
|
20
|
+
VALUE Image_save( int argc, VALUE *argv, VALUE self );
|
21
|
+
VALUE Image_sliceToArray( int argc, VALUE *argv, VALUE self );
|
22
|
+
|