glfw 1.0.3 → 3.3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +161 -0
  3. data/.yardopts +6 -0
  4. data/Gemfile +2 -4
  5. data/README.md +29 -33
  6. data/Rakefile +6 -4
  7. data/ext/glfw/common.c +159 -0
  8. data/ext/glfw/cursor.c +34 -30
  9. data/ext/glfw/extconf.rb +7 -17
  10. data/ext/glfw/glfw.c +122 -377
  11. data/ext/glfw/glfw.h +46 -41
  12. data/ext/glfw/image.c +96 -64
  13. data/ext/glfw/joystick.c +169 -0
  14. data/ext/glfw/monitor.c +231 -155
  15. data/ext/glfw/stb_image.h +7656 -0
  16. data/ext/glfw/window.c +708 -576
  17. data/glfw.gemspec +10 -9
  18. data/lib/glfw.rb +4 -14
  19. data/lib/glfw/constants.rb +365 -0
  20. data/lib/glfw/stubs.rb +234 -0
  21. data/lib/glfw/stubs/cursor.rb +21 -0
  22. data/lib/glfw/stubs/gamepad_state.rb +30 -0
  23. data/lib/glfw/stubs/image.rb +39 -0
  24. data/lib/glfw/stubs/joystick.rb +125 -0
  25. data/lib/glfw/stubs/monitor.rb +115 -0
  26. data/lib/glfw/stubs/video_mode.rb +32 -0
  27. data/lib/glfw/stubs/window.rb +626 -0
  28. data/lib/glfw/version.rb +8 -1
  29. metadata +31 -35
  30. data/.travis.yml +0 -5
  31. data/Makefile +0 -267
  32. data/ext/glfw/common.h +0 -46
  33. data/ext/glfw/cursor.h +0 -14
  34. data/ext/glfw/glfw3.h +0 -4248
  35. data/ext/glfw/glfw3native.h +0 -456
  36. data/ext/glfw/image.h +0 -14
  37. data/ext/glfw/ming32/WINDOWS USERS PLACE libglf3.a HERE.txt b/data/ext/glfw/ming32/WINDOWS USERS PLACE libglf3.a → HERE.txt +0 -0
  38. data/ext/glfw/ming64/WINDOWS USERS PLACE libglf3.a HERE.txt b/data/ext/glfw/ming64/WINDOWS USERS PLACE libglf3.a → HERE.txt +0 -0
  39. data/ext/glfw/monitor.h +0 -29
  40. data/ext/glfw/video_mode.c +0 -60
  41. data/ext/glfw/video_mode.h +0 -21
  42. data/ext/glfw/vulkan.c +0 -48
  43. data/ext/glfw/vulkan.h +0 -16
  44. data/ext/glfw/window.h +0 -87
@@ -1,3 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module GLFW
2
- VERSION = "1.0.3"
4
+
5
+ ##
6
+ # The GLFW gem version.
7
+ # As of 3.3.2, the major, minor, and revision components of the gem version match the version
8
+ # of GLFW that it is built against, while the build component is for gem versioning within that release.
9
+ VERSION = '3.3.2.0'
3
10
  end
metadata CHANGED
@@ -1,59 +1,58 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glfw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 3.3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Freed
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-20 00:00:00.000000000 Z
11
+ date: 2020-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: yard
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '0.9'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: '0.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake-compiler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '1.1'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
55
- description: This is a high-performance Ruby C-extension for the excellent GLFW 3.2
56
- library.
54
+ version: '1.1'
55
+ description: This is a high-performance Ruby C-extension for the excellent GLFW3 library.
57
56
  email:
58
57
  - efreed09@gmail.com
59
58
  executables: []
@@ -62,49 +61,46 @@ extensions:
62
61
  extra_rdoc_files: []
63
62
  files:
64
63
  - ".gitignore"
65
- - ".idea/glfw.iml"
66
- - ".idea/misc.xml"
67
- - ".idea/modules.xml"
68
- - ".idea/workspace.xml"
69
- - ".travis.yml"
64
+ - ".yardopts"
70
65
  - CODE_OF_CONDUCT.md
71
66
  - Gemfile
72
67
  - LICENSE.txt
73
- - Makefile
74
68
  - README.md
75
69
  - Rakefile
76
70
  - bin/console
77
71
  - bin/setup
78
- - ext/glfw/common.h
72
+ - ext/glfw/common.c
79
73
  - ext/glfw/cursor.c
80
- - ext/glfw/cursor.h
81
74
  - ext/glfw/extconf.rb
82
75
  - ext/glfw/glfw.c
83
76
  - ext/glfw/glfw.h
84
- - ext/glfw/glfw3.h
85
- - ext/glfw/glfw3native.h
86
77
  - ext/glfw/image.c
87
- - ext/glfw/image.h
88
- - ext/glfw/ming32/WINDOWS USERS PLACE libglf3.a HERE.txt
89
- - ext/glfw/ming64/WINDOWS USERS PLACE libglf3.a HERE.txt
78
+ - ext/glfw/joystick.c
90
79
  - ext/glfw/monitor.c
91
- - ext/glfw/monitor.h
92
- - ext/glfw/video_mode.c
93
- - ext/glfw/video_mode.h
94
- - ext/glfw/vulkan.c
95
- - ext/glfw/vulkan.h
80
+ - ext/glfw/stb_image.h
96
81
  - ext/glfw/window.c
97
- - ext/glfw/window.h
98
82
  - glfw-icon.png
99
83
  - glfw.gemspec
100
84
  - lib/glfw.rb
85
+ - lib/glfw/constants.rb
86
+ - lib/glfw/stubs.rb
87
+ - lib/glfw/stubs/cursor.rb
88
+ - lib/glfw/stubs/gamepad_state.rb
89
+ - lib/glfw/stubs/image.rb
90
+ - lib/glfw/stubs/joystick.rb
91
+ - lib/glfw/stubs/monitor.rb
92
+ - lib/glfw/stubs/video_mode.rb
93
+ - lib/glfw/stubs/window.rb
101
94
  - lib/glfw/version.rb
102
95
  homepage: https://github.com/ForeverZer0/glfw
103
96
  licenses:
104
97
  - MIT
105
- metadata: {}
98
+ metadata:
99
+ msys2_mingw_dependencies: glfw
106
100
  post_install_message:
107
- rdoc_options: []
101
+ rdoc_options:
102
+ - "--exclude"
103
+ - ext/*
108
104
  require_paths:
109
105
  - lib
110
106
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -117,9 +113,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
113
  - - ">="
118
114
  - !ruby/object:Gem::Version
119
115
  version: '0'
120
- requirements: []
121
- rubyforge_project:
122
- rubygems_version: 2.7.6
116
+ requirements:
117
+ - libglfw, v.3.3
118
+ rubygems_version: 3.1.2
123
119
  signing_key:
124
120
  specification_version: 4
125
121
  summary: GLFW is an Open Source, multi-platform library for OpenGL, OpenGL ES and
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.4.4
5
- before_install: gem install bundler -v 1.16.2
data/Makefile DELETED
@@ -1,267 +0,0 @@
1
-
2
- SHELL = /bin/sh
3
-
4
- # V=0 quiet, V=1 verbose. other values don't work.
5
- V = 0
6
- Q1 = $(V:1=)
7
- Q = $(Q1:0=@)
8
- ECHO1 = $(V:1=@ :)
9
- ECHO = $(ECHO1:0=@ echo)
10
- NULLCMD = :
11
-
12
- #### Start of system configuration section. ####
13
-
14
- srcdir = /c/Users/Eric/OneDrive/Documents/RubymineProjects/glfw/ext/glfw
15
- topdir = /C/Ruby24/include/ruby-2.4.0
16
- hdrdir = $(topdir)
17
- arch_hdrdir = C:/Ruby24/include/ruby-2.4.0/i386-mingw32
18
- PATH_SEPARATOR = :
19
- VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
20
- prefix = $(DESTDIR)/C/Ruby24
21
- rubysitearchprefix = $(rubylibprefix)/$(sitearch)
22
- rubyarchprefix = $(rubylibprefix)/$(arch)
23
- rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
24
- exec_prefix = $(prefix)
25
- vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
26
- sitearchhdrdir = $(sitehdrdir)/$(sitearch)
27
- rubyarchhdrdir = $(rubyhdrdir)/$(arch)
28
- vendorhdrdir = $(rubyhdrdir)/vendor_ruby
29
- sitehdrdir = $(rubyhdrdir)/site_ruby
30
- rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
- vendorarchdir = $(vendorlibdir)/$(sitearch)
32
- vendorlibdir = $(vendordir)/$(ruby_version)
33
- vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(sitelibdir)/$(sitearch)
35
- sitelibdir = $(sitedir)/$(ruby_version)
36
- sitedir = $(rubylibprefix)/site_ruby
37
- rubyarchdir = $(rubylibdir)/$(arch)
38
- rubylibdir = $(rubylibprefix)/$(ruby_version)
39
- sitearchincludedir = $(includedir)/$(sitearch)
40
- archincludedir = $(includedir)/$(arch)
41
- sitearchlibdir = $(libdir)/$(sitearch)
42
- archlibdir = $(libdir)/$(arch)
43
- ridir = $(datarootdir)/$(RI_BASE_NAME)
44
- mandir = $(datarootdir)/man
45
- localedir = $(datarootdir)/locale
46
- libdir = $(exec_prefix)/lib
47
- psdir = $(docdir)
48
- pdfdir = $(docdir)
49
- dvidir = $(docdir)
50
- htmldir = $(docdir)
51
- infodir = $(datarootdir)/info
52
- docdir = $(datarootdir)/doc/$(PACKAGE)
53
- oldincludedir = $(DESTDIR)/usr/include
54
- includedir = $(prefix)/include
55
- localstatedir = $(prefix)/var
56
- sharedstatedir = $(prefix)/com
57
- sysconfdir = $(prefix)/etc
58
- datadir = $(datarootdir)
59
- datarootdir = $(prefix)/share
60
- libexecdir = $(exec_prefix)/libexec
61
- sbindir = $(exec_prefix)/sbin
62
- bindir = $(exec_prefix)/bin
63
- archdir = $(rubyarchdir)
64
-
65
-
66
- CC = i686-w64-mingw32-gcc
67
- CXX = i686-w64-mingw32-g++
68
- LIBRUBY = lib$(RUBY_SO_NAME).dll.a
69
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
70
- LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
71
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
72
- empty =
73
- OUTFLAG = -o $(empty)
74
- COUTFLAG = -o $(empty)
75
- CSRCFLAG = $(empty)
76
-
77
- RUBY_EXTCONF_H =
78
- cflags = $(optflags) $(debugflags) $(warnflags)
79
- cxxflags = $(optflags) $(debugflags) $(warnflags)
80
- optflags = -O3 -fno-omit-frame-pointer -fno-fast-math
81
- debugflags = -ggdb3
82
- warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0
83
- CCDLFLAGS =
84
- CFLAGS = $(CCDLFLAGS) -march=i686 -mtune=generic -O2 -pipe $(ARCH_FLAG)
85
- INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
86
- DEFS = -D_FILE_OFFSET_BITS=64
87
- CPPFLAGS = -IC:/Ruby24/include -Ic:/Users/Eric/OneDrive/Documents/RubymineProjects/glfw/ext/glfw -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT $(DEFS) $(cppflags)
88
- CXXFLAGS = $(CCDLFLAGS) -march=i686 -mtune=generic -O2 -pipe $(ARCH_FLAG)
89
- ldflags = -L. -pipe
90
- dldflags = -pipe -Wl,--enable-auto-image-base,--enable-auto-import $(DEFFILE)
91
- ARCH_FLAG =
92
- DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
93
- LDSHARED = $(CC) -shared $(if $(filter-out -g -g0,$(debugflags)),,-s)
94
- LDSHAREDXX = $(CXX) -shared $(if $(filter-out -g -g0,$(debugflags)),,-s)
95
- AR = ar
96
- EXEEXT = .exe
97
-
98
- RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
99
- RUBY_SO_NAME = msvcrt-ruby240
100
- RUBYW_INSTALL_NAME = $(RUBYW_BASE_NAME)
101
- RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
102
- RUBYW_BASE_NAME = rubyw
103
- RUBY_BASE_NAME = ruby
104
-
105
- arch = i386-mingw32
106
- sitearch = i386-msvcrt
107
- ruby_version = 2.4.0
108
- ruby = $(bindir)/$(RUBY_BASE_NAME)
109
- RUBY = $(ruby)
110
- ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
111
-
112
- RM = rm -f
113
- RM_RF = $(RUBY) -run -e rm -- -rf
114
- RMDIRS = rmdir --ignore-fail-on-non-empty -p
115
- MAKEDIRS = /usr/bin/mkdir -p
116
- INSTALL = /usr/bin/install -c
117
- INSTALL_PROG = $(INSTALL) -m 0755
118
- INSTALL_DATA = $(INSTALL) -m 644
119
- COPY = cp
120
- TOUCH = exit >
121
-
122
- #### End of system configuration section. ####
123
-
124
- preload =
125
- libpath = . $(libdir) C:/Ruby24/lib c:/Users/Eric/OneDrive/Documents/RubymineProjects/glfw/ext/glfw/ming32
126
- LIBPATH = -L. -L$(libdir) -LC:/Ruby24/lib -Lc:/Users/Eric/OneDrive/Documents/RubymineProjects/glfw/ext/glfw/ming32
127
- DEFFILE = $(TARGET)-$(arch).def
128
-
129
- CLEANFILES = mkmf.log $(DEFFILE)
130
- DISTCLEANFILES =
131
- DISTCLEANDIRS =
132
-
133
- extout =
134
- extout_prefix =
135
- target_prefix = /glfw
136
- LOCAL_LIBS = -lglfw3 -lgdi32 -lopengl32
137
- LIBS = $(LIBRUBYARG_SHARED) -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi
138
- ORIG_SRCS = cursor.c glfw.c image.c monitor.c video_mode.c vulkan.c window.c
139
- SRCS = $(ORIG_SRCS)
140
- OBJS = cursor.o glfw.o image.o monitor.o video_mode.o vulkan.o window.o
141
- HDRS = $(srcdir)/common.h $(srcdir)/cursor.h $(srcdir)/glfw.h $(srcdir)/glfw3.h $(srcdir)/glfw3native.h $(srcdir)/image.h $(srcdir)/monitor.h $(srcdir)/video_mode.h $(srcdir)/vulkan.h $(srcdir)/window.h
142
- LOCAL_HDRS =
143
- TARGET = glfw
144
- TARGET_NAME = glfw
145
- TARGET_ENTRY = Init_$(TARGET_NAME)
146
- DLLIB = $(TARGET).so
147
- EXTSTATIC =
148
- STATIC_LIB =
149
-
150
- TIMESTAMP_DIR = .
151
- BINDIR = $(bindir)
152
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
153
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
154
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
155
- HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
156
- ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
157
- TARGET_SO_DIR =
158
- TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
159
- CLEANLIBS = $(TARGET_SO)
160
- CLEANOBJS = *.o *.bak
161
-
162
- all: $(DLLIB)
163
- static: $(STATIC_LIB)
164
- .PHONY: all install static install-so install-rb
165
- .PHONY: clean clean-so clean-static clean-rb
166
-
167
- clean-static::
168
- clean-rb-default::
169
- clean-rb::
170
- clean-so::
171
- clean: clean-so clean-static clean-rb-default clean-rb
172
- -$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
173
-
174
- distclean-rb-default::
175
- distclean-rb::
176
- distclean-so::
177
- distclean-static::
178
- distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
179
- -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
180
- -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
181
- -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
182
-
183
- realclean: distclean
184
- install: install-so install-rb
185
-
186
- install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.-.glfw.time
187
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
188
- clean-static::
189
- -$(Q)$(RM) $(STATIC_LIB)
190
- install-rb: pre-install-rb do-install-rb install-rb-default
191
- install-rb-default: pre-install-rb-default do-install-rb-default
192
- pre-install-rb: Makefile
193
- pre-install-rb-default: Makefile
194
- do-install-rb:
195
- do-install-rb-default:
196
- pre-install-rb-default:
197
- @$(NULLCMD)
198
- $(TIMESTAMP_DIR)/.sitearchdir.-.glfw.time:
199
- $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
200
- $(Q) $(TOUCH) $@
201
-
202
- site-install: site-install-so site-install-rb
203
- site-install-so: install-so
204
- site-install-rb: install-rb
205
-
206
- .SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S
207
-
208
- .cc.o:
209
- $(ECHO) compiling $(<)
210
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
211
-
212
- .cc.S:
213
- $(ECHO) translating $(<)
214
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
215
-
216
- .mm.o:
217
- $(ECHO) compiling $(<)
218
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
219
-
220
- .mm.S:
221
- $(ECHO) translating $(<)
222
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
223
-
224
- .cxx.o:
225
- $(ECHO) compiling $(<)
226
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
227
-
228
- .cxx.S:
229
- $(ECHO) translating $(<)
230
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
231
-
232
- .cpp.o:
233
- $(ECHO) compiling $(<)
234
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
235
-
236
- .cpp.S:
237
- $(ECHO) translating $(<)
238
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
239
-
240
- .c.o:
241
- $(ECHO) compiling $(<)
242
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
243
-
244
- .c.S:
245
- $(ECHO) translating $(<)
246
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
247
-
248
- .m.o:
249
- $(ECHO) compiling $(<)
250
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
251
-
252
- .m.S:
253
- $(ECHO) translating $(<)
254
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
255
-
256
- $(TARGET_SO): $(DEFFILE) $(OBJS) Makefile
257
- $(ECHO) linking shared-object glfw/$(DLLIB)
258
- -$(Q)$(RM) $(@)
259
- $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
260
-
261
-
262
-
263
- $(DEFFILE):
264
- $(ECHO) generating $(@)
265
- $(Q) (echo EXPORTS && echo $(TARGET_ENTRY)) > $@
266
-
267
- $(OBJS): $(HDRS) $(ruby_headers)
@@ -1,46 +0,0 @@
1
-
2
-
3
- #ifndef GLFW_RB_COMMON_H
4
- #define GLFW_RB_COMMON_H 1
5
-
6
- #include "glfw3.h"
7
- #include "ruby.h"
8
-
9
- #define STR2SYM(str) ID2SYM(rb_intern(str))
10
-
11
- #define INT2BOOL(i) (i ? Qtrue : Qfalse)
12
-
13
- #define WINDOW() \
14
- GLFWwindow *w; \
15
- Data_Get_Struct(self, GLFWwindow, w)
16
-
17
- enum GLFW_RB_CALLBACK_TYPE {
18
- GLFW_RB_MOVED,
19
- GLFW_RB_RESIZED,
20
- GLFW_RB_FRAMEBUFFER_RESIZED,
21
- GLFW_RB_CLOSING,
22
- GLFW_RB_REFRESHED,
23
- GLFW_RB_FOCUS_CHANGED,
24
- GLFW_RB_MINIMIZE_CHANGED,
25
- GLFW_RB_MOUSE_MOVE,
26
- GLFW_RB_MOUSE_SCROLL,
27
- GLFW_RB_MOUSE_BUTTON,
28
- GLFW_RB_MOUSE_ENTER,
29
- GLFW_RB_KEY,
30
- GLFW_RB_CHAR,
31
- GLFW_RB_CHAR_MODS,
32
- GLFW_RB_FILE_DROP,
33
- GLFW_RB_MONITOR,
34
- GLFW_RB_JOYSTICK
35
- } GLFW_RB_CALLBACK_TYPE;
36
-
37
- extern VALUE rb_mGLFW;
38
- extern VALUE rb_eGLFWError;
39
- extern VALUE rb_cGLFWwindow;
40
- extern VALUE rb_cGLFWmonitor;
41
- extern VALUE rb_cGLFWvidmode;
42
- extern VALUE rb_cGLFWimage;
43
- extern VALUE rb_cGLFWcursor;
44
- extern VALUE rb_cGLFWvulkan;
45
-
46
- #endif /* GLFW_RB_COMMON_H */