gosu 0.10.7 → 0.10.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gosu/Version.hpp +2 -2
- data/README.md +1 -1
- data/ext/gosu/extconf.rb +21 -32
- data/ext/gosu/gosu_wrap.cxx +122 -129
- data/ext/gosu/gosu_wrap.h +1 -1
- data/lib/gosu/patches.rb +5 -0
- data/rdoc/gosu.rb +6 -0
- data/src/DirectoriesWin.cpp +25 -3
- data/src/FileWin.cpp +1 -1
- data/src/Input/Input.cpp +7 -2
- data/src/Text/TextApple.mm +2 -1
- data/src/Text/TextWin.cpp +1 -1
- data/src/UtilityApple.mm +3 -2
- data/src/UtilityWin.cpp +1 -1
- data/src/WinUtility.cpp +2 -100
- data/src/WinUtility.hpp +30 -0
- data/src/stb_image.h +235 -102
- metadata +11 -12
- data/Gosu/WinUtility.hpp +0 -75
metadata
CHANGED
@@ -1,23 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gosu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Raschke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|
15
15
|
|
16
|
-
Gosu
|
16
|
+
Gosu provides simple and game-friendly interfaces to 2D graphics
|
17
17
|
and text (accelerated by 3D hardware), sound samples and music as well as
|
18
18
|
keyboard, mouse and gamepad/joystick input.
|
19
|
-
|
20
|
-
Also includes demos for integration with RMagick, Chipmunk and OpenGL.
|
21
19
|
email: julian@raschke.de
|
22
20
|
executables: []
|
23
21
|
extensions:
|
@@ -52,7 +50,6 @@ files:
|
|
52
50
|
- Gosu/Timing.hpp
|
53
51
|
- Gosu/Utility.hpp
|
54
52
|
- Gosu/Version.hpp
|
55
|
-
- Gosu/WinUtility.hpp
|
56
53
|
- Gosu/Window.hpp
|
57
54
|
- README.md
|
58
55
|
- ext/gosu/extconf.rb
|
@@ -130,35 +127,37 @@ files:
|
|
130
127
|
- src/UtilityWin.cpp
|
131
128
|
- src/WinMain.cpp
|
132
129
|
- src/WinUtility.cpp
|
130
|
+
- src/WinUtility.hpp
|
133
131
|
- src/Window.cpp
|
134
132
|
- src/WindowUIKit.mm
|
135
133
|
- src/stb_image.h
|
136
134
|
- src/stb_image_write.h
|
137
135
|
- src/stb_vorbis.c
|
138
136
|
homepage: https://www.libgosu.org/
|
139
|
-
licenses:
|
137
|
+
licenses:
|
138
|
+
- MIT
|
140
139
|
metadata: {}
|
141
140
|
post_install_message:
|
142
141
|
rdoc_options:
|
143
|
-
-
|
142
|
+
- -m
|
144
143
|
- README.md
|
145
|
-
-
|
144
|
+
- -x
|
146
145
|
- lib
|
147
146
|
require_paths:
|
148
147
|
- lib
|
149
148
|
required_ruby_version: !ruby/object:Gem::Requirement
|
150
149
|
requirements:
|
151
|
-
- -
|
150
|
+
- - '>='
|
152
151
|
- !ruby/object:Gem::Version
|
153
152
|
version: 1.8.2
|
154
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
154
|
requirements:
|
156
|
-
- -
|
155
|
+
- - '>='
|
157
156
|
- !ruby/object:Gem::Version
|
158
157
|
version: '0'
|
159
158
|
requirements: []
|
160
159
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.
|
160
|
+
rubygems_version: 2.5.0
|
162
161
|
signing_key:
|
163
162
|
specification_version: 4
|
164
163
|
summary: 2D game development library.
|
data/Gosu/WinUtility.hpp
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
//! \file WinUtility.hpp
|
2
|
-
//! Contains some functions which are used to implement Gosu on Windows and
|
3
|
-
//! might be useful for advanced users who try to integrate Gosu in a Win32
|
4
|
-
//! application.
|
5
|
-
|
6
|
-
#ifndef GOSU_WINUTILITY_HPP
|
7
|
-
#define GOSU_WINUTILITY_HPP
|
8
|
-
|
9
|
-
#include <windows.h>
|
10
|
-
#include <Gosu/Platform.hpp>
|
11
|
-
#include <Gosu/TR1.hpp>
|
12
|
-
#include <string>
|
13
|
-
|
14
|
-
namespace Gosu
|
15
|
-
{
|
16
|
-
//! Implementation helpers for the Windows platform.
|
17
|
-
namespace Win
|
18
|
-
{
|
19
|
-
//! Returns the instance handle of the application.
|
20
|
-
HINSTANCE instance();
|
21
|
-
|
22
|
-
//! Blocking function which waits for the next message, processes it,
|
23
|
-
//! then returns.
|
24
|
-
void handleMessage();
|
25
|
-
|
26
|
-
//! Non-blocking function which processes all waiting messages but does
|
27
|
-
//! not wait for further incoming messages.
|
28
|
-
void processMessages();
|
29
|
-
|
30
|
-
//! Registers a function to be called by handleMessage and
|
31
|
-
//! processMessages. Every message is passed to the hooks and not
|
32
|
-
//! processed further if any hook function returns true.
|
33
|
-
void registerMessageHook(const std::tr1::function<bool (MSG&)>& hook);
|
34
|
-
|
35
|
-
//! Throws an exception according to the error which GetLastError()
|
36
|
-
//! returns, optionally prefixed with "While (action), the following
|
37
|
-
//! error occured: ".
|
38
|
-
GOSU_NORETURN void throwLastError(const std::string& action = "");
|
39
|
-
|
40
|
-
//! Small helper function that throws an exception whenever the value
|
41
|
-
//! passed through is false. Note that this doesn't make sense for all
|
42
|
-
//! Windows API functions, but for most of them.
|
43
|
-
template<typename T>
|
44
|
-
inline T check(T valToCheck, const std::string& action = "")
|
45
|
-
{
|
46
|
-
if (!valToCheck)
|
47
|
-
throwLastError(action);
|
48
|
-
return valToCheck;
|
49
|
-
}
|
50
|
-
|
51
|
-
// IMPR: Why can't I use mem_fn for releasing objects even though it is
|
52
|
-
// shown like that in the shared_ptr documentation?
|
53
|
-
template<typename T>
|
54
|
-
void releaseComPtr(T* ptr)
|
55
|
-
{
|
56
|
-
ptr->Release();
|
57
|
-
}
|
58
|
-
|
59
|
-
//! Small helper function that transfers ownership of a COM interface
|
60
|
-
//! to a std::tr1::shared_ptr.
|
61
|
-
template<typename T>
|
62
|
-
inline std::tr1::shared_ptr<T> shareComPtr(T* ptr)
|
63
|
-
{
|
64
|
-
return std::tr1::shared_ptr<T>(ptr, releaseComPtr<T>);
|
65
|
-
}
|
66
|
-
|
67
|
-
//! Returns the executable's filename.
|
68
|
-
std::wstring appFilename();
|
69
|
-
|
70
|
-
//! Returns the executable's containing directory.
|
71
|
-
std::wstring appDirectory();
|
72
|
-
}
|
73
|
-
}
|
74
|
-
|
75
|
-
#endif
|