ruby-sdl2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1c1ea00e7921cc924cf00e9ac5916ba5eb4aad3a
4
+ data.tar.gz: 125ed016e9fd2aefd0c779a11f863dacd0cdc0da
5
+ SHA512:
6
+ metadata.gz: e19dba994d4b3e138477595ba17ff9fb323da6b98042d7d872f8b202e3d5164edd090cb6ffb76e88f64a1aa63313b43a60bf383cd047a3ef8fcd6a44e36ccda1
7
+ data.tar.gz: 12b3ba4f205a47c4e7c59a0b7961ef97bca6bff8b0bedb306d1477b0ab0c86879682d24aa2f697d8be1c58a9768e07c8e3e1cb475a1d7815a39430ddfb5a7196
@@ -0,0 +1,2 @@
1
+ ((c-mode . ((c-default-style . "k&r")
2
+ (c-basic-offset . 4))))
@@ -0,0 +1,17 @@
1
+ *.o
2
+ *~
3
+ Makefile
4
+ *.so
5
+ key.c
6
+ video.c
7
+ gl.c
8
+ pkg/
9
+ TAGS
10
+ local/
11
+ mkmf.log
12
+ sample/sample.wav
13
+ *.gem
14
+ .yardoc/
15
+ doc/doc-*
16
+ doc/po/rubysdl2.pot
17
+ extconf-options.txt
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1,30 @@
1
+ # Ruby/SDL2
2
+
3
+ The simple ruby extension library for SDL 2.x.
4
+
5
+ # Install
6
+ Before installing Ruby/SDL2, you need to install:
7
+
8
+ * [SDL 2.x](http://www.libsdl.org/download-2.0.php)
9
+ * [SDL_image](https://www.libsdl.org/projects/SDL_image/)
10
+ * [SDL_mixer](https://www.libsdl.org/projects/SDL_mixer/)
11
+ * [SDL_ttf](https://www.libsdl.org/projects/SDL_ttf/)
12
+
13
+ After installing these libraries, you can install Ruby/SDL2
14
+ from github
15
+
16
+ git clone https://github.com/ohai/ruby-sdl2.git
17
+ cd ruby-sdl2
18
+ gem build rubysdl2.gem
19
+ gem install ruby-sdl2-x.y.z.gem
20
+
21
+ ## Install on Windows
22
+ Please write this.
23
+
24
+ # License
25
+
26
+ LGPL v3 (see {file:COPYING.txt}).
27
+
28
+ # Author
29
+
30
+ Ippei Obayashi <ohai@kmc.gr.jp>
@@ -0,0 +1,95 @@
1
+ require 'rubygems'
2
+ require 'rubygems/package_task'
3
+ require_relative "lib/sdl2/version"
4
+
5
+ C_M4_FILES = Dir.glob("*.c.m4")
6
+ C_FROM_M4_FILES = C_M4_FILES.map{|path| path.gsub(/\.c\.m4\Z/, ".c") }
7
+ C_FILES = Dir.glob("*.c") | C_FROM_M4_FILES
8
+ RB_FILES = Dir.glob("lib/**/*.rb")
9
+
10
+ POT_SOURCES = RB_FILES + ["main.c"] + (C_FILES - ["main.c"])
11
+ YARD_SOURCES = "-m markdown --main README.md --files COPYING.txt #{POT_SOURCES.join(" ")}"
12
+
13
+ locale = ENV["YARD_LOCALE"]
14
+
15
+ def extconf_options
16
+ return ENV["RUBYSDL2_EXTCONF_OPTS"] if ENV["RUBYSDL2_EXTCONF_OPTS"]
17
+ return ENV["EXTCONF_OPTS"] if ENV["EXTCONF_OPTS"]
18
+
19
+ begin
20
+ return File.readlines("extconf-options.txt").map(&:chomp).join(" ")
21
+ rescue Errno::ENOENT
22
+ return ""
23
+ end
24
+ end
25
+
26
+ def gem_spec
27
+ Gem::Specification.new do |spec|
28
+ spec.name = "ruby-sdl2"
29
+ spec.version = SDL2::VERSION
30
+ spec.summary = "The simple ruby extension library for SDL 2.x"
31
+ spec.description = <<-EOS
32
+ Ruby/SDL2 is an extension library to use SDL 2.x
33
+ (Simple DirectMedia Layer). SDL 2.x is quite refined
34
+ from SDL 1.x and API is changed.
35
+ This library enables you to control audio, keyboard,
36
+ mouse, joystick, 3D hardware via OpenGL, and 2D video
37
+ using opengl or Direct3D.
38
+ Ruby/SDL is used for games and visual demos.
39
+ EOS
40
+ spec.license = "LGPL v3"
41
+ spec.author = "Ippei Obayashi"
42
+ spec.email = "ohai@kmc.gr.jp"
43
+ spec.homepage = "https://github.com/ohai/ruby-sdl2"
44
+ spec.files = `git ls-files`.split(/\n/) + C_FROM_M4_FILES
45
+ spec.test_files = []
46
+ spec.extensions = ["extconf.rb"]
47
+ spec.has_rdoc = false
48
+ end
49
+ end
50
+
51
+ task "pot" => "doc/po/rubysdl2.pot"
52
+ file "doc/po/rubysdl2.pot" => POT_SOURCES do |t|
53
+ sh "yard i18n -o #{t.name} #{POT_SOURCES.join(" ")}"
54
+ end
55
+
56
+ if locale
57
+ PO_FILE = "doc/po/#{locale}.po"
58
+
59
+ task "init-po" do
60
+ sh "rmsginit -i doc/po/rubysdl2.pot -o #{PO_FILE} -l #{locale}"
61
+ end
62
+
63
+ task "merge-po" do
64
+ sh "rmsgmerge -o #{PO_FILE} #{PO_FILE} doc/po/rubysdl2.pot"
65
+ end
66
+
67
+ task "doc" => [PO_FILE] do
68
+ sh "yard doc -o doc/doc-#{locale} --locale #{locale} --po-dir doc/po #{YARD_SOURCES}"
69
+ end
70
+ else
71
+ task "doc" => POT_SOURCES do
72
+ sh "yard doc -o doc/doc-en #{YARD_SOURCES}"
73
+ end
74
+ end
75
+
76
+ task "doc-all" do
77
+ raise "Not yet implemented"
78
+ end
79
+
80
+ rule ".c" => ".c.m4" do |t|
81
+ sh "m4 #{t.prerequisites[0]} > #{t.name}"
82
+ end
83
+
84
+ file "Makefile" => "extconf.rb" do
85
+ sh "ruby extconf.rb #{extconf_options()}"
86
+ end
87
+
88
+ task "build" => C_FILES + ["Makefile"] do
89
+ sh "make"
90
+ end
91
+
92
+ Gem::PackageTask.new(gem_spec) do |pkg|
93
+ end
94
+
95
+ rule ".gem" => C_FILES
@@ -0,0 +1,37 @@
1
+ #include "rubysdl2_internal.h"
2
+ #include <SDL_clipboard.h>
3
+
4
+ static VALUE Clipboard_s_text(VALUE self)
5
+ {
6
+ if (SDL_HasClipboardText()) {
7
+ char* text = SDL_GetClipboardText();
8
+ VALUE str;
9
+ if (!text)
10
+ SDL_ERROR();
11
+ str = utf8str_new_cstr(text);
12
+ SDL_free(text);
13
+ return str;
14
+ } else {
15
+ return Qnil;
16
+ }
17
+ }
18
+
19
+ static VALUE Clipboard_s_set_text(VALUE self, VALUE text)
20
+ {
21
+ HANDLE_ERROR(SDL_SetClipboardText(StringValueCStr(text)));
22
+ return text;
23
+ }
24
+
25
+ static VALUE Clipboard_s_has_text_p(VALUE self)
26
+ {
27
+ return INT2BOOL(SDL_HasClipboardText());
28
+ }
29
+
30
+ void rubysdl2_init_clipboard(void)
31
+ {
32
+ VALUE mClipBoard = rb_define_module_under(mSDL2, "Clipboard");
33
+
34
+ rb_define_module_function(mClipBoard, "text", Clipboard_s_text, 0);
35
+ rb_define_module_function(mClipBoard, "text=", Clipboard_s_set_text, 1);
36
+ rb_define_module_function(mClipBoard, "has_text?", Clipboard_s_has_text_p, 0);
37
+ }
@@ -0,0 +1,1160 @@
1
+ # Japanese translations for PACKAGE package.
2
+ # Copyright (C) 2014 THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # Ippei Obayashi <ohai@kmc.gr.jp>, 2014.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: PACKAGE VERSION\n"
9
+ "Report-Msgid-Bugs-To: \n"
10
+ "POT-Creation-Date: 2014-11-02 02:46+0900\n"
11
+ "PO-Revision-Date: 2014-10-16 18:10+0900\n"
12
+ "Last-Translator: Ippei Obayashi <ohai@kmc.gr.jp>\n"
13
+ "Language-Team: Japanese\n"
14
+ "Language: ja\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "Plural-Forms: nplurals=1; plural=0;\n"
19
+
20
+ #: ../../README.md:1
21
+ msgid "# Ruby/SDL2"
22
+ msgstr ""
23
+
24
+ #: ../../README.md:3
25
+ msgid "The simple ruby extension library for SDL 2.x."
26
+ msgstr ""
27
+
28
+ #: ../../README.md:5
29
+ msgid ""
30
+ "# Install\n"
31
+ "Before installing Ruby/SDL2, you need to install:"
32
+ msgstr ""
33
+
34
+ #: ../../README.md:8
35
+ msgid ""
36
+ "* [SDL 2.x](http://www.libsdl.org/download-2.0.php)\n"
37
+ "* [SDL_image](https://www.libsdl.org/projects/SDL_image/)\n"
38
+ "* [SDL_mixer](https://www.libsdl.org/projects/SDL_mixer/)\n"
39
+ "* [SDL_ttf](https://www.libsdl.org/projects/SDL_ttf/)"
40
+ msgstr ""
41
+
42
+ #: ../../README.md:13
43
+ msgid ""
44
+ "After installing these libraries, you can install Ruby/SDL2\n"
45
+ "from github"
46
+ msgstr ""
47
+
48
+ #: ../../README.md:16
49
+ msgid ""
50
+ " git clone https://github.com/ohai/ruby-sdl2.git\n"
51
+ " cd ruby-sdl2\n"
52
+ " gem build rubysdl2.gem\n"
53
+ " gem install ruby-sdl2-x.y.z.gem"
54
+ msgstr ""
55
+
56
+ #: ../../README.md:21
57
+ msgid ""
58
+ "## Install on Windows\n"
59
+ "Please write this."
60
+ msgstr ""
61
+
62
+ #: ../../README.md:24
63
+ msgid "# License"
64
+ msgstr ""
65
+
66
+ #: ../../README.md:26
67
+ msgid "LGPL v3 (see {file:COPYING.txt})."
68
+ msgstr ""
69
+
70
+ #: ../../README.md:28
71
+ msgid "# Author"
72
+ msgstr ""
73
+
74
+ #: ../../README.md:30
75
+ msgid "Ippei Obayashi <ohai@kmc.gr.jp>"
76
+ msgstr ""
77
+
78
+ # SDL2::VERSION
79
+ #: ../../lib/sdl2/version.rb:3
80
+ msgid "Version string of Ruby/SDL2"
81
+ msgstr "Ruby/SDL2 のバージョン文字列"
82
+
83
+ # SDL2::VERSION_NUMBER
84
+ #: ../../lib/sdl2/version.rb:5
85
+ msgid "Version of Ruby/SDL2, [major, minor, patch level]"
86
+ msgstr "Ruby/SDL2 のバージョン, [major, minor, patch level]"
87
+
88
+ # SDL2
89
+ #: ../../lib/sdl2/version.rb:154 ../../main.c:154
90
+ msgid "Namespace module for Ruby/SDL2."
91
+ msgstr ""
92
+
93
+ # SDL2.init
94
+ #: ../../main.c:93 ../../main.c:117
95
+ msgid ""
96
+ "Initialize SDL.\n"
97
+ "You must call this function before using any other Ruby/SDL2 methods."
98
+ msgstr ""
99
+ "SDLを初期化します.\n"
100
+ "Ruby/SDL2の他のメソッドを呼ぶ前にこれを呼びだす必要があります."
101
+
102
+ # SDL2.init
103
+ #: ../../main.c:96 ../../main.c:120
104
+ msgid ""
105
+ "You can specify initialized subsystem by flags which is\n"
106
+ "bitwise OR of the following constants:"
107
+ msgstr "初期化するサブシステムを以下の定数のビットORでflagsに指定します."
108
+
109
+ # SDL2.init
110
+ #: ../../main.c:99 ../../main.c:123
111
+ msgid ""
112
+ "* SDL2::INIT_TIMER - timer subsystem\n"
113
+ "* SDL2::INIT_AUDIO - audio subsystem\n"
114
+ "* SDL2::INIT_VIDEO - video subsystem\n"
115
+ "* SDL2::INIT_JOYSTICK - joystick subsystem\n"
116
+ "* SDL2::INIT_HAPTIC - haptic (force feedback) subsystem\n"
117
+ " (interface is not implemented yet)\n"
118
+ "* SDL2::INIT_GAMECONTROLLER - controller subsystem\n"
119
+ "* SDL2::INIT_EVENTS - events subsystem\n"
120
+ "* SDL2::INIT_EVERYTHING - all of the above flags\n"
121
+ "* SDL2::INIT_NOPARACHUTE - this flag is ignored; for compatibility"
122
+ msgstr ""
123
+ "* SDL2::INIT_TIMER - タイマサブシステム\n"
124
+ "* SDL2::INIT_AUDIO - オーディオサブシステム\n"
125
+ "* SDL2::INIT_VIDEO - ビデオサブシステム\n"
126
+ "* SDL2::INIT_JOYSTICK - ジョイステッック\n"
127
+ "* SDL2::INIT_HAPTIC - haptic (force feedback) subsystem\n"
128
+ " (interface is not implemented yet)\n"
129
+ "* SDL2::INIT_GAMECONTROLLER - コントローラサブシステム\n"
130
+ "* SDL2::INIT_EVENTS - イベントサブシステム\n"
131
+ "* SDL2::INIT_EVERYTHING - 以上のサブシステムすべて\n"
132
+ "* SDL2::INIT_NOPARACHUTE - 1.x との互換性のためのフラグで,無視される"
133
+
134
+ # @overload
135
+ #: ../../main.c:116 ../../video.c:2051
136
+ msgid "tag|overload|init"
137
+ msgstr ""
138
+
139
+ # @param [Integer]
140
+ #: ../../main.c:116 ../../video.c:355 ../../video.c:413 ../../video.c:2051
141
+ msgid "tag|param|flags"
142
+ msgstr ""
143
+
144
+ # @param [Integer] flags
145
+ #: ../../main.c:116
146
+ msgid "initializing subsystems"
147
+ msgstr "初期化するサブシステム"
148
+
149
+ # @return [Integer]
150
+ #: ../../main.c:160
151
+ msgid "error code sent from SDL library"
152
+ msgstr "SDL ライブラリからのエラーコード(普通は-1)"
153
+
154
+ # SDL2::Error
155
+ #: ../../main.c:161
156
+ msgid "An exception class for all Ruby/SDL2 specific errors."
157
+ msgstr "Ruby/SDL2 特有のエラーのための例外クラス"
158
+
159
+ # SDL2::Window
160
+ # SDL2::Window.create
161
+ #: ../../video.c:308
162
+ msgid "This class represents a window."
163
+ msgstr "このクラスは画面上のウインドウを表します."
164
+
165
+ # SDL2::Window
166
+ # SDL2::Window.create
167
+ #: ../../video.c:310
168
+ msgid ""
169
+ "If you want to use graphical application using Ruby/SDL, first you need to\n"
170
+ "create a window."
171
+ msgstr ""
172
+ ""
173
+
174
+ # SDL2::Window
175
+ # SDL2::Window.create
176
+ #: ../../video.c:313
177
+ msgid ""
178
+ "All of methods/class methods are available only after initializing video\n"
179
+ "subsystem by {SDL2.init}."
180
+ msgstr ""
181
+ "{SDL2.init}を呼び出してからでないとビデオサブシステムのメソッドを使う\n"
182
+ "ことはできません."
183
+
184
+ # SDL2::Window
185
+ #: ../../video.c:316
186
+ msgid "# Window Flags"
187
+ msgstr "# ウィンドウフラグ"
188
+
189
+ # SDL2::Window
190
+ #: ../../video.c:318
191
+ msgid ""
192
+ "OR'd bits of the following constants represents window states.\n"
193
+ "You can see a window state using {#flags} and create a window with a specified"
194
+ "\n"
195
+ "state using flag parameter of {.create}."
196
+ msgstr ""
197
+
198
+ # SDL2::Window
199
+ #: ../../video.c:322
200
+ msgid ""
201
+ "* {SDL2::Window::FULLSCREEN} - fullscreen window\n"
202
+ "* {SDL2::Window::FULLSCREEN_DESKTOP} -\n"
203
+ " fullscreen window at the current desktop resolution\n"
204
+ "* {SDL2::Window::OPENGL} - window usable with OpenGL context\n"
205
+ "* {SDL2::Window::SHOWN} - window is visible\n"
206
+ "* {SDL2::Window::HIDDEN} - window is not visible\n"
207
+ "* {SDL2::Window::BORDERLESS} - no window decoration\n"
208
+ "* {SDL2::Window::RESIZABLE} - window is resizable\n"
209
+ "* {SDL2::Window::MINIMIZDED} - window is minimized\n"
210
+ "* {SDL2::Window::MAXIMIZED} - window is maximized\n"
211
+ "* {SDL2::Window::INPUT_GRABBED} - window has grabbed input focus\n"
212
+ "* {SDL2::Window::INPUT_FOCUS} - window has input focus\n"
213
+ "* {SDL2::Window::MOUSE_FOCUS} - window has mouse focus\n"
214
+ "* {SDL2::Window::FOREIGN} - window is not created by SDL\n"
215
+ "* {SDL2::Window::ALLOW_HIGHDPI} - window should be created in high-DPI mode if"
216
+ " supported\n"
217
+ "* {SDL2::Window::MOUSE_CAPTURE} - window has mouse captured"
218
+ msgstr ""
219
+
220
+ # @param [Integer] h
221
+ #: ../../video.c:355
222
+ msgid "the height of the window"
223
+ msgstr ""
224
+
225
+ # @param [Integer]
226
+ #: ../../video.c:355 ../../video.c:987 ../../video.c:1559 ../../video.c:1658
227
+ msgid "tag|param|y"
228
+ msgstr ""
229
+
230
+ # @param [Integer] x
231
+ #: ../../video.c:355
232
+ msgid "the x position of the left-top of the window"
233
+ msgstr ""
234
+
235
+ # @param [Integer]
236
+ #: ../../video.c:355 ../../video.c:794 ../../video.c:1559
237
+ msgid "tag|param|h"
238
+ msgstr ""
239
+
240
+ # @param [Integer]
241
+ #: ../../video.c:355 ../../video.c:794 ../../video.c:1559
242
+ msgid "tag|param|w"
243
+ msgstr ""
244
+
245
+ # @param [Integer] y
246
+ #: ../../video.c:355
247
+ msgid "the y position of the left-top of the window"
248
+ msgstr ""
249
+
250
+ # @return [SDL2::Window]
251
+ #: ../../video.c:355
252
+ msgid "created window"
253
+ msgstr ""
254
+
255
+ # @param [Integer]
256
+ #: ../../video.c:355 ../../video.c:987 ../../video.c:1559 ../../video.c:1658
257
+ msgid "tag|param|x"
258
+ msgstr ""
259
+
260
+ # @param [Integer] w
261
+ #: ../../video.c:355
262
+ msgid "the width of the window"
263
+ msgstr ""
264
+
265
+ # @overload
266
+ #: ../../video.c:355
267
+ msgid "tag|overload|create"
268
+ msgstr ""
269
+
270
+ # @param [Integer] flags
271
+ #: ../../video.c:355
272
+ msgid "0, or one or more [Window flag masks](#label-Flags) OR'd together"
273
+ msgstr ""
274
+
275
+ # SDL2::Window.create
276
+ #: ../../video.c:356
277
+ msgid "Create a window with the specified position (x,y), dimensions (w,h) and flags."
278
+ msgstr ""
279
+
280
+ # @overload
281
+ #: ../../video.c:396
282
+ msgid "tag|overload|destroy"
283
+ msgstr ""
284
+
285
+ # SDL2::Window#destroy
286
+ #: ../../video.c:397
287
+ msgid "Destroy window."
288
+ msgstr ""
289
+
290
+ # SDL2::Window#destroy
291
+ #: ../../video.c:399
292
+ msgid ""
293
+ "You cannot call almost all methods after calling this method.\n"
294
+ "The exception is {#destroy?}."
295
+ msgstr ""
296
+
297
+ # @param [Integer]
298
+ #: ../../video.c:413
299
+ msgid "tag|param|index"
300
+ msgstr ""
301
+
302
+ # @overload
303
+ #: ../../video.c:413
304
+ msgid "tag|overload|create_renderer"
305
+ msgstr ""
306
+
307
+ # @param [Integer] index
308
+ #: ../../video.c:413
309
+ msgid ""
310
+ "the index of the rendering driver to initialize,\n"
311
+ "or -1 to initialize the first one supporting the requested flags"
312
+ msgstr ""
313
+
314
+ # @raise [SDL2::Error]
315
+ #: ../../video.c:413
316
+ msgid "raises when an error occurs."
317
+ msgstr ""
318
+
319
+ # @return [SDL2::Renderer]
320
+ #: ../../video.c:413
321
+ msgid "the created renderer (rendering context)"
322
+ msgstr ""
323
+
324
+ # @param [Integer] flags
325
+ #: ../../video.c:413
326
+ msgid "0, or one or more [Renderer flag masks](SDL2) OR'd together;"
327
+ msgstr ""
328
+
329
+ # SDL2::Window#create_renderer
330
+ #: ../../video.c:414
331
+ msgid "Create a 2D rendering context for a window."
332
+ msgstr ""
333
+
334
+ # @overload
335
+ #: ../../video.c:434
336
+ msgid "tag|overload|renderer"
337
+ msgstr ""
338
+
339
+ # @return [SDL2::Renderer]
340
+ #: ../../video.c:434
341
+ msgid "the associated renderer"
342
+ msgstr ""
343
+
344
+ # @return [nil]
345
+ #: ../../video.c:434
346
+ msgid "if no renderer is created yet"
347
+ msgstr ""
348
+
349
+ # SDL2::Window#renderer
350
+ #: ../../video.c:435
351
+ msgid "Return the renderer associate with the window"
352
+ msgstr ""
353
+
354
+ # SDL2::Window#input_is_grabbed?
355
+ #: ../../video.c:499
356
+ msgid "Window_set_gamma_ramp"
357
+ msgstr ""
358
+
359
+ # SDL2::Renderer
360
+ #: ../../video.c:729
361
+ msgid "This class represents a 2D rendering context for a window."
362
+ msgstr ""
363
+
364
+ # SDL2::Renderer
365
+ #: ../../video.c:731
366
+ msgid ""
367
+ "You can create a renderer using {SDL2::Window#create_renderer} and\n"
368
+ "use it to draw figures on the window."
369
+ msgstr ""
370
+
371
+ # SDL2::Renderer
372
+ #: ../../video.c:734
373
+ msgid ""
374
+ "# Flags\n"
375
+ "You can specify the OR'd bits of the following constants\n"
376
+ "{SDL2::Window#create_renderer when you create a new renderer}."
377
+ msgstr ""
378
+
379
+ # SDL2::Renderer
380
+ #: ../../video.c:738
381
+ msgid ""
382
+ "* SDL2::Renderer::SOFTWARE - the renderer is a software fallback\n"
383
+ "* SDL2::Renderer::ACCELERATED - the renderer uses hardware acceleration\n"
384
+ "* SDL2::Renderer::PRESENTVSYNC - present is synchronized with the refresh rate"
385
+ "\n"
386
+ "* SDL2::Renderer::TARGETTEXTURE - the renderer supports rendering to texture"
387
+ msgstr ""
388
+
389
+ # SDL2::Renderer
390
+ #: ../../video.c:743
391
+ msgid "No flags(==0) gives priority to available ACCELERATED renderers"
392
+ msgstr ""
393
+
394
+ # @return [Array<SDL2::Renderer::Info>]
395
+ #: ../../video.c:754
396
+ msgid "information about rendering contexts"
397
+ msgstr ""
398
+
399
+ # @overload
400
+ #: ../../video.c:754
401
+ msgid "tag|overload|drivers_info"
402
+ msgstr ""
403
+
404
+ # SDL2::Renderer.drivers_info
405
+ #: ../../video.c:755
406
+ msgid "Return information of all available rendering contexts."
407
+ msgstr ""
408
+
409
+ # @raise [SDL2::Error]
410
+ #: ../../video.c:794 ../../video.c:816
411
+ msgid "raised when the texuture cannot be created"
412
+ msgstr ""
413
+
414
+ # @param [Integer] h
415
+ #: ../../video.c:794
416
+ msgid "the height ofthe texture in pixels"
417
+ msgstr ""
418
+
419
+ # @param [Integer] w
420
+ #: ../../video.c:794
421
+ msgid "the width ofthe texture in pixels"
422
+ msgstr ""
423
+
424
+ # @return [SDL2::Texture]
425
+ #: ../../video.c:794 ../../video.c:816
426
+ msgid "the created texture"
427
+ msgstr ""
428
+
429
+ # @overload
430
+ #: ../../video.c:794
431
+ msgid "tag|overload|create_texture"
432
+ msgstr ""
433
+
434
+ # @see
435
+ #: ../../video.c:794
436
+ msgid "tag|see|#create_texture_from"
437
+ msgstr ""
438
+
439
+ # @param [Integer] access
440
+ #: ../../video.c:794
441
+ msgid "texture access pattern"
442
+ msgstr ""
443
+
444
+ # @param [SDL2::PixelFormat, Integer]
445
+ #: ../../video.c:794
446
+ msgid "tag|param|format"
447
+ msgstr ""
448
+
449
+ # SDL2::Rect#h
450
+ #: ../../video.c:794
451
+ #, fuzzy
452
+ msgid "format of the texture"
453
+ msgstr "長方形の高さ"
454
+
455
+ # @param [Integer]
456
+ #: ../../video.c:794
457
+ msgid "tag|param|access"
458
+ msgstr ""
459
+
460
+ # SDL2::Renderer#create_texture
461
+ #: ../../video.c:795
462
+ msgid "Create a new texture for the rendering context."
463
+ msgstr ""
464
+
465
+ # SDL2::Renderer#create_texture
466
+ #: ../../video.c:797
467
+ msgid "You can use the following constants to specify access pattern"
468
+ msgstr ""
469
+
470
+ # SDL2::Renderer#create_texture
471
+ #: ../../video.c:799
472
+ msgid ""
473
+ "* SDL2::Texture::ACCESS_STATIC - changes rarely, not lockable\n"
474
+ "* SDL2::Texture::ACCESS_STREAMING - changes frequently, lockable\n"
475
+ "* SDL2::Texture::ACCESS_TARGET - can be used as a render target"
476
+ msgstr ""
477
+
478
+ # @see
479
+ #: ../../video.c:816
480
+ msgid "tag|see|#create_texture"
481
+ msgstr ""
482
+
483
+ # @param [SDL2::Surface]
484
+ #: ../../video.c:816
485
+ msgid "tag|param|surface"
486
+ msgstr ""
487
+
488
+ # @param [SDL2::Surface] surface
489
+ #: ../../video.c:816
490
+ msgid "the surface containing pixels for the texture"
491
+ msgstr ""
492
+
493
+ # @overload
494
+ #: ../../video.c:816
495
+ msgid "tag|overload|create_texture_from"
496
+ msgstr ""
497
+
498
+ # SDL2::Renderer#create_texture_from
499
+ #: ../../video.c:817
500
+ msgid "Create a texture from an existing surface."
501
+ msgstr ""
502
+
503
+ # @overload
504
+ #: ../../video.c:850
505
+ msgid "tag|overload|copy"
506
+ msgstr ""
507
+
508
+ # @raise [SDL2::Error]
509
+ #: ../../video.c:850 ../../video.c:887
510
+ msgid "raised when copy is failed"
511
+ msgstr ""
512
+
513
+ # @param [SDL2::Rect, nil] srcrect
514
+ #: ../../video.c:850 ../../video.c:887
515
+ msgid "the source rectangle, or nil for the entire texture"
516
+ msgstr ""
517
+
518
+ # @see
519
+ #: ../../video.c:850
520
+ msgid "tag|see|#copy_ex"
521
+ msgstr ""
522
+
523
+ # @param [SDL2::Rect, nil] dstrect
524
+ #: ../../video.c:850 ../../video.c:887
525
+ msgid ""
526
+ "the destination rectangle, or nil for the entire\n"
527
+ "rendering target; the texture will be stretched to fill the given rectangle"
528
+ msgstr ""
529
+
530
+ # @param [SDL2::Texture]
531
+ #: ../../video.c:850 ../../video.c:887
532
+ msgid "tag|param|texture"
533
+ msgstr ""
534
+
535
+ # @param [SDL2::Texture] texture
536
+ #: ../../video.c:850 ../../video.c:887
537
+ msgid "the source texture"
538
+ msgstr ""
539
+
540
+ # @param [SDL2::Rect, nil]
541
+ #: ../../video.c:850 ../../video.c:887
542
+ msgid "tag|param|srcrect"
543
+ msgstr ""
544
+
545
+ # @param [SDL2::Rect, nil]
546
+ #: ../../video.c:850 ../../video.c:887
547
+ msgid "tag|param|dstrect"
548
+ msgstr ""
549
+
550
+ # SDL2::Renderer#copy
551
+ #: ../../video.c:851
552
+ msgid "Copy a portion of the texture to the current rendering target."
553
+ msgstr ""
554
+
555
+ # @param [Integer]
556
+ #: ../../video.c:887
557
+ msgid "tag|param|flip"
558
+ msgstr ""
559
+
560
+ # @see
561
+ #: ../../video.c:887
562
+ msgid "tag|see|#copy"
563
+ msgstr ""
564
+
565
+ # @param [Integer] flip
566
+ #: ../../video.c:887
567
+ msgid "bits OR'd of the flip consntants"
568
+ msgstr ""
569
+
570
+ # @overload
571
+ #: ../../video.c:887
572
+ msgid "tag|overload|copy_ex"
573
+ msgstr ""
574
+
575
+ # @param [Float]
576
+ #: ../../video.c:887
577
+ msgid "tag|param|angle"
578
+ msgstr ""
579
+
580
+ # @param [SDL2::Point, nil] center
581
+ #: ../../video.c:887
582
+ msgid ""
583
+ "the point around which dstrect will be rotated,\n"
584
+ "(if nil, rotation will be done around the center of dstrect)"
585
+ msgstr ""
586
+
587
+ # @param [Float] angle
588
+ #: ../../video.c:887
589
+ msgid ""
590
+ "an angle in degree indicating the rotation\n"
591
+ "that will be applied to dstrect"
592
+ msgstr ""
593
+
594
+ # @param [SDL2::Point, nil]
595
+ #: ../../video.c:887
596
+ msgid "tag|param|center"
597
+ msgstr ""
598
+
599
+ # SDL2::Renderer#copy_ex
600
+ #: ../../video.c:888
601
+ msgid ""
602
+ "Copy a portion of the texture to the current rendering target,\n"
603
+ "rotating it by angle around the given center and also flipping\n"
604
+ "it top-bottom and/or left-right."
605
+ msgstr ""
606
+
607
+ # SDL2::Renderer#copy_ex
608
+ #: ../../video.c:892
609
+ msgid "You can use the following constants to specify the horizontal/vertical flip:"
610
+ msgstr ""
611
+
612
+ # SDL2::Renderer#copy_ex
613
+ #: ../../video.c:894
614
+ msgid ""
615
+ "* SDL2::Renderer::FLIP_HORIZONTAL - flip horizontally\n"
616
+ "* SDL2::Renderer::FLIP_VERTICAL - flip vertically\n"
617
+ "* SDL2::Renderer::FLIP_NONE - do not flip, equal to zero"
618
+ msgstr ""
619
+
620
+ # SDL2::Renderer#present
621
+ #: ../../video.c:901
622
+ msgid "Update the screen with rendering performed"
623
+ msgstr ""
624
+
625
+ # SDL2::Renderer#clear
626
+ #: ../../video.c:911
627
+ msgid "Crear the rendering target with the drawing color."
628
+ msgstr ""
629
+
630
+ # SDL2::Renderer#draw_color
631
+ #: ../../video.c:921
632
+ msgid "Get the color used for drawing operations"
633
+ msgstr ""
634
+
635
+ # @see
636
+ #: ../../video.c:927
637
+ msgid "tag|see|#draw_color="
638
+ msgstr ""
639
+
640
+ # @return [[Integer,Integer,Integer,Integer]]
641
+ #: ../../video.c:927
642
+ msgid ""
643
+ "red, green, blue, and alpha components of the drawing color\n"
644
+ "(all components are more than or equal to 0 and less than and equal to 255)"
645
+ msgstr ""
646
+
647
+ # @param [[Integer, Integer, Integer, Integer]] color
648
+ #: ../../video.c:950
649
+ msgid "red, green, blue, and alpha components used for drawing"
650
+ msgstr ""
651
+
652
+ # @param [[Integer, Integer, Integer, Integer]]
653
+ # @param [[Integer, Integer, Integer]]
654
+ #: ../../video.c:950
655
+ msgid "tag|param|color"
656
+ msgstr ""
657
+
658
+ # @overload
659
+ #: ../../video.c:950
660
+ msgid "tag|overload|draw_color="
661
+ msgstr ""
662
+
663
+ # @see
664
+ #: ../../video.c:950
665
+ msgid "tag|see|#draw_color"
666
+ msgstr ""
667
+
668
+ # @param [[Integer, Integer, Integer]] color
669
+ #: ../../video.c:950
670
+ msgid "red, green, and blue components used for drawing"
671
+ msgstr ""
672
+
673
+ # SDL2::Renderer#draw_color=
674
+ #: ../../video.c:951
675
+ msgid "Set the color used for drawing operations"
676
+ msgstr ""
677
+
678
+ # SDL2::Renderer#draw_color=
679
+ #: ../../video.c:953
680
+ msgid ""
681
+ "All color components (including alpha) must be more than or equal to 0\n"
682
+ "and less than and equal to 255"
683
+ msgstr ""
684
+
685
+ # SDL2::Point#x
686
+ #: ../../video.c:971
687
+ #, fuzzy
688
+ msgid "the y coordinate of the start point"
689
+ msgstr "点のX座標"
690
+
691
+ # @overload
692
+ #: ../../video.c:971
693
+ msgid "tag|overload|draw_line"
694
+ msgstr ""
695
+
696
+ # @param [Integer]
697
+ #: ../../video.c:971
698
+ msgid "tag|param|x1"
699
+ msgstr ""
700
+
701
+ # SDL2::Point#x
702
+ #: ../../video.c:971
703
+ #, fuzzy
704
+ msgid "the y coordinate of the end point"
705
+ msgstr "点のX座標"
706
+
707
+ # @param [Integer]
708
+ #: ../../video.c:971
709
+ msgid "tag|param|y2"
710
+ msgstr ""
711
+
712
+ # SDL2::Point#x
713
+ #: ../../video.c:971
714
+ #, fuzzy
715
+ msgid "the x coordinate of the end point"
716
+ msgstr "点のX座標"
717
+
718
+ # SDL2::Point#x
719
+ #: ../../video.c:971
720
+ #, fuzzy
721
+ msgid "the x coordinate of the start point"
722
+ msgstr "点のX座標"
723
+
724
+ # @param [Integer]
725
+ #: ../../video.c:971
726
+ msgid "tag|param|x2"
727
+ msgstr ""
728
+
729
+ # @param [Integer]
730
+ #: ../../video.c:971
731
+ msgid "tag|param|y1"
732
+ msgstr ""
733
+
734
+ # SDL2::Renderer#draw_line
735
+ #: ../../video.c:972
736
+ msgid ""
737
+ "Draw a line from (x1, y1) to (x2, y2) using drawing color given by\n"
738
+ "{#draw_color=}."
739
+ msgstr ""
740
+
741
+ # SDL2::Point#x
742
+ #: ../../video.c:987 ../../video.c:1658
743
+ #, fuzzy
744
+ msgid "the y coordinate of the point"
745
+ msgstr "点のX座標"
746
+
747
+ # @overload
748
+ #: ../../video.c:987
749
+ msgid "tag|overload|draw_point"
750
+ msgstr ""
751
+
752
+ # SDL2::Point#x
753
+ #: ../../video.c:987 ../../video.c:1658
754
+ #, fuzzy
755
+ msgid "the x coordinate of the point"
756
+ msgstr "点のX座標"
757
+
758
+ # SDL2::Renderer#draw_point
759
+ #: ../../video.c:988
760
+ msgid "Draw a point at (x, y) using drawing color given by {#draw_color=}."
761
+ msgstr ""
762
+
763
+ # @overload
764
+ #: ../../video.c:1001
765
+ msgid "tag|overload|draw_rect"
766
+ msgstr ""
767
+
768
+ # @param [SDL2::Rect]
769
+ #: ../../video.c:1001 ../../video.c:1015
770
+ msgid "tag|param|rect"
771
+ msgstr ""
772
+
773
+ # @param [SDL2::Rect] rect
774
+ #: ../../video.c:1001 ../../video.c:1015
775
+ msgid "the drawing rectangle"
776
+ msgstr ""
777
+
778
+ # SDL2::Renderer#draw_rect
779
+ #: ../../video.c:1002
780
+ msgid "Draw a rectangle using drawing color given by {#draw_color=}."
781
+ msgstr ""
782
+
783
+ # @overload
784
+ #: ../../video.c:1015
785
+ msgid "tag|overload|fill_rect"
786
+ msgstr ""
787
+
788
+ # SDL2::Renderer#fill_rect
789
+ #: ../../video.c:1016
790
+ msgid "Draw a filled rectangle using drawing color given by {#draw_color=}."
791
+ msgstr ""
792
+
793
+ # SDL2::Renderer#info
794
+ #: ../../video.c:1022
795
+ msgid "Get information about _self_ rendering context ."
796
+ msgstr ""
797
+
798
+ # @return [SDL2::Renderer::Info]
799
+ #: ../../video.c:1026
800
+ msgid "rendering information"
801
+ msgstr ""
802
+
803
+ # @param [SDL2::Texture, nil] target
804
+ #: ../../video.c:1111
805
+ msgid ""
806
+ "the targeted texture, or nil\n"
807
+ "for the default render target(i.e. screen)"
808
+ msgstr ""
809
+
810
+ # @see
811
+ #: ../../video.c:1111
812
+ msgid "tag|see|#render_target"
813
+ msgstr ""
814
+
815
+ # @overload
816
+ #: ../../video.c:1111
817
+ msgid "tag|overload|render_target="
818
+ msgstr ""
819
+
820
+ # @param [SDL2::Texture, nil]
821
+ #: ../../video.c:1111
822
+ msgid "tag|param|target"
823
+ msgstr ""
824
+
825
+ # SDL2::Renderer#render_target=
826
+ #: ../../video.c:1112
827
+ msgid "Set a texture as the current render target."
828
+ msgstr ""
829
+
830
+ # SDL2::Renderer#render_target=
831
+ #: ../../video.c:1114
832
+ msgid ""
833
+ "Some renderers have ability to render to a texture instead of a screen.\n"
834
+ "You can judge whether your renderer has this ability using\n"
835
+ "{#support_render_target?}."
836
+ msgstr ""
837
+
838
+ # SDL2::Renderer#render_target=
839
+ #: ../../video.c:1118
840
+ msgid ""
841
+ "The target texture musbe be {#create_texture created} with the\n"
842
+ "SDL2::Texture::ACCESS_TARGET flag."
843
+ msgstr ""
844
+
845
+ # SDL2::Renderer#render_target
846
+ #: ../../video.c:1120
847
+ msgid "Get the current render target."
848
+ msgstr ""
849
+
850
+ # @return [SDL2::Texture]
851
+ #: ../../video.c:1128
852
+ msgid "the current rendering target"
853
+ msgstr ""
854
+
855
+ # @return [nil]
856
+ #: ../../video.c:1128
857
+ msgid "for the default render target (i.e. screen)"
858
+ msgstr ""
859
+
860
+ # @see
861
+ #: ../../video.c:1128
862
+ msgid "tag|see|#render_target="
863
+ msgstr ""
864
+
865
+ # @see
866
+ #: ../../video.c:1128
867
+ msgid "tag|see|#support_render_target?"
868
+ msgstr ""
869
+
870
+ # SDL2::Rect.[]
871
+ #: ../../video.c:1508
872
+ msgid "Alias of new. See {#initialize}."
873
+ msgstr "new の別名。詳しくは {#initialize}参照。"
874
+
875
+ # SDL2::Rect#h
876
+ #: ../../video.c:1508 ../../video.c:1559
877
+ msgid "Height of the rectangle"
878
+ msgstr "長方形の高さ"
879
+
880
+ # SDL2::Rect#w
881
+ #: ../../video.c:1508 ../../video.c:1559
882
+ msgid "Width of the rectangle"
883
+ msgstr "長方形の幅"
884
+
885
+ # SDL2::Rect#y
886
+ #: ../../video.c:1508 ../../video.c:1559
887
+ msgid "Y coordiante of the left-top point of the rectangle"
888
+ msgstr "長方形の左上の点のY座標"
889
+
890
+ # SDL2::Rect#x
891
+ #: ../../video.c:1508 ../../video.c:1559
892
+ msgid "X coordiante of the left-top point of the rectangle"
893
+ msgstr "長方形の左上の点のX座標"
894
+
895
+ # SDL2::Rect
896
+ #: ../../video.c:1508
897
+ msgid "This class represents a rectangle in SDL2."
898
+ msgstr "このクラスは SDL2 上の長方形を表します"
899
+
900
+ # SDL2::Rect
901
+ #: ../../video.c:1510
902
+ msgid ""
903
+ "Any rectanle is represented by four attributes x, y, w, and h,\n"
904
+ "and these four attributes must be integer."
905
+ msgstr "長方形は x, y (左上の x,y 座標)と w(幅), h(高さ) で表されます。これらの値はすべて整数でなければなりません。"
906
+
907
+ # SDL2::Rect#initialize
908
+ #: ../../video.c:1543 ../../video.c:1560
909
+ msgid "Create a new SDL2::Rect object"
910
+ msgstr "SDL2::Rect オブジェクトを生成します"
911
+
912
+ # @overload
913
+ #: ../../video.c:1559 ../../video.c:1658
914
+ msgid "tag|overload|initialize"
915
+ msgstr ""
916
+
917
+ # @overload
918
+ #: ../../video.c:1559
919
+ msgid "tag|overload|initialze"
920
+ msgstr ""
921
+
922
+ # SDL2::Rect#initialize
923
+ #: ../../video.c:1560
924
+ msgid ""
925
+ "Create a new SDL2::Rect object whose x, w, w, and h are all\n"
926
+ "zero."
927
+ msgstr "SDL2::Rect オブジェクトを生成します。x,y,w,h はすべて 0 で初期化されます。"
928
+
929
+ # SDL2::Rect#inspect
930
+ #: ../../video.c:1577
931
+ msgid "Inspection string for debug"
932
+ msgstr "デバッグ用文字列を返します"
933
+
934
+ # @param [SDL2::Rect]
935
+ #: ../../video.c:1601 ../../video.c:1618
936
+ msgid "tag|param|other"
937
+ msgstr ""
938
+
939
+ # @param [SDL2::Rect] other
940
+ #: ../../video.c:1601 ../../video.c:1618
941
+ msgid "rectangle"
942
+ msgstr "長方形"
943
+
944
+ # @overload
945
+ #: ../../video.c:1601
946
+ msgid "tag|overload|intersection"
947
+ msgstr ""
948
+
949
+ # SDL2::Rect#intersection
950
+ #: ../../video.c:1602
951
+ msgid "Returns the intersection rect of self and other."
952
+ msgstr "self と other の共通部分の長方形を返します."
953
+
954
+ # SDL2::Rect#intersection
955
+ #: ../../video.c:1604
956
+ msgid "If there is no intersection, returns nil."
957
+ msgstr "共通部分が存在しない場合は nil を返します."
958
+
959
+ # @overload
960
+ #: ../../video.c:1618
961
+ msgid "tag|overload|union"
962
+ msgstr ""
963
+
964
+ # SDL2::Rect#union
965
+ #: ../../video.c:1619
966
+ msgid "Returns the minimal rect containing self and other"
967
+ msgstr "self と other の両方を含む最小の長方形を返します."
968
+
969
+ # SDL2::Point#y
970
+ #: ../../video.c:1626
971
+ msgid "Y coordiante of the point."
972
+ msgstr "点のY座標"
973
+
974
+ # SDL2::Point#x
975
+ #: ../../video.c:1626
976
+ msgid "X coordiante of the point."
977
+ msgstr "点のX座標"
978
+
979
+ # SDL2::Point
980
+ #: ../../video.c:1626
981
+ msgid ""
982
+ "This class represents a point in SDL library.\n"
983
+ "Some method requires this method."
984
+ msgstr "このクラスは点を表します.ruby/sdl2のメソッドにはこのクラスのインスタンスを要求するものがあります."
985
+
986
+ # SDL2::Rect#initialize
987
+ #: ../../video.c:1646
988
+ #, fuzzy
989
+ msgid "Create a new point object."
990
+ msgstr "SDL2::Rect オブジェクトを生成します"
991
+
992
+ # SDL2::Point#initialize
993
+ #: ../../video.c:1659
994
+ msgid "x and y of the created point object are initialized by 0"
995
+ msgstr ""
996
+
997
+ # SDL2::Point#inspect
998
+ #: ../../video.c:1669
999
+ msgid "Return inspection string."
1000
+ msgstr ""
1001
+
1002
+ # @param [Integer] flags
1003
+ #: ../../video.c:2051
1004
+ msgid "submodule bits"
1005
+ msgstr ""
1006
+
1007
+ # @raise [SDL2::Error]
1008
+ #: ../../video.c:2051
1009
+ msgid "raised when initializing is failed."
1010
+ msgstr ""
1011
+
1012
+ # SDL2::IMG#init
1013
+ # SDL2::IMG.init
1014
+ #: ../../video.c:2052
1015
+ msgid "Initialize SDL_image."
1016
+ msgstr ""
1017
+
1018
+ # SDL2::IMG.init
1019
+ #: ../../video.c:2054
1020
+ msgid ""
1021
+ "You can specify the supporting image formats by bitwise OR'd of the\n"
1022
+ "following constants."
1023
+ msgstr ""
1024
+
1025
+ # SDL2::IMG#init
1026
+ #: ../../video.c:2054
1027
+ msgid ""
1028
+ " You can specify the supporting image formats by bitwise OR'd of the\n"
1029
+ " following constants."
1030
+ msgstr ""
1031
+
1032
+ # SDL2::IMG#init
1033
+ #: ../../video.c:2057
1034
+ msgid ""
1035
+ " * {SDL2::IMG::INIT_JPG}\n"
1036
+ " * {SDL2::IMG::INIT_PNG}\n"
1037
+ " * {SDL2::IMG::INIT_TIF}"
1038
+ msgstr ""
1039
+
1040
+ # SDL2::IMG.init
1041
+ #: ../../video.c:2057
1042
+ msgid ""
1043
+ "* {SDL2::IMG::INIT_JPG}\n"
1044
+ "* {SDL2::IMG::INIT_PNG}\n"
1045
+ "* {SDL2::IMG::INIT_TIF}"
1046
+ msgstr ""
1047
+
1048
+ # SDL2::IMG.init
1049
+ #: ../../video.c:2061
1050
+ msgid ""
1051
+ "You need to initialize SDL_image to check whether specified format\n"
1052
+ "is supported by your environment. If your environment does not\n"
1053
+ "support required support format, you have a {SDL2::Error} exception."
1054
+ msgstr ""
1055
+
1056
+ # SDL2::IMG#init
1057
+ #: ../../video.c:2061
1058
+ msgid ""
1059
+ " You need to initialize SDL_image to check whether specified format\n"
1060
+ " is supported by your environment. If your environment does not\n"
1061
+ " support required support format, you have a {SDL2::Error} exception."
1062
+ msgstr ""
1063
+
1064
+ # SDL2::IMG#init
1065
+ #: ../../video.c:2065
1066
+ msgid ""
1067
+ " @param [Integer] flags submodule bits\n"
1068
+ " @return [nil]"
1069
+ msgstr ""
1070
+
1071
+ # SDL2::IMG#init
1072
+ #: ../../video.c:2068
1073
+ msgid " @raise [SDL2::Error] raised when initializing is failed."
1074
+ msgstr ""
1075
+
1076
+ # @raise [SDL2::Error]
1077
+ #: ../../video.c:2075 ../../video.c:2102
1078
+ msgid ""
1079
+ "raised when you fail to load (for example,\n"
1080
+ "you have a wrong file name, or the file is broken)"
1081
+ msgstr ""
1082
+
1083
+ # @return [SDL2::Surface]
1084
+ #: ../../video.c:2075
1085
+ msgid "Created surface"
1086
+ msgstr ""
1087
+
1088
+ # @param [String]
1089
+ #: ../../video.c:2075 ../../video.c:2102
1090
+ msgid "tag|param|file"
1091
+ msgstr ""
1092
+
1093
+ # @overload
1094
+ #: ../../video.c:2075
1095
+ msgid "tag|overload|load"
1096
+ msgstr ""
1097
+
1098
+ # @see
1099
+ #: ../../video.c:2075
1100
+ msgid "tag|see|SDL2::Renderer#load_texture"
1101
+ msgstr ""
1102
+
1103
+ # @see
1104
+ #: ../../video.c:2075 ../../video.c:2102
1105
+ msgid "tag|see|SDL2::IMG.init"
1106
+ msgstr ""
1107
+
1108
+ # @param [String] file
1109
+ #: ../../video.c:2075
1110
+ msgid "the image file name to load a surface from"
1111
+ msgstr ""
1112
+
1113
+ # SDL2::Surface.load
1114
+ #: ../../video.c:2076
1115
+ msgid "Load file and create a new {SDL2::Surface}."
1116
+ msgstr ""
1117
+
1118
+ # SDL2::Renderer#load_texture
1119
+ # SDL2::Surface.load
1120
+ #: ../../video.c:2078 ../../video.c:2105
1121
+ msgid ""
1122
+ "This method uses SDL_image. SDL_image supports following formats:\n"
1123
+ "BMP, CUR, GIF, ICO, JPG, LBP, PCX, PNG, PNM, TGA, TIF, XCF, XPM, and XV."
1124
+ msgstr ""
1125
+
1126
+ # @see
1127
+ #: ../../video.c:2102
1128
+ msgid "tag|see|SDL2::Surface.load"
1129
+ msgstr ""
1130
+
1131
+ # @param [String] file
1132
+ #: ../../video.c:2102
1133
+ msgid "the image file name to load a texture from"
1134
+ msgstr ""
1135
+
1136
+ # @return [SDL2::Texture]
1137
+ #: ../../video.c:2102
1138
+ msgid "Created texture"
1139
+ msgstr ""
1140
+
1141
+ # @overload
1142
+ #: ../../video.c:2102
1143
+ msgid "tag|overload|load_texture"
1144
+ msgstr ""
1145
+
1146
+ # SDL2::Renderer#load_texture
1147
+ #: ../../video.c:2103
1148
+ msgid "Load file and create a new {SDL2::Texture}."
1149
+ msgstr ""
1150
+
1151
+ #~ msgid ""
1152
+ #~ "Initialize SDL.\n"
1153
+ #~ " You must call this function before using any other Ruby/SDL2 methods."
1154
+ #~ msgstr ""
1155
+ #~ "SDLを初期化します.\n"
1156
+ #~ "Ruby/SDL2の他のメソッドを呼ぶ前にこれを呼びだす必要があります."
1157
+ #~ msgid ""
1158
+ #~ " You can specify initialized subsystem by flags which is\n"
1159
+ #~ " bitwise OR of the following constants:"
1160
+ #~ msgstr "初期化するサブシステムを以下の定数のビットORでflagsに指定します."