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/matrix.h
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
/* �s�� */
|
2
|
+
struct DXRubyMatrix {
|
3
|
+
int x;
|
4
|
+
int y;
|
5
|
+
union {
|
6
|
+
struct {
|
7
|
+
float m11;float m12; float m13; float m14;
|
8
|
+
float m21;float m22; float m23; float m24;
|
9
|
+
float m31;float m32; float m33; float m34;
|
10
|
+
float m41;float m42; float m43; float m44;
|
11
|
+
};
|
12
|
+
float m[4][4];
|
13
|
+
};
|
14
|
+
};
|
15
|
+
|
16
|
+
/* �x�N�g�� */
|
17
|
+
struct DXRubyVector {
|
18
|
+
int x;
|
19
|
+
union {
|
20
|
+
struct {
|
21
|
+
float v1;float v2; float v3; float v4;
|
22
|
+
};
|
23
|
+
float v[4];
|
24
|
+
};
|
25
|
+
};
|
26
|
+
|
27
|
+
void Init_dxruby_Matrix(void);
|
28
|
+
VALUE Vector_allocate( VALUE klass );
|
29
|
+
void Matrix_release( struct DXRubyMatrix* mat );
|
30
|
+
void Vector_release( struct DXRubyVector* vec );
|