• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

love2d wiki (日本語版) の翻訳者向け作業引き継ぎ用資料の整備


Commit MetaInfo

Révision6bec5b4d8348877cc3a32c6e71247e1b9876292d (tree)
l'heure2020-06-17 20:35:54
Auteurmegumi_engines <megumi_engines@user...>
Commitermegumi_engines

Message de Log

仮訳完了: models.md (Amulet)

Change Summary

Modification

Binary files a/other/amulet/v1.21.8/index.krydoc and b/other/amulet/v1.21.8/index.krydoc differ
--- a/other/amulet/v1.21.8/omegat/last_entry.properties
+++ b/other/amulet/v1.21.8/omegat/last_entry.properties
@@ -1,4 +1,4 @@
1-#Tue Jun 16 17:47:06 JST 2020
2-LAST_ENTRY_FILE=doc/audio.md
3-LAST_ENTRY_SRC=An audio track contains the playback state of an audio buffer - that is\nthe current position and speed of playback.
4-LAST_ENTRY_NUMBER=6309
1+#Wed Jun 17 20:34:25 JST 2020
2+LAST_ENTRY_FILE=doc/graphics.md
3+LAST_ENTRY_SRC=(For a full list of\nsettings see am.window in the API reference.)
4+LAST_ENTRY_NUMBER=5964
--- a/other/amulet/v1.21.8/omegat/project_save.tmx
+++ b/other/amulet/v1.21.8/omegat/project_save.tmx
@@ -340,6 +340,20 @@ end</seg>
340340 </tu>
341341 <tu>
342342 <tuv lang="EN-US">
343+ <seg>&lt;s0&gt;local&lt;/s0&gt; buf &lt;s1&gt;=&lt;/s1&gt; am&lt;s2&gt;.&lt;/s2&gt;buffer&lt;s3&gt;(&lt;/s3&gt;&lt;s4&gt;12&lt;/s4&gt;&lt;s5&gt;)&lt;/s5&gt;
344+&lt;s6&gt;local&lt;/s6&gt; view &lt;s7&gt;=&lt;/s7&gt; buf:view&lt;s8&gt;(&lt;/s8&gt;&lt;s9&gt;"float"&lt;/s9&gt;&lt;s10&gt;)&lt;/s10&gt;
345+view&lt;s11&gt;[&lt;/s11&gt;&lt;s12&gt;1&lt;/s12&gt;&lt;s13&gt;]&lt;/s13&gt; &lt;s14&gt;=&lt;/s14&gt; &lt;s15&gt;1.5&lt;/s15&gt;
346+view&lt;s16&gt;[&lt;/s16&gt;&lt;s17&gt;2&lt;/s17&gt;&lt;s18&gt;]&lt;/s18&gt; &lt;s19&gt;=&lt;/s19&gt; view&lt;s20&gt;[&lt;/s20&gt;&lt;s21&gt;1&lt;/s21&gt;&lt;s22&gt;]&lt;/s22&gt; &lt;s23&gt;+&lt;/s23&gt; &lt;s24&gt;2&lt;/s24&gt;</seg>
347+ </tuv>
348+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070147Z" creationid="isVowel" creationdate="20200617T070147Z">
349+ <seg>&lt;s0&gt;local&lt;/s0&gt; buf &lt;s1&gt;=&lt;/s1&gt; am&lt;s2&gt;.&lt;/s2&gt;buffer&lt;s3&gt;(&lt;/s3&gt;&lt;s4&gt;12&lt;/s4&gt;&lt;s5&gt;)&lt;/s5&gt;
350+&lt;s6&gt;local&lt;/s6&gt; view &lt;s7&gt;=&lt;/s7&gt; buf:view&lt;s8&gt;(&lt;/s8&gt;&lt;s9&gt;"float"&lt;/s9&gt;&lt;s10&gt;)&lt;/s10&gt;
351+view&lt;s11&gt;[&lt;/s11&gt;&lt;s12&gt;1&lt;/s12&gt;&lt;s13&gt;]&lt;/s13&gt; &lt;s14&gt;=&lt;/s14&gt; &lt;s15&gt;1.5&lt;/s15&gt;
352+view&lt;s16&gt;[&lt;/s16&gt;&lt;s17&gt;2&lt;/s17&gt;&lt;s18&gt;]&lt;/s18&gt; &lt;s19&gt;=&lt;/s19&gt; view&lt;s20&gt;[&lt;/s20&gt;&lt;s21&gt;1&lt;/s21&gt;&lt;s22&gt;]&lt;/s22&gt; &lt;s23&gt;+&lt;/s23&gt; &lt;s24&gt;2&lt;/s24&gt;</seg>
353+ </tuv>
354+ </tu>
355+ <tu>
356+ <tuv lang="EN-US">
343357 <seg>&lt;x1/&gt;</seg>
344358 </tuv>
345359 <tuv lang="JA" changeid="isVowel" changedate="20200609T035607Z" creationid="isVowel" creationdate="20200609T035607Z">
@@ -412,6 +426,44 @@ end</seg>
412426 </tu>
413427 <tu>
414428 <tuv lang="EN-US">
429+ <seg>&lt;x1/&gt;"float"&lt;x2/&gt; 4 approx -3.4e38 to 3.4e38 same native
430+&lt;x3/&gt;"vec2"&lt;x4/&gt; 8 any &lt;x5/&gt;vec2&lt;x6/&gt; same native
431+&lt;x7/&gt;"vec3"&lt;x8/&gt; 12 any &lt;x9/&gt;vec3&lt;x10/&gt; same native
432+&lt;x11/&gt;"vec4"&lt;x12/&gt; 16 any &lt;x13/&gt;vec4&lt;x14/&gt; same native
433+&lt;x15/&gt;"byte"&lt;x16/&gt; 1 -128 to 127 same N/A
434+&lt;x17/&gt;"ubyte"&lt;x18/&gt; 1 0 to 255 same N/A
435+&lt;x19/&gt;"byte_norm"&lt;x20/&gt; 1 -1.0 to 1.0 -127 to 127 N/A
436+&lt;x21/&gt;"ubyte_norm"&lt;x22/&gt; 1 0.0 to 1.0 0 to 255 N/A
437+&lt;x23/&gt;"short"&lt;x24/&gt; 2 -32768 to 32767 same native
438+&lt;x25/&gt;"ushort"&lt;x26/&gt; 2 0 to 65535 same native
439+&lt;x27/&gt;"short_norm"&lt;x28/&gt; 2 -1.0 to 1.0 -32767 to 32767 native
440+&lt;x29/&gt;"ushort_norm"&lt;x30/&gt; 2 0.0 to 1.0 0 to 65535 native
441+&lt;x31/&gt;"ushort_elem"&lt;x32/&gt; 2 1 to 65536 0 to 65535 native
442+&lt;x33/&gt;"int"&lt;x34/&gt; 4 -2147483648 to 2147483647 same native
443+&lt;x35/&gt;"uint"&lt;x36/&gt; 4 0 to 4294967295 same native
444+&lt;x37/&gt;"uint_elem"&lt;x38/&gt; 4 1 to 4294967296 0 to 4294967295 native</seg>
445+ </tuv>
446+ <tuv lang="JA" changeid="isVowel" changedate="20200617T064733Z" creationid="isVowel" creationdate="20200617T064212Z">
447+ <seg>&lt;x1/&gt;"float"&lt;x2/&gt; 4 約 -3.4e38 ~ 3.4e38 同一 ネイティブ
448+&lt;x3/&gt;"vec2"&lt;x4/&gt; 8 全 &lt;x5/&gt;vec2&lt;x6/&gt; 同一 ネイティブ
449+&lt;x7/&gt;"vec3"&lt;x8/&gt; 12 全 &lt;x9/&gt;vec3&lt;x10/&gt; 同一 ネイティブ
450+&lt;x11/&gt;"vec4"&lt;x12/&gt; 16 全 &lt;x13/&gt;vec4&lt;x14/&gt; 同一 ネイティブ
451+&lt;x15/&gt;"byte"&lt;x16/&gt; 1 -128 ~ 127 同一 なし
452+&lt;x17/&gt;"ubyte"&lt;x18/&gt; 1 0 ~ 255 同一 なし
453+&lt;x19/&gt;"byte_norm"&lt;x20/&gt; 1 -1.0 ~ 1.0 -127 ~ 127 なし
454+&lt;x21/&gt;"ubyte_norm"&lt;x22/&gt; 1 0.0 ~ 1.0 0 ~ 255 なし
455+&lt;x23/&gt;"short"&lt;x24/&gt; 2 -32768 ~ 32767 同一 ネイティブ
456+&lt;x25/&gt;"ushort"&lt;x26/&gt; 2 0 ~ 65535 同一 ネイティブ
457+&lt;x27/&gt;"short_norm"&lt;x28/&gt; 2 -1.0 ~ 1.0 -32767 ~ 32767 ネイティブ
458+&lt;x29/&gt;"ushort_norm"&lt;x30/&gt; 2 0.0 ~ 1.0 0 ~ 65535 ネイティブ
459+&lt;x31/&gt;"ushort_elem"&lt;x32/&gt; 2 1 ~ 65536 0 ~ 65535 ネイティブ
460+&lt;x33/&gt;"int"&lt;x34/&gt; 4 -2147483648 ~ 2147483647 同一 ネイティブ
461+&lt;x35/&gt;"uint"&lt;x36/&gt; 4 0 ~ 4294967295 同一 ネイティブ
462+&lt;x37/&gt;"uint_elem"&lt;x38/&gt; 4 1 ~ 4294967296 0 ~ 4294967295 ネイティブ</seg>
463+ </tuv>
464+ </tu>
465+ <tu>
466+ <tuv lang="EN-US">
415467 <seg>&lt;x1/&gt;"g"&lt;x2/&gt;</seg>
416468 </tuv>
417469 <tuv lang="JA" changeid="isVowel" changedate="20200616T073737Z" creationid="isVowel" creationdate="20200616T073737Z">
@@ -1080,6 +1132,14 @@ in Hz.</seg>
10801132 </tu>
10811133 <tu>
10821134 <tuv lang="EN-US">
1135+ <seg>&lt;x1/&gt;mark_dirty()&lt;x2/&gt;: Mark the buffer dirty.</seg>
1136+ </tuv>
1137+ <tuv lang="JA" changeid="isVowel" changedate="20200617T071509Z" creationid="isVowel" creationdate="20200617T071355Z">
1138+ <seg>&lt;x1/&gt;mark_dirty()&lt;x2/&gt;: バッファの汚染標識を付けます。</seg>
1139+ </tuv>
1140+ </tu>
1141+ <tu>
1142+ <tuv lang="EN-US">
10831143 <seg>&lt;x1/&gt;min_fps&lt;x2/&gt;: the minimum frames per second over the last 60 frames</seg>
10841144 </tuv>
10851145 <tuv lang="JA" changeid="isVowel" changedate="20200609T030907Z" creationid="isVowel" creationdate="20200609T030907Z">
@@ -1309,6 +1369,15 @@ main.lua:1: 動くぞ!</seg>
13091369 </tu>
13101370 <tu>
13111371 <tuv lang="EN-US">
1372+ <seg>A buffer containing the vertex, normal and texture coordinate
1373+data.</seg>
1374+ </tuv>
1375+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075838Z" creationid="isVowel" creationdate="20200617T075838Z">
1376+ <seg>バッファの内容はバーテックス、法線とテクスチャ座標データとなります。</seg>
1377+ </tuv>
1378+ </tu>
1379+ <tu>
1380+ <tuv lang="EN-US">
13121381 <seg>A framebuffer is like an off-screen window you can draw to.</seg>
13131382 </tuv>
13141383 <tuv lang="JA" changeid="isVowel" changedate="20200612T062321Z" creationid="isVowel" creationdate="20200612T062051Z">
@@ -1424,6 +1493,14 @@ if it has a different sample rate (this requires extra processing).</seg>
14241493 </tu>
14251494 <tu>
14261495 <tuv lang="EN-US">
1496+ <seg>Amulet has some basic support for loading 3D models in Wavefront &lt;x1/&gt;.obj&lt;x2/&gt; format.</seg>
1497+ </tuv>
1498+ <tuv lang="JA" changeid="isVowel" changedate="20200617T074410Z" creationid="isVowel" creationdate="20200617T074410Z">
1499+ <seg>Amulet は 3D モデルのロードについて Wavefront &lt;x1/&gt;.obj&lt;x2/&gt; 形式の一部基本機能に対応しています。</seg>
1500+ </tuv>
1501+ </tu>
1502+ <tu>
1503+ <tuv lang="EN-US">
14271504 <seg>Amulet is a Lua-based audio/visual toolkit designed for small games and experimentation.</seg>
14281505 </tuv>
14291506 <tuv lang="JA" changeid="isVowel" changedate="20200609T035407Z" creationid="isVowel" creationdate="20200609T035407Z">
@@ -1679,6 +1756,30 @@ appended to their names, even on Windows.</seg>
16791756 </tu>
16801757 <tu>
16811758 <tuv lang="EN-US">
1759+ <seg>Buffers</seg>
1760+ </tuv>
1761+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061350Z" creationid="isVowel" creationdate="20200617T061350Z">
1762+ <seg> バッファ</seg>
1763+ </tuv>
1764+ </tu>
1765+ <tu>
1766+ <tuv lang="EN-US">
1767+ <seg>Buffers and views {#buffers-and-views}</seg>
1768+ </tuv>
1769+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065222Z" creationid="isVowel" creationdate="20200617T055931Z">
1770+ <seg>バッファとビュー {#buffers-and-views}</seg>
1771+ </tuv>
1772+ </tu>
1773+ <tu>
1774+ <tuv lang="EN-US">
1775+ <seg>Buffers are contiguous blocks of memory.</seg>
1776+ </tuv>
1777+ <tuv lang="JA" changeid="isVowel" changedate="20200617T060641Z" creationid="isVowel" creationdate="20200617T060641Z">
1778+ <seg>バッファは連続したメモリブロックです。</seg>
1779+ </tuv>
1780+ </tu>
1781+ <tu>
1782+ <tuv lang="EN-US">
16821783 <seg>Build status</seg>
16831784 </tuv>
16841785 <tuv lang="JA" changeid="isVowel" changedate="20200609T035716Z" creationid="isVowel" creationdate="20200609T035716Z">
@@ -1744,6 +1845,14 @@ appended to their names, even on Windows.</seg>
17441845 </tu>
17451846 <tu>
17461847 <tuv lang="EN-US">
1848+ <seg>Converts a base64 string to a buffer.</seg>
1849+ </tuv>
1850+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070913Z" creationid="isVowel" creationdate="20200617T070902Z">
1851+ <seg>Base64 エンコード文字列をバッファへ変換します。</seg>
1852+ </tuv>
1853+ </tu>
1854+ <tu>
1855+ <tuv lang="EN-US">
17471856 <seg>Converts a table to a string.</seg>
17481857 </tuv>
17491858 <tuv lang="JA" changeid="isVowel" changedate="20200616T071453Z" creationid="isVowel" creationdate="20200616T071453Z">
@@ -1935,8 +2044,8 @@ image buffer.</seg>
19352044 <tuv lang="EN-US">
19362045 <seg>Documentation</seg>
19372046 </tuv>
1938- <tuv lang="JA" changeid="isVowel" changedate="20200609T040717Z" creationid="isVowel" creationdate="20200609T040717Z">
1939- <seg>取扱説明書類</seg>
2047+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062332Z" creationid="isVowel" creationdate="20200609T040717Z">
2048+ <seg>取扱説明書</seg>
19402049 </tuv>
19412050 </tu>
19422051 <tu>
@@ -2169,6 +2278,14 @@ even on Windows.</seg>
21692278 </tu>
21702279 <tu>
21712280 <tuv lang="EN-US">
2281+ <seg>Here's an example of how to load a model and display it.</seg>
2282+ </tuv>
2283+ <tuv lang="JA" changeid="isVowel" changedate="20200617T080644Z" creationid="isVowel" creationdate="20200617T080644Z">
2284+ <seg>これはモデルのロードと表示方法に関する用例です。</seg>
2285+ </tuv>
2286+ </tu>
2287+ <tu>
2288+ <tuv lang="EN-US">
21722289 <seg>Here's an example:</seg>
21732290 </tuv>
21742291 <tuv lang="JA" changeid="isVowel" changedate="20200612T044121Z" creationid="isVowel" creationdate="20200612T044121Z">
@@ -2177,10 +2294,18 @@ even on Windows.</seg>
21772294 </tu>
21782295 <tu>
21792296 <tuv lang="EN-US">
2297+ <seg>Here's how to create a 800x600 window:</seg>
2298+ </tuv>
2299+ <tuv lang="JA" changeid="isVowel" changedate="20200617T113319Z" creationid="isVowel" creationdate="20200617T113319Z">
2300+ <seg>これは 800x600 のウィンドウを作成します:</seg>
2301+ </tuv>
2302+ </tu>
2303+ <tu>
2304+ <tuv lang="EN-US">
21802305 <seg>Here's what a minimal Hello World!</seg>
21812306 </tuv>
2182- <tuv lang="JA" changeid="isVowel" changedate="20200609T035531Z" creationid="isVowel" creationdate="20200609T035531Z">
2183- <seg>これは Hello World! です</seg>
2307+ <tuv lang="JA" changeid="isVowel" changedate="20200617T055629Z" creationid="isVowel" creationdate="20200609T035531Z">
2308+ <seg>これは Hello World! です。</seg>
21842309 </tuv>
21852310 </tu>
21862311 <tu>
@@ -2254,6 +2379,15 @@ then &lt;x5/&gt;nil&lt;x6/&gt; is returned.</seg>
22542379 </tu>
22552380 <tu>
22562381 <tuv lang="EN-US">
2382+ <seg>If the normal or texture coordinate data
2383+is not present, the corresponding return value will be nil.</seg>
2384+ </tuv>
2385+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075436Z" creationid="isVowel" creationdate="20200617T075436Z">
2386+ <seg>法線、またはテクスチャ座標データが存在しなければ、対応する返値は nil になります。</seg>
2387+ </tuv>
2388+ </tu>
2389+ <tu>
2390+ <tuv lang="EN-US">
22572391 <seg>If there was an error parsing the JSON
22582392 then &lt;x1/&gt;nil&lt;x2/&gt; is returned and the error message is returned as
22592393 a second return value.</seg>
@@ -2378,6 +2512,15 @@ or feature requests to me at ian -at- ianmaclarty.com, or use the</seg>
23782512 </tu>
23792513 <tu>
23802514 <tuv lang="EN-US">
2515+ <seg>Instead you access a buffer
2516+through a &lt;x1/&gt;view&lt;x2/&gt;.</seg>
2517+ </tuv>
2518+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061256Z" creationid="isVowel" creationdate="20200617T060633Z">
2519+ <seg>バッファには &lt;x1/&gt;view&lt;x2/&gt; (ビュー) からアクセスします。</seg>
2520+ </tuv>
2521+ </tu>
2522+ <tu>
2523+ <tuv lang="EN-US">
23812524 <seg>Instead you need to construct a new
23822525 vector.</seg>
23832526 </tuv>
@@ -2420,6 +2563,14 @@ draw to the framebuffer.</seg>
24202563 </tu>
24212564 <tu>
24222565 <tuv lang="EN-US">
2566+ <seg>It loads a texture from the file &lt;x3/&gt;texture.png&lt;x4/&gt;.</seg>
2567+ </tuv>
2568+ <tuv lang="JA" changeid="isVowel" changedate="20200617T074606Z" creationid="isVowel" creationdate="20200617T074606Z">
2569+ <seg>&lt;x3/&gt;texture.png&lt;x4/&gt; ファイルからテクスチャをロードします。</seg>
2570+ </tuv>
2571+ </tu>
2572+ <tu>
2573+ <tuv lang="EN-US">
24232574 <seg>It provides a cross-platform API
24242575 for drawing graphics, playing audio and responding to user input, and a
24252576 command-line interpreter for running Amulet scripts.</seg>
@@ -2583,6 +2734,15 @@ a function that, when called, will run the script.</seg>
25832734 </tu>
25842735 <tu>
25852736 <tuv lang="EN-US">
2737+ <seg>Loads the given file and returns a buffer containing the
2738+file's data, or &lt;x1/&gt;nil&lt;x2/&gt; if the file wasn't found.</seg>
2739+ </tuv>
2740+ <tuv lang="JA" changeid="isVowel" changedate="20200617T072744Z" creationid="isVowel" creationdate="20200617T072744Z">
2741+ <seg>指定されたファイルのロードを行い、ファイルのデータがあるバッファを返します。ファイルがなければ &lt;x1/&gt;nil&lt;x2/&gt; を返します。</seg>
2742+ </tuv>
2743+ </tu>
2744+ <tu>
2745+ <tuv lang="EN-US">
25862746 <seg>Loads the given image file and returns a new image buffer.</seg>
25872747 </tuv>
25882748 <tuv lang="JA" changeid="isVowel" changedate="20200612T063142Z" creationid="isVowel" creationdate="20200612T063142Z">
@@ -2648,6 +2808,14 @@ it.</seg>
26482808 </tu>
26492809 <tu>
26502810 <tuv lang="EN-US">
2811+ <seg>MV = mat4(1),</seg>
2812+ </tuv>
2813+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111444Z" creationid="isVowel" creationdate="20200617T111444Z">
2814+ <seg>MV = mat4(1),</seg>
2815+ </tuv>
2816+ </tu>
2817+ <tu>
2818+ <tuv lang="EN-US">
26512819 <seg>Mac OS X</seg>
26522820 </tuv>
26532821 <tuv lang="JA" changeid="isVowel" changedate="20200609T035415Z" creationid="isVowel" creationdate="20200609T035415Z">
@@ -2688,6 +2856,14 @@ it.</seg>
26882856 </tu>
26892857 <tu>
26902858 <tuv lang="EN-US">
2859+ <seg>Methods:</seg>
2860+ </tuv>
2861+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061538Z" creationid="isVowel" creationdate="20200617T061538Z">
2862+ <seg>メソッド:</seg>
2863+ </tuv>
2864+ </tu>
2865+ <tu>
2866+ <tuv lang="EN-US">
26912867 <seg>Mouse</seg>
26922868 </tuv>
26932869 <tuv lang="JA" changeid="isVowel" changedate="20200604T204741Z" creationid="isVowel" creationdate="20200604T204741Z">
@@ -2739,6 +2915,17 @@ currently support this feature.</seg>
27392915 </tu>
27402916 <tu>
27412917 <tuv lang="EN-US">
2918+ <seg>Note that you don't need to call this method if
2919+you're not using &lt;x5/&gt;dataptr&lt;x6/&gt; to update the buffer, for example if you're updating
2920+it through a view - in that case the buffer will automatically be marked
2921+dirty.</seg>
2922+ </tuv>
2923+ <tuv lang="JA" changeid="isVowel" changedate="20200617T072519Z" creationid="isVowel" creationdate="20200617T072418Z">
2924+ <seg>注意点として、このメソッドはバッファの更新で &lt;x5/&gt;dataptr&lt;x6/&gt; を使わないならば呼び出し不要です。例えば、ビューから更新をする場合は自動的にバッファの汚染標識が付けられます。</seg>
2925+ </tuv>
2926+ </tu>
2927+ <tu>
2928+ <tuv lang="EN-US">
27422929 <seg>O = vec4(1, 0.5, 0, 1), -- full orange</seg>
27432930 </tuv>
27442931 <tuv lang="JA" changeid="isVowel" changedate="20200612T050130Z" creationid="isVowel" creationdate="20200612T050130Z">
@@ -2834,6 +3021,30 @@ are not supported anc cycles are not detected.</seg>
28343021 </tu>
28353022 <tu>
28363023 <tuv lang="EN-US">
3024+ <seg>Overview</seg>
3025+ </tuv>
3026+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111646Z" creationid="isVowel" creationdate="20200617T111646Z">
3027+ <seg>概要</seg>
3028+ </tuv>
3029+ </tu>
3030+ <tu>
3031+ <tuv lang="EN-US">
3032+ <seg>P = mat4(1),</seg>
3033+ </tuv>
3034+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111442Z" creationid="isVowel" creationdate="20200617T111442Z">
3035+ <seg>P = mat4(1),</seg>
3036+ </tuv>
3037+ </tu>
3038+ <tu>
3039+ <tuv lang="EN-US">
3040+ <seg>P = math.perspective(math.rad(60), win.width/win.height, 1, 1000),</seg>
3041+ </tuv>
3042+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073227Z" creationid="isVowel" creationdate="20200617T073227Z">
3043+ <seg>P = math.perspective(math.rad(60), win.width/win.height, 1, 1000),</seg>
3044+ </tuv>
3045+ </tu>
3046+ <tu>
3047+ <tuv lang="EN-US">
28373048 <seg>Passing a single number to a vector constructor will set all components
28383049 of the vector to that value.</seg>
28393050 </tuv>
@@ -2989,6 +3200,22 @@ another common use of 4 dimensional vectors.</seg>
29893200 </tu>
29903201 <tu>
29913202 <tuv lang="EN-US">
3203+ <seg>Returns a base64 encoding of a buffer as a string.</seg>
3204+ </tuv>
3205+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070827Z" creationid="isVowel" creationdate="20200617T070827Z">
3206+ <seg>バッファを Base64 エンコード文字列へ変換して返します。</seg>
3207+ </tuv>
3208+ </tu>
3209+ <tu>
3210+ <tuv lang="EN-US">
3211+ <seg>Returns a new buffer of the given size in bytes.</seg>
3212+ </tuv>
3213+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061652Z" creationid="isVowel" creationdate="20200617T061652Z">
3214+ <seg>指定されたバイト単位による size で新しいバッファを返します。</seg>
3215+ </tuv>
3216+ </tu>
3217+ <tu>
3218+ <tuv lang="EN-US">
29923219 <seg>Returns a raw buffer containing the png encoding of the given
29933220 image.</seg>
29943221 </tuv>
@@ -3134,8 +3361,8 @@ result as a Lua value.</seg>
31343361 <tuv lang="EN-US">
31353362 <seg>See &lt;x1/&gt;.</seg>
31363363 </tuv>
3137- <tuv lang="JA" changeid="isVowel" changedate="20200609T040728Z" creationid="isVowel" creationdate="20200609T040728Z">
3138- <seg>こちらをお読みください&lt;x1/&gt;。</seg>
3364+ <tuv lang="JA" changeid="isVowel" changedate="20200617T055618Z" creationid="isVowel" creationdate="20200609T040728Z">
3365+ <seg>こちらをお読みください: &lt;x1/&gt;</seg>
31393366 </tuv>
31403367 </tu>
31413368 <tu>
@@ -3315,6 +3542,14 @@ are converted to JSON arrays.</seg>
33153542 </tu>
33163543 <tu>
33173544 <tuv lang="EN-US">
3545+ <seg>The &lt;x1/&gt;#&lt;x2/&gt; operator can be used to retrieve the size of a buffer in bytes.</seg>
3546+ </tuv>
3547+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062046Z" creationid="isVowel" creationdate="20200617T062046Z">
3548+ <seg>&lt;x1/&gt;#&lt;x2/&gt; 演算子はバッファサイズをバイト単位で取得するために使えます。</seg>
3549+ </tuv>
3550+ </tu>
3551+ <tu>
3552+ <tuv lang="EN-US">
33183553 <seg>The &lt;x1/&gt;#&lt;x2/&gt; operator returns the length of an array and array indices start at 1 by
33193554 default.</seg>
33203555 </tuv>
@@ -3427,6 +3662,22 @@ as a series of single precision floats (4 bytes each).</seg>
34273662 </tu>
34283663 <tu>
34293664 <tuv lang="EN-US">
3665+ <seg>The buffer associated with the view.</seg>
3666+ </tuv>
3667+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070138Z" creationid="isVowel" creationdate="20200617T070138Z">
3668+ <seg>ビューと関連付けられたバッファ。</seg>
3669+ </tuv>
3670+ </tu>
3671+ <tu>
3672+ <tuv lang="EN-US">
3673+ <seg>The buffer's memory will be zeroed.</seg>
3674+ </tuv>
3675+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061923Z" creationid="isVowel" creationdate="20200617T061923Z">
3676+ <seg>バッファのメモリはゼロクリアされます。</seg>
3677+ </tuv>
3678+ </tu>
3679+ <tu>
3680+ <tuv lang="EN-US">
34303681 <seg>The code:</seg>
34313682 </tuv>
34323683 <tuv lang="JA" changeid="isVowel" changedate="20200610T052441Z" creationid="isVowel" creationdate="20200610T052441Z">
@@ -3460,6 +3711,14 @@ as a series of single precision floats (4 bytes each).</seg>
34603711 </tu>
34613712 <tu>
34623713 <tuv lang="EN-US">
3714+ <seg>The default is 0.</seg>
3715+ </tuv>
3716+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065251Z" creationid="isVowel" creationdate="20200617T065251Z">
3717+ <seg>デフォルトは 0 です。</seg>
3718+ </tuv>
3719+ </tu>
3720+ <tu>
3721+ <tuv lang="EN-US">
34633722 <seg>The default is &lt;x7/&gt;lua&lt;x8/&gt;.</seg>
34643723 </tuv>
34653724 <tuv lang="JA" changeid="isVowel" changedate="20200610T171105Z" creationid="isVowel" creationdate="20200610T171105Z">
@@ -3468,6 +3727,22 @@ as a series of single precision floats (4 bytes each).</seg>
34683727 </tu>
34693728 <tu>
34703729 <tuv lang="EN-US">
3730+ <seg>The default is &lt;x9/&gt;"static"&lt;x10/&gt;.</seg>
3731+ </tuv>
3732+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062139Z" creationid="isVowel" creationdate="20200617T062139Z">
3733+ <seg>デフォルトは &lt;x9/&gt;"static"&lt;x10/&gt; です。</seg>
3734+ </tuv>
3735+ </tu>
3736+ <tu>
3737+ <tuv lang="EN-US">
3738+ <seg>The default value for &lt;x3/&gt;start&lt;x4/&gt; is &lt;x5/&gt;1&lt;x6/&gt;.</seg>
3739+ </tuv>
3740+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070456Z" creationid="isVowel" creationdate="20200617T070456Z">
3741+ <seg>&lt;x3/&gt;start&lt;x4/&gt; のデフォルト値は &lt;x5/&gt;1&lt;x6/&gt; です。</seg>
3742+ </tuv>
3743+ </tu>
3744+ <tu>
3745+ <tuv lang="EN-US">
34713746 <seg>The else part of an if-then-else executes
34723747 only if the condition evaluates to &lt;x1/&gt;false&lt;x2/&gt; or &lt;x3/&gt;nil&lt;x4/&gt;.</seg>
34733748 </tuv>
@@ -3477,6 +3752,25 @@ only if the condition evaluates to &lt;x1/&gt;false&lt;x2/&gt; or &lt;x3/&gt;nil
34773752 </tu>
34783753 <tu>
34793754 <tuv lang="EN-US">
3755+ <seg>The example
3756+loads an model from &lt;x1/&gt;model.obj&lt;x2/&gt; and assumes it contains normal
3757+and texture coordinate data and the triangles have a counter-clockwise
3758+winding.</seg>
3759+ </tuv>
3760+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111127Z" creationid="isVowel" creationdate="20200617T083057Z">
3761+ <seg>この用例において &lt;x1/&gt;model.obj&lt;x2/&gt; からロードしたモデルには法線とテクスチャ座標データがあり、三角形は反時計回りに回旋するものと想定します。</seg>
3762+ </tuv>
3763+ </tu>
3764+ <tu>
3765+ <tuv lang="EN-US">
3766+ <seg>The faces in the &lt;x1/&gt;.obj&lt;x2/&gt; file must all be triangles (quads aren't supported).</seg>
3767+ </tuv>
3768+ <tuv lang="JA" changeid="isVowel" changedate="20200617T080529Z" creationid="isVowel" creationdate="20200617T080529Z">
3769+ <seg>&lt;x1/&gt;.obj&lt;x2/&gt; ファイルの全面は必ず三角形になります (四辺形はサポートされていません)。</seg>
3770+ </tuv>
3771+ </tu>
3772+ <tu>
3773+ <tuv lang="EN-US">
34803774 <seg>The file must be a &lt;x1/&gt;.ogg&lt;x2/&gt; audio file.</seg>
34813775 </tuv>
34823776 <tuv lang="JA" changeid="isVowel" changedate="20200616T012414Z" creationid="isVowel" creationdate="20200616T012414Z">
@@ -3587,6 +3881,22 @@ in an overlay on the main window.</seg>
35873881 </tu>
35883882 <tu>
35893883 <tuv lang="EN-US">
3884+ <seg>The offset of the normals in bytes.</seg>
3885+ </tuv>
3886+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075529Z" creationid="isVowel" creationdate="20200617T075529Z">
3887+ <seg>バイト単位による法線のオフセット。</seg>
3888+ </tuv>
3889+ </tu>
3890+ <tu>
3891+ <tuv lang="EN-US">
3892+ <seg>The offset of the texture coordinates in bytes.</seg>
3893+ </tuv>
3894+ <tuv lang="JA" changeid="isVowel" changedate="20200617T074951Z" creationid="isVowel" creationdate="20200617T074951Z">
3895+ <seg>バイト単位によるテクスチャ座標のオフセット。</seg>
3896+ </tuv>
3897+ </tu>
3898+ <tu>
3899+ <tuv lang="EN-US">
35903900 <seg>The platform Amulet is running on.</seg>
35913901 </tuv>
35923902 <tuv lang="JA" changeid="isVowel" changedate="20200604T173546Z" creationid="isVowel" creationdate="20200604T173546Z">
@@ -3662,6 +3972,14 @@ on Windows (you don't need to use &lt;x3/&gt;\&lt;x4/&gt;).</seg>
36623972 </tu>
36633973 <tu>
36643974 <tuv lang="EN-US">
3975+ <seg>The stride in bytes.</seg>
3976+ </tuv>
3977+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075624Z" creationid="isVowel" creationdate="20200617T075624Z">
3978+ <seg>バイト単位によるストライド (刻み幅)。</seg>
3979+ </tuv>
3980+ </tu>
3981+ <tu>
3982+ <tuv lang="EN-US">
36653983 <seg>The string concatenation operator is two dots (e.g. &lt;x1/&gt;"abc".."def"&lt;x2/&gt;).</seg>
36663984 </tuv>
36673985 <tuv lang="JA" changeid="isVowel" changedate="20200605T015714Z" creationid="isVowel" creationdate="20200605T015714Z">
@@ -3712,6 +4030,14 @@ and Lua-5.1 on all other platforms.</seg>
37124030 </tu>
37134031 <tu>
37144032 <tuv lang="EN-US">
4033+ <seg>The vertex data is always at offset 0.</seg>
4034+ </tuv>
4035+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075034Z" creationid="isVowel" creationdate="20200617T075034Z">
4036+ <seg>バーテックス・データのオフセットは必ず 0 になります。</seg>
4037+ </tuv>
4038+ </tu>
4039+ <tu>
4040+ <tuv lang="EN-US">
37154041 <seg>The width of the framebuffer, in pixels.</seg>
37164042 </tuv>
37174043 <tuv lang="JA" changeid="isVowel" changedate="20200612T055231Z" creationid="isVowel" creationdate="20200612T055231Z">
@@ -3746,8 +4072,8 @@ and Lua-5.1 on all other platforms.</seg>
37464072 <tuv lang="EN-US">
37474073 <seg>These are available from &lt;x1/&gt;.</seg>
37484074 </tuv>
3749- <tuv lang="JA" changeid="isVowel" changedate="20200609T040745Z" creationid="isVowel" creationdate="20200609T040706Z">
3750- <seg>こちらでダウンロードしてください&lt;x1/&gt;。</seg>
4075+ <tuv lang="JA" changeid="isVowel" changedate="20200617T055615Z" creationid="isVowel" creationdate="20200609T040706Z">
4076+ <seg>こちらでダウンロードしてください: &lt;x1/&gt;</seg>
37514077 </tuv>
37524078 </tu>
37534079 <tu>
@@ -3771,6 +4097,15 @@ to HTML from the desktop version.</seg>
37714097 </tu>
37724098 <tu>
37734099 <tuv lang="EN-US">
4100+ <seg>They are used for storing images,
4101+audio and vertex data, or anything else you like.</seg>
4102+ </tuv>
4103+ <tuv lang="JA" changeid="isVowel" changedate="20200617T060358Z" creationid="isVowel" creationdate="20200617T060358Z">
4104+ <seg>バッファはイメージ、オーディオとバーテックス・データ、またはそれ以外のものなどを記録するために使われます。</seg>
4105+ </tuv>
4106+ </tu>
4107+ <tu>
4108+ <tuv lang="EN-US">
37744109 <seg>They can be used as key-value maps or arrays.</seg>
37754110 </tuv>
37764111 <tuv lang="JA" changeid="isVowel" changedate="20200605T020941Z" creationid="isVowel" creationdate="20200605T020941Z">
@@ -3848,6 +4183,14 @@ shader language supported by WebGL 1.</seg>
38484183 </tu>
38494184 <tu>
38504185 <tuv lang="EN-US">
4186+ <seg>This loads the given &lt;x1/&gt;.obj&lt;x2/&gt; file and returns 4 things:</seg>
4187+ </tuv>
4188+ <tuv lang="JA" changeid="isVowel" changedate="20200617T080044Z" creationid="isVowel" creationdate="20200617T080044Z">
4189+ <seg>これで指定された &lt;x1/&gt;.obj&lt;x2/&gt; ファイルのロードと値を4種返します。</seg>
4190+ </tuv>
4191+ </tu>
4192+ <tu>
4193+ <tuv lang="EN-US">
38514194 <seg>This means that once you create a
38524195 vector, its value cannot be changed.</seg>
38534196 </tuv>
@@ -3874,6 +4217,25 @@ Game Center functions.</seg>
38744217 </tu>
38754218 <tu>
38764219 <tuv lang="EN-US">
4220+ <seg>This should be called if you
4221+update the buffer using the &lt;x3/&gt;dataptr&lt;x4/&gt; field.</seg>
4222+ </tuv>
4223+ <tuv lang="JA" changeid="isVowel" changedate="20200617T071450Z" creationid="isVowel" creationdate="20200617T071450Z">
4224+ <seg>これは &lt;x3/&gt;dataptr&lt;x4/&gt; フィールドでバッファを更新する場合は必ず呼び出してください。</seg>
4225+ </tuv>
4226+ </tu>
4227+ <tu>
4228+ <tuv lang="EN-US">
4229+ <seg>This will cause
4230+data to be copied to any textures or vbos that depend on the buffer
4231+when next they are drawn.</seg>
4232+ </tuv>
4233+ <tuv lang="JA" changeid="isVowel" changedate="20200617T071854Z" creationid="isVowel" creationdate="20200617T071854Z">
4234+ <seg>これは次回描画時に、バッファ依存のテクスチャ、または vbos のデータをコピーします。</seg>
4235+ </tuv>
4236+ </tu>
4237+ <tu>
4238+ <tuv lang="EN-US">
38774239 <seg>This will generate zip package files for Windows, Mac and Linux in the
38784240 current directory.</seg>
38794241 </tuv>
@@ -3891,6 +4253,14 @@ current directory.</seg>
38914253 </tu>
38924254 <tu>
38934255 <tuv lang="EN-US">
4256+ <seg>To close a window call its window:close method.</seg>
4257+ </tuv>
4258+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112732Z" creationid="isVowel" creationdate="20200617T112732Z">
4259+ <seg>ウィンドウを閉じるには window:close メソッドを呼び出します。</seg>
4260+ </tuv>
4261+ </tu>
4262+ <tu>
4263+ <tuv lang="EN-US">
38944264 <seg>To construct a vector use one of the functions &lt;x1/&gt;vec2&lt;x2/&gt;, &lt;x3/&gt;vec3&lt;x4/&gt; or &lt;x5/&gt;vec4&lt;x6/&gt;.</seg>
38954265 </tuv>
38964266 <tuv lang="JA" changeid="isVowel" changedate="20200612T061227Z" creationid="isVowel" creationdate="20200612T061227Z">
@@ -3899,6 +4269,14 @@ current directory.</seg>
38994269 </tu>
39004270 <tu>
39014271 <tuv lang="EN-US">
4272+ <seg>To create a window use the &lt;x1/&gt;am.window&lt;x2/&gt; function.</seg>
4273+ </tuv>
4274+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111424Z" creationid="isVowel" creationdate="20200617T111424Z">
4275+ <seg>ウィンドウを作成するには &lt;x1/&gt;am.window&lt;x2/&gt; 関数を使います。</seg>
4276+ </tuv>
4277+ </tu>
4278+ <tu>
4279+ <tuv lang="EN-US">
39024280 <seg>To generate distribution packages, use the amulet export command like so:</seg>
39034281 </tuv>
39044282 <tuv lang="JA" changeid="isVowel" changedate="20200610T123912Z" creationid="isVowel" creationdate="20200610T123906Z">
@@ -3966,6 +4344,38 @@ velocity in 2 or 3 dimensional space.</seg>
39664344 </tu>
39674345 <tu>
39684346 <tuv lang="EN-US">
4347+ <seg>View fields</seg>
4348+ </tuv>
4349+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061451Z" creationid="isVowel" creationdate="20200617T061451Z">
4350+ <seg>View フィールド</seg>
4351+ </tuv>
4352+ </tu>
4353+ <tu>
4354+ <tuv lang="EN-US">
4355+ <seg>View methods</seg>
4356+ </tuv>
4357+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061438Z" creationid="isVowel" creationdate="20200617T061438Z">
4358+ <seg>View メソッド</seg>
4359+ </tuv>
4360+ </tu>
4361+ <tu>
4362+ <tuv lang="EN-US">
4363+ <seg>Views</seg>
4364+ </tuv>
4365+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061525Z" creationid="isVowel" creationdate="20200617T061525Z">
4366+ <seg>ビュー</seg>
4367+ </tuv>
4368+ </tu>
4369+ <tu>
4370+ <tuv lang="EN-US">
4371+ <seg>Views provide a typed array-like interface to the buffer.</seg>
4372+ </tuv>
4373+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061319Z" creationid="isVowel" creationdate="20200617T061032Z">
4374+ <seg>ビューではバッファへ配列風のインターフェース型が使えます。</seg>
4375+ </tuv>
4376+ </tu>
4377+ <tu>
4378+ <tuv lang="EN-US">
39694379 <seg>W = vec4(1, 1, 1, 1), -- full white</seg>
39704380 </tuv>
39714381 <tuv lang="JA" changeid="isVowel" changedate="20200612T045331Z" creationid="isVowel" creationdate="20200612T045331Z">
@@ -4104,6 +4514,14 @@ table with all of the following fields:</seg>
41044514 </tu>
41054515 <tu>
41064516 <tuv lang="EN-US">
4517+ <seg>You can't access a buffer's memory directly.</seg>
4518+ </tuv>
4519+ <tuv lang="JA" changeid="isVowel" changedate="20200617T060527Z" creationid="isVowel" creationdate="20200617T060527Z">
4520+ <seg>直接的にはバッファのメモリへアクセスすることはできません。</seg>
4521+ </tuv>
4522+ </tu>
4523+ <tu>
4524+ <tuv lang="EN-US">
41074525 <seg>You will need to create your own version of msys.bat with something
41084526 like the following at the top:</seg>
41094527 </tuv>
@@ -4132,58 +4550,154 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
41324550 </tu>
41334551 <tu>
41344552 <tuv lang="EN-US">
4135- <seg>am.ascii_color_map = {</seg>
4553+ <seg>^ am.bind{</seg>
41364554 </tuv>
4137- <tuv lang="JA" changeid="isVowel" changedate="20200612T053451Z" creationid="isVowel" creationdate="20200612T053451Z">
4138- <seg>am.ascii_color_map = {</seg>
4555+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073225Z" creationid="isVowel" creationdate="20200617T073225Z">
4556+ <seg>^ am.bind{</seg>
41394557 </tuv>
41404558 </tu>
41414559 <tu>
41424560 <tuv lang="EN-US">
4143- <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
4561+ <seg>^ am.draw("triangles")</seg>
41444562 </tuv>
4145- <tuv lang="JA" changeid="isVowel" changedate="20200616T012736Z" creationid="isVowel" creationdate="20200616T012736Z">
4146- <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
4563+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111457Z" creationid="isVowel" creationdate="20200617T111457Z">
4564+ <seg>^ am.draw("triangles")</seg>
41474565 </tuv>
41484566 </tu>
41494567 <tu>
41504568 <tuv lang="EN-US">
4151- <seg>am.current_time() {#am.current_time .func-def}</seg>
4569+ <seg>^ am.translate(0, 0, -5)</seg>
41524570 </tuv>
4153- <tuv lang="JA" changeid="isVowel" changedate="20200604T204259Z" creationid="isVowel" creationdate="20200604T204259Z">
4154- <seg>am.current_time() {#am.current_time .func-def}</seg>
4571+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073222Z" creationid="isVowel" creationdate="20200617T073222Z">
4572+ <seg>^ am.translate(0, 0, -5)</seg>
41554573 </tuv>
41564574 </tu>
41574575 <tu>
41584576 <tuv lang="EN-US">
4159- <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4577+ <seg>^ am.use_program(shader)</seg>
41604578 </tuv>
4161- <tuv lang="JA" changeid="isVowel" changedate="20200612T071218Z" creationid="isVowel" creationdate="20200612T071218Z">
4162- <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4579+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073223Z" creationid="isVowel" creationdate="20200617T073223Z">
4580+ <seg>^ am.use_program(shader)</seg>
41634581 </tuv>
41644582 </tu>
41654583 <tu>
41664584 <tuv lang="EN-US">
4167- <seg>am.delta_time {#am.delta_time .field-def}</seg>
4585+ <seg>^am.draw"triangles"</seg>
41684586 </tuv>
4169- <tuv lang="JA" changeid="isVowel" changedate="20200604T204255Z" creationid="isVowel" creationdate="20200604T204255Z">
4170- <seg>am.delta_time {#am.delta_time .field-def}</seg>
4587+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073244Z" creationid="isVowel" creationdate="20200617T073244Z">
4588+ <seg>^am.draw"triangles"</seg>
41714589 </tuv>
41724590 </tu>
41734591 <tu>
41744592 <tuv lang="EN-US">
4175- <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4593+ <seg>am.ascii_color_map = {</seg>
41764594 </tuv>
4177- <tuv lang="JA" changeid="isVowel" changedate="20200612T071236Z" creationid="isVowel" creationdate="20200612T071236Z">
4178- <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4595+ <tuv lang="JA" changeid="isVowel" changedate="20200612T053451Z" creationid="isVowel" creationdate="20200612T053451Z">
4596+ <seg>am.ascii_color_map = {</seg>
41794597 </tuv>
41804598 </tu>
41814599 <tu>
41824600 <tuv lang="EN-US">
4183- <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4601+ <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
41844602 </tuv>
4185- <tuv lang="JA" changeid="isVowel" changedate="20200604T173314Z" creationid="isVowel" creationdate="20200604T173314Z">
4186- <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4603+ <tuv lang="JA" changeid="isVowel" changedate="20200616T012736Z" creationid="isVowel" creationdate="20200616T012736Z">
4604+ <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
4605+ </tuv>
4606+ </tu>
4607+ <tu>
4608+ <tuv lang="EN-US">
4609+ <seg>am.base64_decode(string) {#am.base64_decode .func-def}</seg>
4610+ </tuv>
4611+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070520Z" creationid="isVowel" creationdate="20200617T070520Z">
4612+ <seg>am.base64_decode(string) {#am.base64_decode .func-def}</seg>
4613+ </tuv>
4614+ </tu>
4615+ <tu>
4616+ <tuv lang="EN-US">
4617+ <seg>am.base64_encode(buffer) {#am.base64_encode .func-def}</seg>
4618+ </tuv>
4619+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070522Z" creationid="isVowel" creationdate="20200617T070522Z">
4620+ <seg>am.base64_encode(buffer) {#am.base64_encode .func-def}</seg>
4621+ </tuv>
4622+ </tu>
4623+ <tu>
4624+ <tuv lang="EN-US">
4625+ <seg>am.buffer(size) {#am.buffer .func-def}</seg>
4626+ </tuv>
4627+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061545Z" creationid="isVowel" creationdate="20200617T061545Z">
4628+ <seg>am.buffer(size) {#am.buffer .func-def}</seg>
4629+ </tuv>
4630+ </tu>
4631+ <tu>
4632+ <tuv lang="EN-US">
4633+ <seg>am.byte_array(table) {#am.byte_array .func-def}</seg>
4634+ </tuv>
4635+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065600Z" creationid="isVowel" creationdate="20200617T065600Z">
4636+ <seg>am.byte_array(table) {#am.byte_array .func-def}</seg>
4637+ </tuv>
4638+ </tu>
4639+ <tu>
4640+ <tuv lang="EN-US">
4641+ <seg>am.byte_norm_array(table) {#am.byte_norm_array .func-def}</seg>
4642+ </tuv>
4643+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065556Z" creationid="isVowel" creationdate="20200617T065556Z">
4644+ <seg>am.byte_norm_array(table) {#am.byte_norm_array .func-def}</seg>
4645+ </tuv>
4646+ </tu>
4647+ <tu>
4648+ <tuv lang="EN-US">
4649+ <seg>am.cull_face"ccw"</seg>
4650+ </tuv>
4651+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073220Z" creationid="isVowel" creationdate="20200617T073220Z">
4652+ <seg>am.cull_face"ccw"</seg>
4653+ </tuv>
4654+ </tu>
4655+ <tu>
4656+ <tuv lang="EN-US">
4657+ <seg>am.current_time() {#am.current_time .func-def}</seg>
4658+ </tuv>
4659+ <tuv lang="JA" changeid="isVowel" changedate="20200604T204259Z" creationid="isVowel" creationdate="20200604T204259Z">
4660+ <seg>am.current_time() {#am.current_time .func-def}</seg>
4661+ </tuv>
4662+ </tu>
4663+ <tu>
4664+ <tuv lang="EN-US">
4665+ <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4666+ </tuv>
4667+ <tuv lang="JA" changeid="isVowel" changedate="20200612T071218Z" creationid="isVowel" creationdate="20200612T071218Z">
4668+ <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4669+ </tuv>
4670+ </tu>
4671+ <tu>
4672+ <tuv lang="EN-US">
4673+ <seg>am.delta_time {#am.delta_time .field-def}</seg>
4674+ </tuv>
4675+ <tuv lang="JA" changeid="isVowel" changedate="20200604T204255Z" creationid="isVowel" creationdate="20200604T204255Z">
4676+ <seg>am.delta_time {#am.delta_time .field-def}</seg>
4677+ </tuv>
4678+ </tu>
4679+ <tu>
4680+ <tuv lang="EN-US">
4681+ <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4682+ </tuv>
4683+ <tuv lang="JA" changeid="isVowel" changedate="20200612T071236Z" creationid="isVowel" creationdate="20200612T071236Z">
4684+ <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4685+ </tuv>
4686+ </tu>
4687+ <tu>
4688+ <tuv lang="EN-US">
4689+ <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4690+ </tuv>
4691+ <tuv lang="JA" changeid="isVowel" changedate="20200604T173314Z" creationid="isVowel" creationdate="20200604T173314Z">
4692+ <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4693+ </tuv>
4694+ </tu>
4695+ <tu>
4696+ <tuv lang="EN-US">
4697+ <seg>am.float_array(table) {#am.float_array .func-def}</seg>
4698+ </tuv>
4699+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065602Z" creationid="isVowel" creationdate="20200617T065602Z">
4700+ <seg>am.float_array(table) {#am.float_array .func-def}</seg>
41874701 </tuv>
41884702 </tu>
41894703 <tu>
@@ -4260,6 +4774,22 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
42604774 </tu>
42614775 <tu>
42624776 <tuv lang="EN-US">
4777+ <seg>am.int_array(table) {#am.int_array .func-def}</seg>
4778+ </tuv>
4779+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065543Z" creationid="isVowel" creationdate="20200617T065543Z">
4780+ <seg>am.int_array(table) {#am.int_array .func-def}</seg>
4781+ </tuv>
4782+ </tu>
4783+ <tu>
4784+ <tuv lang="EN-US">
4785+ <seg>am.int_norm_array(table) {#am.int_norm_array .func-def}</seg>
4786+ </tuv>
4787+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065538Z" creationid="isVowel" creationdate="20200617T065538Z">
4788+ <seg>am.int_norm_array(table) {#am.int_norm_array .func-def}</seg>
4789+ </tuv>
4790+ </tu>
4791+ <tu>
4792+ <tuv lang="EN-US">
42634793 <seg>am.language() {#am.language .func-def}</seg>
42644794 </tuv>
42654795 <tuv lang="JA" changeid="isVowel" changedate="20200604T173342Z" creationid="isVowel" creationdate="20200604T173342Z">
@@ -4276,6 +4806,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
42764806 </tu>
42774807 <tu>
42784808 <tuv lang="EN-US">
4809+ <seg>am.load_buffer(filename) {#am.load_buffer .func-def}</seg>
4810+ </tuv>
4811+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070525Z" creationid="isVowel" creationdate="20200617T070525Z">
4812+ <seg>am.load_buffer(filename) {#am.load_buffer .func-def}</seg>
4813+ </tuv>
4814+ </tu>
4815+ <tu>
4816+ <tuv lang="EN-US">
42794817 <seg>am.load_image(filename) {#am.load_image .func-def}</seg>
42804818 </tuv>
42814819 <tuv lang="JA" changeid="isVowel" changedate="20200604T204601Z" creationid="isVowel" creationdate="20200604T204601Z">
@@ -4284,6 +4822,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
42844822 </tu>
42854823 <tu>
42864824 <tuv lang="EN-US">
4825+ <seg>am.load_obj(filename) {#am.load_obj .func-def}</seg>
4826+ </tuv>
4827+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073831Z" creationid="isVowel" creationdate="20200617T073831Z">
4828+ <seg>am.load_obj(filename) {#am.load_obj .func-def}</seg>
4829+ </tuv>
4830+ </tu>
4831+ <tu>
4832+ <tuv lang="EN-US">
42874833 <seg>am.load_script(filename) {#am.load_script .func-def}</seg>
42884834 </tuv>
42894835 <tuv lang="JA" changeid="isVowel" changedate="20200604T181133Z" creationid="isVowel" creationdate="20200604T181133Z">
@@ -4388,6 +4934,22 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
43884934 </tu>
43894935 <tu>
43904936 <tuv lang="EN-US">
4937+ <seg>am.short_array(table) {#am.short_array .func-def}</seg>
4938+ </tuv>
4939+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065551Z" creationid="isVowel" creationdate="20200617T065551Z">
4940+ <seg>am.short_array(table) {#am.short_array .func-def}</seg>
4941+ </tuv>
4942+ </tu>
4943+ <tu>
4944+ <tuv lang="EN-US">
4945+ <seg>am.short_norm_array(table) {#am.short_norm_array .func-def}</seg>
4946+ </tuv>
4947+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065547Z" creationid="isVowel" creationdate="20200617T065547Z">
4948+ <seg>am.short_norm_array(table) {#am.short_norm_array .func-def}</seg>
4949+ </tuv>
4950+ </tu>
4951+ <tu>
4952+ <tuv lang="EN-US">
43914953 <seg>am.show_gamecenter_leaderboard(leaderboard_id)</seg>
43924954 </tuv>
43934955 <tuv lang="JA" changeid="isVowel" changedate="20200602T154030Z" creationid="isVowel" creationdate="20200602T154030Z">
@@ -4412,6 +4974,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
44124974 </tu>
44134975 <tu>
44144976 <tuv lang="EN-US">
4977+ <seg>am.struct_array(size, spec) {#am.struct_array .func-def}</seg>
4978+ </tuv>
4979+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065515Z" creationid="isVowel" creationdate="20200617T065515Z">
4980+ <seg>am.struct_array(size, spec) {#am.struct_array .func-def}</seg>
4981+ </tuv>
4982+ </tu>
4983+ <tu>
4984+ <tuv lang="EN-US">
44154985 <seg>am.submit_gamecenter_achievement(achievment_id)</seg>
44164986 </tuv>
44174987 <tuv lang="JA" changeid="isVowel" changedate="20200607T043715Z" creationid="isVowel" creationdate="20200607T043715Z">
@@ -4492,6 +5062,102 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
44925062 </tu>
44935063 <tu>
44945064 <tuv lang="EN-US">
5065+ <seg>am.ubyte_array(table) {#am.ubyte_array .func-def}</seg>
5066+ </tuv>
5067+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065558Z" creationid="isVowel" creationdate="20200617T065558Z">
5068+ <seg>am.ubyte_array(table) {#am.ubyte_array .func-def}</seg>
5069+ </tuv>
5070+ </tu>
5071+ <tu>
5072+ <tuv lang="EN-US">
5073+ <seg>am.ubyte_norm_array(table) {#am.ubyte_norm_array .func-def}</seg>
5074+ </tuv>
5075+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065554Z" creationid="isVowel" creationdate="20200617T065554Z">
5076+ <seg>am.ubyte_norm_array(table) {#am.ubyte_norm_array .func-def}</seg>
5077+ </tuv>
5078+ </tu>
5079+ <tu>
5080+ <tuv lang="EN-US">
5081+ <seg>am.uint_array(table) {#am.uint_array .func-def}</seg>
5082+ </tuv>
5083+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065541Z" creationid="isVowel" creationdate="20200617T065541Z">
5084+ <seg>am.uint_array(table) {#am.uint_array .func-def}</seg>
5085+ </tuv>
5086+ </tu>
5087+ <tu>
5088+ <tuv lang="EN-US">
5089+ <seg>am.uint_elem_array(table) {#am.uint_elem_array .func-def}</seg>
5090+ </tuv>
5091+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065531Z" creationid="isVowel" creationdate="20200617T065531Z">
5092+ <seg>am.uint_elem_array(table) {#am.uint_elem_array .func-def}</seg>
5093+ </tuv>
5094+ </tu>
5095+ <tu>
5096+ <tuv lang="EN-US">
5097+ <seg>am.uint_norm_array(table) {#am.uint_norm_array .func-def}</seg>
5098+ </tuv>
5099+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065536Z" creationid="isVowel" creationdate="20200617T065536Z">
5100+ <seg>am.uint_norm_array(table) {#am.uint_norm_array .func-def}</seg>
5101+ </tuv>
5102+ </tu>
5103+ <tu>
5104+ <tuv lang="EN-US">
5105+ <seg>am.use_program(am.shaders.colors2d)</seg>
5106+ </tuv>
5107+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111439Z" creationid="isVowel" creationdate="20200617T111439Z">
5108+ <seg>am.use_program(am.shaders.colors2d)</seg>
5109+ </tuv>
5110+ </tu>
5111+ <tu>
5112+ <tuv lang="EN-US">
5113+ <seg>am.ushort_array(table) {#am.ushort_array .func-def}</seg>
5114+ </tuv>
5115+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065549Z" creationid="isVowel" creationdate="20200617T065549Z">
5116+ <seg>am.ushort_array(table) {#am.ushort_array .func-def}</seg>
5117+ </tuv>
5118+ </tu>
5119+ <tu>
5120+ <tuv lang="EN-US">
5121+ <seg>am.ushort_elem_array(table) {#am.ushort_elem_array .func-def}</seg>
5122+ </tuv>
5123+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065534Z" creationid="isVowel" creationdate="20200617T065534Z">
5124+ <seg>am.ushort_elem_array(table) {#am.ushort_elem_array .func-def}</seg>
5125+ </tuv>
5126+ </tu>
5127+ <tu>
5128+ <tuv lang="EN-US">
5129+ <seg>am.ushort_norm_array(table) {#am.ushort_norm_array .func-def}</seg>
5130+ </tuv>
5131+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065545Z" creationid="isVowel" creationdate="20200617T065545Z">
5132+ <seg>am.ushort_norm_array(table) {#am.ushort_norm_array .func-def}</seg>
5133+ </tuv>
5134+ </tu>
5135+ <tu>
5136+ <tuv lang="EN-US">
5137+ <seg>am.vec2_array(table) {#am.vec2_array .func-def}</seg>
5138+ </tuv>
5139+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065528Z" creationid="isVowel" creationdate="20200617T065528Z">
5140+ <seg>am.vec2_array(table) {#am.vec2_array .func-def}</seg>
5141+ </tuv>
5142+ </tu>
5143+ <tu>
5144+ <tuv lang="EN-US">
5145+ <seg>am.vec3_array(table) {#am.vec3_array .func-def}</seg>
5146+ </tuv>
5147+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065525Z" creationid="isVowel" creationdate="20200617T065525Z">
5148+ <seg>am.vec3_array(table) {#am.vec3_array .func-def}</seg>
5149+ </tuv>
5150+ </tu>
5151+ <tu>
5152+ <tuv lang="EN-US">
5153+ <seg>am.vec4_array(table) {#am.vec4_array .func-def}</seg>
5154+ </tuv>
5155+ <tuv lang="JA" changeid="isVowel" changedate="20200617T072816Z" creationid="isVowel" creationdate="20200617T072816Z">
5156+ <seg>am.vec4_array(table) {#am.vec4_array .func-def}</seg>
5157+ </tuv>
5158+ </tu>
5159+ <tu>
5160+ <tuv lang="EN-US">
44955161 <seg>am.version</seg>
44965162 </tuv>
44975163 <tuv lang="JA" changeid="isVowel" changedate="20200602T154813Z" creationid="isVowel" creationdate="20200602T154813Z">
@@ -4532,6 +5198,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
45325198 </tu>
45335199 <tu>
45345200 <tuv lang="EN-US">
5201+ <seg>am.window{}.root =</seg>
5202+ </tuv>
5203+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111437Z" creationid="isVowel" creationdate="20200617T111437Z">
5204+ <seg>am.window{}.root =</seg>
5205+ </tuv>
5206+ </tu>
5207+ <tu>
5208+ <tuv lang="EN-US">
45355209 <seg>am.window{}.scene =</seg>
45365210 </tuv>
45375211 <tuv lang="JA" changeid="isVowel" changedate="20200608T173349Z" creationid="isVowel" creationdate="20200608T173349Z">
@@ -4636,6 +5310,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
46365310 </tu>
46375311 <tu>
46385312 <tuv lang="EN-US">
5313+ <seg>buffer:view(type [, offset [, stride &lt;x1/&gt;, count&lt;x2/&gt;]]) {#buffer:view .func-def}</seg>
5314+ </tuv>
5315+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065235Z" creationid="isVowel" creationdate="20200617T065235Z">
5316+ <seg>buffer:view(type [, offset [, stride &lt;x1/&gt;, count&lt;x2/&gt;]]) {#buffer:view .func-def}</seg>
5317+ </tuv>
5318+ </tu>
5319+ <tu>
5320+ <tuv lang="EN-US">
46395321 <seg>but you can modify it as you please (though this must be
46405322 done before creating a sprite).</seg>
46415323 </tuv>
@@ -4661,6 +5343,14 @@ done before creating a sprite).</seg>
46615343 </tu>
46625344 <tu>
46635345 <tuv lang="EN-US">
5346+ <seg>color = am.vec4_array{vec4(1, 0, 0, 1), vec4(0, 1, 0, 1), vec4(0, 0, 1, 1)},</seg>
5347+ </tuv>
5348+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111455Z" creationid="isVowel" creationdate="20200617T111455Z">
5349+ <seg>color = am.vec4_array{vec4(1, 0, 0, 1), vec4(0, 1, 0, 1), vec4(0, 0, 1, 1)},</seg>
5350+ </tuv>
5351+ </tu>
5352+ <tu>
5353+ <tuv lang="EN-US">
46645354 <seg>color = vec4(0, 1, 0, 1),</seg>
46655355 </tuv>
46665356 <tuv lang="JA" changeid="isVowel" changedate="20200608T173403Z" creationid="isVowel" creationdate="20200608T173403Z">
@@ -4887,6 +5577,22 @@ print(factorial(3)) -- 結果は 6</seg>
48875577 </tu>
48885578 <tu>
48895579 <tuv lang="EN-US">
5580+ <seg>gl_FragColor = texture2D(tex, v_uv) * vec4(v_shadow, 1.0);
5581+}
5582+]])
5583+
5584+win.scene =</seg>
5585+ </tuv>
5586+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073218Z" creationid="isVowel" creationdate="20200617T073218Z">
5587+ <seg>gl_FragColor = texture2D(tex, v_uv) * vec4(v_shadow, 1.0);
5588+}
5589+]])
5590+
5591+win.scene =</seg>
5592+ </tuv>
5593+ </tu>
5594+ <tu>
5595+ <tuv lang="EN-US">
48905596 <seg>gl_FragColor = vec4(1.0, 0, 0.5, 1.0);</seg>
48915597 </tuv>
48925598 <tuv lang="JA" changeid="isVowel" changedate="20200607T051340Z" creationid="isVowel" creationdate="20200607T051340Z">
@@ -4919,6 +5625,38 @@ print(factorial(3)) -- 結果は 6</seg>
49195625 </tu>
49205626 <tu>
49215627 <tuv lang="EN-US">
5628+ <seg>gl_Position = P * MV * vec4(vert, 1.0);
5629+}
5630+]], [[
5631+precision mediump float;
5632+uniform sampler2D tex;
5633+varying vec3 v_shadow;
5634+varying vec2 v_uv;
5635+void main() {</seg>
5636+ </tuv>
5637+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073216Z" creationid="isVowel" creationdate="20200617T073216Z">
5638+ <seg>gl_Position = P * MV * vec4(vert, 1.0);
5639+}
5640+]], [[
5641+precision mediump float;
5642+uniform sampler2D tex;
5643+varying vec3 v_shadow;
5644+varying vec2 v_uv;
5645+void main() {</seg>
5646+ </tuv>
5647+ </tu>
5648+ <tu>
5649+ <tuv lang="EN-US">
5650+ <seg>height = 600,
5651+}</seg>
5652+ </tuv>
5653+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112217Z" creationid="isVowel" creationdate="20200617T112217Z">
5654+ <seg>height = 600,
5655+}</seg>
5656+ </tuv>
5657+ </tu>
5658+ <tu>
5659+ <tuv lang="EN-US">
49225660 <seg>http://ianmaclarty.com</seg>
49235661 </tuv>
49245662 <tuv lang="JA" changeid="isVowel" changedate="20200602T092603Z" creationid="isVowel" creationdate="20200602T092603Z">
@@ -5041,6 +5779,18 @@ function append_z(str)</seg>
50415779 </tu>
50425780 <tu>
50435781 <tuv lang="EN-US">
5782+ <seg>local arr = am.struct_array(3, {"vert", "vec2", "color", "vec4"})
5783+arr.vert:set{vec2(-1, 0), vec2(1, 0), vec2(0, 1)}
5784+arr.color:set(vec4(1, 0, 0.5, 1))</seg>
5785+ </tuv>
5786+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061359Z" creationid="isVowel" creationdate="20200617T061359Z">
5787+ <seg>local arr = am.struct_array(3, {"vert", "vec2", "color", "vec4"})
5788+arr.vert:set{vec2(-1, 0), vec2(1, 0), vec2(0, 1)}
5789+arr.color:set(vec4(1, 0, 0.5, 1))</seg>
5790+ </tuv>
5791+ </tu>
5792+ <tu>
5793+ <tuv lang="EN-US">
50445794 <seg>local arr = {"a", "b", "c"}
50455795 for k, v in ipairs(arr) do</seg>
50465796 </tuv>
@@ -5061,6 +5811,20 @@ for i = 1, #arr do</seg>
50615811 </tu>
50625812 <tu>
50635813 <tuv lang="EN-US">
5814+ <seg>local buf = am.buffer(12)
5815+local view = buf:view("float")
5816+view[1] = 1.5
5817+view[2] = view[1] + 2</seg>
5818+ </tuv>
5819+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062405Z" creationid="isVowel" creationdate="20200617T062405Z">
5820+ <seg>local buf = am.buffer(12)
5821+local view = buf:view("float")
5822+view[1] = 1.5
5823+view[2] = view[1] + 2</seg>
5824+ </tuv>
5825+ </tu>
5826+ <tu>
5827+ <tuv lang="EN-US">
50645828 <seg>local c = 2 -- channels
50655829 local s = #buf / 4 / c -- samples per channel
50665830 local left_channel = buf:view("float", 0, 4, s)
@@ -5149,6 +5913,32 @@ while n &gt; 0 do</seg>
51495913 </tu>
51505914 <tu>
51515915 <tuv lang="EN-US">
5916+ <seg>local shader = am.program([[
5917+precision mediump float;
5918+attribute vec3 vert;
5919+attribute vec2 uv;
5920+attribute vec3 normal;
5921+uniform mat4 MV;
5922+uniform mat4 P;
5923+varying vec3 v_shadow;
5924+varying vec2 v_uv;
5925+void main() {</seg>
5926+ </tuv>
5927+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073151Z" creationid="isVowel" creationdate="20200617T073151Z">
5928+ <seg>local shader = am.program([[
5929+precision mediump float;
5930+attribute vec3 vert;
5931+attribute vec2 uv;
5932+attribute vec3 normal;
5933+uniform mat4 MV;
5934+uniform mat4 P;
5935+varying vec3 v_shadow;
5936+varying vec2 v_uv;
5937+void main() {</seg>
5938+ </tuv>
5939+ </tu>
5940+ <tu>
5941+ <tuv lang="EN-US">
51525942 <seg>local t = {a = 1, b = 2, c = 3}
51535943 for k, v in pairs(t) do</seg>
51545944 </tuv>
@@ -5245,6 +6035,46 @@ local t2 = {foo = "bar", baz = 123}</seg>
52456035 </tu>
52466036 <tu>
52476037 <tuv lang="EN-US">
6038+ <seg>local verts = am.buffer(24):view("vec3")
6039+verts:set{1, 2, 3, 4, 5, 6}
6040+print(verts[1]) -- vec3(1, 2, 3)
6041+print(verts[2]) -- vec3(4, 5, 6)</seg>
6042+ </tuv>
6043+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065610Z" creationid="isVowel" creationdate="20200617T065610Z">
6044+ <seg>local verts = am.buffer(24):view("vec3")
6045+verts:set{1, 2, 3, 4, 5, 6}
6046+print(verts[1]) -- vec3(1, 2, 3)
6047+print(verts[2]) -- vec3(4, 5, 6)</seg>
6048+ </tuv>
6049+ </tu>
6050+ <tu>
6051+ <tuv lang="EN-US">
6052+ <seg>local win = am.window{</seg>
6053+ </tuv>
6054+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112141Z" creationid="isVowel" creationdate="20200617T112141Z">
6055+ <seg>local win = am.window{</seg>
6056+ </tuv>
6057+ </tu>
6058+ <tu>
6059+ <tuv lang="EN-US">
6060+ <seg>local win = am.window{depth_buffer = true}
6061+
6062+local buf, stride, norm_offset, tex_offset = am.load_obj("model.obj")
6063+local verts = buf:view("vec3", 0, stride)
6064+local normals = buf:view("vec3", norm_offset, stride)
6065+local uvs = buf:view("vec2", tex_offset, stride)</seg>
6066+ </tuv>
6067+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073147Z" creationid="isVowel" creationdate="20200617T073147Z">
6068+ <seg>local win = am.window{depth_buffer = true}
6069+
6070+local buf, stride, norm_offset, tex_offset = am.load_obj("model.obj")
6071+local verts = buf:view("vec3", 0, stride)
6072+local normals = buf:view("vec3", norm_offset, stride)
6073+local uvs = buf:view("vec2", tex_offset, stride)</seg>
6074+ </tuv>
6075+ </tu>
6076+ <tu>
6077+ <tuv lang="EN-US">
52486078 <seg>local win = am.window{}
52496079 local prog = am.program([[</seg>
52506080 </tuv>
@@ -5384,6 +6214,14 @@ end
53846214 </tu>
53856215 <tu>
53866216 <tuv lang="EN-US">
6217+ <seg>normal = normals,</seg>
6218+ </tuv>
6219+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073232Z" creationid="isVowel" creationdate="20200617T073232Z">
6220+ <seg>normal = normals,</seg>
6221+ </tuv>
6222+ </tu>
6223+ <tu>
6224+ <tuv lang="EN-US">
53876225 <seg>o = vec4(0.5, 0.25, 0, 1), -- half orange (brown)
53886226 }</seg>
53896227 </tuv>
@@ -5806,6 +6644,14 @@ title = "自作ゲーム"</seg>
58066644 </tu>
58076645 <tu>
58086646 <tuv lang="EN-US">
6647+ <seg>tex = am.texture2d("texture.png"),</seg>
6648+ </tuv>
6649+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073239Z" creationid="isVowel" creationdate="20200617T073239Z">
6650+ <seg>tex = am.texture2d("texture.png"),</seg>
6651+ </tuv>
6652+ </tu>
6653+ <tu>
6654+ <tuv lang="EN-US">
58096655 <seg>texture.filter {#texture.filter .field-def}</seg>
58106656 </tuv>
58116657 <tuv lang="JA" changeid="isVowel" changedate="20200612T062730Z" creationid="isVowel" creationdate="20200612T062730Z">
@@ -5877,6 +6723,15 @@ title = "自作ゲーム"</seg>
58776723 </tuv>
58786724 </tu>
58796725 <tu>
6726+ <note>「わたしのウィンドウ」では味気ないです。なにか召還しましたがなにか?</note>
6727+ <tuv lang="EN-US">
6728+ <seg>title = "My Window",</seg>
6729+ </tuv>
6730+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112212Z" creationid="isVowel" creationdate="20200617T112212Z">
6731+ <seg>title = "我が名はウィンドウ",</seg>
6732+ </tuv>
6733+ </tu>
6734+ <tu>
58806735 <tuv lang="EN-US">
58816736 <seg>total = total + value</seg>
58826737 </tuv>
@@ -5910,6 +6765,14 @@ title = "自作ゲーム"</seg>
59106765 </tu>
59116766 <tu>
59126767 <tuv lang="EN-US">
6768+ <seg>type size (bytes) Lua value range internal range endianess</seg>
6769+ </tuv>
6770+ <tuv lang="JA" changeid="isVowel" changedate="20200617T064834Z" creationid="isVowel" creationdate="20200617T064326Z">
6771+ <seg>型 サイズ (バイト単位) Lua の範囲値 内部範囲 エンディアン</seg>
6772+ </tuv>
6773+ </tu>
6774+ <tu>
6775+ <tuv lang="EN-US">
59136776 <seg>uniform mat4 MV;</seg>
59146777 </tuv>
59156778 <tuv lang="JA" changeid="isVowel" changedate="20200607T051321Z" creationid="isVowel" creationdate="20200607T051321Z">
@@ -5926,6 +6789,14 @@ title = "自作ゲーム"</seg>
59266789 </tu>
59276790 <tu>
59286791 <tuv lang="EN-US">
6792+ <seg>uv = uvs,</seg>
6793+ </tuv>
6794+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073235Z" creationid="isVowel" creationdate="20200617T073235Z">
6795+ <seg>uv = uvs,</seg>
6796+ </tuv>
6797+ </tu>
6798+ <tu>
6799+ <tuv lang="EN-US">
59296800 <seg>v_color = color;</seg>
59306801 </tuv>
59316802 <tuv lang="JA" changeid="isVowel" changedate="20200611T090929Z" creationid="isVowel" creationdate="20200611T090929Z">
@@ -5934,6 +6805,22 @@ title = "自作ゲーム"</seg>
59346805 </tu>
59356806 <tu>
59366807 <tuv lang="EN-US">
6808+ <seg>v_shadow = vec3(max(0.1, dot(light, nm)));</seg>
6809+ </tuv>
6810+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073212Z" creationid="isVowel" creationdate="20200617T073212Z">
6811+ <seg>v_shadow = vec3(max(0.1, dot(light, nm)));</seg>
6812+ </tuv>
6813+ </tu>
6814+ <tu>
6815+ <tuv lang="EN-US">
6816+ <seg>v_uv = uv;</seg>
6817+ </tuv>
6818+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073214Z" creationid="isVowel" creationdate="20200617T073214Z">
6819+ <seg>v_uv = uv;</seg>
6820+ </tuv>
6821+ </tu>
6822+ <tu>
6823+ <tuv lang="EN-US">
59376824 <seg>varying vec3 v_color;</seg>
59386825 </tuv>
59396826 <tuv lang="JA" changeid="isVowel" changedate="20200611T090927Z" creationid="isVowel" creationdate="20200611T090927Z">
@@ -5950,6 +6837,22 @@ title = "自作ゲーム"</seg>
59506837 </tu>
59516838 <tu>
59526839 <tuv lang="EN-US">
6840+ <seg>vec3 light = normalize(vec3(1, 0, 2));</seg>
6841+ </tuv>
6842+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073208Z" creationid="isVowel" creationdate="20200617T073208Z">
6843+ <seg>vec3 light = normalize(vec3(1, 0, 2));</seg>
6844+ </tuv>
6845+ </tu>
6846+ <tu>
6847+ <tuv lang="EN-US">
6848+ <seg>vec3 nm = normalize((MV * vec4(normal, 0.0)).xyz);</seg>
6849+ </tuv>
6850+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073211Z" creationid="isVowel" creationdate="20200617T073211Z">
6851+ <seg>vec3 nm = normalize((MV * vec4(normal, 0.0)).xyz);</seg>
6852+ </tuv>
6853+ </tu>
6854+ <tu>
6855+ <tuv lang="EN-US">
59536856 <seg>velocity = velocity + gravity * am.delta_time
59546857 end)
59556858
@@ -5966,6 +6869,54 @@ win.scene:action(am.play("ocean.ogg", true))</seg>
59666869 </tu>
59676870 <tu>
59686871 <tuv lang="EN-US">
6872+ <seg>vert = am.vec2_array{vec2(-1, -1), vec2(0, 1), vec2(1, -1)}</seg>
6873+ </tuv>
6874+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111450Z" creationid="isVowel" creationdate="20200617T111450Z">
6875+ <seg>vert = am.vec2_array{vec2(-1, -1), vec2(0, 1), vec2(1, -1)}</seg>
6876+ </tuv>
6877+ </tu>
6878+ <tu>
6879+ <tuv lang="EN-US">
6880+ <seg>vert = verts,</seg>
6881+ </tuv>
6882+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073228Z" creationid="isVowel" creationdate="20200617T073228Z">
6883+ <seg>vert = verts,</seg>
6884+ </tuv>
6885+ </tu>
6886+ <tu>
6887+ <tuv lang="EN-US">
6888+ <seg>view.buffer</seg>
6889+ </tuv>
6890+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070141Z" creationid="isVowel" creationdate="20200617T070141Z">
6891+ <seg>view.buffer</seg>
6892+ </tuv>
6893+ </tu>
6894+ <tu>
6895+ <tuv lang="EN-US">
6896+ <seg>view.buffer {#view.buffer .field-def}</seg>
6897+ </tuv>
6898+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062400Z" creationid="isVowel" creationdate="20200617T062400Z">
6899+ <seg>view.buffer {#view.buffer .field-def}</seg>
6900+ </tuv>
6901+ </tu>
6902+ <tu>
6903+ <tuv lang="EN-US">
6904+ <seg>view:set(val [, start &lt;x1/&gt;, count&lt;x2/&gt;]) {#view:set .method-def}</seg>
6905+ </tuv>
6906+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065617Z" creationid="isVowel" creationdate="20200617T065617Z">
6907+ <seg>view:set(val [, start &lt;x1/&gt;, count&lt;x2/&gt;]) {#view:set .method-def}</seg>
6908+ </tuv>
6909+ </tu>
6910+ <tu>
6911+ <tuv lang="EN-US">
6912+ <seg>view:slice(n [, count &lt;x1/&gt;, stride_multiplier&lt;x2/&gt;]) {#view:slice .method-def}</seg>
6913+ </tuv>
6914+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070234Z" creationid="isVowel" creationdate="20200617T070234Z">
6915+ <seg>view:slice(n [, count &lt;x1/&gt;, stride_multiplier&lt;x2/&gt;]) {#view:slice .method-def}</seg>
6916+ </tuv>
6917+ </tu>
6918+ <tu>
6919+ <tuv lang="EN-US">
59696920 <seg>void main() {</seg>
59706921 </tuv>
59716922 <tuv lang="JA" changeid="isVowel" changedate="20200607T051326Z" creationid="isVowel" creationdate="20200607T051326Z">
@@ -5990,6 +6941,14 @@ win.scene:action(am.play("ocean.ogg", true))</seg>
59906941 </tu>
59916942 <tu>
59926943 <tuv lang="EN-US">
6944+ <seg>width = 800,</seg>
6945+ </tuv>
6946+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112214Z" creationid="isVowel" creationdate="20200617T112214Z">
6947+ <seg>width = 800,</seg>
6948+ </tuv>
6949+ </tu>
6950+ <tu>
6951+ <tuv lang="EN-US">
59936952 <seg>width=device-width, initial-scale=1.0, user-scalable=yes</seg>
59946953 </tuv>
59956954 <tuv lang="JA" changeid="isVowel" changedate="20200602T085831Z" creationid="isVowel" creationdate="20200602T085831Z">
@@ -6174,6 +7133,14 @@ win.scene:action(am.play("ocean.ogg", true))</seg>
61747133 </tu>
61757134 <tu>
61767135 <tuv lang="EN-US">
7136+ <seg>}</seg>
7137+ </tuv>
7138+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073242Z" creationid="isVowel" creationdate="20200617T073242Z">
7139+ <seg>}</seg>
7140+ </tuv>
7141+ </tu>
7142+ <tu>
7143+ <tuv lang="EN-US">
61777144 <seg>}
61787145 ]]
61797146 local frag_shader = [[</seg>
--- a/other/amulet/v1.21.8/omegat/project_stats.txt
+++ b/other/amulet/v1.21.8/omegat/project_stats.txt
@@ -1,11 +1,11 @@
1-20/06/16 17:47
1+20/06/17 20:34
22 プロジェクトの翻訳状況
33
44 分節数 単語数 文字数(空白を除く) 文字数(空白を含む) ファイル数
55 合計: 6704 48700 330070 371302 29
6-未翻訳: 5340 42632 290910 327208 19
6+未翻訳: 5180 41541 284032 318547 18
77 繰り返しを除いた: 4878 41708 284103 320498 29
8-繰り返しを除いた未翻訳: 4150 37096 254519 286818 19
8+繰り返しを除いた未翻訳: 4044 36166 248441 279079 18
99
1010
1111 ファイルごとの翻訳状況:
@@ -13,30 +13,30 @@
1313 ファイル名 すべての分節数 未翻訳分節数 繰り返しを除いた分節数 繰り返しを除いた未翻訳分節数 すべての単語数 未翻訳単語数 繰り返しを除いた単語数 繰り返しを除いた未翻訳単語数 すべての文字数(空白を除く) 未翻訳文字数(空白を除く) 繰り返しを除いた文字数(空白を除く) 繰り返しを除いた未翻訳文字数(空白を除く) すべての文字数(空白を含む) 未翻訳文字数(空白を含む) 繰り返しを除いた文字数(空白を含む) 繰り返しを除いた未翻訳文字数(空白を含む)
1414 site/index.html 27 0 27 0 145 0 145 0 940 0 940 0 1048 0 1048 0
1515 doc/template.html 24 0 23 0 67 0 66 0 577 0 566 0 608 0 597 0
16-doc/index.html 3597 3226 2793 2638 23607 22494 21534 20771 176448 169710 159363 155202 195726 188263 177603 172843
16+doc/index.html 3597 3194 2793 2616 23607 22348 21534 20640 176448 168755 159363 154337 195726 187198 177603 171873
1717 README.md 71 0 65 0 308 0 300 0 1959 0 1901 0 2184 0 2124 0
18-doc/windows.md 335 274 259 228 2286 2191 1824 1785 15851 14939 12939 12464 17588 16643 14314 13832
18+doc/windows.md 335 273 259 228 2286 2187 1824 1785 15851 14925 12939 12464 17588 16626 14314 13832
1919 doc/time.md 11 3 4 1 70 44 33 24 405 201 232 110 463 241 260 132
2020 doc/textures.md 140 35 86 31 916 453 698 414 6369 2641 5062 2453 7089 3025 5619 2802
2121 doc/table.md 32 13 27 13 251 139 215 139 1656 814 1474 814 1937 927 1724 927
22-doc/spritepack.md 49 48 38 38 631 629 582 582 3723 3712 3375 3375 4334 4322 3951 3951
23-doc/scene_nodes.md 785 607 573 498 6074 5430 5263 4782 37600 33764 33114 30448 42817 38370 37721 34520
22+doc/spritepack.md 49 47 38 38 631 628 582 582 3723 3704 3375 3375 4334 4314 3951 3951
23+doc/scene_nodes.md 785 595 573 494 6074 5414 5263 4775 37600 33685 33114 30417 42817 38282 37721 34484
2424 doc/save.md 16 0 11 0 148 0 106 0 928 0 697 0 1047 0 781 0
2525 doc/require.md 14 10 11 8 218 199 199 183 1203 1008 1111 937 1396 1186 1288 1101
26-doc/quickstart.md 322 280 175 153 2483 2201 1921 1674 13850 12238 10669 9291 15886 14046 12241 10656
26+doc/quickstart.md 322 272 175 152 2483 2189 1921 1671 13850 12158 10669 9272 15886 13954 12241 10634
2727 doc/programs.md 19 0 11 0 95 0 74 0 656 0 534 0 736 0 599 0
28-doc/models.md 33 32 25 25 279 277 237 237 1708 1700 1528 1528 1934 1925 1718 1718
28+doc/models.md 33 0 25 0 279 0 237 0 1708 0 1528 0 1934 0 1718 0
2929 doc/misc.md 81 0 54 0 687 0 565 0 4321 0 3635 0 4886 0 4107 0
3030 doc/math.md 277 248 193 182 2885 2727 2353 2237 15224 14335 12519 11891 17673 16660 14550 13825
3131 doc/lua.md 102 0 83 0 737 0 657 0 3722 0 3320 0 4329 0 3866 0
3232 doc/intro.md 16 0 7 0 185 0 130 0 971 0 713 0 1129 0 825 0
3333 doc/input.md 3 0 3 0 3 0 3 0 18 0 18 0 18 0 18 0
3434 doc/header.md 1 0 1 0 4 0 4 0 26 0 26 0 30 0 30 0
35-doc/graphics.md 58 53 48 46 577 569 561 557 3125 3060 3022 2994 3608 3539 3495 3465
35+doc/graphics.md 58 36 48 35 577 491 561 490 3125 2653 3022 2645 3608 3075 3495 3067
3636 doc/export.md 32 26 25 22 499 448 445 414 2870 2538 2592 2375 3307 2931 2982 2739
3737 doc/controller.md 54 50 35 35 366 362 255 255 2748 2696 2093 2093 3036 2984 2293 2293
3838 doc/conf.md 47 36 34 27 524 438 463 393 3674 3127 3347 2893 4126 3514 3751 3244
39-doc/buffers.md 126 118 100 100 1629 1620 1513 1513 8919 8841 8348 8348 11228 11147 10565 10565
39+doc/buffers.md 126 61 100 57 1629 1063 1513 1028 8919 5206 8348 5062 11228 6145 10565 5970
4040 doc/audio.md 84 25 52 21 848 415 723 382 5599 2179 4960 2021 6547 2544 5815 2357
4141 doc/api_ref.md 276 208 63 44 1696 1585 430 382 12159 10934 3553 3019 13400 12141 3843 3289
4242 doc/actions.md 72 48 52 40 482 411 409 372 2821 2473 2452 2263 3192 2800 2770 2559
--- a/other/amulet/v1.21.8/target/README.md
+++ b/other/amulet/v1.21.8/target/README.md
@@ -2,7 +2,7 @@
22
33 Amulet (アミュレット) は小規模ゲーム制作と実験に使える Lua ベースのオーディオ・ビジュアルツールキットです。
44
5-これは Hello World! ですこのように Amulet では書きます:
5+これは Hello World! です。このように Amulet では書きます:
66
77 ```lua
88 am.window{}.scene = am.text("Hello World!")
@@ -21,11 +21,11 @@ am.window{}.scene = am.text("Hello World!")
2121
2222 ## バイナリ配布版
2323
24-こちらでダウンロードしてください<http://www.amulet.xyz>。
24+こちらでダウンロードしてください: <http://www.amulet.xyz>
2525
26-## 取扱説明書類
26+## 取扱説明書
2727
28-こちらをお読みください<http://www.amulet.xyz/doc/>。
28+こちらをお読みください: <http://www.amulet.xyz/doc/>
2929
3030 ## 不具合の報告と機能要望
3131
--- a/other/amulet/v1.21.8/target/doc/buffers.md
+++ b/other/amulet/v1.21.8/target/doc/buffers.md
@@ -1,23 +1,21 @@
11
22 ![](images/screenshot5.jpg)
33
4-# Buffers and views {#buffers-and-views}
4+# バッファとビュー {#buffers-and-views}
55
6-Buffers are contiguous blocks of memory. They are used for storing images,
7-audio and vertex data, or anything else you like.
6+バッファは連続したメモリブロックです。バッファはイメージ、オーディオとバーテックス・データ、またはそれ以外のものなどを記録するために使われます。
87
9-You can't access a buffer's memory directly. Instead you access a buffer
10-through a *view*. Views provide a typed array-like interface to the buffer.
8+直接的にはバッファのメモリへアクセスすることはできません。バッファには *view* (ビュー) からアクセスします。ビューではバッファへ配列風のインターフェース型が使えます。
119
12-## Buffers
10+## バッファ
1311
1412 ### am.buffer(size) {#am.buffer .func-def}
1513
16-Returns a new buffer of the given size in bytes.
14+指定されたバイト単位による size で新しいバッファを返します。
1715
18-The buffer's memory will be zeroed.
16+バッファのメモリはゼロクリアされます。
1917
20-The `#` operator can be used to retrieve the size of a buffer in bytes.
18+`#` 演算子はバッファサイズをバイト単位で取得するために使えます。
2119
2220 フィールド:
2321
@@ -25,36 +23,29 @@ The `#` operator can be used to retrieve the size of a buffer in bytes.
2523 used when it's used for vertex attribute data or element indices.
2624 Can be one of `"static"` (the data won't change often), `"dynamic"`
2725 (the data will change frequenty), or `"stream"` (the data will only be
28-used a few times). The default is `"static"`.
26+used a few times). デフォルトは `"static"` です。
2927
3028 - `dataptr`: Returns a pointer to the buffer as a Lua `lightuserdata` value.
3129 The intended use for this is to manipulate the buffer using the
3230 [LuaJIT FFI library](http://luajit.org/ext_ffi.html). 読み取り専用です。
3331
34-Methods:
32+メソッド:
3533
36-- `mark_dirty()`: Mark the buffer dirty. This should be called if you
37-update the buffer using the `dataptr` field. This will cause
38-data to be copied to any textures or vbos that depend on the buffer
39-when next they are drawn. Note that you don't need to call this method if
40-you're not using `dataptr` to update the buffer, for example if you're updating
41-it through a view - in that case the buffer will automatically be marked
42-dirty.
34+- `mark_dirty()`: バッファの汚染標識を付けます。これは `dataptr` フィールドでバッファを更新する場合は必ず呼び出してください。これは次回描画時に、バッファ依存のテクスチャ、または vbos のデータをコピーします。注意点として、このメソッドはバッファの更新で `dataptr` を使わないならば呼び出し不要です。例えば、ビューから更新をする場合は自動的にバッファの汚染標識が付けられます。
4335
4436 ### am.load_buffer(filename) {#am.load_buffer .func-def}
4537
46-Loads the given file and returns a buffer containing the
47-file's data, or `nil` if the file wasn't found.
38+指定されたファイルのロードを行い、ファイルのデータがあるバッファを返します。ファイルがなければ `nil` を返します。
4839
4940 ### am.base64_encode(buffer) {#am.base64_encode .func-def}
5041
51-Returns a base64 encoding of a buffer as a string.
42+バッファを Base64 エンコード文字列へ変換して返します。
5243
5344 ### am.base64_decode(string) {#am.base64_decode .func-def}
5445
55-Converts a base64 string to a buffer.
46+Base64 エンコード文字列をバッファへ変換します。
5647
57-## Views
48+## ビュー
5849
5950 ### buffer:view(type [, offset [, stride [, count]]]) {#buffer:view .func-def}
6051
@@ -62,24 +53,24 @@ Returns a view into `buffer`.
6253
6354 `type` can be one of the following:
6455
65-type size (bytes) Lua value range internal range endianess
56+型 サイズ (バイト単位) Lua の範囲値 内部範囲 エンディアン
6657 -------------------- ------------- --------------------------- ------------------------ -----------
67-`"float"` 4 approx -3.4e38 to 3.4e38 same native
68-`"vec2"` 8 any `vec2` same native
69-`"vec3"` 12 any `vec3` same native
70-`"vec4"` 16 any `vec4` same native
71-`"byte"` 1 -128 to 127 same N/A
72-`"ubyte"` 1 0 to 255 same N/A
73-`"byte_norm"` 1 -1.0 to 1.0 -127 to 127 N/A
74-`"ubyte_norm"` 1 0.0 to 1.0 0 to 255 N/A
75-`"short"` 2 -32768 to 32767 same native
76-`"ushort"` 2 0 to 65535 same native
77-`"short_norm"` 2 -1.0 to 1.0 -32767 to 32767 native
78-`"ushort_norm"` 2 0.0 to 1.0 0 to 65535 native
79-`"ushort_elem"` 2 1 to 65536 0 to 65535 native
80-`"int"` 4 -2147483648 to 2147483647 same native
81-`"uint"` 4 0 to 4294967295 same native
82-`"uint_elem"` 4 1 to 4294967296 0 to 4294967295 native
58+`"float"` 4 約 -3.4e38 ~ 3.4e38 同一 ネイティブ
59+`"vec2"` 8 全 `vec2` 同一 ネイティブ
60+`"vec3"` 12 全 `vec3` 同一 ネイティブ
61+`"vec4"` 16 全 `vec4` 同一 ネイティブ
62+`"byte"` 1 -128 ~ 127 同一 なし
63+`"ubyte"` 1 0 ~ 255 同一 なし
64+`"byte_norm"` 1 -1.0 ~ 1.0 -127 ~ 127 なし
65+`"ubyte_norm"` 1 0.0 ~ 1.0 0 ~ 255 なし
66+`"short"` 2 -32768 ~ 32767 同一 ネイティブ
67+`"ushort"` 2 0 ~ 65535 同一 ネイティブ
68+`"short_norm"` 2 -1.0 ~ 1.0 -32767 ~ 32767 ネイティブ
69+`"ushort_norm"` 2 0.0 ~ 1.0 0 ~ 65535 ネイティブ
70+`"ushort_elem"` 2 1 ~ 65536 0 ~ 65535 ネイティブ
71+`"int"` 4 -2147483648 ~ 2147483647 同一 ネイティブ
72+`"uint"` 4 0 ~ 4294967295 同一 ネイティブ
73+`"uint_elem"` 4 1 ~ 4294967296 0 ~ 4294967295 ネイティブ
8374
8475 The `_norm` types map Lua numbers in the range -1 to 1
8576 (or 0 to 1 for unsigned types) to integer values in the buffer.
@@ -92,7 +83,7 @@ All view types currently use the native platform endianess, which happens
9283 to be little-endian on all currently supported platforms.
9384
9485 The `offset` argument is the byte offset of the first element of the
95-view. The default is 0.
86+view. デフォルトは 0 です。
9687
9788 The `stride` argument is the distance between consecutive values in the
9889 view, in bytes. The default is the size of the view type.
@@ -117,15 +108,15 @@ will return nil.
117108
118109 You can retrieve the number of elements in a view using the `#` operator.
119110
120-## View fields
111+## View フィールド
121112
122113 ### view.buffer {#view.buffer .field-def}
123114
124-The buffer associated with the view.
115+ビューと関連付けられたバッファ。
125116
126117 読み取り専用です。
127118
128-## View methods
119+## View メソッド
129120
130121 ### view:slice(n [, count [, stride_multiplier]]) {#view:slice .method-def}
131122
@@ -166,7 +157,7 @@ This means you can't set a number view to a vector view or
166157 vice versa.
167158
168159 If `start` is given then only elements at that index and beyond
169-will be set. The default value for `start` is `1`.
160+will be set. `start` のデフォルト値は `1` です。
170161
171162 If `count` is given then at most that many elements will be set.
172163
--- a/other/amulet/v1.21.8/target/doc/graphics.md
+++ b/other/amulet/v1.21.8/target/doc/graphics.md
@@ -2,7 +2,7 @@
22 グラフィックス
33 ========
44
5-Overview
5+概要
66 --------
77
88 This section goes into detail about Amulets low-level graphics features.
@@ -15,15 +15,15 @@ rendering then read on.
1515 ウィンドウの作成
1616 -----------------
1717
18-To create a window use the `am.window` function. This function accepts a
18+ウィンドウを作成するには `am.window` 関数を使います。This function accepts a
1919 table of window settings, all of which are optional. (For a full list of
2020 settings see am.window in the API reference.)
2121
22-Here's how to create a 800x600 window:
22+これは 800x600 のウィンドウを作成します:
2323
2424 ```{.sourceCode .lua}
2525 local win = am.window{
26- title = "My Window",
26+ title = "我が名はウィンドウ",
2727 width = 800,
2828 height = 600,
2929 }
@@ -45,7 +45,7 @@ height fields will only be updated once the animation has finished.
4545 The window:resized method can be used to detect if a window's size
4646 changed since the last frame.
4747
48-To close a window call its window:close method. This also quits the
48+ウィンドウを閉じるには window:close メソッドを呼び出します。This also quits the
4949 application if there was only one window open.
5050
5151 Note: while it's possible to create multiple windows, this isn't
--- a/other/amulet/v1.21.8/target/doc/index.html
+++ b/other/amulet/v1.21.8/target/doc/index.html
@@ -153,20 +153,20 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
153153 <li><a href="#math.slerp">math.slerp(from, to, t)</a></li>
154154 </ul></li>
155155 </ul></li>
156-<li><a href="#buffers-and-views">Buffers and views</a><ul>
157-<li><a href="#buffers">Buffers</a><ul>
156+<li><a href="#buffers-and-views">バッファとビュー</a><ul>
157+<li><a href="#バッファ">バッファ</a><ul>
158158 <li><a href="#am.buffer">am.buffer(size)</a></li>
159159 <li><a href="#am.load_buffer">am.load_buffer(filename)</a></li>
160160 <li><a href="#am.base64_encode">am.base64_encode(buffer)</a></li>
161161 <li><a href="#am.base64_decode">am.base64_decode(string)</a></li>
162162 </ul></li>
163-<li><a href="#views">Views</a><ul>
163+<li><a href="#ビュー">ビュー</a><ul>
164164 <li><a href="#buffer:view">buffer:view(type [, offset [, stride [, count]]])</a></li>
165165 </ul></li>
166-<li><a href="#view-fields">View fields</a><ul>
166+<li><a href="#view-フィールド">View フィールド</a><ul>
167167 <li><a href="#view.buffer">view.buffer</a></li>
168168 </ul></li>
169-<li><a href="#view-methods">View methods</a><ul>
169+<li><a href="#view-メソッド">View メソッド</a><ul>
170170 <li><a href="#view:slice">view:slice(n [, count [, stride_multiplier]])</a></li>
171171 <li><a href="#view:set">view:set(val [, start [, count]])</a></li>
172172 <li><a href="#am.float_array">am.float_array(table)</a></li>
@@ -459,7 +459,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
459459 <li><a href="#am.controller_button_down">am.controller_button_down(index, button)</a></li>
460460 </ul></li>
461461 <li><a href="#spritepack">Packing sprites and generating fonts</a><ul>
462-<li><a href="#overview">Overview</a></li>
462+<li><a href="#概要">概要</a></li>
463463 <li><a href="#pack-options">Pack options</a></li>
464464 <li><a href="#padding">Padding</a></li>
465465 <li><a href="#specifying-which-font-glyphs-to-generate">Specifying which font glyphs to generate</a></li>
@@ -802,7 +802,7 @@ main.lua:1: 動くぞ!</code></pre>
802802 <span id="cb32-4"><a href="#cb32-4"></a> height <span class="op">=</span> <span class="dv">300</span><span class="op">,</span></span>
803803 <span id="cb32-5"><a href="#cb32-5"></a> clear_color <span class="op">=</span> vec4<span class="op">(</span><span class="dv">1</span><span class="op">,</span> <span class="dv">0</span><span class="op">,</span> <span class="dv">0.5</span><span class="op">,</span> <span class="dv">1</span><span class="op">)</span></span>
804804 <span id="cb32-6"><a href="#cb32-6"></a><span class="op">}</span></span>
805-<span id="cb32-7"><a href="#cb32-7"></a>win<span class="op">.</span>scene <span class="op">=</span> </span>
805+<span id="cb32-7"><a href="#cb32-7"></a>win<span class="op">.</span>scene <span class="op">=</span></span>
806806 <span id="cb32-8"><a href="#cb32-8"></a> am<span class="op">.</span>translate<span class="op">(</span><span class="dv">150</span><span class="op">,</span> <span class="dv">100</span><span class="op">)</span></span>
807807 <span id="cb32-9"><a href="#cb32-9"></a> <span class="op">^</span> am<span class="op">.</span>scale<span class="op">(</span><span class="dv">2</span><span class="op">)</span></span>
808808 <span id="cb32-10"><a href="#cb32-10"></a> <span class="op">^</span> am<span class="op">.</span>rotate<span class="op">(</span><span class="fu">math.rad</span><span class="op">(</span><span class="dv">90</span><span class="op">))</span></span>
@@ -930,7 +930,7 @@ main.lua:1: 動くぞ!</code></pre>
930930 <span id="cb39-4"><a href="#cb39-4"></a> height <span class="op">=</span> <span class="dv">300</span><span class="op">,</span></span>
931931 <span id="cb39-5"><a href="#cb39-5"></a><span class="op">}</span></span>
932932 <span id="cb39-6"><a href="#cb39-6"></a></span>
933-<span id="cb39-7"><a href="#cb39-7"></a>win<span class="op">.</span>scene <span class="op">=</span> </span>
933+<span id="cb39-7"><a href="#cb39-7"></a>win<span class="op">.</span>scene <span class="op">=</span></span>
934934 <span id="cb39-8"><a href="#cb39-8"></a> am<span class="op">.</span>group<span class="op">()</span></span>
935935 <span id="cb39-9"><a href="#cb39-9"></a> <span class="op">^</span> <span class="op">{</span></span>
936936 <span id="cb39-10"><a href="#cb39-10"></a> am<span class="op">.</span>sprite<span class="st">&quot;beach.jpg&quot;</span></span>
@@ -944,7 +944,7 @@ main.lua:1: 動くぞ!</code></pre>
944944 <p>If you are using the online editor then you won’t be able to load image files. Instead you’ll need to draw the sprites using text. See the “Beach ball” example in the online editor for an equivalent example that doesn’t load any image files. See also the documentation for <a href="#am.sprite">am.sprite</a> for how to create sprites with text.</p>
945945 <h2 id="responding-to-mouse-clicks">Responding to mouse clicks</h2>
946946 <p>Let’s make the ball bounce when we click it. We’ll add a rotate node so we can make the ball spin when it’s in the air. We’ll also tag the ball’s translate and rotate nodes so we can easily access them:</p>
947-<div class="sourceCode" id="cb40"><pre class="sourceCode lua"><code class="sourceCode lua"><span id="cb40-1"><a href="#cb40-1"></a>win<span class="op">.</span>scene <span class="op">=</span> </span>
947+<div class="sourceCode" id="cb40"><pre class="sourceCode lua"><code class="sourceCode lua"><span id="cb40-1"><a href="#cb40-1"></a>win<span class="op">.</span>scene <span class="op">=</span></span>
948948 <span id="cb40-2"><a href="#cb40-2"></a> am<span class="op">.</span>group<span class="op">()</span></span>
949949 <span id="cb40-3"><a href="#cb40-3"></a> <span class="op">^</span> <span class="op">{</span></span>
950950 <span id="cb40-4"><a href="#cb40-4"></a> am<span class="op">.</span>sprite<span class="st">&quot;beach.jpg&quot;</span></span>
@@ -1366,162 +1366,162 @@ vec2(0, 2)</code></pre>
13661366 <p>Returns the spherical linear interpolation of the two quaternions <code>from</code> and <code>to</code>. <code>t</code> should be a number between 0 and 1. Unlike (<code>math.mix</code>)[#math.mix] this interpolation takes the shortest path.</p>
13671367 <hr />
13681368 <p><img src="images/screenshot5.jpg" /></p>
1369-<h1 id="buffers-and-views">Buffers and views</h1>
1370-<p>Buffers are contiguous blocks of memory. They are used for storing images, audio and vertex data, or anything else you like.</p>
1371-<p>You can’t access a buffer’s memory directly. Instead you access a buffer through a <em>view</em>. Views provide a typed array-like interface to the buffer.</p>
1372-<h2 id="buffers">Buffers</h2>
1369+<h1 id="buffers-and-views">バッファとビュー</h1>
1370+<p>バッファは連続したメモリブロックです。バッファはイメージ、オーディオとバーテックス・データ、またはそれ以外のものなどを記録するために使われます。</p>
1371+<p>直接的にはバッファのメモリへアクセスすることはできません。バッファには <em>view</em> (ビュー) からアクセスします。ビューではバッファへ配列風のインターフェース型が使えます。</p>
1372+<h2 id="バッファ">バッファ</h2>
13731373 <h3 id="am.buffer" class="func-def">am.buffer(size)</h3>
1374-<p>Returns a new buffer of the given size in bytes.</p>
1375-<p>The buffer’s memory will be zeroed.</p>
1376-<p>The <code>#</code> operator can be used to retrieve the size of a buffer in bytes.</p>
1374+<p>指定されたバイト単位による size で新しいバッファを返します。</p>
1375+<p>バッファのメモリはゼロクリアされます。</p>
1376+<p><code>#</code> 演算子はバッファサイズをバイト単位で取得するために使えます。</p>
13771377 <p>フィールド:</p>
13781378 <ul>
1379-<li><p><code>usage</code>: A hint to the graphics driver telling it how this buffer will be used when it’s used for vertex attribute data or element indices. Can be one of <code>"static"</code> (the data won’t change often), <code>"dynamic"</code> (the data will change frequenty), or <code>"stream"</code> (the data will only be used a few times). The default is <code>"static"</code>.</p></li>
1379+<li><p><code>usage</code>: A hint to the graphics driver telling it how this buffer will be used when it’s used for vertex attribute data or element indices. Can be one of <code>"static"</code> (the data won’t change often), <code>"dynamic"</code> (the data will change frequenty), or <code>"stream"</code> (the data will only be used a few times). デフォルトは <code>"static"</code> です。</p></li>
13801380 <li><p><code>dataptr</code>: Returns a pointer to the buffer as a Lua <code>lightuserdata</code> value. The intended use for this is to manipulate the buffer using the <a href="http://luajit.org/ext_ffi.html">LuaJIT FFI library</a>. 読み取り専用です。</p></li>
13811381 </ul>
1382-<p>Methods:</p>
1382+<p>メソッド:</p>
13831383 <ul>
1384-<li><code>mark_dirty()</code>: Mark the buffer dirty. This should be called if you update the buffer using the <code>dataptr</code> field. This will cause data to be copied to any textures or vbos that depend on the buffer when next they are drawn. Note that you don’t need to call this method if you’re not using <code>dataptr</code> to update the buffer, for example if you’re updating it through a view - in that case the buffer will automatically be marked dirty.</li>
1384+<li><code>mark_dirty()</code>: バッファの汚染標識を付けます。これは <code>dataptr</code> フィールドでバッファを更新する場合は必ず呼び出してください。これは次回描画時に、バッファ依存のテクスチャ、または vbos のデータをコピーします。注意点として、このメソッドはバッファの更新で <code>dataptr</code> を使わないならば呼び出し不要です。例えば、ビューから更新をする場合は自動的にバッファの汚染標識が付けられます。</li>
13851385 </ul>
13861386 <h3 id="am.load_buffer" class="func-def">am.load_buffer(filename)</h3>
1387-<p>Loads the given file and returns a buffer containing the file’s data, or <code>nil</code> if the file wasn’t found.</p>
1387+<p>指定されたファイルのロードを行い、ファイルのデータがあるバッファを返します。ファイルがなければ <code>nil</code> を返します。</p>
13881388 <h3 id="am.base64_encode" class="func-def">am.base64_encode(buffer)</h3>
1389-<p>Returns a base64 encoding of a buffer as a string.</p>
1389+<p>バッファを Base64 エンコード文字列へ変換して返します。</p>
13901390 <h3 id="am.base64_decode" class="func-def">am.base64_decode(string)</h3>
1391-<p>Converts a base64 string to a buffer.</p>
1392-<h2 id="views">Views</h2>
1391+<p>Base64 エンコード文字列をバッファへ変換します。</p>
1392+<h2 id="ビュー">ビュー</h2>
13931393 <h3 id="buffer:view" class="func-def">buffer:view(type [, offset [, stride [, count]]])</h3>
13941394 <p>Returns a view into <code>buffer</code>.</p>
13951395 <p><code>type</code> can be one of the following:</p>
13961396 <table>
13971397 <thead>
13981398 <tr class="header">
1399-<th style="text-align: left;">type</th>
1400-<th style="text-align: right;">size (bytes)</th>
1401-<th style="text-align: left;">Lua value range</th>
1402-<th style="text-align: left;">internal range</th>
1403-<th style="text-align: left;">endianess</th>
1399+<th style="text-align: left;">型</th>
1400+<th style="text-align: center;">サイズ (バイト単位)</th>
1401+<th style="text-align: left;">Lua の範囲値</th>
1402+<th style="text-align: center;">内部範囲</th>
1403+<th style="text-align: right;">エンディアン</th>
14041404 </tr>
14051405 </thead>
14061406 <tbody>
14071407 <tr class="odd">
14081408 <td style="text-align: left;"><code>"float"</code></td>
1409-<td style="text-align: right;">4</td>
1410-<td style="text-align: left;">approx -3.4e38 to 3.4e38</td>
1411-<td style="text-align: left;">same</td>
1412-<td style="text-align: left;">native</td>
1409+<td style="text-align: center;">4</td>
1410+<td style="text-align: left;">約 -3.4e38 ~ 3.4e38</td>
1411+<td style="text-align: center;">同一</td>
1412+<td style="text-align: right;">ネイティブ</td>
14131413 </tr>
14141414 <tr class="even">
14151415 <td style="text-align: left;"><code>"vec2"</code></td>
1416-<td style="text-align: right;">8</td>
1417-<td style="text-align: left;">any <code>vec2</code></td>
1418-<td style="text-align: left;">same</td>
1419-<td style="text-align: left;">native</td>
1416+<td style="text-align: center;">8</td>
1417+<td style="text-align: left;">全 <code>vec2</code></td>
1418+<td style="text-align: center;">同一</td>
1419+<td style="text-align: right;" ネイティブ</td>
14201420 </tr>
14211421 <tr class="odd">
14221422 <td style="text-align: left;"><code>"vec3"</code></td>
1423-<td style="text-align: right;">12</td>
1424-<td style="text-align: left;">any <code>vec3</code></td>
1425-<td style="text-align: left;">same</td>
1426-<td style="text-align: left;">native</td>
1423+<td style="text-align: center;">12</td>
1424+<td style="text-align: left;">全 <code>vec3</code></td>
1425+<td style="text-align: center;">同一</td>
1426+<td style="text-align: right;">ネイティブ</td>
14271427 </tr>
14281428 <tr class="even">
14291429 <td style="text-align: left;"><code>"vec4"</code></td>
1430-<td style="text-align: right;">16</td>
1431-<td style="text-align: left;">any <code>vec4</code></td>
1432-<td style="text-align: left;">same</td>
1433-<td style="text-align: left;">native</td>
1430+<td style="text-align: center;">16</td>
1431+<td style="text-align: left;">全 <code>vec4</code></td>
1432+<td style="text-align: center;">同一</td>
1433+<td style="text-align: right;">ネイティブ</td>
14341434 </tr>
14351435 <tr class="odd">
14361436 <td style="text-align: left;"><code>"byte"</code></td>
1437-<td style="text-align: right;">1</td>
1438-<td style="text-align: left;">-128 to 127</td>
1439-<td style="text-align: left;">same</td>
1440-<td style="text-align: left;">N/A</td>
1437+<td style="text-align: center;">1</td>
1438+<td style="text-align: left;">-128 ~ 127</td>
1439+<td style="text-align: center;">同一</td>
1440+<td style="text-align: right;">なし</td>
14411441 </tr>
14421442 <tr class="even">
14431443 <td style="text-align: left;"><code>"ubyte"</code></td>
1444-<td style="text-align: right;">1</td>
1445-<td style="text-align: left;">0 to 255</td>
1446-<td style="text-align: left;">same</td>
1447-<td style="text-align: left;">N/A</td>
1444+<td style="text-align: center;">1</td>
1445+<td style="text-align: left;">0 ~ 255</td>
1446+<td style="text-align: center;">同一</td>
1447+<td style="text-align: right;">なし</td>
14481448 </tr>
14491449 <tr class="odd">
14501450 <td style="text-align: left;"><code>"byte_norm"</code></td>
1451-<td style="text-align: right;">1</td>
1452-<td style="text-align: left;">-1.0 to 1.0</td>
1453-<td style="text-align: left;">-127 to 127</td>
1454-<td style="text-align: left;">N/A</td>
1451+<td style="text-align: center;">1</td>
1452+<td style="text-align: left;">-1.0 ~ 1.0</td>
1453+<td style="text-align: center;">-127 ~ 127</td>
1454+<td style="text-align: right;">なし</td>
14551455 </tr>
14561456 <tr class="even">
14571457 <td style="text-align: left;"><code>"ubyte_norm"</code></td>
1458-<td style="text-align: right;">1</td>
1459-<td style="text-align: left;">0.0 to 1.0</td>
1460-<td style="text-align: left;">0 to 255</td>
1461-<td style="text-align: left;">N/A</td>
1458+<td style="text-align: center;">1</td>
1459+<td style="text-align: left;">0.0 ~ 1.0</td>
1460+<td style="text-align: center;">0 ~ 255</td>
1461+<td style="text-align: right;">なし</td>
14621462 </tr>
14631463 <tr class="odd">
14641464 <td style="text-align: left;"><code>"short"</code></td>
1465-<td style="text-align: right;">2</td>
1466-<td style="text-align: left;">-32768 to 32767</td>
1467-<td style="text-align: left;">same</td>
1468-<td style="text-align: left;">native</td>
1465+<td style="text-align: center;">2</td>
1466+<td style="text-align: left;">-32768 ~ 32767</td>
1467+<td style="text-align: center;">同一</td>
1468+<td style="text-align: right;">ネイティブ</td>
14691469 </tr>
14701470 <tr class="even">
14711471 <td style="text-align: left;"><code>"ushort"</code></td>
1472-<td style="text-align: right;">2</td>
1473-<td style="text-align: left;">0 to 65535</td>
1474-<td style="text-align: left;">same</td>
1475-<td style="text-align: left;">native</td>
1472+<td style="text-align: center;">2</td>
1473+<td style="text-align: left;">0 ~ 65535</td>
1474+<td style="text-align: center;">同一</td>
1475+<td style="text-align: right;">ネイティブ</td>
14761476 </tr>
14771477 <tr class="odd">
14781478 <td style="text-align: left;"><code>"short_norm"</code></td>
1479-<td style="text-align: right;">2</td>
1480-<td style="text-align: left;">-1.0 to 1.0</td>
1481-<td style="text-align: left;">-32767 to 32767</td>
1482-<td style="text-align: left;">native</td>
1479+<td style="text-align: center;">2</td>
1480+<td style="text-align: left;">-1.0 ~ 1.0</td>
1481+<td style="text-align: center;">-32767 ~ 32767</td>
1482+<td style="text-align: right;">ネイティブ</td>
14831483 </tr>
14841484 <tr class="even">
14851485 <td style="text-align: left;"><code>"ushort_norm"</code></td>
1486-<td style="text-align: right;">2</td>
1487-<td style="text-align: left;">0.0 to 1.0</td>
1488-<td style="text-align: left;">0 to 65535</td>
1489-<td style="text-align: left;">native</td>
1486+<td style="text-align: center;">2</td>
1487+<td style="text-align: left;">0.0 ~ 1.0</td>
1488+<td style="text-align: center;">0 ~ 65535</td>
1489+<td style="text-align: right;">ネイティブ</td>
14901490 </tr>
14911491 <tr class="odd">
14921492 <td style="text-align: left;"><code>"ushort_elem"</code></td>
1493-<td style="text-align: right;">2</td>
1494-<td style="text-align: left;">1 to 65536</td>
1495-<td style="text-align: left;">0 to 65535</td>
1496-<td style="text-align: left;">native</td>
1493+<td style="text-align: center;">2</td>
1494+<td style="text-align: left;">1 ~ 65536</td>
1495+<td style="text-align: center;">0 ~ 65535</td>
1496+<td style="text-align: right;">ネイティブ</td>
14971497 </tr>
14981498 <tr class="even">
14991499 <td style="text-align: left;"><code>"int"</code></td>
1500-<td style="text-align: right;">4</td>
1501-<td style="text-align: left;">-2147483648 to 2147483647</td>
1502-<td style="text-align: left;">same</td>
1503-<td style="text-align: left;">native</td>
1500+<td style="text-align: center;">4</td>
1501+<td style="text-align: left;">-2147483648 ~ 2147483647</td>
1502+<td style="text-align: center;">同一</td>
1503+<td style="text-align: right;">ネイティブ</td>
15041504 </tr>
15051505 <tr class="odd">
15061506 <td style="text-align: left;"><code>"uint"</code></td>
1507-<td style="text-align: right;">4</td>
1508-<td style="text-align: left;">0 to 4294967295</td>
1509-<td style="text-align: left;">same</td>
1510-<td style="text-align: left;">native</td>
1507+<td style="text-align: center;">4</td>
1508+<td style="text-align: left;">0 ~ 4294967295</td>
1509+<td style="text-align: center;">同一</td>
1510+<td style="text-align: right;">ネイティブ</td>
15111511 </tr>
15121512 <tr class="even">
15131513 <td style="text-align: left;"><code>"uint_elem"</code></td>
1514-<td style="text-align: right;">4</td>
1515-<td style="text-align: left;">1 to 4294967296</td>
1516-<td style="text-align: left;">0 to 4294967295</td>
1517-<td style="text-align: left;">native</td>
1514+<td style="text-align: center;">4</td>
1515+<td style="text-align: left;">1 ~ 4294967296</td>
1516+<td style="text-align: center;">0 ~ 4294967295</td>
1517+<td style="text-align: right;">ネイティブ</td>
15181518 </tr>
15191519 </tbody>
15201520 </table>
15211521 <p>The <code>_norm</code> types map Lua numbers in the range -1 to 1 (or 0 to 1 for unsigned types) to integer values in the buffer.</p>
15221522 <p>The <code>_elem</code> types are specifically for element array buffers and offset the Lua numbers by 1 to conform to the Lua convention of array indices starting at 1.</p>
15231523 <p>All view types currently use the native platform endianess, which happens to be little-endian on all currently supported platforms.</p>
1524-<p>The <code>offset</code> argument is the byte offset of the first element of the view. The default is 0.</p>
1524+<p>The <code>offset</code> argument is the byte offset of the first element of the view. デフォルトは 0 です。</p>
15251525 <p>The <code>stride</code> argument is the distance between consecutive values in the view, in bytes. The default is the size of the view type.</p>
15261526 <p>The <code>count</code> argument determines the number of elements in the view. The underlying buffer must be large enough to accommodate the elements with the given stride. The default is the maximum supported by the buffer with the given stride.</p>
15271527 <p>You can read and write to views as if they were Lua arrays (as with Lua arrays, indices start at 1). 用例:</p>
@@ -1531,11 +1531,11 @@ vec2(0, 2)</code></pre>
15311531 <span id="cb76-4"><a href="#cb76-4"></a>view<span class="op">[</span><span class="dv">2</span><span class="op">]</span> <span class="op">=</span> view<span class="op">[</span><span class="dv">1</span><span class="op">]</span> <span class="op">+</span> <span class="dv">2</span></span></code></pre></div>
15321532 <p>Attempting to read an index less than 1 or larger than the number of elements will return nil.</p>
15331533 <p>You can retrieve the number of elements in a view using the <code>#</code> operator.</p>
1534-<h2 id="view-fields">View fields</h2>
1534+<h2 id="view-フィールド">View フィールド</h2>
15351535 <h3 id="view.buffer" class="field-def">view.buffer</h3>
1536-<p>The buffer associated with the view.</p>
1536+<p>ビューと関連付けられたバッファ。</p>
15371537 <p>読み取り専用です。</p>
1538-<h2 id="view-methods">View methods</h2>
1538+<h2 id="view-メソッド">View メソッド</h2>
15391539 <h3 id="view:slice" class="method-def">view:slice(n [, count [, stride_multiplier]])</h3>
15401540 <p>Returns a new view with the same type as <code>view</code> that references the same buffer, but which starts at the <code>n</code>th element of <code>view</code> and continues for <code>count</code> elements. If <code>count</code> is omitted or nil it covers all the elements of <code>view</code> after and including the <code>n</code>th. <code>stride_multiplier</code> can be used to increase the stride of the view and thereby skip elements. It must be a positive integer and defaults to 1 (no skipping).</p>
15411541 <h3 id="view:set" class="method-def">view:set(val [, start [, count]])</h3>
@@ -1548,7 +1548,7 @@ vec2(0, 2)</code></pre>
15481548 <span id="cb77-3"><a href="#cb77-3"></a><span class="fu">print</span><span class="op">(</span>verts<span class="op">[</span><span class="dv">1</span><span class="op">])</span> <span class="co">-- vec3(1, 2, 3)</span></span>
15491549 <span id="cb77-4"><a href="#cb77-4"></a><span class="fu">print</span><span class="op">(</span>verts<span class="op">[</span><span class="dv">2</span><span class="op">])</span> <span class="co">-- vec3(4, 5, 6)</span></span></code></pre></div>
15501550 <p>Finally if <code>val</code> is another view then the elements are set to the corresponding values from that view. The views may be of different types as long as they are “compatible”. The types are converted as if each element were set using the Lua code <code>view1[i] = view2[i]</code>. This means you can’t set a number view to a vector view or vice versa.</p>
1551-<p>If <code>start</code> is given then only elements at that index and beyond will be set. The default value for <code>start</code> is <code>1</code>.</p>
1551+<p>If <code>start</code> is given then only elements at that index and beyond will be set. <code>start</code> のデフォルト値は <code>1</code> です。</p>
15521552 <p>If <code>count</code> is given then at most that many elements will be set.</p>
15531553 <h3 id="am.float_array" class="func-def">am.float_array(table)</h3>
15541554 <p>Returns a <code>float</code> view to a newly created buffer and fills it with the values in the given table.</p>
@@ -1610,7 +1610,7 @@ vec2(0, 2)</code></pre>
16101610 <li><p><strong><code>highdpi</code></strong>: Whether to use high DPI resolution if available (<code>true</code> or <code>false</code>, default <code>false</code>).</p></li>
16111611 <li><p><strong><code>depth_buffer</code></strong>: Whether the window has a depth buffer (<code>true</code> or <code>false</code>, default <code>false</code>).</p></li>
16121612 <li><p><strong><code>stencil_buffer</code></strong>: Whether the window has a stencil buffer (<code>true</code> or <code>false</code>, default <code>false</code>).</p></li>
1613-<li><p><strong><code>stencil_clear_value</code></strong>: The value to clear the stencil buffer with before drawing each frame (an integer between 0 and 255). The default is 0.</p></li>
1613+<li><p><strong><code>stencil_clear_value</code></strong>: The value to clear the stencil buffer with before drawing each frame (an integer between 0 and 255). デフォルトは 0 です。</p></li>
16141614 <li><p><strong><code>lock_pointer</code></strong>: <code>true</code> or <code>false</code>. When pointer lock is enabled the cursor will be hidden and mouse movement will be set to “relative” mode. In this mode the mouse is tracked infinitely in all directions, i.e. as if there is no edge of the screen to stop the mouse cursor. This is useful for implementing first-person style mouse-look. The default is <code>false</code>.</p></li>
16151615 <li><p><strong><code>show_cursor</code></strong>: Whether to show the mouse cursor (<code>true</code> or <code>false</code>, default <code>true</code>).</p></li>
16161616 <li><p><strong><code>clear_color</code></strong>: The color (a <code>vec4</code>) used to clear the window each frame before drawing. The default clear color is black (<code>vec4(0, 0, 0, 1)</code>).</p></li>
@@ -1911,7 +1911,7 @@ vec2(0, 2)</code></pre>
19111911 <p><img src="graphs/scene6.png" /></p>
19121912 <p>If <code>node2</code> or <code>node3</code> were graphs with multiple nodes, then <code>node4</code> would be added to the leaf nodes of those graphs.</p>
19131913 <p>Here is a more complex example:</p>
1914-<div class="sourceCode" id="cb82"><pre class="sourceCode lua"><code class="sourceCode lua"><span id="cb82-1"><a href="#cb82-1"></a>node1 </span>
1914+<div class="sourceCode" id="cb82"><pre class="sourceCode lua"><code class="sourceCode lua"><span id="cb82-1"><a href="#cb82-1"></a>node1</span>
19151915 <span id="cb82-2"><a href="#cb82-2"></a> <span class="op">^</span> node2</span>
19161916 <span id="cb82-3"><a href="#cb82-3"></a> <span class="op">^</span> <span class="op">{</span></span>
19171917 <span id="cb82-4"><a href="#cb82-4"></a> node3</span>
@@ -2182,7 +2182,7 @@ vec2(0, 2)</code></pre>
21822182 <span id="cb88-20"><a href="#cb88-20"></a> <span class="cf">end</span>_size_var <span class="op">=</span> <span class="dv">2</span><span class="op">,</span></span>
21832183 <span id="cb88-21"><a href="#cb88-21"></a> gravity <span class="op">=</span> vec2<span class="op">(</span><span class="dv">0</span><span class="op">,</span> <span class="dv">2000</span><span class="op">),</span></span>
21842184 <span id="cb88-22"><a href="#cb88-22"></a> <span class="op">}</span></span></code></pre></div>
2185-<p>Methods:</p>
2185+<p>メソッド:</p>
21862186 <ul>
21872187 <li><code>reset()</code>: resets the particles as if they had just been created with their current settings.</li>
21882188 </ul>
@@ -2556,7 +2556,7 @@ vec2(0, 2)</code></pre>
25562556 <ul>
25572557 <li><code>num_quads</code>: The number of quads. This is zero initially.</li>
25582558 </ul>
2559-<p>Methods:</p>
2559+<p>メソッド:</p>
25602560 <ul>
25612561 <li><code>add_quad(data)</code>: adds a quad to be rendered and returns the quad number. <code>data</code> is a table where the keys are attribute names and the values are the values of the 4 vertices of the quad. The values can be specified in several ways:
25622562 <ul>
@@ -2626,7 +2626,7 @@ vec2(0, 2)</code></pre>
26262626 <li><code>auto_clear</code>: Whether to automatically clear the texture before rendering each frame. 更新可能。</li>
26272627 <li><code>program</code>: The shader program to use to render the texture. 更新可能。</li>
26282628 </ul>
2629-<p>Methods:</p>
2629+<p>メソッド:</p>
26302630 <ul>
26312631 <li><code>clear()</code>: Clear the texture manually.</li>
26322632 </ul>
@@ -3191,7 +3191,7 @@ vec2(0, 2)</code></pre>
31913191 <h3 id="am.controller_button_down" class="func-def">am.controller_button_down(index, button)</h3>
31923192 <p>Returns <code>true</code> if the given button of controller <code>index</code> was down at the start of the current frame. See <a href="#am.controller_button_pressed">am.controller_button_pressed</a> for a list of valid values for <code>button</code>.</p>
31933193 <h1 id="spritepack">Packing sprites and generating fonts</h1>
3194-<h2 id="overview">Overview</h2>
3194+<h2 id="概要">概要</h2>
31953195 <p>Amulet includes a tool for packing images and font glyphs into a sprite sheet and generating a Lua module for conveniently accessing the images and glyphs therein.</p>
31963196 <p>Suppose you have an <code>images</code> directory containing some <code>.png</code> files and a <code>fonts</code> directory containing <code>myfont.ttf</code> and suppose these two directories are subdirectories of the main game directory (where your <code>main.lua</code> file lives). To generate a sprite sheet, run the following command while in the main game directory:</p>
31973197 <pre class="console"><code>&gt; amulet pack -png mysprites.png -lua mysprites.lua
@@ -3334,18 +3334,18 @@ ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz</code></pre>
33343334 <p><code>orientation</code> can be <code>"portrait"</code>, <code>"landscape"</code> or <code>"any"</code>.</p>
33353335 <p><code>appid_android</code> is used for the Java package name of the app. It should not contain dashes.</p>
33363336 <h1 id="d-モデル">3D モデル</h1>
3337-<p>Amulet has some basic support for loading 3D models in Wavefront <code>.obj</code> format.</p>
3337+<p>Amulet は 3D モデルのロードについて Wavefront <code>.obj</code> 形式の一部基本機能に対応しています。</p>
33383338 <h3 id="am.load_obj" class="func-def">am.load_obj(filename)</h3>
3339-<p>This loads the given <code>.obj</code> file and returns 4 things:</p>
3339+<p>これで指定された <code>.obj</code> ファイルのロードと値を4種返します。</p>
33403340 <ol type="1">
3341-<li>A buffer containing the vertex, normal and texture coordinate data.</li>
3342-<li>The stride in bytes.</li>
3343-<li>The offset of the normals in bytes.</li>
3344-<li>The offset of the texture coordinates in bytes.</li>
3341+<li>バッファの内容はバーテックス、法線とテクスチャ座標データとなります。</li>
3342+<li>バイト単位によるストライド (刻み幅)。</li>
3343+<li>バイト単位による法線のオフセット。</li>
3344+<li>バイト単位によるテクスチャ座標のオフセット。</li>
33453345 </ol>
3346-<p>The vertex data is always at offset 0. If the normal or texture coordinate data is not present, the corresponding return value will be nil.</p>
3347-<p>The faces in the <code>.obj</code> file must all be triangles (quads aren’t supported).</p>
3348-<p>Here’s an example of how to load a model and display it. The example loads an model from <code>model.obj</code> and assumes it contains normal and texture coordinate data and the triangles have a counter-clockwise winding. It loads a texture from the file <code>texture.png</code>.</p>
3346+<p>バーテックス・データのオフセットは必ず 0 になります。法線、またはテクスチャ座標データが存在しなければ、対応する返値は nil になります。</p>
3347+<p><code>.obj</code> ファイルの全面は必ず三角形になります (四辺形はサポートされていません)。</p>
3348+<p>これはモデルのロードと表示方法に関する用例です。この用例において <code>model.obj</code> からロードしたモデルには法線とテクスチャ座標データがあり、三角形は反時計回りに回旋するものと想定します。<code>texture.png</code> ファイルからテクスチャをロードします。</p>
33493349 <div class="sourceCode" id="cb122"><pre class="sourceCode lua"><code class="sourceCode lua"><span id="cb122-1"><a href="#cb122-1"></a><span class="kw">local</span> win <span class="op">=</span> am<span class="op">.</span>window<span class="op">{</span>depth_buffer <span class="op">=</span> <span class="kw">true</span><span class="op">}</span></span>
33503350 <span id="cb122-2"><a href="#cb122-2"></a></span>
33513351 <span id="cb122-3"><a href="#cb122-3"></a><span class="kw">local</span> buf<span class="op">,</span> stride<span class="op">,</span> norm_offset<span class="op">,</span> tex_offset <span class="op">=</span> am<span class="op">.</span>load_obj<span class="op">(</span><span class="st">&quot;model.obj&quot;</span><span class="op">)</span></span>
--- a/other/amulet/v1.21.8/target/doc/models.md
+++ b/other/amulet/v1.21.8/target/doc/models.md
@@ -1,27 +1,22 @@
11
22 # 3D モデル
33
4-Amulet has some basic support for loading 3D models in Wavefront `.obj` format.
4+Amulet は 3D モデルのロードについて Wavefront `.obj` 形式の一部基本機能に対応しています。
55
66 ### am.load_obj(filename) {#am.load_obj .func-def}
77
8-This loads the given `.obj` file and returns 4 things:
8+これで指定された `.obj` ファイルのロードと値を4種返します。
99
10-1. A buffer containing the vertex, normal and texture coordinate
11-data.
12-2. The stride in bytes.
13-3. The offset of the normals in bytes.
14-4. The offset of the texture coordinates in bytes.
10+1. バッファの内容はバーテックス、法線とテクスチャ座標データとなります。
11+2. バイト単位によるストライド (刻み幅)。
12+3. バイト単位による法線のオフセット。
13+4. バイト単位によるテクスチャ座標のオフセット。
1514
16-The vertex data is always at offset 0. If the normal or texture coordinate data
17-is not present, the corresponding return value will be nil.
15+バーテックス・データのオフセットは必ず 0 になります。法線、またはテクスチャ座標データが存在しなければ、対応する返値は nil になります。
1816
19-The faces in the `.obj` file must all be triangles (quads aren't supported).
17+`.obj` ファイルの全面は必ず三角形になります (四辺形はサポートされていません)。
2018
21-Here's an example of how to load a model and display it. The example
22-loads an model from `model.obj` and assumes it contains normal
23-and texture coordinate data and the triangles have a counter-clockwise
24-winding. It loads a texture from the file `texture.png`.
19+これはモデルのロードと表示方法に関する用例です。この用例において `model.obj` からロードしたモデルには法線とテクスチャ座標データがあり、三角形は反時計回りに回旋するものと想定します。`texture.png` ファイルからテクスチャをロードします。
2520
2621 ~~~{.lua}
2722 local win = am.window{depth_buffer = true}
--- a/other/amulet/v1.21.8/target/doc/quickstart.md
+++ b/other/amulet/v1.21.8/target/doc/quickstart.md
@@ -154,7 +154,7 @@ local win = am.window{
154154 height = 300,
155155 clear_color = vec4(1, 0, 0.5, 1)
156156 }
157-win.scene =
157+win.scene =
158158 am.translate(150, 100)
159159 ^ am.scale(2)
160160 ^ am.rotate(math.rad(90))
@@ -360,7 +360,7 @@ local win = am.window{
360360 height = 300,
361361 }
362362
363-win.scene =
363+win.scene =
364364 am.group()
365365 ^ {
366366 am.sprite"beach.jpg"
@@ -398,7 +398,7 @@ We'll also tag the ball's translate and
398398 rotate nodes so we can easily access them:
399399
400400 ~~~{.lua}
401-win.scene =
401+win.scene =
402402 am.group()
403403 ^ {
404404 am.sprite"beach.jpg"
--- a/other/amulet/v1.21.8/target/doc/scene_nodes.md
+++ b/other/amulet/v1.21.8/target/doc/scene_nodes.md
@@ -65,7 +65,7 @@ If `node2` or `node3` were graphs with multiple nodes, then
6565 Here is a more complex example:
6666
6767 ~~~{.lua}
68-node1
68+node1
6969 ^ node2
7070 ^ {
7171 node3
@@ -552,7 +552,7 @@ local node = am.blend("add_alpha")
552552 }
553553 ~~~
554554
555-Methods:
555+メソッド:
556556
557557 - `reset()`: resets the particles as if they had just been created with their
558558 current settings.
@@ -1103,7 +1103,7 @@ for more details.
11031103 - `num_quads`: The number of quads. This is zero
11041104 initially.
11051105
1106-Methods:
1106+メソッド:
11071107
11081108 - `add_quad(data)`: adds a quad to be rendered and returns
11091109 the quad number. `data` is a table where the keys are attribute names and the
@@ -1203,7 +1203,7 @@ be set.
12031203 - `auto_clear`: Whether to automatically clear the texture before rendering each frame. 更新可能。
12041204 - `program`: The shader program to use to render the texture. 更新可能。
12051205
1206-Methods:
1206+メソッド:
12071207
12081208 - `clear()`: Clear the texture manually.
12091209
--- a/other/amulet/v1.21.8/target/doc/spritepack.md
+++ b/other/amulet/v1.21.8/target/doc/spritepack.md
@@ -1,7 +1,7 @@
11
22 # Packing sprites and generating fonts {#spritepack}
33
4-## Overview
4+## 概要
55
66 Amulet includes a tool for packing images and font glyphs
77 into a sprite sheet and generating a Lua module for
--- a/other/amulet/v1.21.8/target/doc/windows.md
+++ b/other/amulet/v1.21.8/target/doc/windows.md
@@ -63,7 +63,7 @@ default `false`).
6363
6464 - **`stencil_clear_value`**:
6565 The value to clear the stencil buffer with before drawing each
66-frame (an integer between 0 and 255). The default is 0.
66+frame (an integer between 0 and 255). デフォルトは 0 です。
6767
6868 - **`lock_pointer`**:
6969 `true` or `false`. When pointer lock is enabled the cursor will be
--- a/other/amulet/v1.21.8/v1.21.8-level1.tmx
+++ b/other/amulet/v1.21.8/v1.21.8-level1.tmx
@@ -340,6 +340,20 @@ end</seg>
340340 </tu>
341341 <tu>
342342 <tuv lang="EN-US">
343+ <seg>local buf = am.buffer(12)
344+local view = buf:view("float")
345+view[1] = 1.5
346+view[2] = view[1] + 2</seg>
347+ </tuv>
348+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070147Z" creationid="isVowel" creationdate="20200617T070147Z">
349+ <seg>local buf = am.buffer(12)
350+local view = buf:view("float")
351+view[1] = 1.5
352+view[2] = view[1] + 2</seg>
353+ </tuv>
354+ </tu>
355+ <tu>
356+ <tuv lang="EN-US">
343357 <seg></seg>
344358 </tuv>
345359 <tuv lang="JA" changeid="isVowel" changedate="20200609T035607Z" creationid="isVowel" creationdate="20200609T035607Z">
@@ -412,6 +426,44 @@ end</seg>
412426 </tu>
413427 <tu>
414428 <tuv lang="EN-US">
429+ <seg>"float" 4 approx -3.4e38 to 3.4e38 same native
430+"vec2" 8 any vec2 same native
431+"vec3" 12 any vec3 same native
432+"vec4" 16 any vec4 same native
433+"byte" 1 -128 to 127 same N/A
434+"ubyte" 1 0 to 255 same N/A
435+"byte_norm" 1 -1.0 to 1.0 -127 to 127 N/A
436+"ubyte_norm" 1 0.0 to 1.0 0 to 255 N/A
437+"short" 2 -32768 to 32767 same native
438+"ushort" 2 0 to 65535 same native
439+"short_norm" 2 -1.0 to 1.0 -32767 to 32767 native
440+"ushort_norm" 2 0.0 to 1.0 0 to 65535 native
441+"ushort_elem" 2 1 to 65536 0 to 65535 native
442+"int" 4 -2147483648 to 2147483647 same native
443+"uint" 4 0 to 4294967295 same native
444+"uint_elem" 4 1 to 4294967296 0 to 4294967295 native</seg>
445+ </tuv>
446+ <tuv lang="JA" changeid="isVowel" changedate="20200617T064733Z" creationid="isVowel" creationdate="20200617T064212Z">
447+ <seg>"float" 4 約 -3.4e38 ~ 3.4e38 同一 ネイティブ
448+"vec2" 8 全 vec2 同一 ネイティブ
449+"vec3" 12 全 vec3 同一 ネイティブ
450+"vec4" 16 全 vec4 同一 ネイティブ
451+"byte" 1 -128 ~ 127 同一 なし
452+"ubyte" 1 0 ~ 255 同一 なし
453+"byte_norm" 1 -1.0 ~ 1.0 -127 ~ 127 なし
454+"ubyte_norm" 1 0.0 ~ 1.0 0 ~ 255 なし
455+"short" 2 -32768 ~ 32767 同一 ネイティブ
456+"ushort" 2 0 ~ 65535 同一 ネイティブ
457+"short_norm" 2 -1.0 ~ 1.0 -32767 ~ 32767 ネイティブ
458+"ushort_norm" 2 0.0 ~ 1.0 0 ~ 65535 ネイティブ
459+"ushort_elem" 2 1 ~ 65536 0 ~ 65535 ネイティブ
460+"int" 4 -2147483648 ~ 2147483647 同一 ネイティブ
461+"uint" 4 0 ~ 4294967295 同一 ネイティブ
462+"uint_elem" 4 1 ~ 4294967296 0 ~ 4294967295 ネイティブ</seg>
463+ </tuv>
464+ </tu>
465+ <tu>
466+ <tuv lang="EN-US">
415467 <seg>"g"</seg>
416468 </tuv>
417469 <tuv lang="JA" changeid="isVowel" changedate="20200616T073737Z" creationid="isVowel" creationdate="20200616T073737Z">
@@ -1080,6 +1132,14 @@ in Hz.</seg>
10801132 </tu>
10811133 <tu>
10821134 <tuv lang="EN-US">
1135+ <seg>mark_dirty(): Mark the buffer dirty.</seg>
1136+ </tuv>
1137+ <tuv lang="JA" changeid="isVowel" changedate="20200617T071509Z" creationid="isVowel" creationdate="20200617T071355Z">
1138+ <seg>mark_dirty(): バッファの汚染標識を付けます。</seg>
1139+ </tuv>
1140+ </tu>
1141+ <tu>
1142+ <tuv lang="EN-US">
10831143 <seg>min_fps: the minimum frames per second over the last 60 frames</seg>
10841144 </tuv>
10851145 <tuv lang="JA" changeid="isVowel" changedate="20200609T030907Z" creationid="isVowel" creationdate="20200609T030907Z">
@@ -1309,6 +1369,15 @@ main.lua:1: 動くぞ!</seg>
13091369 </tu>
13101370 <tu>
13111371 <tuv lang="EN-US">
1372+ <seg>A buffer containing the vertex, normal and texture coordinate
1373+data.</seg>
1374+ </tuv>
1375+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075838Z" creationid="isVowel" creationdate="20200617T075838Z">
1376+ <seg>バッファの内容はバーテックス、法線とテクスチャ座標データとなります。</seg>
1377+ </tuv>
1378+ </tu>
1379+ <tu>
1380+ <tuv lang="EN-US">
13121381 <seg>A framebuffer is like an off-screen window you can draw to.</seg>
13131382 </tuv>
13141383 <tuv lang="JA" changeid="isVowel" changedate="20200612T062321Z" creationid="isVowel" creationdate="20200612T062051Z">
@@ -1424,6 +1493,14 @@ if it has a different sample rate (this requires extra processing).</seg>
14241493 </tu>
14251494 <tu>
14261495 <tuv lang="EN-US">
1496+ <seg>Amulet has some basic support for loading 3D models in Wavefront .obj format.</seg>
1497+ </tuv>
1498+ <tuv lang="JA" changeid="isVowel" changedate="20200617T074410Z" creationid="isVowel" creationdate="20200617T074410Z">
1499+ <seg>Amulet は 3D モデルのロードについて Wavefront .obj 形式の一部基本機能に対応しています。</seg>
1500+ </tuv>
1501+ </tu>
1502+ <tu>
1503+ <tuv lang="EN-US">
14271504 <seg>Amulet is a Lua-based audio/visual toolkit designed for small games and experimentation.</seg>
14281505 </tuv>
14291506 <tuv lang="JA" changeid="isVowel" changedate="20200609T035407Z" creationid="isVowel" creationdate="20200609T035407Z">
@@ -1679,6 +1756,30 @@ appended to their names, even on Windows.</seg>
16791756 </tu>
16801757 <tu>
16811758 <tuv lang="EN-US">
1759+ <seg>Buffers</seg>
1760+ </tuv>
1761+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061350Z" creationid="isVowel" creationdate="20200617T061350Z">
1762+ <seg> バッファ</seg>
1763+ </tuv>
1764+ </tu>
1765+ <tu>
1766+ <tuv lang="EN-US">
1767+ <seg>Buffers and views {#buffers-and-views}</seg>
1768+ </tuv>
1769+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065222Z" creationid="isVowel" creationdate="20200617T055931Z">
1770+ <seg>バッファとビュー {#buffers-and-views}</seg>
1771+ </tuv>
1772+ </tu>
1773+ <tu>
1774+ <tuv lang="EN-US">
1775+ <seg>Buffers are contiguous blocks of memory.</seg>
1776+ </tuv>
1777+ <tuv lang="JA" changeid="isVowel" changedate="20200617T060641Z" creationid="isVowel" creationdate="20200617T060641Z">
1778+ <seg>バッファは連続したメモリブロックです。</seg>
1779+ </tuv>
1780+ </tu>
1781+ <tu>
1782+ <tuv lang="EN-US">
16821783 <seg>Build status</seg>
16831784 </tuv>
16841785 <tuv lang="JA" changeid="isVowel" changedate="20200609T035716Z" creationid="isVowel" creationdate="20200609T035716Z">
@@ -1744,6 +1845,14 @@ am.use_program nodes.</seg>
17441845 </tu>
17451846 <tu>
17461847 <tuv lang="EN-US">
1848+ <seg>Converts a base64 string to a buffer.</seg>
1849+ </tuv>
1850+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070913Z" creationid="isVowel" creationdate="20200617T070902Z">
1851+ <seg>Base64 エンコード文字列をバッファへ変換します。</seg>
1852+ </tuv>
1853+ </tu>
1854+ <tu>
1855+ <tuv lang="EN-US">
17471856 <seg>Converts a table to a string.</seg>
17481857 </tuv>
17491858 <tuv lang="JA" changeid="isVowel" changedate="20200616T071453Z" creationid="isVowel" creationdate="20200616T071453Z">
@@ -1935,8 +2044,8 @@ image buffer.</seg>
19352044 <tuv lang="EN-US">
19362045 <seg>Documentation</seg>
19372046 </tuv>
1938- <tuv lang="JA" changeid="isVowel" changedate="20200609T040717Z" creationid="isVowel" creationdate="20200609T040717Z">
1939- <seg>取扱説明書類</seg>
2047+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062332Z" creationid="isVowel" creationdate="20200609T040717Z">
2048+ <seg>取扱説明書</seg>
19402049 </tuv>
19412050 </tu>
19422051 <tu>
@@ -2169,6 +2278,14 @@ even on Windows.</seg>
21692278 </tu>
21702279 <tu>
21712280 <tuv lang="EN-US">
2281+ <seg>Here's an example of how to load a model and display it.</seg>
2282+ </tuv>
2283+ <tuv lang="JA" changeid="isVowel" changedate="20200617T080644Z" creationid="isVowel" creationdate="20200617T080644Z">
2284+ <seg>これはモデルのロードと表示方法に関する用例です。</seg>
2285+ </tuv>
2286+ </tu>
2287+ <tu>
2288+ <tuv lang="EN-US">
21722289 <seg>Here's an example:</seg>
21732290 </tuv>
21742291 <tuv lang="JA" changeid="isVowel" changedate="20200612T044121Z" creationid="isVowel" creationdate="20200612T044121Z">
@@ -2177,10 +2294,18 @@ even on Windows.</seg>
21772294 </tu>
21782295 <tu>
21792296 <tuv lang="EN-US">
2297+ <seg>Here's how to create a 800x600 window:</seg>
2298+ </tuv>
2299+ <tuv lang="JA" changeid="isVowel" changedate="20200617T113319Z" creationid="isVowel" creationdate="20200617T113319Z">
2300+ <seg>これは 800x600 のウィンドウを作成します:</seg>
2301+ </tuv>
2302+ </tu>
2303+ <tu>
2304+ <tuv lang="EN-US">
21802305 <seg>Here's what a minimal Hello World!</seg>
21812306 </tuv>
2182- <tuv lang="JA" changeid="isVowel" changedate="20200609T035531Z" creationid="isVowel" creationdate="20200609T035531Z">
2183- <seg>これは Hello World! です</seg>
2307+ <tuv lang="JA" changeid="isVowel" changedate="20200617T055629Z" creationid="isVowel" creationdate="20200609T035531Z">
2308+ <seg>これは Hello World! です。</seg>
21842309 </tuv>
21852310 </tu>
21862311 <tu>
@@ -2254,6 +2379,15 @@ then nil is returned.</seg>
22542379 </tu>
22552380 <tu>
22562381 <tuv lang="EN-US">
2382+ <seg>If the normal or texture coordinate data
2383+is not present, the corresponding return value will be nil.</seg>
2384+ </tuv>
2385+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075436Z" creationid="isVowel" creationdate="20200617T075436Z">
2386+ <seg>法線、またはテクスチャ座標データが存在しなければ、対応する返値は nil になります。</seg>
2387+ </tuv>
2388+ </tu>
2389+ <tu>
2390+ <tuv lang="EN-US">
22572391 <seg>If there was an error parsing the JSON
22582392 then nil is returned and the error message is returned as
22592393 a second return value.</seg>
@@ -2378,6 +2512,15 @@ or feature requests to me at ian -at- ianmaclarty.com, or use the</seg>
23782512 </tu>
23792513 <tu>
23802514 <tuv lang="EN-US">
2515+ <seg>Instead you access a buffer
2516+through a view.</seg>
2517+ </tuv>
2518+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061256Z" creationid="isVowel" creationdate="20200617T060633Z">
2519+ <seg>バッファには view (ビュー) からアクセスします。</seg>
2520+ </tuv>
2521+ </tu>
2522+ <tu>
2523+ <tuv lang="EN-US">
23812524 <seg>Instead you need to construct a new
23822525 vector.</seg>
23832526 </tuv>
@@ -2420,6 +2563,14 @@ draw to the framebuffer.</seg>
24202563 </tu>
24212564 <tu>
24222565 <tuv lang="EN-US">
2566+ <seg>It loads a texture from the file texture.png.</seg>
2567+ </tuv>
2568+ <tuv lang="JA" changeid="isVowel" changedate="20200617T074606Z" creationid="isVowel" creationdate="20200617T074606Z">
2569+ <seg>texture.png ファイルからテクスチャをロードします。</seg>
2570+ </tuv>
2571+ </tu>
2572+ <tu>
2573+ <tuv lang="EN-US">
24232574 <seg>It provides a cross-platform API
24242575 for drawing graphics, playing audio and responding to user input, and a
24252576 command-line interpreter for running Amulet scripts.</seg>
@@ -2583,6 +2734,15 @@ a function that, when called, will run the script.</seg>
25832734 </tu>
25842735 <tu>
25852736 <tuv lang="EN-US">
2737+ <seg>Loads the given file and returns a buffer containing the
2738+file's data, or nil if the file wasn't found.</seg>
2739+ </tuv>
2740+ <tuv lang="JA" changeid="isVowel" changedate="20200617T072744Z" creationid="isVowel" creationdate="20200617T072744Z">
2741+ <seg>指定されたファイルのロードを行い、ファイルのデータがあるバッファを返します。ファイルがなければ nil を返します。</seg>
2742+ </tuv>
2743+ </tu>
2744+ <tu>
2745+ <tuv lang="EN-US">
25862746 <seg>Loads the given image file and returns a new image buffer.</seg>
25872747 </tuv>
25882748 <tuv lang="JA" changeid="isVowel" changedate="20200612T063142Z" creationid="isVowel" creationdate="20200612T063142Z">
@@ -2648,6 +2808,14 @@ it.</seg>
26482808 </tu>
26492809 <tu>
26502810 <tuv lang="EN-US">
2811+ <seg>MV = mat4(1),</seg>
2812+ </tuv>
2813+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111444Z" creationid="isVowel" creationdate="20200617T111444Z">
2814+ <seg>MV = mat4(1),</seg>
2815+ </tuv>
2816+ </tu>
2817+ <tu>
2818+ <tuv lang="EN-US">
26512819 <seg>Mac OS X</seg>
26522820 </tuv>
26532821 <tuv lang="JA" changeid="isVowel" changedate="20200609T035415Z" creationid="isVowel" creationdate="20200609T035415Z">
@@ -2688,6 +2856,14 @@ it.</seg>
26882856 </tu>
26892857 <tu>
26902858 <tuv lang="EN-US">
2859+ <seg>Methods:</seg>
2860+ </tuv>
2861+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061538Z" creationid="isVowel" creationdate="20200617T061538Z">
2862+ <seg>メソッド:</seg>
2863+ </tuv>
2864+ </tu>
2865+ <tu>
2866+ <tuv lang="EN-US">
26912867 <seg>Mouse</seg>
26922868 </tuv>
26932869 <tuv lang="JA" changeid="isVowel" changedate="20200604T204741Z" creationid="isVowel" creationdate="20200604T204741Z">
@@ -2739,6 +2915,17 @@ currently support this feature.</seg>
27392915 </tu>
27402916 <tu>
27412917 <tuv lang="EN-US">
2918+ <seg>Note that you don't need to call this method if
2919+you're not using dataptr to update the buffer, for example if you're updating
2920+it through a view - in that case the buffer will automatically be marked
2921+dirty.</seg>
2922+ </tuv>
2923+ <tuv lang="JA" changeid="isVowel" changedate="20200617T072519Z" creationid="isVowel" creationdate="20200617T072418Z">
2924+ <seg>注意点として、このメソッドはバッファの更新で dataptr を使わないならば呼び出し不要です。例えば、ビューから更新をする場合は自動的にバッファの汚染標識が付けられます。</seg>
2925+ </tuv>
2926+ </tu>
2927+ <tu>
2928+ <tuv lang="EN-US">
27422929 <seg>O = vec4(1, 0.5, 0, 1), -- full orange</seg>
27432930 </tuv>
27442931 <tuv lang="JA" changeid="isVowel" changedate="20200612T050130Z" creationid="isVowel" creationdate="20200612T050130Z">
@@ -2834,6 +3021,30 @@ are not supported anc cycles are not detected.</seg>
28343021 </tu>
28353022 <tu>
28363023 <tuv lang="EN-US">
3024+ <seg>Overview</seg>
3025+ </tuv>
3026+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111646Z" creationid="isVowel" creationdate="20200617T111646Z">
3027+ <seg>概要</seg>
3028+ </tuv>
3029+ </tu>
3030+ <tu>
3031+ <tuv lang="EN-US">
3032+ <seg>P = mat4(1),</seg>
3033+ </tuv>
3034+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111442Z" creationid="isVowel" creationdate="20200617T111442Z">
3035+ <seg>P = mat4(1),</seg>
3036+ </tuv>
3037+ </tu>
3038+ <tu>
3039+ <tuv lang="EN-US">
3040+ <seg>P = math.perspective(math.rad(60), win.width/win.height, 1, 1000),</seg>
3041+ </tuv>
3042+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073227Z" creationid="isVowel" creationdate="20200617T073227Z">
3043+ <seg>P = math.perspective(math.rad(60), win.width/win.height, 1, 1000),</seg>
3044+ </tuv>
3045+ </tu>
3046+ <tu>
3047+ <tuv lang="EN-US">
28373048 <seg>Passing a single number to a vector constructor will set all components
28383049 of the vector to that value.</seg>
28393050 </tuv>
@@ -2989,6 +3200,22 @@ another common use of 4 dimensional vectors.</seg>
29893200 </tu>
29903201 <tu>
29913202 <tuv lang="EN-US">
3203+ <seg>Returns a base64 encoding of a buffer as a string.</seg>
3204+ </tuv>
3205+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070827Z" creationid="isVowel" creationdate="20200617T070827Z">
3206+ <seg>バッファを Base64 エンコード文字列へ変換して返します。</seg>
3207+ </tuv>
3208+ </tu>
3209+ <tu>
3210+ <tuv lang="EN-US">
3211+ <seg>Returns a new buffer of the given size in bytes.</seg>
3212+ </tuv>
3213+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061652Z" creationid="isVowel" creationdate="20200617T061652Z">
3214+ <seg>指定されたバイト単位による size で新しいバッファを返します。</seg>
3215+ </tuv>
3216+ </tu>
3217+ <tu>
3218+ <tuv lang="EN-US">
29923219 <seg>Returns a raw buffer containing the png encoding of the given
29933220 image.</seg>
29943221 </tuv>
@@ -3134,8 +3361,8 @@ result as a Lua value.</seg>
31343361 <tuv lang="EN-US">
31353362 <seg>See .</seg>
31363363 </tuv>
3137- <tuv lang="JA" changeid="isVowel" changedate="20200609T040728Z" creationid="isVowel" creationdate="20200609T040728Z">
3138- <seg>こちらをお読みください。</seg>
3364+ <tuv lang="JA" changeid="isVowel" changedate="20200617T055618Z" creationid="isVowel" creationdate="20200609T040728Z">
3365+ <seg>こちらをお読みください: </seg>
31393366 </tuv>
31403367 </tu>
31413368 <tu>
@@ -3315,6 +3542,14 @@ are converted to JSON arrays.</seg>
33153542 </tu>
33163543 <tu>
33173544 <tuv lang="EN-US">
3545+ <seg>The # operator can be used to retrieve the size of a buffer in bytes.</seg>
3546+ </tuv>
3547+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062046Z" creationid="isVowel" creationdate="20200617T062046Z">
3548+ <seg># 演算子はバッファサイズをバイト単位で取得するために使えます。</seg>
3549+ </tuv>
3550+ </tu>
3551+ <tu>
3552+ <tuv lang="EN-US">
33183553 <seg>The # operator returns the length of an array and array indices start at 1 by
33193554 default.</seg>
33203555 </tuv>
@@ -3427,6 +3662,22 @@ as a series of single precision floats (4 bytes each).</seg>
34273662 </tu>
34283663 <tu>
34293664 <tuv lang="EN-US">
3665+ <seg>The buffer associated with the view.</seg>
3666+ </tuv>
3667+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070138Z" creationid="isVowel" creationdate="20200617T070138Z">
3668+ <seg>ビューと関連付けられたバッファ。</seg>
3669+ </tuv>
3670+ </tu>
3671+ <tu>
3672+ <tuv lang="EN-US">
3673+ <seg>The buffer's memory will be zeroed.</seg>
3674+ </tuv>
3675+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061923Z" creationid="isVowel" creationdate="20200617T061923Z">
3676+ <seg>バッファのメモリはゼロクリアされます。</seg>
3677+ </tuv>
3678+ </tu>
3679+ <tu>
3680+ <tuv lang="EN-US">
34303681 <seg>The code:</seg>
34313682 </tuv>
34323683 <tuv lang="JA" changeid="isVowel" changedate="20200610T052441Z" creationid="isVowel" creationdate="20200610T052441Z">
@@ -3460,6 +3711,14 @@ lua.</seg>
34603711 </tu>
34613712 <tu>
34623713 <tuv lang="EN-US">
3714+ <seg>The default is 0.</seg>
3715+ </tuv>
3716+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065251Z" creationid="isVowel" creationdate="20200617T065251Z">
3717+ <seg>デフォルトは 0 です。</seg>
3718+ </tuv>
3719+ </tu>
3720+ <tu>
3721+ <tuv lang="EN-US">
34633722 <seg>The default is lua.</seg>
34643723 </tuv>
34653724 <tuv lang="JA" changeid="isVowel" changedate="20200610T171105Z" creationid="isVowel" creationdate="20200610T171105Z">
@@ -3468,6 +3727,22 @@ lua.</seg>
34683727 </tu>
34693728 <tu>
34703729 <tuv lang="EN-US">
3730+ <seg>The default is "static".</seg>
3731+ </tuv>
3732+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062139Z" creationid="isVowel" creationdate="20200617T062139Z">
3733+ <seg>デフォルトは "static" です。</seg>
3734+ </tuv>
3735+ </tu>
3736+ <tu>
3737+ <tuv lang="EN-US">
3738+ <seg>The default value for start is 1.</seg>
3739+ </tuv>
3740+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070456Z" creationid="isVowel" creationdate="20200617T070456Z">
3741+ <seg>start のデフォルト値は 1 です。</seg>
3742+ </tuv>
3743+ </tu>
3744+ <tu>
3745+ <tuv lang="EN-US">
34713746 <seg>The else part of an if-then-else executes
34723747 only if the condition evaluates to false or nil.</seg>
34733748 </tuv>
@@ -3477,6 +3752,25 @@ only if the condition evaluates to false or nil.</seg>
34773752 </tu>
34783753 <tu>
34793754 <tuv lang="EN-US">
3755+ <seg>The example
3756+loads an model from model.obj and assumes it contains normal
3757+and texture coordinate data and the triangles have a counter-clockwise
3758+winding.</seg>
3759+ </tuv>
3760+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111127Z" creationid="isVowel" creationdate="20200617T083057Z">
3761+ <seg>この用例において model.obj からロードしたモデルには法線とテクスチャ座標データがあり、三角形は反時計回りに回旋するものと想定します。</seg>
3762+ </tuv>
3763+ </tu>
3764+ <tu>
3765+ <tuv lang="EN-US">
3766+ <seg>The faces in the .obj file must all be triangles (quads aren't supported).</seg>
3767+ </tuv>
3768+ <tuv lang="JA" changeid="isVowel" changedate="20200617T080529Z" creationid="isVowel" creationdate="20200617T080529Z">
3769+ <seg>.obj ファイルの全面は必ず三角形になります (四辺形はサポートされていません)。</seg>
3770+ </tuv>
3771+ </tu>
3772+ <tu>
3773+ <tuv lang="EN-US">
34803774 <seg>The file must be a .ogg audio file.</seg>
34813775 </tuv>
34823776 <tuv lang="JA" changeid="isVowel" changedate="20200616T012414Z" creationid="isVowel" creationdate="20200616T012414Z">
@@ -3587,6 +3881,22 @@ in an overlay on the main window.</seg>
35873881 </tu>
35883882 <tu>
35893883 <tuv lang="EN-US">
3884+ <seg>The offset of the normals in bytes.</seg>
3885+ </tuv>
3886+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075529Z" creationid="isVowel" creationdate="20200617T075529Z">
3887+ <seg>バイト単位による法線のオフセット。</seg>
3888+ </tuv>
3889+ </tu>
3890+ <tu>
3891+ <tuv lang="EN-US">
3892+ <seg>The offset of the texture coordinates in bytes.</seg>
3893+ </tuv>
3894+ <tuv lang="JA" changeid="isVowel" changedate="20200617T074951Z" creationid="isVowel" creationdate="20200617T074951Z">
3895+ <seg>バイト単位によるテクスチャ座標のオフセット。</seg>
3896+ </tuv>
3897+ </tu>
3898+ <tu>
3899+ <tuv lang="EN-US">
35903900 <seg>The platform Amulet is running on.</seg>
35913901 </tuv>
35923902 <tuv lang="JA" changeid="isVowel" changedate="20200604T173546Z" creationid="isVowel" creationdate="20200604T173546Z">
@@ -3662,6 +3972,14 @@ on Windows (you don't need to use \).</seg>
36623972 </tu>
36633973 <tu>
36643974 <tuv lang="EN-US">
3975+ <seg>The stride in bytes.</seg>
3976+ </tuv>
3977+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075624Z" creationid="isVowel" creationdate="20200617T075624Z">
3978+ <seg>バイト単位によるストライド (刻み幅)。</seg>
3979+ </tuv>
3980+ </tu>
3981+ <tu>
3982+ <tuv lang="EN-US">
36653983 <seg>The string concatenation operator is two dots (e.g. "abc".."def").</seg>
36663984 </tuv>
36673985 <tuv lang="JA" changeid="isVowel" changedate="20200605T015714Z" creationid="isVowel" creationdate="20200605T015714Z">
@@ -3712,6 +4030,14 @@ and Lua-5.1 on all other platforms.</seg>
37124030 </tu>
37134031 <tu>
37144032 <tuv lang="EN-US">
4033+ <seg>The vertex data is always at offset 0.</seg>
4034+ </tuv>
4035+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075034Z" creationid="isVowel" creationdate="20200617T075034Z">
4036+ <seg>バーテックス・データのオフセットは必ず 0 になります。</seg>
4037+ </tuv>
4038+ </tu>
4039+ <tu>
4040+ <tuv lang="EN-US">
37154041 <seg>The width of the framebuffer, in pixels.</seg>
37164042 </tuv>
37174043 <tuv lang="JA" changeid="isVowel" changedate="20200612T055231Z" creationid="isVowel" creationdate="20200612T055231Z">
@@ -3746,8 +4072,8 @@ and Lua-5.1 on all other platforms.</seg>
37464072 <tuv lang="EN-US">
37474073 <seg>These are available from .</seg>
37484074 </tuv>
3749- <tuv lang="JA" changeid="isVowel" changedate="20200609T040745Z" creationid="isVowel" creationdate="20200609T040706Z">
3750- <seg>こちらでダウンロードしてください。</seg>
4075+ <tuv lang="JA" changeid="isVowel" changedate="20200617T055615Z" creationid="isVowel" creationdate="20200609T040706Z">
4076+ <seg>こちらでダウンロードしてください: </seg>
37514077 </tuv>
37524078 </tu>
37534079 <tu>
@@ -3771,6 +4097,15 @@ to HTML from the desktop version.</seg>
37714097 </tu>
37724098 <tu>
37734099 <tuv lang="EN-US">
4100+ <seg>They are used for storing images,
4101+audio and vertex data, or anything else you like.</seg>
4102+ </tuv>
4103+ <tuv lang="JA" changeid="isVowel" changedate="20200617T060358Z" creationid="isVowel" creationdate="20200617T060358Z">
4104+ <seg>バッファはイメージ、オーディオとバーテックス・データ、またはそれ以外のものなどを記録するために使われます。</seg>
4105+ </tuv>
4106+ </tu>
4107+ <tu>
4108+ <tuv lang="EN-US">
37744109 <seg>They can be used as key-value maps or arrays.</seg>
37754110 </tuv>
37764111 <tuv lang="JA" changeid="isVowel" changedate="20200605T020941Z" creationid="isVowel" creationdate="20200605T020941Z">
@@ -3848,6 +4183,14 @@ shader language supported by WebGL 1.</seg>
38484183 </tu>
38494184 <tu>
38504185 <tuv lang="EN-US">
4186+ <seg>This loads the given .obj file and returns 4 things:</seg>
4187+ </tuv>
4188+ <tuv lang="JA" changeid="isVowel" changedate="20200617T080044Z" creationid="isVowel" creationdate="20200617T080044Z">
4189+ <seg>これで指定された .obj ファイルのロードと値を4種返します。</seg>
4190+ </tuv>
4191+ </tu>
4192+ <tu>
4193+ <tuv lang="EN-US">
38514194 <seg>This means that once you create a
38524195 vector, its value cannot be changed.</seg>
38534196 </tuv>
@@ -3874,6 +4217,25 @@ Game Center functions.</seg>
38744217 </tu>
38754218 <tu>
38764219 <tuv lang="EN-US">
4220+ <seg>This should be called if you
4221+update the buffer using the dataptr field.</seg>
4222+ </tuv>
4223+ <tuv lang="JA" changeid="isVowel" changedate="20200617T071450Z" creationid="isVowel" creationdate="20200617T071450Z">
4224+ <seg>これは dataptr フィールドでバッファを更新する場合は必ず呼び出してください。</seg>
4225+ </tuv>
4226+ </tu>
4227+ <tu>
4228+ <tuv lang="EN-US">
4229+ <seg>This will cause
4230+data to be copied to any textures or vbos that depend on the buffer
4231+when next they are drawn.</seg>
4232+ </tuv>
4233+ <tuv lang="JA" changeid="isVowel" changedate="20200617T071854Z" creationid="isVowel" creationdate="20200617T071854Z">
4234+ <seg>これは次回描画時に、バッファ依存のテクスチャ、または vbos のデータをコピーします。</seg>
4235+ </tuv>
4236+ </tu>
4237+ <tu>
4238+ <tuv lang="EN-US">
38774239 <seg>This will generate zip package files for Windows, Mac and Linux in the
38784240 current directory.</seg>
38794241 </tuv>
@@ -3891,6 +4253,14 @@ current directory.</seg>
38914253 </tu>
38924254 <tu>
38934255 <tuv lang="EN-US">
4256+ <seg>To close a window call its window:close method.</seg>
4257+ </tuv>
4258+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112732Z" creationid="isVowel" creationdate="20200617T112732Z">
4259+ <seg>ウィンドウを閉じるには window:close メソッドを呼び出します。</seg>
4260+ </tuv>
4261+ </tu>
4262+ <tu>
4263+ <tuv lang="EN-US">
38944264 <seg>To construct a vector use one of the functions vec2, vec3 or vec4.</seg>
38954265 </tuv>
38964266 <tuv lang="JA" changeid="isVowel" changedate="20200612T061227Z" creationid="isVowel" creationdate="20200612T061227Z">
@@ -3899,6 +4269,14 @@ current directory.</seg>
38994269 </tu>
39004270 <tu>
39014271 <tuv lang="EN-US">
4272+ <seg>To create a window use the am.window function.</seg>
4273+ </tuv>
4274+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111424Z" creationid="isVowel" creationdate="20200617T111424Z">
4275+ <seg>ウィンドウを作成するには am.window 関数を使います。</seg>
4276+ </tuv>
4277+ </tu>
4278+ <tu>
4279+ <tuv lang="EN-US">
39024280 <seg>To generate distribution packages, use the amulet export command like so:</seg>
39034281 </tuv>
39044282 <tuv lang="JA" changeid="isVowel" changedate="20200610T123912Z" creationid="isVowel" creationdate="20200610T123906Z">
@@ -3966,6 +4344,38 @@ velocity in 2 or 3 dimensional space.</seg>
39664344 </tu>
39674345 <tu>
39684346 <tuv lang="EN-US">
4347+ <seg>View fields</seg>
4348+ </tuv>
4349+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061451Z" creationid="isVowel" creationdate="20200617T061451Z">
4350+ <seg>View フィールド</seg>
4351+ </tuv>
4352+ </tu>
4353+ <tu>
4354+ <tuv lang="EN-US">
4355+ <seg>View methods</seg>
4356+ </tuv>
4357+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061438Z" creationid="isVowel" creationdate="20200617T061438Z">
4358+ <seg>View メソッド</seg>
4359+ </tuv>
4360+ </tu>
4361+ <tu>
4362+ <tuv lang="EN-US">
4363+ <seg>Views</seg>
4364+ </tuv>
4365+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061525Z" creationid="isVowel" creationdate="20200617T061525Z">
4366+ <seg>ビュー</seg>
4367+ </tuv>
4368+ </tu>
4369+ <tu>
4370+ <tuv lang="EN-US">
4371+ <seg>Views provide a typed array-like interface to the buffer.</seg>
4372+ </tuv>
4373+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061319Z" creationid="isVowel" creationdate="20200617T061032Z">
4374+ <seg>ビューではバッファへ配列風のインターフェース型が使えます。</seg>
4375+ </tuv>
4376+ </tu>
4377+ <tu>
4378+ <tuv lang="EN-US">
39694379 <seg>W = vec4(1, 1, 1, 1), -- full white</seg>
39704380 </tuv>
39714381 <tuv lang="JA" changeid="isVowel" changedate="20200612T045331Z" creationid="isVowel" creationdate="20200612T045331Z">
@@ -4104,6 +4514,14 @@ table with all of the following fields:</seg>
41044514 </tu>
41054515 <tu>
41064516 <tuv lang="EN-US">
4517+ <seg>You can't access a buffer's memory directly.</seg>
4518+ </tuv>
4519+ <tuv lang="JA" changeid="isVowel" changedate="20200617T060527Z" creationid="isVowel" creationdate="20200617T060527Z">
4520+ <seg>直接的にはバッファのメモリへアクセスすることはできません。</seg>
4521+ </tuv>
4522+ </tu>
4523+ <tu>
4524+ <tuv lang="EN-US">
41074525 <seg>You will need to create your own version of msys.bat with something
41084526 like the following at the top:</seg>
41094527 </tuv>
@@ -4132,58 +4550,154 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
41324550 </tu>
41334551 <tu>
41344552 <tuv lang="EN-US">
4135- <seg>am.ascii_color_map = {</seg>
4553+ <seg>^ am.bind{</seg>
41364554 </tuv>
4137- <tuv lang="JA" changeid="isVowel" changedate="20200612T053451Z" creationid="isVowel" creationdate="20200612T053451Z">
4138- <seg>am.ascii_color_map = {</seg>
4555+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073225Z" creationid="isVowel" creationdate="20200617T073225Z">
4556+ <seg>^ am.bind{</seg>
41394557 </tuv>
41404558 </tu>
41414559 <tu>
41424560 <tuv lang="EN-US">
4143- <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
4561+ <seg>^ am.draw("triangles")</seg>
41444562 </tuv>
4145- <tuv lang="JA" changeid="isVowel" changedate="20200616T012736Z" creationid="isVowel" creationdate="20200616T012736Z">
4146- <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
4563+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111457Z" creationid="isVowel" creationdate="20200617T111457Z">
4564+ <seg>^ am.draw("triangles")</seg>
41474565 </tuv>
41484566 </tu>
41494567 <tu>
41504568 <tuv lang="EN-US">
4151- <seg>am.current_time() {#am.current_time .func-def}</seg>
4569+ <seg>^ am.translate(0, 0, -5)</seg>
41524570 </tuv>
4153- <tuv lang="JA" changeid="isVowel" changedate="20200604T204259Z" creationid="isVowel" creationdate="20200604T204259Z">
4154- <seg>am.current_time() {#am.current_time .func-def}</seg>
4571+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073222Z" creationid="isVowel" creationdate="20200617T073222Z">
4572+ <seg>^ am.translate(0, 0, -5)</seg>
41554573 </tuv>
41564574 </tu>
41574575 <tu>
41584576 <tuv lang="EN-US">
4159- <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4577+ <seg>^ am.use_program(shader)</seg>
41604578 </tuv>
4161- <tuv lang="JA" changeid="isVowel" changedate="20200612T071218Z" creationid="isVowel" creationdate="20200612T071218Z">
4162- <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4579+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073223Z" creationid="isVowel" creationdate="20200617T073223Z">
4580+ <seg>^ am.use_program(shader)</seg>
41634581 </tuv>
41644582 </tu>
41654583 <tu>
41664584 <tuv lang="EN-US">
4167- <seg>am.delta_time {#am.delta_time .field-def}</seg>
4585+ <seg>^am.draw"triangles"</seg>
41684586 </tuv>
4169- <tuv lang="JA" changeid="isVowel" changedate="20200604T204255Z" creationid="isVowel" creationdate="20200604T204255Z">
4170- <seg>am.delta_time {#am.delta_time .field-def}</seg>
4587+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073244Z" creationid="isVowel" creationdate="20200617T073244Z">
4588+ <seg>^am.draw"triangles"</seg>
41714589 </tuv>
41724590 </tu>
41734591 <tu>
41744592 <tuv lang="EN-US">
4175- <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4593+ <seg>am.ascii_color_map = {</seg>
41764594 </tuv>
4177- <tuv lang="JA" changeid="isVowel" changedate="20200612T071236Z" creationid="isVowel" creationdate="20200612T071236Z">
4178- <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4595+ <tuv lang="JA" changeid="isVowel" changedate="20200612T053451Z" creationid="isVowel" creationdate="20200612T053451Z">
4596+ <seg>am.ascii_color_map = {</seg>
41794597 </tuv>
41804598 </tu>
41814599 <tu>
41824600 <tuv lang="EN-US">
4183- <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4601+ <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
41844602 </tuv>
4185- <tuv lang="JA" changeid="isVowel" changedate="20200604T173314Z" creationid="isVowel" creationdate="20200604T173314Z">
4186- <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4603+ <tuv lang="JA" changeid="isVowel" changedate="20200616T012736Z" creationid="isVowel" creationdate="20200616T012736Z">
4604+ <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
4605+ </tuv>
4606+ </tu>
4607+ <tu>
4608+ <tuv lang="EN-US">
4609+ <seg>am.base64_decode(string) {#am.base64_decode .func-def}</seg>
4610+ </tuv>
4611+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070520Z" creationid="isVowel" creationdate="20200617T070520Z">
4612+ <seg>am.base64_decode(string) {#am.base64_decode .func-def}</seg>
4613+ </tuv>
4614+ </tu>
4615+ <tu>
4616+ <tuv lang="EN-US">
4617+ <seg>am.base64_encode(buffer) {#am.base64_encode .func-def}</seg>
4618+ </tuv>
4619+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070522Z" creationid="isVowel" creationdate="20200617T070522Z">
4620+ <seg>am.base64_encode(buffer) {#am.base64_encode .func-def}</seg>
4621+ </tuv>
4622+ </tu>
4623+ <tu>
4624+ <tuv lang="EN-US">
4625+ <seg>am.buffer(size) {#am.buffer .func-def}</seg>
4626+ </tuv>
4627+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061545Z" creationid="isVowel" creationdate="20200617T061545Z">
4628+ <seg>am.buffer(size) {#am.buffer .func-def}</seg>
4629+ </tuv>
4630+ </tu>
4631+ <tu>
4632+ <tuv lang="EN-US">
4633+ <seg>am.byte_array(table) {#am.byte_array .func-def}</seg>
4634+ </tuv>
4635+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065600Z" creationid="isVowel" creationdate="20200617T065600Z">
4636+ <seg>am.byte_array(table) {#am.byte_array .func-def}</seg>
4637+ </tuv>
4638+ </tu>
4639+ <tu>
4640+ <tuv lang="EN-US">
4641+ <seg>am.byte_norm_array(table) {#am.byte_norm_array .func-def}</seg>
4642+ </tuv>
4643+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065556Z" creationid="isVowel" creationdate="20200617T065556Z">
4644+ <seg>am.byte_norm_array(table) {#am.byte_norm_array .func-def}</seg>
4645+ </tuv>
4646+ </tu>
4647+ <tu>
4648+ <tuv lang="EN-US">
4649+ <seg>am.cull_face"ccw"</seg>
4650+ </tuv>
4651+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073220Z" creationid="isVowel" creationdate="20200617T073220Z">
4652+ <seg>am.cull_face"ccw"</seg>
4653+ </tuv>
4654+ </tu>
4655+ <tu>
4656+ <tuv lang="EN-US">
4657+ <seg>am.current_time() {#am.current_time .func-def}</seg>
4658+ </tuv>
4659+ <tuv lang="JA" changeid="isVowel" changedate="20200604T204259Z" creationid="isVowel" creationdate="20200604T204259Z">
4660+ <seg>am.current_time() {#am.current_time .func-def}</seg>
4661+ </tuv>
4662+ </tu>
4663+ <tu>
4664+ <tuv lang="EN-US">
4665+ <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4666+ </tuv>
4667+ <tuv lang="JA" changeid="isVowel" changedate="20200612T071218Z" creationid="isVowel" creationdate="20200612T071218Z">
4668+ <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4669+ </tuv>
4670+ </tu>
4671+ <tu>
4672+ <tuv lang="EN-US">
4673+ <seg>am.delta_time {#am.delta_time .field-def}</seg>
4674+ </tuv>
4675+ <tuv lang="JA" changeid="isVowel" changedate="20200604T204255Z" creationid="isVowel" creationdate="20200604T204255Z">
4676+ <seg>am.delta_time {#am.delta_time .field-def}</seg>
4677+ </tuv>
4678+ </tu>
4679+ <tu>
4680+ <tuv lang="EN-US">
4681+ <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4682+ </tuv>
4683+ <tuv lang="JA" changeid="isVowel" changedate="20200612T071236Z" creationid="isVowel" creationdate="20200612T071236Z">
4684+ <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4685+ </tuv>
4686+ </tu>
4687+ <tu>
4688+ <tuv lang="EN-US">
4689+ <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4690+ </tuv>
4691+ <tuv lang="JA" changeid="isVowel" changedate="20200604T173314Z" creationid="isVowel" creationdate="20200604T173314Z">
4692+ <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4693+ </tuv>
4694+ </tu>
4695+ <tu>
4696+ <tuv lang="EN-US">
4697+ <seg>am.float_array(table) {#am.float_array .func-def}</seg>
4698+ </tuv>
4699+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065602Z" creationid="isVowel" creationdate="20200617T065602Z">
4700+ <seg>am.float_array(table) {#am.float_array .func-def}</seg>
41874701 </tuv>
41884702 </tu>
41894703 <tu>
@@ -4260,6 +4774,22 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
42604774 </tu>
42614775 <tu>
42624776 <tuv lang="EN-US">
4777+ <seg>am.int_array(table) {#am.int_array .func-def}</seg>
4778+ </tuv>
4779+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065543Z" creationid="isVowel" creationdate="20200617T065543Z">
4780+ <seg>am.int_array(table) {#am.int_array .func-def}</seg>
4781+ </tuv>
4782+ </tu>
4783+ <tu>
4784+ <tuv lang="EN-US">
4785+ <seg>am.int_norm_array(table) {#am.int_norm_array .func-def}</seg>
4786+ </tuv>
4787+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065538Z" creationid="isVowel" creationdate="20200617T065538Z">
4788+ <seg>am.int_norm_array(table) {#am.int_norm_array .func-def}</seg>
4789+ </tuv>
4790+ </tu>
4791+ <tu>
4792+ <tuv lang="EN-US">
42634793 <seg>am.language() {#am.language .func-def}</seg>
42644794 </tuv>
42654795 <tuv lang="JA" changeid="isVowel" changedate="20200604T173342Z" creationid="isVowel" creationdate="20200604T173342Z">
@@ -4276,6 +4806,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
42764806 </tu>
42774807 <tu>
42784808 <tuv lang="EN-US">
4809+ <seg>am.load_buffer(filename) {#am.load_buffer .func-def}</seg>
4810+ </tuv>
4811+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070525Z" creationid="isVowel" creationdate="20200617T070525Z">
4812+ <seg>am.load_buffer(filename) {#am.load_buffer .func-def}</seg>
4813+ </tuv>
4814+ </tu>
4815+ <tu>
4816+ <tuv lang="EN-US">
42794817 <seg>am.load_image(filename) {#am.load_image .func-def}</seg>
42804818 </tuv>
42814819 <tuv lang="JA" changeid="isVowel" changedate="20200604T204601Z" creationid="isVowel" creationdate="20200604T204601Z">
@@ -4284,6 +4822,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
42844822 </tu>
42854823 <tu>
42864824 <tuv lang="EN-US">
4825+ <seg>am.load_obj(filename) {#am.load_obj .func-def}</seg>
4826+ </tuv>
4827+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073831Z" creationid="isVowel" creationdate="20200617T073831Z">
4828+ <seg>am.load_obj(filename) {#am.load_obj .func-def}</seg>
4829+ </tuv>
4830+ </tu>
4831+ <tu>
4832+ <tuv lang="EN-US">
42874833 <seg>am.load_script(filename) {#am.load_script .func-def}</seg>
42884834 </tuv>
42894835 <tuv lang="JA" changeid="isVowel" changedate="20200604T181133Z" creationid="isVowel" creationdate="20200604T181133Z">
@@ -4388,6 +4934,22 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
43884934 </tu>
43894935 <tu>
43904936 <tuv lang="EN-US">
4937+ <seg>am.short_array(table) {#am.short_array .func-def}</seg>
4938+ </tuv>
4939+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065551Z" creationid="isVowel" creationdate="20200617T065551Z">
4940+ <seg>am.short_array(table) {#am.short_array .func-def}</seg>
4941+ </tuv>
4942+ </tu>
4943+ <tu>
4944+ <tuv lang="EN-US">
4945+ <seg>am.short_norm_array(table) {#am.short_norm_array .func-def}</seg>
4946+ </tuv>
4947+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065547Z" creationid="isVowel" creationdate="20200617T065547Z">
4948+ <seg>am.short_norm_array(table) {#am.short_norm_array .func-def}</seg>
4949+ </tuv>
4950+ </tu>
4951+ <tu>
4952+ <tuv lang="EN-US">
43914953 <seg>am.show_gamecenter_leaderboard(leaderboard_id)</seg>
43924954 </tuv>
43934955 <tuv lang="JA" changeid="isVowel" changedate="20200602T154030Z" creationid="isVowel" creationdate="20200602T154030Z">
@@ -4412,6 +4974,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
44124974 </tu>
44134975 <tu>
44144976 <tuv lang="EN-US">
4977+ <seg>am.struct_array(size, spec) {#am.struct_array .func-def}</seg>
4978+ </tuv>
4979+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065515Z" creationid="isVowel" creationdate="20200617T065515Z">
4980+ <seg>am.struct_array(size, spec) {#am.struct_array .func-def}</seg>
4981+ </tuv>
4982+ </tu>
4983+ <tu>
4984+ <tuv lang="EN-US">
44154985 <seg>am.submit_gamecenter_achievement(achievment_id)</seg>
44164986 </tuv>
44174987 <tuv lang="JA" changeid="isVowel" changedate="20200607T043715Z" creationid="isVowel" creationdate="20200607T043715Z">
@@ -4492,6 +5062,102 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
44925062 </tu>
44935063 <tu>
44945064 <tuv lang="EN-US">
5065+ <seg>am.ubyte_array(table) {#am.ubyte_array .func-def}</seg>
5066+ </tuv>
5067+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065558Z" creationid="isVowel" creationdate="20200617T065558Z">
5068+ <seg>am.ubyte_array(table) {#am.ubyte_array .func-def}</seg>
5069+ </tuv>
5070+ </tu>
5071+ <tu>
5072+ <tuv lang="EN-US">
5073+ <seg>am.ubyte_norm_array(table) {#am.ubyte_norm_array .func-def}</seg>
5074+ </tuv>
5075+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065554Z" creationid="isVowel" creationdate="20200617T065554Z">
5076+ <seg>am.ubyte_norm_array(table) {#am.ubyte_norm_array .func-def}</seg>
5077+ </tuv>
5078+ </tu>
5079+ <tu>
5080+ <tuv lang="EN-US">
5081+ <seg>am.uint_array(table) {#am.uint_array .func-def}</seg>
5082+ </tuv>
5083+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065541Z" creationid="isVowel" creationdate="20200617T065541Z">
5084+ <seg>am.uint_array(table) {#am.uint_array .func-def}</seg>
5085+ </tuv>
5086+ </tu>
5087+ <tu>
5088+ <tuv lang="EN-US">
5089+ <seg>am.uint_elem_array(table) {#am.uint_elem_array .func-def}</seg>
5090+ </tuv>
5091+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065531Z" creationid="isVowel" creationdate="20200617T065531Z">
5092+ <seg>am.uint_elem_array(table) {#am.uint_elem_array .func-def}</seg>
5093+ </tuv>
5094+ </tu>
5095+ <tu>
5096+ <tuv lang="EN-US">
5097+ <seg>am.uint_norm_array(table) {#am.uint_norm_array .func-def}</seg>
5098+ </tuv>
5099+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065536Z" creationid="isVowel" creationdate="20200617T065536Z">
5100+ <seg>am.uint_norm_array(table) {#am.uint_norm_array .func-def}</seg>
5101+ </tuv>
5102+ </tu>
5103+ <tu>
5104+ <tuv lang="EN-US">
5105+ <seg>am.use_program(am.shaders.colors2d)</seg>
5106+ </tuv>
5107+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111439Z" creationid="isVowel" creationdate="20200617T111439Z">
5108+ <seg>am.use_program(am.shaders.colors2d)</seg>
5109+ </tuv>
5110+ </tu>
5111+ <tu>
5112+ <tuv lang="EN-US">
5113+ <seg>am.ushort_array(table) {#am.ushort_array .func-def}</seg>
5114+ </tuv>
5115+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065549Z" creationid="isVowel" creationdate="20200617T065549Z">
5116+ <seg>am.ushort_array(table) {#am.ushort_array .func-def}</seg>
5117+ </tuv>
5118+ </tu>
5119+ <tu>
5120+ <tuv lang="EN-US">
5121+ <seg>am.ushort_elem_array(table) {#am.ushort_elem_array .func-def}</seg>
5122+ </tuv>
5123+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065534Z" creationid="isVowel" creationdate="20200617T065534Z">
5124+ <seg>am.ushort_elem_array(table) {#am.ushort_elem_array .func-def}</seg>
5125+ </tuv>
5126+ </tu>
5127+ <tu>
5128+ <tuv lang="EN-US">
5129+ <seg>am.ushort_norm_array(table) {#am.ushort_norm_array .func-def}</seg>
5130+ </tuv>
5131+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065545Z" creationid="isVowel" creationdate="20200617T065545Z">
5132+ <seg>am.ushort_norm_array(table) {#am.ushort_norm_array .func-def}</seg>
5133+ </tuv>
5134+ </tu>
5135+ <tu>
5136+ <tuv lang="EN-US">
5137+ <seg>am.vec2_array(table) {#am.vec2_array .func-def}</seg>
5138+ </tuv>
5139+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065528Z" creationid="isVowel" creationdate="20200617T065528Z">
5140+ <seg>am.vec2_array(table) {#am.vec2_array .func-def}</seg>
5141+ </tuv>
5142+ </tu>
5143+ <tu>
5144+ <tuv lang="EN-US">
5145+ <seg>am.vec3_array(table) {#am.vec3_array .func-def}</seg>
5146+ </tuv>
5147+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065525Z" creationid="isVowel" creationdate="20200617T065525Z">
5148+ <seg>am.vec3_array(table) {#am.vec3_array .func-def}</seg>
5149+ </tuv>
5150+ </tu>
5151+ <tu>
5152+ <tuv lang="EN-US">
5153+ <seg>am.vec4_array(table) {#am.vec4_array .func-def}</seg>
5154+ </tuv>
5155+ <tuv lang="JA" changeid="isVowel" changedate="20200617T072816Z" creationid="isVowel" creationdate="20200617T072816Z">
5156+ <seg>am.vec4_array(table) {#am.vec4_array .func-def}</seg>
5157+ </tuv>
5158+ </tu>
5159+ <tu>
5160+ <tuv lang="EN-US">
44955161 <seg>am.version</seg>
44965162 </tuv>
44975163 <tuv lang="JA" changeid="isVowel" changedate="20200602T154813Z" creationid="isVowel" creationdate="20200602T154813Z">
@@ -4532,6 +5198,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
45325198 </tu>
45335199 <tu>
45345200 <tuv lang="EN-US">
5201+ <seg>am.window{}.root =</seg>
5202+ </tuv>
5203+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111437Z" creationid="isVowel" creationdate="20200617T111437Z">
5204+ <seg>am.window{}.root =</seg>
5205+ </tuv>
5206+ </tu>
5207+ <tu>
5208+ <tuv lang="EN-US">
45355209 <seg>am.window{}.scene =</seg>
45365210 </tuv>
45375211 <tuv lang="JA" changeid="isVowel" changedate="20200608T173349Z" creationid="isVowel" creationdate="20200608T173349Z">
@@ -4636,6 +5310,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
46365310 </tu>
46375311 <tu>
46385312 <tuv lang="EN-US">
5313+ <seg>buffer:view(type [, offset [, stride , count]]) {#buffer:view .func-def}</seg>
5314+ </tuv>
5315+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065235Z" creationid="isVowel" creationdate="20200617T065235Z">
5316+ <seg>buffer:view(type [, offset [, stride , count]]) {#buffer:view .func-def}</seg>
5317+ </tuv>
5318+ </tu>
5319+ <tu>
5320+ <tuv lang="EN-US">
46395321 <seg>but you can modify it as you please (though this must be
46405322 done before creating a sprite).</seg>
46415323 </tuv>
@@ -4661,6 +5343,14 @@ done before creating a sprite).</seg>
46615343 </tu>
46625344 <tu>
46635345 <tuv lang="EN-US">
5346+ <seg>color = am.vec4_array{vec4(1, 0, 0, 1), vec4(0, 1, 0, 1), vec4(0, 0, 1, 1)},</seg>
5347+ </tuv>
5348+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111455Z" creationid="isVowel" creationdate="20200617T111455Z">
5349+ <seg>color = am.vec4_array{vec4(1, 0, 0, 1), vec4(0, 1, 0, 1), vec4(0, 0, 1, 1)},</seg>
5350+ </tuv>
5351+ </tu>
5352+ <tu>
5353+ <tuv lang="EN-US">
46645354 <seg>color = vec4(0, 1, 0, 1),</seg>
46655355 </tuv>
46665356 <tuv lang="JA" changeid="isVowel" changedate="20200608T173403Z" creationid="isVowel" creationdate="20200608T173403Z">
@@ -4887,6 +5577,22 @@ print(factorial(3)) -- 結果は 6</seg>
48875577 </tu>
48885578 <tu>
48895579 <tuv lang="EN-US">
5580+ <seg>gl_FragColor = texture2D(tex, v_uv) * vec4(v_shadow, 1.0);
5581+}
5582+]])
5583+
5584+win.scene =</seg>
5585+ </tuv>
5586+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073218Z" creationid="isVowel" creationdate="20200617T073218Z">
5587+ <seg>gl_FragColor = texture2D(tex, v_uv) * vec4(v_shadow, 1.0);
5588+}
5589+]])
5590+
5591+win.scene =</seg>
5592+ </tuv>
5593+ </tu>
5594+ <tu>
5595+ <tuv lang="EN-US">
48905596 <seg>gl_FragColor = vec4(1.0, 0, 0.5, 1.0);</seg>
48915597 </tuv>
48925598 <tuv lang="JA" changeid="isVowel" changedate="20200607T051340Z" creationid="isVowel" creationdate="20200607T051340Z">
@@ -4919,6 +5625,38 @@ print(factorial(3)) -- 結果は 6</seg>
49195625 </tu>
49205626 <tu>
49215627 <tuv lang="EN-US">
5628+ <seg>gl_Position = P * MV * vec4(vert, 1.0);
5629+}
5630+]], [[
5631+precision mediump float;
5632+uniform sampler2D tex;
5633+varying vec3 v_shadow;
5634+varying vec2 v_uv;
5635+void main() {</seg>
5636+ </tuv>
5637+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073216Z" creationid="isVowel" creationdate="20200617T073216Z">
5638+ <seg>gl_Position = P * MV * vec4(vert, 1.0);
5639+}
5640+]], [[
5641+precision mediump float;
5642+uniform sampler2D tex;
5643+varying vec3 v_shadow;
5644+varying vec2 v_uv;
5645+void main() {</seg>
5646+ </tuv>
5647+ </tu>
5648+ <tu>
5649+ <tuv lang="EN-US">
5650+ <seg>height = 600,
5651+}</seg>
5652+ </tuv>
5653+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112217Z" creationid="isVowel" creationdate="20200617T112217Z">
5654+ <seg>height = 600,
5655+}</seg>
5656+ </tuv>
5657+ </tu>
5658+ <tu>
5659+ <tuv lang="EN-US">
49225660 <seg>http://ianmaclarty.com</seg>
49235661 </tuv>
49245662 <tuv lang="JA" changeid="isVowel" changedate="20200602T092603Z" creationid="isVowel" creationdate="20200602T092603Z">
@@ -5041,6 +5779,18 @@ function append_z(str)</seg>
50415779 </tu>
50425780 <tu>
50435781 <tuv lang="EN-US">
5782+ <seg>local arr = am.struct_array(3, {"vert", "vec2", "color", "vec4"})
5783+arr.vert:set{vec2(-1, 0), vec2(1, 0), vec2(0, 1)}
5784+arr.color:set(vec4(1, 0, 0.5, 1))</seg>
5785+ </tuv>
5786+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061359Z" creationid="isVowel" creationdate="20200617T061359Z">
5787+ <seg>local arr = am.struct_array(3, {"vert", "vec2", "color", "vec4"})
5788+arr.vert:set{vec2(-1, 0), vec2(1, 0), vec2(0, 1)}
5789+arr.color:set(vec4(1, 0, 0.5, 1))</seg>
5790+ </tuv>
5791+ </tu>
5792+ <tu>
5793+ <tuv lang="EN-US">
50445794 <seg>local arr = {"a", "b", "c"}
50455795 for k, v in ipairs(arr) do</seg>
50465796 </tuv>
@@ -5061,6 +5811,20 @@ for i = 1, #arr do</seg>
50615811 </tu>
50625812 <tu>
50635813 <tuv lang="EN-US">
5814+ <seg>local buf = am.buffer(12)
5815+local view = buf:view("float")
5816+view[1] = 1.5
5817+view[2] = view[1] + 2</seg>
5818+ </tuv>
5819+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062405Z" creationid="isVowel" creationdate="20200617T062405Z">
5820+ <seg>local buf = am.buffer(12)
5821+local view = buf:view("float")
5822+view[1] = 1.5
5823+view[2] = view[1] + 2</seg>
5824+ </tuv>
5825+ </tu>
5826+ <tu>
5827+ <tuv lang="EN-US">
50645828 <seg>local c = 2 -- channels
50655829 local s = #buf / 4 / c -- samples per channel
50665830 local left_channel = buf:view("float", 0, 4, s)
@@ -5149,6 +5913,32 @@ while n &gt; 0 do</seg>
51495913 </tu>
51505914 <tu>
51515915 <tuv lang="EN-US">
5916+ <seg>local shader = am.program([[
5917+precision mediump float;
5918+attribute vec3 vert;
5919+attribute vec2 uv;
5920+attribute vec3 normal;
5921+uniform mat4 MV;
5922+uniform mat4 P;
5923+varying vec3 v_shadow;
5924+varying vec2 v_uv;
5925+void main() {</seg>
5926+ </tuv>
5927+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073151Z" creationid="isVowel" creationdate="20200617T073151Z">
5928+ <seg>local shader = am.program([[
5929+precision mediump float;
5930+attribute vec3 vert;
5931+attribute vec2 uv;
5932+attribute vec3 normal;
5933+uniform mat4 MV;
5934+uniform mat4 P;
5935+varying vec3 v_shadow;
5936+varying vec2 v_uv;
5937+void main() {</seg>
5938+ </tuv>
5939+ </tu>
5940+ <tu>
5941+ <tuv lang="EN-US">
51525942 <seg>local t = {a = 1, b = 2, c = 3}
51535943 for k, v in pairs(t) do</seg>
51545944 </tuv>
@@ -5245,6 +6035,46 @@ local t2 = {foo = "bar", baz = 123}</seg>
52456035 </tu>
52466036 <tu>
52476037 <tuv lang="EN-US">
6038+ <seg>local verts = am.buffer(24):view("vec3")
6039+verts:set{1, 2, 3, 4, 5, 6}
6040+print(verts[1]) -- vec3(1, 2, 3)
6041+print(verts[2]) -- vec3(4, 5, 6)</seg>
6042+ </tuv>
6043+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065610Z" creationid="isVowel" creationdate="20200617T065610Z">
6044+ <seg>local verts = am.buffer(24):view("vec3")
6045+verts:set{1, 2, 3, 4, 5, 6}
6046+print(verts[1]) -- vec3(1, 2, 3)
6047+print(verts[2]) -- vec3(4, 5, 6)</seg>
6048+ </tuv>
6049+ </tu>
6050+ <tu>
6051+ <tuv lang="EN-US">
6052+ <seg>local win = am.window{</seg>
6053+ </tuv>
6054+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112141Z" creationid="isVowel" creationdate="20200617T112141Z">
6055+ <seg>local win = am.window{</seg>
6056+ </tuv>
6057+ </tu>
6058+ <tu>
6059+ <tuv lang="EN-US">
6060+ <seg>local win = am.window{depth_buffer = true}
6061+
6062+local buf, stride, norm_offset, tex_offset = am.load_obj("model.obj")
6063+local verts = buf:view("vec3", 0, stride)
6064+local normals = buf:view("vec3", norm_offset, stride)
6065+local uvs = buf:view("vec2", tex_offset, stride)</seg>
6066+ </tuv>
6067+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073147Z" creationid="isVowel" creationdate="20200617T073147Z">
6068+ <seg>local win = am.window{depth_buffer = true}
6069+
6070+local buf, stride, norm_offset, tex_offset = am.load_obj("model.obj")
6071+local verts = buf:view("vec3", 0, stride)
6072+local normals = buf:view("vec3", norm_offset, stride)
6073+local uvs = buf:view("vec2", tex_offset, stride)</seg>
6074+ </tuv>
6075+ </tu>
6076+ <tu>
6077+ <tuv lang="EN-US">
52486078 <seg>local win = am.window{}
52496079 local prog = am.program([[</seg>
52506080 </tuv>
@@ -5384,6 +6214,14 @@ end
53846214 </tu>
53856215 <tu>
53866216 <tuv lang="EN-US">
6217+ <seg>normal = normals,</seg>
6218+ </tuv>
6219+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073232Z" creationid="isVowel" creationdate="20200617T073232Z">
6220+ <seg>normal = normals,</seg>
6221+ </tuv>
6222+ </tu>
6223+ <tu>
6224+ <tuv lang="EN-US">
53876225 <seg>o = vec4(0.5, 0.25, 0, 1), -- half orange (brown)
53886226 }</seg>
53896227 </tuv>
@@ -5806,6 +6644,14 @@ title = "自作ゲーム"</seg>
58066644 </tu>
58076645 <tu>
58086646 <tuv lang="EN-US">
6647+ <seg>tex = am.texture2d("texture.png"),</seg>
6648+ </tuv>
6649+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073239Z" creationid="isVowel" creationdate="20200617T073239Z">
6650+ <seg>tex = am.texture2d("texture.png"),</seg>
6651+ </tuv>
6652+ </tu>
6653+ <tu>
6654+ <tuv lang="EN-US">
58096655 <seg>texture.filter {#texture.filter .field-def}</seg>
58106656 </tuv>
58116657 <tuv lang="JA" changeid="isVowel" changedate="20200612T062730Z" creationid="isVowel" creationdate="20200612T062730Z">
@@ -5877,6 +6723,15 @@ title = "自作ゲーム"</seg>
58776723 </tuv>
58786724 </tu>
58796725 <tu>
6726+ <note>「わたしのウィンドウ」では味気ないです。なにか召還しましたがなにか?</note>
6727+ <tuv lang="EN-US">
6728+ <seg>title = "My Window",</seg>
6729+ </tuv>
6730+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112212Z" creationid="isVowel" creationdate="20200617T112212Z">
6731+ <seg>title = "我が名はウィンドウ",</seg>
6732+ </tuv>
6733+ </tu>
6734+ <tu>
58806735 <tuv lang="EN-US">
58816736 <seg>total = total + value</seg>
58826737 </tuv>
@@ -5910,6 +6765,14 @@ title = "自作ゲーム"</seg>
59106765 </tu>
59116766 <tu>
59126767 <tuv lang="EN-US">
6768+ <seg>type size (bytes) Lua value range internal range endianess</seg>
6769+ </tuv>
6770+ <tuv lang="JA" changeid="isVowel" changedate="20200617T064834Z" creationid="isVowel" creationdate="20200617T064326Z">
6771+ <seg>型 サイズ (バイト単位) Lua の範囲値 内部範囲 エンディアン</seg>
6772+ </tuv>
6773+ </tu>
6774+ <tu>
6775+ <tuv lang="EN-US">
59136776 <seg>uniform mat4 MV;</seg>
59146777 </tuv>
59156778 <tuv lang="JA" changeid="isVowel" changedate="20200607T051321Z" creationid="isVowel" creationdate="20200607T051321Z">
@@ -5926,6 +6789,14 @@ title = "自作ゲーム"</seg>
59266789 </tu>
59276790 <tu>
59286791 <tuv lang="EN-US">
6792+ <seg>uv = uvs,</seg>
6793+ </tuv>
6794+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073235Z" creationid="isVowel" creationdate="20200617T073235Z">
6795+ <seg>uv = uvs,</seg>
6796+ </tuv>
6797+ </tu>
6798+ <tu>
6799+ <tuv lang="EN-US">
59296800 <seg>v_color = color;</seg>
59306801 </tuv>
59316802 <tuv lang="JA" changeid="isVowel" changedate="20200611T090929Z" creationid="isVowel" creationdate="20200611T090929Z">
@@ -5934,6 +6805,22 @@ title = "自作ゲーム"</seg>
59346805 </tu>
59356806 <tu>
59366807 <tuv lang="EN-US">
6808+ <seg>v_shadow = vec3(max(0.1, dot(light, nm)));</seg>
6809+ </tuv>
6810+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073212Z" creationid="isVowel" creationdate="20200617T073212Z">
6811+ <seg>v_shadow = vec3(max(0.1, dot(light, nm)));</seg>
6812+ </tuv>
6813+ </tu>
6814+ <tu>
6815+ <tuv lang="EN-US">
6816+ <seg>v_uv = uv;</seg>
6817+ </tuv>
6818+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073214Z" creationid="isVowel" creationdate="20200617T073214Z">
6819+ <seg>v_uv = uv;</seg>
6820+ </tuv>
6821+ </tu>
6822+ <tu>
6823+ <tuv lang="EN-US">
59376824 <seg>varying vec3 v_color;</seg>
59386825 </tuv>
59396826 <tuv lang="JA" changeid="isVowel" changedate="20200611T090927Z" creationid="isVowel" creationdate="20200611T090927Z">
@@ -5950,6 +6837,22 @@ title = "自作ゲーム"</seg>
59506837 </tu>
59516838 <tu>
59526839 <tuv lang="EN-US">
6840+ <seg>vec3 light = normalize(vec3(1, 0, 2));</seg>
6841+ </tuv>
6842+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073208Z" creationid="isVowel" creationdate="20200617T073208Z">
6843+ <seg>vec3 light = normalize(vec3(1, 0, 2));</seg>
6844+ </tuv>
6845+ </tu>
6846+ <tu>
6847+ <tuv lang="EN-US">
6848+ <seg>vec3 nm = normalize((MV * vec4(normal, 0.0)).xyz);</seg>
6849+ </tuv>
6850+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073211Z" creationid="isVowel" creationdate="20200617T073211Z">
6851+ <seg>vec3 nm = normalize((MV * vec4(normal, 0.0)).xyz);</seg>
6852+ </tuv>
6853+ </tu>
6854+ <tu>
6855+ <tuv lang="EN-US">
59536856 <seg>velocity = velocity + gravity * am.delta_time
59546857 end)
59556858
@@ -5966,6 +6869,54 @@ win.scene:action(am.play("ocean.ogg", true))</seg>
59666869 </tu>
59676870 <tu>
59686871 <tuv lang="EN-US">
6872+ <seg>vert = am.vec2_array{vec2(-1, -1), vec2(0, 1), vec2(1, -1)}</seg>
6873+ </tuv>
6874+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111450Z" creationid="isVowel" creationdate="20200617T111450Z">
6875+ <seg>vert = am.vec2_array{vec2(-1, -1), vec2(0, 1), vec2(1, -1)}</seg>
6876+ </tuv>
6877+ </tu>
6878+ <tu>
6879+ <tuv lang="EN-US">
6880+ <seg>vert = verts,</seg>
6881+ </tuv>
6882+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073228Z" creationid="isVowel" creationdate="20200617T073228Z">
6883+ <seg>vert = verts,</seg>
6884+ </tuv>
6885+ </tu>
6886+ <tu>
6887+ <tuv lang="EN-US">
6888+ <seg>view.buffer</seg>
6889+ </tuv>
6890+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070141Z" creationid="isVowel" creationdate="20200617T070141Z">
6891+ <seg>view.buffer</seg>
6892+ </tuv>
6893+ </tu>
6894+ <tu>
6895+ <tuv lang="EN-US">
6896+ <seg>view.buffer {#view.buffer .field-def}</seg>
6897+ </tuv>
6898+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062400Z" creationid="isVowel" creationdate="20200617T062400Z">
6899+ <seg>view.buffer {#view.buffer .field-def}</seg>
6900+ </tuv>
6901+ </tu>
6902+ <tu>
6903+ <tuv lang="EN-US">
6904+ <seg>view:set(val [, start , count]) {#view:set .method-def}</seg>
6905+ </tuv>
6906+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065617Z" creationid="isVowel" creationdate="20200617T065617Z">
6907+ <seg>view:set(val [, start , count]) {#view:set .method-def}</seg>
6908+ </tuv>
6909+ </tu>
6910+ <tu>
6911+ <tuv lang="EN-US">
6912+ <seg>view:slice(n [, count , stride_multiplier]) {#view:slice .method-def}</seg>
6913+ </tuv>
6914+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070234Z" creationid="isVowel" creationdate="20200617T070234Z">
6915+ <seg>view:slice(n [, count , stride_multiplier]) {#view:slice .method-def}</seg>
6916+ </tuv>
6917+ </tu>
6918+ <tu>
6919+ <tuv lang="EN-US">
59696920 <seg>void main() {</seg>
59706921 </tuv>
59716922 <tuv lang="JA" changeid="isVowel" changedate="20200607T051326Z" creationid="isVowel" creationdate="20200607T051326Z">
@@ -5990,6 +6941,14 @@ win.scene:action(am.play("ocean.ogg", true))</seg>
59906941 </tu>
59916942 <tu>
59926943 <tuv lang="EN-US">
6944+ <seg>width = 800,</seg>
6945+ </tuv>
6946+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112214Z" creationid="isVowel" creationdate="20200617T112214Z">
6947+ <seg>width = 800,</seg>
6948+ </tuv>
6949+ </tu>
6950+ <tu>
6951+ <tuv lang="EN-US">
59936952 <seg>width=device-width, initial-scale=1.0, user-scalable=yes</seg>
59946953 </tuv>
59956954 <tuv lang="JA" changeid="isVowel" changedate="20200602T085831Z" creationid="isVowel" creationdate="20200602T085831Z">
@@ -6174,6 +7133,14 @@ win.scene:action(am.play("ocean.ogg", true))</seg>
61747133 </tu>
61757134 <tu>
61767135 <tuv lang="EN-US">
7136+ <seg>}</seg>
7137+ </tuv>
7138+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073242Z" creationid="isVowel" creationdate="20200617T073242Z">
7139+ <seg>}</seg>
7140+ </tuv>
7141+ </tu>
7142+ <tu>
7143+ <tuv lang="EN-US">
61777144 <seg>}
61787145 ]]
61797146 local frag_shader = [[</seg>
--- a/other/amulet/v1.21.8/v1.21.8-level2.tmx
+++ b/other/amulet/v1.21.8/v1.21.8-level2.tmx
@@ -340,6 +340,20 @@ end</seg>
340340 </tu>
341341 <tu>
342342 <tuv xml:lang="EN-US">
343+ <seg><bpt i="0" x="0">&lt;s0&gt;</bpt>local<ept i="0">&lt;/s0&gt;</ept> buf <bpt i="1" x="1">&lt;s1&gt;</bpt>=<ept i="1">&lt;/s1&gt;</ept> am<bpt i="2" x="2">&lt;s2&gt;</bpt>.<ept i="2">&lt;/s2&gt;</ept>buffer<bpt i="3" x="3">&lt;s3&gt;</bpt>(<ept i="3">&lt;/s3&gt;</ept><bpt i="4" x="4">&lt;s4&gt;</bpt>12<ept i="4">&lt;/s4&gt;</ept><bpt i="5" x="5">&lt;s5&gt;</bpt>)<ept i="5">&lt;/s5&gt;</ept>
344+<bpt i="6" x="6">&lt;s6&gt;</bpt>local<ept i="6">&lt;/s6&gt;</ept> view <bpt i="7" x="7">&lt;s7&gt;</bpt>=<ept i="7">&lt;/s7&gt;</ept> buf:view<bpt i="8" x="8">&lt;s8&gt;</bpt>(<ept i="8">&lt;/s8&gt;</ept><bpt i="9" x="9">&lt;s9&gt;</bpt>"float"<ept i="9">&lt;/s9&gt;</ept><bpt i="10" x="10">&lt;s10&gt;</bpt>)<ept i="10">&lt;/s10&gt;</ept>
345+view<bpt i="11" x="11">&lt;s11&gt;</bpt>[<ept i="11">&lt;/s11&gt;</ept><bpt i="12" x="12">&lt;s12&gt;</bpt>1<ept i="12">&lt;/s12&gt;</ept><bpt i="13" x="13">&lt;s13&gt;</bpt>]<ept i="13">&lt;/s13&gt;</ept> <bpt i="14" x="14">&lt;s14&gt;</bpt>=<ept i="14">&lt;/s14&gt;</ept> <bpt i="15" x="15">&lt;s15&gt;</bpt>1.5<ept i="15">&lt;/s15&gt;</ept>
346+view<bpt i="16" x="16">&lt;s16&gt;</bpt>[<ept i="16">&lt;/s16&gt;</ept><bpt i="17" x="17">&lt;s17&gt;</bpt>2<ept i="17">&lt;/s17&gt;</ept><bpt i="18" x="18">&lt;s18&gt;</bpt>]<ept i="18">&lt;/s18&gt;</ept> <bpt i="19" x="19">&lt;s19&gt;</bpt>=<ept i="19">&lt;/s19&gt;</ept> view<bpt i="20" x="20">&lt;s20&gt;</bpt>[<ept i="20">&lt;/s20&gt;</ept><bpt i="21" x="21">&lt;s21&gt;</bpt>1<ept i="21">&lt;/s21&gt;</ept><bpt i="22" x="22">&lt;s22&gt;</bpt>]<ept i="22">&lt;/s22&gt;</ept> <bpt i="23" x="23">&lt;s23&gt;</bpt>+<ept i="23">&lt;/s23&gt;</ept> <bpt i="24" x="24">&lt;s24&gt;</bpt>2<ept i="24">&lt;/s24&gt;</ept></seg>
347+ </tuv>
348+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T070147Z" creationid="isVowel" creationdate="20200617T070147Z">
349+ <seg><bpt i="0" x="0">&lt;s0&gt;</bpt>local<ept i="0">&lt;/s0&gt;</ept> buf <bpt i="1" x="1">&lt;s1&gt;</bpt>=<ept i="1">&lt;/s1&gt;</ept> am<bpt i="2" x="2">&lt;s2&gt;</bpt>.<ept i="2">&lt;/s2&gt;</ept>buffer<bpt i="3" x="3">&lt;s3&gt;</bpt>(<ept i="3">&lt;/s3&gt;</ept><bpt i="4" x="4">&lt;s4&gt;</bpt>12<ept i="4">&lt;/s4&gt;</ept><bpt i="5" x="5">&lt;s5&gt;</bpt>)<ept i="5">&lt;/s5&gt;</ept>
350+<bpt i="6" x="6">&lt;s6&gt;</bpt>local<ept i="6">&lt;/s6&gt;</ept> view <bpt i="7" x="7">&lt;s7&gt;</bpt>=<ept i="7">&lt;/s7&gt;</ept> buf:view<bpt i="8" x="8">&lt;s8&gt;</bpt>(<ept i="8">&lt;/s8&gt;</ept><bpt i="9" x="9">&lt;s9&gt;</bpt>"float"<ept i="9">&lt;/s9&gt;</ept><bpt i="10" x="10">&lt;s10&gt;</bpt>)<ept i="10">&lt;/s10&gt;</ept>
351+view<bpt i="11" x="11">&lt;s11&gt;</bpt>[<ept i="11">&lt;/s11&gt;</ept><bpt i="12" x="12">&lt;s12&gt;</bpt>1<ept i="12">&lt;/s12&gt;</ept><bpt i="13" x="13">&lt;s13&gt;</bpt>]<ept i="13">&lt;/s13&gt;</ept> <bpt i="14" x="14">&lt;s14&gt;</bpt>=<ept i="14">&lt;/s14&gt;</ept> <bpt i="15" x="15">&lt;s15&gt;</bpt>1.5<ept i="15">&lt;/s15&gt;</ept>
352+view<bpt i="16" x="16">&lt;s16&gt;</bpt>[<ept i="16">&lt;/s16&gt;</ept><bpt i="17" x="17">&lt;s17&gt;</bpt>2<ept i="17">&lt;/s17&gt;</ept><bpt i="18" x="18">&lt;s18&gt;</bpt>]<ept i="18">&lt;/s18&gt;</ept> <bpt i="19" x="19">&lt;s19&gt;</bpt>=<ept i="19">&lt;/s19&gt;</ept> view<bpt i="20" x="20">&lt;s20&gt;</bpt>[<ept i="20">&lt;/s20&gt;</ept><bpt i="21" x="21">&lt;s21&gt;</bpt>1<ept i="21">&lt;/s21&gt;</ept><bpt i="22" x="22">&lt;s22&gt;</bpt>]<ept i="22">&lt;/s22&gt;</ept> <bpt i="23" x="23">&lt;s23&gt;</bpt>+<ept i="23">&lt;/s23&gt;</ept> <bpt i="24" x="24">&lt;s24&gt;</bpt>2<ept i="24">&lt;/s24&gt;</ept></seg>
353+ </tuv>
354+ </tu>
355+ <tu>
356+ <tuv xml:lang="EN-US">
343357 <seg><ph x="1">&lt;x1/&gt;</ph></seg>
344358 </tuv>
345359 <tuv xml:lang="JA" changeid="isVowel" changedate="20200609T035607Z" creationid="isVowel" creationdate="20200609T035607Z">
@@ -412,6 +426,44 @@ end</seg>
412426 </tu>
413427 <tu>
414428 <tuv xml:lang="EN-US">
429+ <seg><ph x="1">&lt;x1/&gt;</ph>"float"<ph x="2">&lt;x2/&gt;</ph> 4 approx -3.4e38 to 3.4e38 same native
430+<ph x="3">&lt;x3/&gt;</ph>"vec2"<ph x="4">&lt;x4/&gt;</ph> 8 any <ph x="5">&lt;x5/&gt;</ph>vec2<ph x="6">&lt;x6/&gt;</ph> same native
431+<ph x="7">&lt;x7/&gt;</ph>"vec3"<ph x="8">&lt;x8/&gt;</ph> 12 any <ph x="9">&lt;x9/&gt;</ph>vec3<ph x="10">&lt;x10/&gt;</ph> same native
432+<ph x="11">&lt;x11/&gt;</ph>"vec4"<ph x="12">&lt;x12/&gt;</ph> 16 any <ph x="13">&lt;x13/&gt;</ph>vec4<ph x="14">&lt;x14/&gt;</ph> same native
433+<ph x="15">&lt;x15/&gt;</ph>"byte"<ph x="16">&lt;x16/&gt;</ph> 1 -128 to 127 same N/A
434+<ph x="17">&lt;x17/&gt;</ph>"ubyte"<ph x="18">&lt;x18/&gt;</ph> 1 0 to 255 same N/A
435+<ph x="19">&lt;x19/&gt;</ph>"byte_norm"<ph x="20">&lt;x20/&gt;</ph> 1 -1.0 to 1.0 -127 to 127 N/A
436+<ph x="21">&lt;x21/&gt;</ph>"ubyte_norm"<ph x="22">&lt;x22/&gt;</ph> 1 0.0 to 1.0 0 to 255 N/A
437+<ph x="23">&lt;x23/&gt;</ph>"short"<ph x="24">&lt;x24/&gt;</ph> 2 -32768 to 32767 same native
438+<ph x="25">&lt;x25/&gt;</ph>"ushort"<ph x="26">&lt;x26/&gt;</ph> 2 0 to 65535 same native
439+<ph x="27">&lt;x27/&gt;</ph>"short_norm"<ph x="28">&lt;x28/&gt;</ph> 2 -1.0 to 1.0 -32767 to 32767 native
440+<ph x="29">&lt;x29/&gt;</ph>"ushort_norm"<ph x="30">&lt;x30/&gt;</ph> 2 0.0 to 1.0 0 to 65535 native
441+<ph x="31">&lt;x31/&gt;</ph>"ushort_elem"<ph x="32">&lt;x32/&gt;</ph> 2 1 to 65536 0 to 65535 native
442+<ph x="33">&lt;x33/&gt;</ph>"int"<ph x="34">&lt;x34/&gt;</ph> 4 -2147483648 to 2147483647 same native
443+<ph x="35">&lt;x35/&gt;</ph>"uint"<ph x="36">&lt;x36/&gt;</ph> 4 0 to 4294967295 same native
444+<ph x="37">&lt;x37/&gt;</ph>"uint_elem"<ph x="38">&lt;x38/&gt;</ph> 4 1 to 4294967296 0 to 4294967295 native</seg>
445+ </tuv>
446+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T064733Z" creationid="isVowel" creationdate="20200617T064212Z">
447+ <seg><ph x="1">&lt;x1/&gt;</ph>"float"<ph x="2">&lt;x2/&gt;</ph> 4 約 -3.4e38 ~ 3.4e38 同一 ネイティブ
448+<ph x="3">&lt;x3/&gt;</ph>"vec2"<ph x="4">&lt;x4/&gt;</ph> 8 全 <ph x="5">&lt;x5/&gt;</ph>vec2<ph x="6">&lt;x6/&gt;</ph> 同一 ネイティブ
449+<ph x="7">&lt;x7/&gt;</ph>"vec3"<ph x="8">&lt;x8/&gt;</ph> 12 全 <ph x="9">&lt;x9/&gt;</ph>vec3<ph x="10">&lt;x10/&gt;</ph> 同一 ネイティブ
450+<ph x="11">&lt;x11/&gt;</ph>"vec4"<ph x="12">&lt;x12/&gt;</ph> 16 全 <ph x="13">&lt;x13/&gt;</ph>vec4<ph x="14">&lt;x14/&gt;</ph> 同一 ネイティブ
451+<ph x="15">&lt;x15/&gt;</ph>"byte"<ph x="16">&lt;x16/&gt;</ph> 1 -128 ~ 127 同一 なし
452+<ph x="17">&lt;x17/&gt;</ph>"ubyte"<ph x="18">&lt;x18/&gt;</ph> 1 0 ~ 255 同一 なし
453+<ph x="19">&lt;x19/&gt;</ph>"byte_norm"<ph x="20">&lt;x20/&gt;</ph> 1 -1.0 ~ 1.0 -127 ~ 127 なし
454+<ph x="21">&lt;x21/&gt;</ph>"ubyte_norm"<ph x="22">&lt;x22/&gt;</ph> 1 0.0 ~ 1.0 0 ~ 255 なし
455+<ph x="23">&lt;x23/&gt;</ph>"short"<ph x="24">&lt;x24/&gt;</ph> 2 -32768 ~ 32767 同一 ネイティブ
456+<ph x="25">&lt;x25/&gt;</ph>"ushort"<ph x="26">&lt;x26/&gt;</ph> 2 0 ~ 65535 同一 ネイティブ
457+<ph x="27">&lt;x27/&gt;</ph>"short_norm"<ph x="28">&lt;x28/&gt;</ph> 2 -1.0 ~ 1.0 -32767 ~ 32767 ネイティブ
458+<ph x="29">&lt;x29/&gt;</ph>"ushort_norm"<ph x="30">&lt;x30/&gt;</ph> 2 0.0 ~ 1.0 0 ~ 65535 ネイティブ
459+<ph x="31">&lt;x31/&gt;</ph>"ushort_elem"<ph x="32">&lt;x32/&gt;</ph> 2 1 ~ 65536 0 ~ 65535 ネイティブ
460+<ph x="33">&lt;x33/&gt;</ph>"int"<ph x="34">&lt;x34/&gt;</ph> 4 -2147483648 ~ 2147483647 同一 ネイティブ
461+<ph x="35">&lt;x35/&gt;</ph>"uint"<ph x="36">&lt;x36/&gt;</ph> 4 0 ~ 4294967295 同一 ネイティブ
462+<ph x="37">&lt;x37/&gt;</ph>"uint_elem"<ph x="38">&lt;x38/&gt;</ph> 4 1 ~ 4294967296 0 ~ 4294967295 ネイティブ</seg>
463+ </tuv>
464+ </tu>
465+ <tu>
466+ <tuv xml:lang="EN-US">
415467 <seg><ph x="1">&lt;x1/&gt;</ph>"g"<ph x="2">&lt;x2/&gt;</ph></seg>
416468 </tuv>
417469 <tuv xml:lang="JA" changeid="isVowel" changedate="20200616T073737Z" creationid="isVowel" creationdate="20200616T073737Z">
@@ -1080,6 +1132,14 @@ in Hz.</seg>
10801132 </tu>
10811133 <tu>
10821134 <tuv xml:lang="EN-US">
1135+ <seg><ph x="1">&lt;x1/&gt;</ph>mark_dirty()<ph x="2">&lt;x2/&gt;</ph>: Mark the buffer dirty.</seg>
1136+ </tuv>
1137+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T071509Z" creationid="isVowel" creationdate="20200617T071355Z">
1138+ <seg><ph x="1">&lt;x1/&gt;</ph>mark_dirty()<ph x="2">&lt;x2/&gt;</ph>: バッファの汚染標識を付けます。</seg>
1139+ </tuv>
1140+ </tu>
1141+ <tu>
1142+ <tuv xml:lang="EN-US">
10831143 <seg><ph x="1">&lt;x1/&gt;</ph>min_fps<ph x="2">&lt;x2/&gt;</ph>: the minimum frames per second over the last 60 frames</seg>
10841144 </tuv>
10851145 <tuv xml:lang="JA" changeid="isVowel" changedate="20200609T030907Z" creationid="isVowel" creationdate="20200609T030907Z">
@@ -1309,6 +1369,15 @@ main.lua:1: 動くぞ!</seg>
13091369 </tu>
13101370 <tu>
13111371 <tuv xml:lang="EN-US">
1372+ <seg>A buffer containing the vertex, normal and texture coordinate
1373+data.</seg>
1374+ </tuv>
1375+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T075838Z" creationid="isVowel" creationdate="20200617T075838Z">
1376+ <seg>バッファの内容はバーテックス、法線とテクスチャ座標データとなります。</seg>
1377+ </tuv>
1378+ </tu>
1379+ <tu>
1380+ <tuv xml:lang="EN-US">
13121381 <seg>A framebuffer is like an off-screen window you can draw to.</seg>
13131382 </tuv>
13141383 <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T062321Z" creationid="isVowel" creationdate="20200612T062051Z">
@@ -1424,6 +1493,14 @@ if it has a different sample rate (this requires extra processing).</seg>
14241493 </tu>
14251494 <tu>
14261495 <tuv xml:lang="EN-US">
1496+ <seg>Amulet has some basic support for loading 3D models in Wavefront <ph x="1">&lt;x1/&gt;</ph>.obj<ph x="2">&lt;x2/&gt;</ph> format.</seg>
1497+ </tuv>
1498+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T074410Z" creationid="isVowel" creationdate="20200617T074410Z">
1499+ <seg>Amulet は 3D モデルのロードについて Wavefront <ph x="1">&lt;x1/&gt;</ph>.obj<ph x="2">&lt;x2/&gt;</ph> 形式の一部基本機能に対応しています。</seg>
1500+ </tuv>
1501+ </tu>
1502+ <tu>
1503+ <tuv xml:lang="EN-US">
14271504 <seg>Amulet is a Lua-based audio/visual toolkit designed for small games and experimentation.</seg>
14281505 </tuv>
14291506 <tuv xml:lang="JA" changeid="isVowel" changedate="20200609T035407Z" creationid="isVowel" creationdate="20200609T035407Z">
@@ -1679,6 +1756,30 @@ appended to their names, even on Windows.</seg>
16791756 </tu>
16801757 <tu>
16811758 <tuv xml:lang="EN-US">
1759+ <seg>Buffers</seg>
1760+ </tuv>
1761+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T061350Z" creationid="isVowel" creationdate="20200617T061350Z">
1762+ <seg> バッファ</seg>
1763+ </tuv>
1764+ </tu>
1765+ <tu>
1766+ <tuv xml:lang="EN-US">
1767+ <seg>Buffers and views {#buffers-and-views}</seg>
1768+ </tuv>
1769+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065222Z" creationid="isVowel" creationdate="20200617T055931Z">
1770+ <seg>バッファとビュー {#buffers-and-views}</seg>
1771+ </tuv>
1772+ </tu>
1773+ <tu>
1774+ <tuv xml:lang="EN-US">
1775+ <seg>Buffers are contiguous blocks of memory.</seg>
1776+ </tuv>
1777+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T060641Z" creationid="isVowel" creationdate="20200617T060641Z">
1778+ <seg>バッファは連続したメモリブロックです。</seg>
1779+ </tuv>
1780+ </tu>
1781+ <tu>
1782+ <tuv xml:lang="EN-US">
16821783 <seg>Build status</seg>
16831784 </tuv>
16841785 <tuv xml:lang="JA" changeid="isVowel" changedate="20200609T035716Z" creationid="isVowel" creationdate="20200609T035716Z">
@@ -1744,6 +1845,14 @@ appended to their names, even on Windows.</seg>
17441845 </tu>
17451846 <tu>
17461847 <tuv xml:lang="EN-US">
1848+ <seg>Converts a base64 string to a buffer.</seg>
1849+ </tuv>
1850+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T070913Z" creationid="isVowel" creationdate="20200617T070902Z">
1851+ <seg>Base64 エンコード文字列をバッファへ変換します。</seg>
1852+ </tuv>
1853+ </tu>
1854+ <tu>
1855+ <tuv xml:lang="EN-US">
17471856 <seg>Converts a table to a string.</seg>
17481857 </tuv>
17491858 <tuv xml:lang="JA" changeid="isVowel" changedate="20200616T071453Z" creationid="isVowel" creationdate="20200616T071453Z">
@@ -1935,8 +2044,8 @@ image buffer.</seg>
19352044 <tuv xml:lang="EN-US">
19362045 <seg>Documentation</seg>
19372046 </tuv>
1938- <tuv xml:lang="JA" changeid="isVowel" changedate="20200609T040717Z" creationid="isVowel" creationdate="20200609T040717Z">
1939- <seg>取扱説明書類</seg>
2047+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T062332Z" creationid="isVowel" creationdate="20200609T040717Z">
2048+ <seg>取扱説明書</seg>
19402049 </tuv>
19412050 </tu>
19422051 <tu>
@@ -2169,6 +2278,14 @@ even on Windows.</seg>
21692278 </tu>
21702279 <tu>
21712280 <tuv xml:lang="EN-US">
2281+ <seg>Here's an example of how to load a model and display it.</seg>
2282+ </tuv>
2283+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T080644Z" creationid="isVowel" creationdate="20200617T080644Z">
2284+ <seg>これはモデルのロードと表示方法に関する用例です。</seg>
2285+ </tuv>
2286+ </tu>
2287+ <tu>
2288+ <tuv xml:lang="EN-US">
21722289 <seg>Here's an example:</seg>
21732290 </tuv>
21742291 <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T044121Z" creationid="isVowel" creationdate="20200612T044121Z">
@@ -2177,10 +2294,18 @@ even on Windows.</seg>
21772294 </tu>
21782295 <tu>
21792296 <tuv xml:lang="EN-US">
2297+ <seg>Here's how to create a 800x600 window:</seg>
2298+ </tuv>
2299+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T113319Z" creationid="isVowel" creationdate="20200617T113319Z">
2300+ <seg>これは 800x600 のウィンドウを作成します:</seg>
2301+ </tuv>
2302+ </tu>
2303+ <tu>
2304+ <tuv xml:lang="EN-US">
21802305 <seg>Here's what a minimal Hello World!</seg>
21812306 </tuv>
2182- <tuv xml:lang="JA" changeid="isVowel" changedate="20200609T035531Z" creationid="isVowel" creationdate="20200609T035531Z">
2183- <seg>これは Hello World! です</seg>
2307+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T055629Z" creationid="isVowel" creationdate="20200609T035531Z">
2308+ <seg>これは Hello World! です。</seg>
21842309 </tuv>
21852310 </tu>
21862311 <tu>
@@ -2254,6 +2379,15 @@ then <ph x="5">&lt;x5/&gt;</ph>nil<ph x="6">&lt;x6/&gt;</ph> is returned.</seg>
22542379 </tu>
22552380 <tu>
22562381 <tuv xml:lang="EN-US">
2382+ <seg>If the normal or texture coordinate data
2383+is not present, the corresponding return value will be nil.</seg>
2384+ </tuv>
2385+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T075436Z" creationid="isVowel" creationdate="20200617T075436Z">
2386+ <seg>法線、またはテクスチャ座標データが存在しなければ、対応する返値は nil になります。</seg>
2387+ </tuv>
2388+ </tu>
2389+ <tu>
2390+ <tuv xml:lang="EN-US">
22572391 <seg>If there was an error parsing the JSON
22582392 then <ph x="1">&lt;x1/&gt;</ph>nil<ph x="2">&lt;x2/&gt;</ph> is returned and the error message is returned as
22592393 a second return value.</seg>
@@ -2378,6 +2512,15 @@ or feature requests to me at ian -at- ianmaclarty.com, or use the</seg>
23782512 </tu>
23792513 <tu>
23802514 <tuv xml:lang="EN-US">
2515+ <seg>Instead you access a buffer
2516+through a <ph x="1">&lt;x1/&gt;</ph>view<ph x="2">&lt;x2/&gt;</ph>.</seg>
2517+ </tuv>
2518+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T061256Z" creationid="isVowel" creationdate="20200617T060633Z">
2519+ <seg>バッファには <ph x="1">&lt;x1/&gt;</ph>view<ph x="2">&lt;x2/&gt;</ph> (ビュー) からアクセスします。</seg>
2520+ </tuv>
2521+ </tu>
2522+ <tu>
2523+ <tuv xml:lang="EN-US">
23812524 <seg>Instead you need to construct a new
23822525 vector.</seg>
23832526 </tuv>
@@ -2420,6 +2563,14 @@ draw to the framebuffer.</seg>
24202563 </tu>
24212564 <tu>
24222565 <tuv xml:lang="EN-US">
2566+ <seg>It loads a texture from the file <ph x="3">&lt;x3/&gt;</ph>texture.png<ph x="4">&lt;x4/&gt;</ph>.</seg>
2567+ </tuv>
2568+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T074606Z" creationid="isVowel" creationdate="20200617T074606Z">
2569+ <seg><ph x="3">&lt;x3/&gt;</ph>texture.png<ph x="4">&lt;x4/&gt;</ph> ファイルからテクスチャをロードします。</seg>
2570+ </tuv>
2571+ </tu>
2572+ <tu>
2573+ <tuv xml:lang="EN-US">
24232574 <seg>It provides a cross-platform API
24242575 for drawing graphics, playing audio and responding to user input, and a
24252576 command-line interpreter for running Amulet scripts.</seg>
@@ -2583,6 +2734,15 @@ a function that, when called, will run the script.</seg>
25832734 </tu>
25842735 <tu>
25852736 <tuv xml:lang="EN-US">
2737+ <seg>Loads the given file and returns a buffer containing the
2738+file's data, or <ph x="1">&lt;x1/&gt;</ph>nil<ph x="2">&lt;x2/&gt;</ph> if the file wasn't found.</seg>
2739+ </tuv>
2740+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T072744Z" creationid="isVowel" creationdate="20200617T072744Z">
2741+ <seg>指定されたファイルのロードを行い、ファイルのデータがあるバッファを返します。ファイルがなければ <ph x="1">&lt;x1/&gt;</ph>nil<ph x="2">&lt;x2/&gt;</ph> を返します。</seg>
2742+ </tuv>
2743+ </tu>
2744+ <tu>
2745+ <tuv xml:lang="EN-US">
25862746 <seg>Loads the given image file and returns a new image buffer.</seg>
25872747 </tuv>
25882748 <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T063142Z" creationid="isVowel" creationdate="20200612T063142Z">
@@ -2648,6 +2808,14 @@ it.</seg>
26482808 </tu>
26492809 <tu>
26502810 <tuv xml:lang="EN-US">
2811+ <seg>MV = mat4(1),</seg>
2812+ </tuv>
2813+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T111444Z" creationid="isVowel" creationdate="20200617T111444Z">
2814+ <seg>MV = mat4(1),</seg>
2815+ </tuv>
2816+ </tu>
2817+ <tu>
2818+ <tuv xml:lang="EN-US">
26512819 <seg>Mac OS X</seg>
26522820 </tuv>
26532821 <tuv xml:lang="JA" changeid="isVowel" changedate="20200609T035415Z" creationid="isVowel" creationdate="20200609T035415Z">
@@ -2688,6 +2856,14 @@ it.</seg>
26882856 </tu>
26892857 <tu>
26902858 <tuv xml:lang="EN-US">
2859+ <seg>Methods:</seg>
2860+ </tuv>
2861+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T061538Z" creationid="isVowel" creationdate="20200617T061538Z">
2862+ <seg>メソッド:</seg>
2863+ </tuv>
2864+ </tu>
2865+ <tu>
2866+ <tuv xml:lang="EN-US">
26912867 <seg>Mouse</seg>
26922868 </tuv>
26932869 <tuv xml:lang="JA" changeid="isVowel" changedate="20200604T204741Z" creationid="isVowel" creationdate="20200604T204741Z">
@@ -2739,6 +2915,17 @@ currently support this feature.</seg>
27392915 </tu>
27402916 <tu>
27412917 <tuv xml:lang="EN-US">
2918+ <seg>Note that you don't need to call this method if
2919+you're not using <ph x="5">&lt;x5/&gt;</ph>dataptr<ph x="6">&lt;x6/&gt;</ph> to update the buffer, for example if you're updating
2920+it through a view - in that case the buffer will automatically be marked
2921+dirty.</seg>
2922+ </tuv>
2923+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T072519Z" creationid="isVowel" creationdate="20200617T072418Z">
2924+ <seg>注意点として、このメソッドはバッファの更新で <ph x="5">&lt;x5/&gt;</ph>dataptr<ph x="6">&lt;x6/&gt;</ph> を使わないならば呼び出し不要です。例えば、ビューから更新をする場合は自動的にバッファの汚染標識が付けられます。</seg>
2925+ </tuv>
2926+ </tu>
2927+ <tu>
2928+ <tuv xml:lang="EN-US">
27422929 <seg>O = vec4(1, 0.5, 0, 1), -- full orange</seg>
27432930 </tuv>
27442931 <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T050130Z" creationid="isVowel" creationdate="20200612T050130Z">
@@ -2834,6 +3021,30 @@ are not supported anc cycles are not detected.</seg>
28343021 </tu>
28353022 <tu>
28363023 <tuv xml:lang="EN-US">
3024+ <seg>Overview</seg>
3025+ </tuv>
3026+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T111646Z" creationid="isVowel" creationdate="20200617T111646Z">
3027+ <seg>概要</seg>
3028+ </tuv>
3029+ </tu>
3030+ <tu>
3031+ <tuv xml:lang="EN-US">
3032+ <seg>P = mat4(1),</seg>
3033+ </tuv>
3034+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T111442Z" creationid="isVowel" creationdate="20200617T111442Z">
3035+ <seg>P = mat4(1),</seg>
3036+ </tuv>
3037+ </tu>
3038+ <tu>
3039+ <tuv xml:lang="EN-US">
3040+ <seg>P = math.perspective(math.rad(60), win.width/win.height, 1, 1000),</seg>
3041+ </tuv>
3042+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073227Z" creationid="isVowel" creationdate="20200617T073227Z">
3043+ <seg>P = math.perspective(math.rad(60), win.width/win.height, 1, 1000),</seg>
3044+ </tuv>
3045+ </tu>
3046+ <tu>
3047+ <tuv xml:lang="EN-US">
28373048 <seg>Passing a single number to a vector constructor will set all components
28383049 of the vector to that value.</seg>
28393050 </tuv>
@@ -2989,6 +3200,22 @@ another common use of 4 dimensional vectors.</seg>
29893200 </tu>
29903201 <tu>
29913202 <tuv xml:lang="EN-US">
3203+ <seg>Returns a base64 encoding of a buffer as a string.</seg>
3204+ </tuv>
3205+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T070827Z" creationid="isVowel" creationdate="20200617T070827Z">
3206+ <seg>バッファを Base64 エンコード文字列へ変換して返します。</seg>
3207+ </tuv>
3208+ </tu>
3209+ <tu>
3210+ <tuv xml:lang="EN-US">
3211+ <seg>Returns a new buffer of the given size in bytes.</seg>
3212+ </tuv>
3213+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T061652Z" creationid="isVowel" creationdate="20200617T061652Z">
3214+ <seg>指定されたバイト単位による size で新しいバッファを返します。</seg>
3215+ </tuv>
3216+ </tu>
3217+ <tu>
3218+ <tuv xml:lang="EN-US">
29923219 <seg>Returns a raw buffer containing the png encoding of the given
29933220 image.</seg>
29943221 </tuv>
@@ -3134,8 +3361,8 @@ result as a Lua value.</seg>
31343361 <tuv xml:lang="EN-US">
31353362 <seg>See <ph x="1">&lt;x1/&gt;</ph>.</seg>
31363363 </tuv>
3137- <tuv xml:lang="JA" changeid="isVowel" changedate="20200609T040728Z" creationid="isVowel" creationdate="20200609T040728Z">
3138- <seg>こちらをお読みください<ph x="1">&lt;x1/&gt;</ph>。</seg>
3364+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T055618Z" creationid="isVowel" creationdate="20200609T040728Z">
3365+ <seg>こちらをお読みください: <ph x="1">&lt;x1/&gt;</ph></seg>
31393366 </tuv>
31403367 </tu>
31413368 <tu>
@@ -3315,6 +3542,14 @@ are converted to JSON arrays.</seg>
33153542 </tu>
33163543 <tu>
33173544 <tuv xml:lang="EN-US">
3545+ <seg>The <ph x="1">&lt;x1/&gt;</ph>#<ph x="2">&lt;x2/&gt;</ph> operator can be used to retrieve the size of a buffer in bytes.</seg>
3546+ </tuv>
3547+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T062046Z" creationid="isVowel" creationdate="20200617T062046Z">
3548+ <seg><ph x="1">&lt;x1/&gt;</ph>#<ph x="2">&lt;x2/&gt;</ph> 演算子はバッファサイズをバイト単位で取得するために使えます。</seg>
3549+ </tuv>
3550+ </tu>
3551+ <tu>
3552+ <tuv xml:lang="EN-US">
33183553 <seg>The <ph x="1">&lt;x1/&gt;</ph>#<ph x="2">&lt;x2/&gt;</ph> operator returns the length of an array and array indices start at 1 by
33193554 default.</seg>
33203555 </tuv>
@@ -3427,6 +3662,22 @@ as a series of single precision floats (4 bytes each).</seg>
34273662 </tu>
34283663 <tu>
34293664 <tuv xml:lang="EN-US">
3665+ <seg>The buffer associated with the view.</seg>
3666+ </tuv>
3667+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T070138Z" creationid="isVowel" creationdate="20200617T070138Z">
3668+ <seg>ビューと関連付けられたバッファ。</seg>
3669+ </tuv>
3670+ </tu>
3671+ <tu>
3672+ <tuv xml:lang="EN-US">
3673+ <seg>The buffer's memory will be zeroed.</seg>
3674+ </tuv>
3675+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T061923Z" creationid="isVowel" creationdate="20200617T061923Z">
3676+ <seg>バッファのメモリはゼロクリアされます。</seg>
3677+ </tuv>
3678+ </tu>
3679+ <tu>
3680+ <tuv xml:lang="EN-US">
34303681 <seg>The code:</seg>
34313682 </tuv>
34323683 <tuv xml:lang="JA" changeid="isVowel" changedate="20200610T052441Z" creationid="isVowel" creationdate="20200610T052441Z">
@@ -3460,6 +3711,14 @@ as a series of single precision floats (4 bytes each).</seg>
34603711 </tu>
34613712 <tu>
34623713 <tuv xml:lang="EN-US">
3714+ <seg>The default is 0.</seg>
3715+ </tuv>
3716+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065251Z" creationid="isVowel" creationdate="20200617T065251Z">
3717+ <seg>デフォルトは 0 です。</seg>
3718+ </tuv>
3719+ </tu>
3720+ <tu>
3721+ <tuv xml:lang="EN-US">
34633722 <seg>The default is <ph x="7">&lt;x7/&gt;</ph>lua<ph x="8">&lt;x8/&gt;</ph>.</seg>
34643723 </tuv>
34653724 <tuv xml:lang="JA" changeid="isVowel" changedate="20200610T171105Z" creationid="isVowel" creationdate="20200610T171105Z">
@@ -3468,6 +3727,22 @@ as a series of single precision floats (4 bytes each).</seg>
34683727 </tu>
34693728 <tu>
34703729 <tuv xml:lang="EN-US">
3730+ <seg>The default is <ph x="9">&lt;x9/&gt;</ph>"static"<ph x="10">&lt;x10/&gt;</ph>.</seg>
3731+ </tuv>
3732+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T062139Z" creationid="isVowel" creationdate="20200617T062139Z">
3733+ <seg>デフォルトは <ph x="9">&lt;x9/&gt;</ph>"static"<ph x="10">&lt;x10/&gt;</ph> です。</seg>
3734+ </tuv>
3735+ </tu>
3736+ <tu>
3737+ <tuv xml:lang="EN-US">
3738+ <seg>The default value for <ph x="3">&lt;x3/&gt;</ph>start<ph x="4">&lt;x4/&gt;</ph> is <ph x="5">&lt;x5/&gt;</ph>1<ph x="6">&lt;x6/&gt;</ph>.</seg>
3739+ </tuv>
3740+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T070456Z" creationid="isVowel" creationdate="20200617T070456Z">
3741+ <seg><ph x="3">&lt;x3/&gt;</ph>start<ph x="4">&lt;x4/&gt;</ph> のデフォルト値は <ph x="5">&lt;x5/&gt;</ph>1<ph x="6">&lt;x6/&gt;</ph> です。</seg>
3742+ </tuv>
3743+ </tu>
3744+ <tu>
3745+ <tuv xml:lang="EN-US">
34713746 <seg>The else part of an if-then-else executes
34723747 only if the condition evaluates to <ph x="1">&lt;x1/&gt;</ph>false<ph x="2">&lt;x2/&gt;</ph> or <ph x="3">&lt;x3/&gt;</ph>nil<ph x="4">&lt;x4/&gt;</ph>.</seg>
34733748 </tuv>
@@ -3477,6 +3752,25 @@ only if the condition evaluates to <ph x="1">&lt;x1/&gt;</ph>false<ph x="2">&lt;
34773752 </tu>
34783753 <tu>
34793754 <tuv xml:lang="EN-US">
3755+ <seg>The example
3756+loads an model from <ph x="1">&lt;x1/&gt;</ph>model.obj<ph x="2">&lt;x2/&gt;</ph> and assumes it contains normal
3757+and texture coordinate data and the triangles have a counter-clockwise
3758+winding.</seg>
3759+ </tuv>
3760+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T111127Z" creationid="isVowel" creationdate="20200617T083057Z">
3761+ <seg>この用例において <ph x="1">&lt;x1/&gt;</ph>model.obj<ph x="2">&lt;x2/&gt;</ph> からロードしたモデルには法線とテクスチャ座標データがあり、三角形は反時計回りに回旋するものと想定します。</seg>
3762+ </tuv>
3763+ </tu>
3764+ <tu>
3765+ <tuv xml:lang="EN-US">
3766+ <seg>The faces in the <ph x="1">&lt;x1/&gt;</ph>.obj<ph x="2">&lt;x2/&gt;</ph> file must all be triangles (quads aren't supported).</seg>
3767+ </tuv>
3768+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T080529Z" creationid="isVowel" creationdate="20200617T080529Z">
3769+ <seg><ph x="1">&lt;x1/&gt;</ph>.obj<ph x="2">&lt;x2/&gt;</ph> ファイルの全面は必ず三角形になります (四辺形はサポートされていません)。</seg>
3770+ </tuv>
3771+ </tu>
3772+ <tu>
3773+ <tuv xml:lang="EN-US">
34803774 <seg>The file must be a <ph x="1">&lt;x1/&gt;</ph>.ogg<ph x="2">&lt;x2/&gt;</ph> audio file.</seg>
34813775 </tuv>
34823776 <tuv xml:lang="JA" changeid="isVowel" changedate="20200616T012414Z" creationid="isVowel" creationdate="20200616T012414Z">
@@ -3587,6 +3881,22 @@ in an overlay on the main window.</seg>
35873881 </tu>
35883882 <tu>
35893883 <tuv xml:lang="EN-US">
3884+ <seg>The offset of the normals in bytes.</seg>
3885+ </tuv>
3886+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T075529Z" creationid="isVowel" creationdate="20200617T075529Z">
3887+ <seg>バイト単位による法線のオフセット。</seg>
3888+ </tuv>
3889+ </tu>
3890+ <tu>
3891+ <tuv xml:lang="EN-US">
3892+ <seg>The offset of the texture coordinates in bytes.</seg>
3893+ </tuv>
3894+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T074951Z" creationid="isVowel" creationdate="20200617T074951Z">
3895+ <seg>バイト単位によるテクスチャ座標のオフセット。</seg>
3896+ </tuv>
3897+ </tu>
3898+ <tu>
3899+ <tuv xml:lang="EN-US">
35903900 <seg>The platform Amulet is running on.</seg>
35913901 </tuv>
35923902 <tuv xml:lang="JA" changeid="isVowel" changedate="20200604T173546Z" creationid="isVowel" creationdate="20200604T173546Z">
@@ -3662,6 +3972,14 @@ on Windows (you don't need to use <ph x="3">&lt;x3/&gt;</ph>\<ph x="4">&lt;x4/&g
36623972 </tu>
36633973 <tu>
36643974 <tuv xml:lang="EN-US">
3975+ <seg>The stride in bytes.</seg>
3976+ </tuv>
3977+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T075624Z" creationid="isVowel" creationdate="20200617T075624Z">
3978+ <seg>バイト単位によるストライド (刻み幅)。</seg>
3979+ </tuv>
3980+ </tu>
3981+ <tu>
3982+ <tuv xml:lang="EN-US">
36653983 <seg>The string concatenation operator is two dots (e.g. <ph x="1">&lt;x1/&gt;</ph>"abc".."def"<ph x="2">&lt;x2/&gt;</ph>).</seg>
36663984 </tuv>
36673985 <tuv xml:lang="JA" changeid="isVowel" changedate="20200605T015714Z" creationid="isVowel" creationdate="20200605T015714Z">
@@ -3712,6 +4030,14 @@ and Lua-5.1 on all other platforms.</seg>
37124030 </tu>
37134031 <tu>
37144032 <tuv xml:lang="EN-US">
4033+ <seg>The vertex data is always at offset 0.</seg>
4034+ </tuv>
4035+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T075034Z" creationid="isVowel" creationdate="20200617T075034Z">
4036+ <seg>バーテックス・データのオフセットは必ず 0 になります。</seg>
4037+ </tuv>
4038+ </tu>
4039+ <tu>
4040+ <tuv xml:lang="EN-US">
37154041 <seg>The width of the framebuffer, in pixels.</seg>
37164042 </tuv>
37174043 <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T055231Z" creationid="isVowel" creationdate="20200612T055231Z">
@@ -3746,8 +4072,8 @@ and Lua-5.1 on all other platforms.</seg>
37464072 <tuv xml:lang="EN-US">
37474073 <seg>These are available from <ph x="1">&lt;x1/&gt;</ph>.</seg>
37484074 </tuv>
3749- <tuv xml:lang="JA" changeid="isVowel" changedate="20200609T040745Z" creationid="isVowel" creationdate="20200609T040706Z">
3750- <seg>こちらでダウンロードしてください<ph x="1">&lt;x1/&gt;</ph>。</seg>
4075+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T055615Z" creationid="isVowel" creationdate="20200609T040706Z">
4076+ <seg>こちらでダウンロードしてください: <ph x="1">&lt;x1/&gt;</ph></seg>
37514077 </tuv>
37524078 </tu>
37534079 <tu>
@@ -3771,6 +4097,15 @@ to HTML from the desktop version.</seg>
37714097 </tu>
37724098 <tu>
37734099 <tuv xml:lang="EN-US">
4100+ <seg>They are used for storing images,
4101+audio and vertex data, or anything else you like.</seg>
4102+ </tuv>
4103+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T060358Z" creationid="isVowel" creationdate="20200617T060358Z">
4104+ <seg>バッファはイメージ、オーディオとバーテックス・データ、またはそれ以外のものなどを記録するために使われます。</seg>
4105+ </tuv>
4106+ </tu>
4107+ <tu>
4108+ <tuv xml:lang="EN-US">
37744109 <seg>They can be used as key-value maps or arrays.</seg>
37754110 </tuv>
37764111 <tuv xml:lang="JA" changeid="isVowel" changedate="20200605T020941Z" creationid="isVowel" creationdate="20200605T020941Z">
@@ -3848,6 +4183,14 @@ shader language supported by WebGL 1.</seg>
38484183 </tu>
38494184 <tu>
38504185 <tuv xml:lang="EN-US">
4186+ <seg>This loads the given <ph x="1">&lt;x1/&gt;</ph>.obj<ph x="2">&lt;x2/&gt;</ph> file and returns 4 things:</seg>
4187+ </tuv>
4188+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T080044Z" creationid="isVowel" creationdate="20200617T080044Z">
4189+ <seg>これで指定された <ph x="1">&lt;x1/&gt;</ph>.obj<ph x="2">&lt;x2/&gt;</ph> ファイルのロードと値を4種返します。</seg>
4190+ </tuv>
4191+ </tu>
4192+ <tu>
4193+ <tuv xml:lang="EN-US">
38514194 <seg>This means that once you create a
38524195 vector, its value cannot be changed.</seg>
38534196 </tuv>
@@ -3874,6 +4217,25 @@ Game Center functions.</seg>
38744217 </tu>
38754218 <tu>
38764219 <tuv xml:lang="EN-US">
4220+ <seg>This should be called if you
4221+update the buffer using the <ph x="3">&lt;x3/&gt;</ph>dataptr<ph x="4">&lt;x4/&gt;</ph> field.</seg>
4222+ </tuv>
4223+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T071450Z" creationid="isVowel" creationdate="20200617T071450Z">
4224+ <seg>これは <ph x="3">&lt;x3/&gt;</ph>dataptr<ph x="4">&lt;x4/&gt;</ph> フィールドでバッファを更新する場合は必ず呼び出してください。</seg>
4225+ </tuv>
4226+ </tu>
4227+ <tu>
4228+ <tuv xml:lang="EN-US">
4229+ <seg>This will cause
4230+data to be copied to any textures or vbos that depend on the buffer
4231+when next they are drawn.</seg>
4232+ </tuv>
4233+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T071854Z" creationid="isVowel" creationdate="20200617T071854Z">
4234+ <seg>これは次回描画時に、バッファ依存のテクスチャ、または vbos のデータをコピーします。</seg>
4235+ </tuv>
4236+ </tu>
4237+ <tu>
4238+ <tuv xml:lang="EN-US">
38774239 <seg>This will generate zip package files for Windows, Mac and Linux in the
38784240 current directory.</seg>
38794241 </tuv>
@@ -3891,6 +4253,14 @@ current directory.</seg>
38914253 </tu>
38924254 <tu>
38934255 <tuv xml:lang="EN-US">
4256+ <seg>To close a window call its window:close method.</seg>
4257+ </tuv>
4258+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T112732Z" creationid="isVowel" creationdate="20200617T112732Z">
4259+ <seg>ウィンドウを閉じるには window:close メソッドを呼び出します。</seg>
4260+ </tuv>
4261+ </tu>
4262+ <tu>
4263+ <tuv xml:lang="EN-US">
38944264 <seg>To construct a vector use one of the functions <ph x="1">&lt;x1/&gt;</ph>vec2<ph x="2">&lt;x2/&gt;</ph>, <ph x="3">&lt;x3/&gt;</ph>vec3<ph x="4">&lt;x4/&gt;</ph> or <ph x="5">&lt;x5/&gt;</ph>vec4<ph x="6">&lt;x6/&gt;</ph>.</seg>
38954265 </tuv>
38964266 <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T061227Z" creationid="isVowel" creationdate="20200612T061227Z">
@@ -3899,6 +4269,14 @@ current directory.</seg>
38994269 </tu>
39004270 <tu>
39014271 <tuv xml:lang="EN-US">
4272+ <seg>To create a window use the <ph x="1">&lt;x1/&gt;</ph>am.window<ph x="2">&lt;x2/&gt;</ph> function.</seg>
4273+ </tuv>
4274+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T111424Z" creationid="isVowel" creationdate="20200617T111424Z">
4275+ <seg>ウィンドウを作成するには <ph x="1">&lt;x1/&gt;</ph>am.window<ph x="2">&lt;x2/&gt;</ph> 関数を使います。</seg>
4276+ </tuv>
4277+ </tu>
4278+ <tu>
4279+ <tuv xml:lang="EN-US">
39024280 <seg>To generate distribution packages, use the amulet export command like so:</seg>
39034281 </tuv>
39044282 <tuv xml:lang="JA" changeid="isVowel" changedate="20200610T123912Z" creationid="isVowel" creationdate="20200610T123906Z">
@@ -3966,6 +4344,38 @@ velocity in 2 or 3 dimensional space.</seg>
39664344 </tu>
39674345 <tu>
39684346 <tuv xml:lang="EN-US">
4347+ <seg>View fields</seg>
4348+ </tuv>
4349+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T061451Z" creationid="isVowel" creationdate="20200617T061451Z">
4350+ <seg>View フィールド</seg>
4351+ </tuv>
4352+ </tu>
4353+ <tu>
4354+ <tuv xml:lang="EN-US">
4355+ <seg>View methods</seg>
4356+ </tuv>
4357+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T061438Z" creationid="isVowel" creationdate="20200617T061438Z">
4358+ <seg>View メソッド</seg>
4359+ </tuv>
4360+ </tu>
4361+ <tu>
4362+ <tuv xml:lang="EN-US">
4363+ <seg>Views</seg>
4364+ </tuv>
4365+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T061525Z" creationid="isVowel" creationdate="20200617T061525Z">
4366+ <seg>ビュー</seg>
4367+ </tuv>
4368+ </tu>
4369+ <tu>
4370+ <tuv xml:lang="EN-US">
4371+ <seg>Views provide a typed array-like interface to the buffer.</seg>
4372+ </tuv>
4373+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T061319Z" creationid="isVowel" creationdate="20200617T061032Z">
4374+ <seg>ビューではバッファへ配列風のインターフェース型が使えます。</seg>
4375+ </tuv>
4376+ </tu>
4377+ <tu>
4378+ <tuv xml:lang="EN-US">
39694379 <seg>W = vec4(1, 1, 1, 1), -- full white</seg>
39704380 </tuv>
39714381 <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T045331Z" creationid="isVowel" creationdate="20200612T045331Z">
@@ -4104,6 +4514,14 @@ table with all of the following fields:</seg>
41044514 </tu>
41054515 <tu>
41064516 <tuv xml:lang="EN-US">
4517+ <seg>You can't access a buffer's memory directly.</seg>
4518+ </tuv>
4519+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T060527Z" creationid="isVowel" creationdate="20200617T060527Z">
4520+ <seg>直接的にはバッファのメモリへアクセスすることはできません。</seg>
4521+ </tuv>
4522+ </tu>
4523+ <tu>
4524+ <tuv xml:lang="EN-US">
41074525 <seg>You will need to create your own version of msys.bat with something
41084526 like the following at the top:</seg>
41094527 </tuv>
@@ -4132,58 +4550,154 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
41324550 </tu>
41334551 <tu>
41344552 <tuv xml:lang="EN-US">
4135- <seg>am.ascii_color_map = {</seg>
4553+ <seg>^ am.bind{</seg>
41364554 </tuv>
4137- <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T053451Z" creationid="isVowel" creationdate="20200612T053451Z">
4138- <seg>am.ascii_color_map = {</seg>
4555+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073225Z" creationid="isVowel" creationdate="20200617T073225Z">
4556+ <seg>^ am.bind{</seg>
41394557 </tuv>
41404558 </tu>
41414559 <tu>
41424560 <tuv xml:lang="EN-US">
4143- <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
4561+ <seg>^ am.draw("triangles")</seg>
41444562 </tuv>
4145- <tuv xml:lang="JA" changeid="isVowel" changedate="20200616T012736Z" creationid="isVowel" creationdate="20200616T012736Z">
4146- <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
4563+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T111457Z" creationid="isVowel" creationdate="20200617T111457Z">
4564+ <seg>^ am.draw("triangles")</seg>
41474565 </tuv>
41484566 </tu>
41494567 <tu>
41504568 <tuv xml:lang="EN-US">
4151- <seg>am.current_time() {#am.current_time .func-def}</seg>
4569+ <seg>^ am.translate(0, 0, -5)</seg>
41524570 </tuv>
4153- <tuv xml:lang="JA" changeid="isVowel" changedate="20200604T204259Z" creationid="isVowel" creationdate="20200604T204259Z">
4154- <seg>am.current_time() {#am.current_time .func-def}</seg>
4571+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073222Z" creationid="isVowel" creationdate="20200617T073222Z">
4572+ <seg>^ am.translate(0, 0, -5)</seg>
41554573 </tuv>
41564574 </tu>
41574575 <tu>
41584576 <tuv xml:lang="EN-US">
4159- <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4577+ <seg>^ am.use_program(shader)</seg>
41604578 </tuv>
4161- <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T071218Z" creationid="isVowel" creationdate="20200612T071218Z">
4162- <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4579+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073223Z" creationid="isVowel" creationdate="20200617T073223Z">
4580+ <seg>^ am.use_program(shader)</seg>
41634581 </tuv>
41644582 </tu>
41654583 <tu>
41664584 <tuv xml:lang="EN-US">
4167- <seg>am.delta_time {#am.delta_time .field-def}</seg>
4585+ <seg>^am.draw"triangles"</seg>
41684586 </tuv>
4169- <tuv xml:lang="JA" changeid="isVowel" changedate="20200604T204255Z" creationid="isVowel" creationdate="20200604T204255Z">
4170- <seg>am.delta_time {#am.delta_time .field-def}</seg>
4587+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073244Z" creationid="isVowel" creationdate="20200617T073244Z">
4588+ <seg>^am.draw"triangles"</seg>
41714589 </tuv>
41724590 </tu>
41734591 <tu>
41744592 <tuv xml:lang="EN-US">
4175- <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4593+ <seg>am.ascii_color_map = {</seg>
41764594 </tuv>
4177- <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T071236Z" creationid="isVowel" creationdate="20200612T071236Z">
4178- <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4595+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T053451Z" creationid="isVowel" creationdate="20200612T053451Z">
4596+ <seg>am.ascii_color_map = {</seg>
41794597 </tuv>
41804598 </tu>
41814599 <tu>
41824600 <tuv xml:lang="EN-US">
4183- <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4601+ <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
41844602 </tuv>
4185- <tuv xml:lang="JA" changeid="isVowel" changedate="20200604T173314Z" creationid="isVowel" creationdate="20200604T173314Z">
4186- <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4603+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200616T012736Z" creationid="isVowel" creationdate="20200616T012736Z">
4604+ <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
4605+ </tuv>
4606+ </tu>
4607+ <tu>
4608+ <tuv xml:lang="EN-US">
4609+ <seg>am.base64_decode(string) {#am.base64_decode .func-def}</seg>
4610+ </tuv>
4611+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T070520Z" creationid="isVowel" creationdate="20200617T070520Z">
4612+ <seg>am.base64_decode(string) {#am.base64_decode .func-def}</seg>
4613+ </tuv>
4614+ </tu>
4615+ <tu>
4616+ <tuv xml:lang="EN-US">
4617+ <seg>am.base64_encode(buffer) {#am.base64_encode .func-def}</seg>
4618+ </tuv>
4619+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T070522Z" creationid="isVowel" creationdate="20200617T070522Z">
4620+ <seg>am.base64_encode(buffer) {#am.base64_encode .func-def}</seg>
4621+ </tuv>
4622+ </tu>
4623+ <tu>
4624+ <tuv xml:lang="EN-US">
4625+ <seg>am.buffer(size) {#am.buffer .func-def}</seg>
4626+ </tuv>
4627+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T061545Z" creationid="isVowel" creationdate="20200617T061545Z">
4628+ <seg>am.buffer(size) {#am.buffer .func-def}</seg>
4629+ </tuv>
4630+ </tu>
4631+ <tu>
4632+ <tuv xml:lang="EN-US">
4633+ <seg>am.byte_array(table) {#am.byte_array .func-def}</seg>
4634+ </tuv>
4635+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065600Z" creationid="isVowel" creationdate="20200617T065600Z">
4636+ <seg>am.byte_array(table) {#am.byte_array .func-def}</seg>
4637+ </tuv>
4638+ </tu>
4639+ <tu>
4640+ <tuv xml:lang="EN-US">
4641+ <seg>am.byte_norm_array(table) {#am.byte_norm_array .func-def}</seg>
4642+ </tuv>
4643+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065556Z" creationid="isVowel" creationdate="20200617T065556Z">
4644+ <seg>am.byte_norm_array(table) {#am.byte_norm_array .func-def}</seg>
4645+ </tuv>
4646+ </tu>
4647+ <tu>
4648+ <tuv xml:lang="EN-US">
4649+ <seg>am.cull_face"ccw"</seg>
4650+ </tuv>
4651+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073220Z" creationid="isVowel" creationdate="20200617T073220Z">
4652+ <seg>am.cull_face"ccw"</seg>
4653+ </tuv>
4654+ </tu>
4655+ <tu>
4656+ <tuv xml:lang="EN-US">
4657+ <seg>am.current_time() {#am.current_time .func-def}</seg>
4658+ </tuv>
4659+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200604T204259Z" creationid="isVowel" creationdate="20200604T204259Z">
4660+ <seg>am.current_time() {#am.current_time .func-def}</seg>
4661+ </tuv>
4662+ </tu>
4663+ <tu>
4664+ <tuv xml:lang="EN-US">
4665+ <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4666+ </tuv>
4667+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T071218Z" creationid="isVowel" creationdate="20200612T071218Z">
4668+ <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4669+ </tuv>
4670+ </tu>
4671+ <tu>
4672+ <tuv xml:lang="EN-US">
4673+ <seg>am.delta_time {#am.delta_time .field-def}</seg>
4674+ </tuv>
4675+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200604T204255Z" creationid="isVowel" creationdate="20200604T204255Z">
4676+ <seg>am.delta_time {#am.delta_time .field-def}</seg>
4677+ </tuv>
4678+ </tu>
4679+ <tu>
4680+ <tuv xml:lang="EN-US">
4681+ <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4682+ </tuv>
4683+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T071236Z" creationid="isVowel" creationdate="20200612T071236Z">
4684+ <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4685+ </tuv>
4686+ </tu>
4687+ <tu>
4688+ <tuv xml:lang="EN-US">
4689+ <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4690+ </tuv>
4691+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200604T173314Z" creationid="isVowel" creationdate="20200604T173314Z">
4692+ <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4693+ </tuv>
4694+ </tu>
4695+ <tu>
4696+ <tuv xml:lang="EN-US">
4697+ <seg>am.float_array(table) {#am.float_array .func-def}</seg>
4698+ </tuv>
4699+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065602Z" creationid="isVowel" creationdate="20200617T065602Z">
4700+ <seg>am.float_array(table) {#am.float_array .func-def}</seg>
41874701 </tuv>
41884702 </tu>
41894703 <tu>
@@ -4260,6 +4774,22 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
42604774 </tu>
42614775 <tu>
42624776 <tuv xml:lang="EN-US">
4777+ <seg>am.int_array(table) {#am.int_array .func-def}</seg>
4778+ </tuv>
4779+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065543Z" creationid="isVowel" creationdate="20200617T065543Z">
4780+ <seg>am.int_array(table) {#am.int_array .func-def}</seg>
4781+ </tuv>
4782+ </tu>
4783+ <tu>
4784+ <tuv xml:lang="EN-US">
4785+ <seg>am.int_norm_array(table) {#am.int_norm_array .func-def}</seg>
4786+ </tuv>
4787+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065538Z" creationid="isVowel" creationdate="20200617T065538Z">
4788+ <seg>am.int_norm_array(table) {#am.int_norm_array .func-def}</seg>
4789+ </tuv>
4790+ </tu>
4791+ <tu>
4792+ <tuv xml:lang="EN-US">
42634793 <seg>am.language() {#am.language .func-def}</seg>
42644794 </tuv>
42654795 <tuv xml:lang="JA" changeid="isVowel" changedate="20200604T173342Z" creationid="isVowel" creationdate="20200604T173342Z">
@@ -4276,6 +4806,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
42764806 </tu>
42774807 <tu>
42784808 <tuv xml:lang="EN-US">
4809+ <seg>am.load_buffer(filename) {#am.load_buffer .func-def}</seg>
4810+ </tuv>
4811+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T070525Z" creationid="isVowel" creationdate="20200617T070525Z">
4812+ <seg>am.load_buffer(filename) {#am.load_buffer .func-def}</seg>
4813+ </tuv>
4814+ </tu>
4815+ <tu>
4816+ <tuv xml:lang="EN-US">
42794817 <seg>am.load_image(filename) {#am.load_image .func-def}</seg>
42804818 </tuv>
42814819 <tuv xml:lang="JA" changeid="isVowel" changedate="20200604T204601Z" creationid="isVowel" creationdate="20200604T204601Z">
@@ -4284,6 +4822,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
42844822 </tu>
42854823 <tu>
42864824 <tuv xml:lang="EN-US">
4825+ <seg>am.load_obj(filename) {#am.load_obj .func-def}</seg>
4826+ </tuv>
4827+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073831Z" creationid="isVowel" creationdate="20200617T073831Z">
4828+ <seg>am.load_obj(filename) {#am.load_obj .func-def}</seg>
4829+ </tuv>
4830+ </tu>
4831+ <tu>
4832+ <tuv xml:lang="EN-US">
42874833 <seg>am.load_script(filename) {#am.load_script .func-def}</seg>
42884834 </tuv>
42894835 <tuv xml:lang="JA" changeid="isVowel" changedate="20200604T181133Z" creationid="isVowel" creationdate="20200604T181133Z">
@@ -4388,6 +4934,22 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
43884934 </tu>
43894935 <tu>
43904936 <tuv xml:lang="EN-US">
4937+ <seg>am.short_array(table) {#am.short_array .func-def}</seg>
4938+ </tuv>
4939+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065551Z" creationid="isVowel" creationdate="20200617T065551Z">
4940+ <seg>am.short_array(table) {#am.short_array .func-def}</seg>
4941+ </tuv>
4942+ </tu>
4943+ <tu>
4944+ <tuv xml:lang="EN-US">
4945+ <seg>am.short_norm_array(table) {#am.short_norm_array .func-def}</seg>
4946+ </tuv>
4947+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065547Z" creationid="isVowel" creationdate="20200617T065547Z">
4948+ <seg>am.short_norm_array(table) {#am.short_norm_array .func-def}</seg>
4949+ </tuv>
4950+ </tu>
4951+ <tu>
4952+ <tuv xml:lang="EN-US">
43914953 <seg>am.show_gamecenter_leaderboard(leaderboard_id)</seg>
43924954 </tuv>
43934955 <tuv xml:lang="JA" changeid="isVowel" changedate="20200602T154030Z" creationid="isVowel" creationdate="20200602T154030Z">
@@ -4412,6 +4974,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
44124974 </tu>
44134975 <tu>
44144976 <tuv xml:lang="EN-US">
4977+ <seg>am.struct_array(size, spec) {#am.struct_array .func-def}</seg>
4978+ </tuv>
4979+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065515Z" creationid="isVowel" creationdate="20200617T065515Z">
4980+ <seg>am.struct_array(size, spec) {#am.struct_array .func-def}</seg>
4981+ </tuv>
4982+ </tu>
4983+ <tu>
4984+ <tuv xml:lang="EN-US">
44154985 <seg>am.submit_gamecenter_achievement(achievment_id)</seg>
44164986 </tuv>
44174987 <tuv xml:lang="JA" changeid="isVowel" changedate="20200607T043715Z" creationid="isVowel" creationdate="20200607T043715Z">
@@ -4492,6 +5062,102 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
44925062 </tu>
44935063 <tu>
44945064 <tuv xml:lang="EN-US">
5065+ <seg>am.ubyte_array(table) {#am.ubyte_array .func-def}</seg>
5066+ </tuv>
5067+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065558Z" creationid="isVowel" creationdate="20200617T065558Z">
5068+ <seg>am.ubyte_array(table) {#am.ubyte_array .func-def}</seg>
5069+ </tuv>
5070+ </tu>
5071+ <tu>
5072+ <tuv xml:lang="EN-US">
5073+ <seg>am.ubyte_norm_array(table) {#am.ubyte_norm_array .func-def}</seg>
5074+ </tuv>
5075+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065554Z" creationid="isVowel" creationdate="20200617T065554Z">
5076+ <seg>am.ubyte_norm_array(table) {#am.ubyte_norm_array .func-def}</seg>
5077+ </tuv>
5078+ </tu>
5079+ <tu>
5080+ <tuv xml:lang="EN-US">
5081+ <seg>am.uint_array(table) {#am.uint_array .func-def}</seg>
5082+ </tuv>
5083+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065541Z" creationid="isVowel" creationdate="20200617T065541Z">
5084+ <seg>am.uint_array(table) {#am.uint_array .func-def}</seg>
5085+ </tuv>
5086+ </tu>
5087+ <tu>
5088+ <tuv xml:lang="EN-US">
5089+ <seg>am.uint_elem_array(table) {#am.uint_elem_array .func-def}</seg>
5090+ </tuv>
5091+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065531Z" creationid="isVowel" creationdate="20200617T065531Z">
5092+ <seg>am.uint_elem_array(table) {#am.uint_elem_array .func-def}</seg>
5093+ </tuv>
5094+ </tu>
5095+ <tu>
5096+ <tuv xml:lang="EN-US">
5097+ <seg>am.uint_norm_array(table) {#am.uint_norm_array .func-def}</seg>
5098+ </tuv>
5099+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065536Z" creationid="isVowel" creationdate="20200617T065536Z">
5100+ <seg>am.uint_norm_array(table) {#am.uint_norm_array .func-def}</seg>
5101+ </tuv>
5102+ </tu>
5103+ <tu>
5104+ <tuv xml:lang="EN-US">
5105+ <seg>am.use_program(am.shaders.colors2d)</seg>
5106+ </tuv>
5107+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T111439Z" creationid="isVowel" creationdate="20200617T111439Z">
5108+ <seg>am.use_program(am.shaders.colors2d)</seg>
5109+ </tuv>
5110+ </tu>
5111+ <tu>
5112+ <tuv xml:lang="EN-US">
5113+ <seg>am.ushort_array(table) {#am.ushort_array .func-def}</seg>
5114+ </tuv>
5115+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065549Z" creationid="isVowel" creationdate="20200617T065549Z">
5116+ <seg>am.ushort_array(table) {#am.ushort_array .func-def}</seg>
5117+ </tuv>
5118+ </tu>
5119+ <tu>
5120+ <tuv xml:lang="EN-US">
5121+ <seg>am.ushort_elem_array(table) {#am.ushort_elem_array .func-def}</seg>
5122+ </tuv>
5123+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065534Z" creationid="isVowel" creationdate="20200617T065534Z">
5124+ <seg>am.ushort_elem_array(table) {#am.ushort_elem_array .func-def}</seg>
5125+ </tuv>
5126+ </tu>
5127+ <tu>
5128+ <tuv xml:lang="EN-US">
5129+ <seg>am.ushort_norm_array(table) {#am.ushort_norm_array .func-def}</seg>
5130+ </tuv>
5131+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065545Z" creationid="isVowel" creationdate="20200617T065545Z">
5132+ <seg>am.ushort_norm_array(table) {#am.ushort_norm_array .func-def}</seg>
5133+ </tuv>
5134+ </tu>
5135+ <tu>
5136+ <tuv xml:lang="EN-US">
5137+ <seg>am.vec2_array(table) {#am.vec2_array .func-def}</seg>
5138+ </tuv>
5139+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065528Z" creationid="isVowel" creationdate="20200617T065528Z">
5140+ <seg>am.vec2_array(table) {#am.vec2_array .func-def}</seg>
5141+ </tuv>
5142+ </tu>
5143+ <tu>
5144+ <tuv xml:lang="EN-US">
5145+ <seg>am.vec3_array(table) {#am.vec3_array .func-def}</seg>
5146+ </tuv>
5147+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065525Z" creationid="isVowel" creationdate="20200617T065525Z">
5148+ <seg>am.vec3_array(table) {#am.vec3_array .func-def}</seg>
5149+ </tuv>
5150+ </tu>
5151+ <tu>
5152+ <tuv xml:lang="EN-US">
5153+ <seg>am.vec4_array(table) {#am.vec4_array .func-def}</seg>
5154+ </tuv>
5155+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T072816Z" creationid="isVowel" creationdate="20200617T072816Z">
5156+ <seg>am.vec4_array(table) {#am.vec4_array .func-def}</seg>
5157+ </tuv>
5158+ </tu>
5159+ <tu>
5160+ <tuv xml:lang="EN-US">
44955161 <seg>am.version</seg>
44965162 </tuv>
44975163 <tuv xml:lang="JA" changeid="isVowel" changedate="20200602T154813Z" creationid="isVowel" creationdate="20200602T154813Z">
@@ -4532,6 +5198,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
45325198 </tu>
45335199 <tu>
45345200 <tuv xml:lang="EN-US">
5201+ <seg>am.window{}.root =</seg>
5202+ </tuv>
5203+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T111437Z" creationid="isVowel" creationdate="20200617T111437Z">
5204+ <seg>am.window{}.root =</seg>
5205+ </tuv>
5206+ </tu>
5207+ <tu>
5208+ <tuv xml:lang="EN-US">
45355209 <seg>am.window{}.scene =</seg>
45365210 </tuv>
45375211 <tuv xml:lang="JA" changeid="isVowel" changedate="20200608T173349Z" creationid="isVowel" creationdate="20200608T173349Z">
@@ -4636,6 +5310,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
46365310 </tu>
46375311 <tu>
46385312 <tuv xml:lang="EN-US">
5313+ <seg>buffer:view(type [, offset [, stride <ph x="1">&lt;x1/&gt;</ph>, count<ph x="2">&lt;x2/&gt;</ph>]]) {#buffer:view .func-def}</seg>
5314+ </tuv>
5315+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065235Z" creationid="isVowel" creationdate="20200617T065235Z">
5316+ <seg>buffer:view(type [, offset [, stride <ph x="1">&lt;x1/&gt;</ph>, count<ph x="2">&lt;x2/&gt;</ph>]]) {#buffer:view .func-def}</seg>
5317+ </tuv>
5318+ </tu>
5319+ <tu>
5320+ <tuv xml:lang="EN-US">
46395321 <seg>but you can modify it as you please (though this must be
46405322 done before creating a sprite).</seg>
46415323 </tuv>
@@ -4661,6 +5343,14 @@ done before creating a sprite).</seg>
46615343 </tu>
46625344 <tu>
46635345 <tuv xml:lang="EN-US">
5346+ <seg>color = am.vec4_array{vec4(1, 0, 0, 1), vec4(0, 1, 0, 1), vec4(0, 0, 1, 1)},</seg>
5347+ </tuv>
5348+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T111455Z" creationid="isVowel" creationdate="20200617T111455Z">
5349+ <seg>color = am.vec4_array{vec4(1, 0, 0, 1), vec4(0, 1, 0, 1), vec4(0, 0, 1, 1)},</seg>
5350+ </tuv>
5351+ </tu>
5352+ <tu>
5353+ <tuv xml:lang="EN-US">
46645354 <seg>color = vec4(0, 1, 0, 1),</seg>
46655355 </tuv>
46665356 <tuv xml:lang="JA" changeid="isVowel" changedate="20200608T173403Z" creationid="isVowel" creationdate="20200608T173403Z">
@@ -4887,6 +5577,22 @@ print(factorial(3)) -- 結果は 6</seg>
48875577 </tu>
48885578 <tu>
48895579 <tuv xml:lang="EN-US">
5580+ <seg>gl_FragColor = texture2D(tex, v_uv) * vec4(v_shadow, 1.0);
5581+}
5582+]])
5583+
5584+win.scene =</seg>
5585+ </tuv>
5586+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073218Z" creationid="isVowel" creationdate="20200617T073218Z">
5587+ <seg>gl_FragColor = texture2D(tex, v_uv) * vec4(v_shadow, 1.0);
5588+}
5589+]])
5590+
5591+win.scene =</seg>
5592+ </tuv>
5593+ </tu>
5594+ <tu>
5595+ <tuv xml:lang="EN-US">
48905596 <seg>gl_FragColor = vec4(1.0, 0, 0.5, 1.0);</seg>
48915597 </tuv>
48925598 <tuv xml:lang="JA" changeid="isVowel" changedate="20200607T051340Z" creationid="isVowel" creationdate="20200607T051340Z">
@@ -4919,6 +5625,38 @@ print(factorial(3)) -- 結果は 6</seg>
49195625 </tu>
49205626 <tu>
49215627 <tuv xml:lang="EN-US">
5628+ <seg>gl_Position = P * MV * vec4(vert, 1.0);
5629+}
5630+]], [[
5631+precision mediump float;
5632+uniform sampler2D tex;
5633+varying vec3 v_shadow;
5634+varying vec2 v_uv;
5635+void main() {</seg>
5636+ </tuv>
5637+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073216Z" creationid="isVowel" creationdate="20200617T073216Z">
5638+ <seg>gl_Position = P * MV * vec4(vert, 1.0);
5639+}
5640+]], [[
5641+precision mediump float;
5642+uniform sampler2D tex;
5643+varying vec3 v_shadow;
5644+varying vec2 v_uv;
5645+void main() {</seg>
5646+ </tuv>
5647+ </tu>
5648+ <tu>
5649+ <tuv xml:lang="EN-US">
5650+ <seg>height = 600,
5651+}</seg>
5652+ </tuv>
5653+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T112217Z" creationid="isVowel" creationdate="20200617T112217Z">
5654+ <seg>height = 600,
5655+}</seg>
5656+ </tuv>
5657+ </tu>
5658+ <tu>
5659+ <tuv xml:lang="EN-US">
49225660 <seg>http://ianmaclarty.com</seg>
49235661 </tuv>
49245662 <tuv xml:lang="JA" changeid="isVowel" changedate="20200602T092603Z" creationid="isVowel" creationdate="20200602T092603Z">
@@ -5041,6 +5779,18 @@ function append_z(str)</seg>
50415779 </tu>
50425780 <tu>
50435781 <tuv xml:lang="EN-US">
5782+ <seg>local arr = am.struct_array(3, {"vert", "vec2", "color", "vec4"})
5783+arr.vert:set{vec2(-1, 0), vec2(1, 0), vec2(0, 1)}
5784+arr.color:set(vec4(1, 0, 0.5, 1))</seg>
5785+ </tuv>
5786+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T061359Z" creationid="isVowel" creationdate="20200617T061359Z">
5787+ <seg>local arr = am.struct_array(3, {"vert", "vec2", "color", "vec4"})
5788+arr.vert:set{vec2(-1, 0), vec2(1, 0), vec2(0, 1)}
5789+arr.color:set(vec4(1, 0, 0.5, 1))</seg>
5790+ </tuv>
5791+ </tu>
5792+ <tu>
5793+ <tuv xml:lang="EN-US">
50445794 <seg>local arr = {"a", "b", "c"}
50455795 for k, v in ipairs(arr) do</seg>
50465796 </tuv>
@@ -5061,6 +5811,20 @@ for i = 1, #arr do</seg>
50615811 </tu>
50625812 <tu>
50635813 <tuv xml:lang="EN-US">
5814+ <seg>local buf = am.buffer(12)
5815+local view = buf:view("float")
5816+view[1] = 1.5
5817+view[2] = view[1] + 2</seg>
5818+ </tuv>
5819+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T062405Z" creationid="isVowel" creationdate="20200617T062405Z">
5820+ <seg>local buf = am.buffer(12)
5821+local view = buf:view("float")
5822+view[1] = 1.5
5823+view[2] = view[1] + 2</seg>
5824+ </tuv>
5825+ </tu>
5826+ <tu>
5827+ <tuv xml:lang="EN-US">
50645828 <seg>local c = 2 -- channels
50655829 local s = #buf / 4 / c -- samples per channel
50665830 local left_channel = buf:view("float", 0, 4, s)
@@ -5149,6 +5913,32 @@ while n &gt; 0 do</seg>
51495913 </tu>
51505914 <tu>
51515915 <tuv xml:lang="EN-US">
5916+ <seg>local shader = am.program([[
5917+precision mediump float;
5918+attribute vec3 vert;
5919+attribute vec2 uv;
5920+attribute vec3 normal;
5921+uniform mat4 MV;
5922+uniform mat4 P;
5923+varying vec3 v_shadow;
5924+varying vec2 v_uv;
5925+void main() {</seg>
5926+ </tuv>
5927+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073151Z" creationid="isVowel" creationdate="20200617T073151Z">
5928+ <seg>local shader = am.program([[
5929+precision mediump float;
5930+attribute vec3 vert;
5931+attribute vec2 uv;
5932+attribute vec3 normal;
5933+uniform mat4 MV;
5934+uniform mat4 P;
5935+varying vec3 v_shadow;
5936+varying vec2 v_uv;
5937+void main() {</seg>
5938+ </tuv>
5939+ </tu>
5940+ <tu>
5941+ <tuv xml:lang="EN-US">
51525942 <seg>local t = {a = 1, b = 2, c = 3}
51535943 for k, v in pairs(t) do</seg>
51545944 </tuv>
@@ -5245,6 +6035,46 @@ local t2 = {foo = "bar", baz = 123}</seg>
52456035 </tu>
52466036 <tu>
52476037 <tuv xml:lang="EN-US">
6038+ <seg>local verts = am.buffer(24):view("vec3")
6039+verts:set{1, 2, 3, 4, 5, 6}
6040+print(verts[1]) -- vec3(1, 2, 3)
6041+print(verts[2]) -- vec3(4, 5, 6)</seg>
6042+ </tuv>
6043+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065610Z" creationid="isVowel" creationdate="20200617T065610Z">
6044+ <seg>local verts = am.buffer(24):view("vec3")
6045+verts:set{1, 2, 3, 4, 5, 6}
6046+print(verts[1]) -- vec3(1, 2, 3)
6047+print(verts[2]) -- vec3(4, 5, 6)</seg>
6048+ </tuv>
6049+ </tu>
6050+ <tu>
6051+ <tuv xml:lang="EN-US">
6052+ <seg>local win = am.window{</seg>
6053+ </tuv>
6054+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T112141Z" creationid="isVowel" creationdate="20200617T112141Z">
6055+ <seg>local win = am.window{</seg>
6056+ </tuv>
6057+ </tu>
6058+ <tu>
6059+ <tuv xml:lang="EN-US">
6060+ <seg>local win = am.window{depth_buffer = true}
6061+
6062+local buf, stride, norm_offset, tex_offset = am.load_obj("model.obj")
6063+local verts = buf:view("vec3", 0, stride)
6064+local normals = buf:view("vec3", norm_offset, stride)
6065+local uvs = buf:view("vec2", tex_offset, stride)</seg>
6066+ </tuv>
6067+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073147Z" creationid="isVowel" creationdate="20200617T073147Z">
6068+ <seg>local win = am.window{depth_buffer = true}
6069+
6070+local buf, stride, norm_offset, tex_offset = am.load_obj("model.obj")
6071+local verts = buf:view("vec3", 0, stride)
6072+local normals = buf:view("vec3", norm_offset, stride)
6073+local uvs = buf:view("vec2", tex_offset, stride)</seg>
6074+ </tuv>
6075+ </tu>
6076+ <tu>
6077+ <tuv xml:lang="EN-US">
52486078 <seg>local win = am.window{}
52496079 local prog = am.program([[</seg>
52506080 </tuv>
@@ -5384,6 +6214,14 @@ end
53846214 </tu>
53856215 <tu>
53866216 <tuv xml:lang="EN-US">
6217+ <seg>normal = normals,</seg>
6218+ </tuv>
6219+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073232Z" creationid="isVowel" creationdate="20200617T073232Z">
6220+ <seg>normal = normals,</seg>
6221+ </tuv>
6222+ </tu>
6223+ <tu>
6224+ <tuv xml:lang="EN-US">
53876225 <seg>o = vec4(0.5, 0.25, 0, 1), -- half orange (brown)
53886226 }</seg>
53896227 </tuv>
@@ -5806,6 +6644,14 @@ title = "自作ゲーム"</seg>
58066644 </tu>
58076645 <tu>
58086646 <tuv xml:lang="EN-US">
6647+ <seg>tex = am.texture2d("texture.png"),</seg>
6648+ </tuv>
6649+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073239Z" creationid="isVowel" creationdate="20200617T073239Z">
6650+ <seg>tex = am.texture2d("texture.png"),</seg>
6651+ </tuv>
6652+ </tu>
6653+ <tu>
6654+ <tuv xml:lang="EN-US">
58096655 <seg>texture.filter {#texture.filter .field-def}</seg>
58106656 </tuv>
58116657 <tuv xml:lang="JA" changeid="isVowel" changedate="20200612T062730Z" creationid="isVowel" creationdate="20200612T062730Z">
@@ -5877,6 +6723,15 @@ title = "自作ゲーム"</seg>
58776723 </tuv>
58786724 </tu>
58796725 <tu>
6726+ <note>「わたしのウィンドウ」では味気ないです。なにか召還しましたがなにか?</note>
6727+ <tuv xml:lang="EN-US">
6728+ <seg>title = "My Window",</seg>
6729+ </tuv>
6730+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T112212Z" creationid="isVowel" creationdate="20200617T112212Z">
6731+ <seg>title = "我が名はウィンドウ",</seg>
6732+ </tuv>
6733+ </tu>
6734+ <tu>
58806735 <tuv xml:lang="EN-US">
58816736 <seg>total = total + value</seg>
58826737 </tuv>
@@ -5910,6 +6765,14 @@ title = "自作ゲーム"</seg>
59106765 </tu>
59116766 <tu>
59126767 <tuv xml:lang="EN-US">
6768+ <seg>type size (bytes) Lua value range internal range endianess</seg>
6769+ </tuv>
6770+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T064834Z" creationid="isVowel" creationdate="20200617T064326Z">
6771+ <seg>型 サイズ (バイト単位) Lua の範囲値 内部範囲 エンディアン</seg>
6772+ </tuv>
6773+ </tu>
6774+ <tu>
6775+ <tuv xml:lang="EN-US">
59136776 <seg>uniform mat4 MV;</seg>
59146777 </tuv>
59156778 <tuv xml:lang="JA" changeid="isVowel" changedate="20200607T051321Z" creationid="isVowel" creationdate="20200607T051321Z">
@@ -5926,6 +6789,14 @@ title = "自作ゲーム"</seg>
59266789 </tu>
59276790 <tu>
59286791 <tuv xml:lang="EN-US">
6792+ <seg>uv = uvs,</seg>
6793+ </tuv>
6794+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073235Z" creationid="isVowel" creationdate="20200617T073235Z">
6795+ <seg>uv = uvs,</seg>
6796+ </tuv>
6797+ </tu>
6798+ <tu>
6799+ <tuv xml:lang="EN-US">
59296800 <seg>v_color = color;</seg>
59306801 </tuv>
59316802 <tuv xml:lang="JA" changeid="isVowel" changedate="20200611T090929Z" creationid="isVowel" creationdate="20200611T090929Z">
@@ -5934,6 +6805,22 @@ title = "自作ゲーム"</seg>
59346805 </tu>
59356806 <tu>
59366807 <tuv xml:lang="EN-US">
6808+ <seg>v_shadow = vec3(max(0.1, dot(light, nm)));</seg>
6809+ </tuv>
6810+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073212Z" creationid="isVowel" creationdate="20200617T073212Z">
6811+ <seg>v_shadow = vec3(max(0.1, dot(light, nm)));</seg>
6812+ </tuv>
6813+ </tu>
6814+ <tu>
6815+ <tuv xml:lang="EN-US">
6816+ <seg>v_uv = uv;</seg>
6817+ </tuv>
6818+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073214Z" creationid="isVowel" creationdate="20200617T073214Z">
6819+ <seg>v_uv = uv;</seg>
6820+ </tuv>
6821+ </tu>
6822+ <tu>
6823+ <tuv xml:lang="EN-US">
59376824 <seg>varying vec3 v_color;</seg>
59386825 </tuv>
59396826 <tuv xml:lang="JA" changeid="isVowel" changedate="20200611T090927Z" creationid="isVowel" creationdate="20200611T090927Z">
@@ -5950,6 +6837,22 @@ title = "自作ゲーム"</seg>
59506837 </tu>
59516838 <tu>
59526839 <tuv xml:lang="EN-US">
6840+ <seg>vec3 light = normalize(vec3(1, 0, 2));</seg>
6841+ </tuv>
6842+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073208Z" creationid="isVowel" creationdate="20200617T073208Z">
6843+ <seg>vec3 light = normalize(vec3(1, 0, 2));</seg>
6844+ </tuv>
6845+ </tu>
6846+ <tu>
6847+ <tuv xml:lang="EN-US">
6848+ <seg>vec3 nm = normalize((MV * vec4(normal, 0.0)).xyz);</seg>
6849+ </tuv>
6850+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073211Z" creationid="isVowel" creationdate="20200617T073211Z">
6851+ <seg>vec3 nm = normalize((MV * vec4(normal, 0.0)).xyz);</seg>
6852+ </tuv>
6853+ </tu>
6854+ <tu>
6855+ <tuv xml:lang="EN-US">
59536856 <seg>velocity = velocity + gravity * am.delta_time
59546857 end)
59556858
@@ -5966,6 +6869,54 @@ win.scene:action(am.play("ocean.ogg", true))</seg>
59666869 </tu>
59676870 <tu>
59686871 <tuv xml:lang="EN-US">
6872+ <seg>vert = am.vec2_array{vec2(-1, -1), vec2(0, 1), vec2(1, -1)}</seg>
6873+ </tuv>
6874+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T111450Z" creationid="isVowel" creationdate="20200617T111450Z">
6875+ <seg>vert = am.vec2_array{vec2(-1, -1), vec2(0, 1), vec2(1, -1)}</seg>
6876+ </tuv>
6877+ </tu>
6878+ <tu>
6879+ <tuv xml:lang="EN-US">
6880+ <seg>vert = verts,</seg>
6881+ </tuv>
6882+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073228Z" creationid="isVowel" creationdate="20200617T073228Z">
6883+ <seg>vert = verts,</seg>
6884+ </tuv>
6885+ </tu>
6886+ <tu>
6887+ <tuv xml:lang="EN-US">
6888+ <seg>view.buffer</seg>
6889+ </tuv>
6890+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T070141Z" creationid="isVowel" creationdate="20200617T070141Z">
6891+ <seg>view.buffer</seg>
6892+ </tuv>
6893+ </tu>
6894+ <tu>
6895+ <tuv xml:lang="EN-US">
6896+ <seg>view.buffer {#view.buffer .field-def}</seg>
6897+ </tuv>
6898+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T062400Z" creationid="isVowel" creationdate="20200617T062400Z">
6899+ <seg>view.buffer {#view.buffer .field-def}</seg>
6900+ </tuv>
6901+ </tu>
6902+ <tu>
6903+ <tuv xml:lang="EN-US">
6904+ <seg>view:set(val [, start <ph x="1">&lt;x1/&gt;</ph>, count<ph x="2">&lt;x2/&gt;</ph>]) {#view:set .method-def}</seg>
6905+ </tuv>
6906+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T065617Z" creationid="isVowel" creationdate="20200617T065617Z">
6907+ <seg>view:set(val [, start <ph x="1">&lt;x1/&gt;</ph>, count<ph x="2">&lt;x2/&gt;</ph>]) {#view:set .method-def}</seg>
6908+ </tuv>
6909+ </tu>
6910+ <tu>
6911+ <tuv xml:lang="EN-US">
6912+ <seg>view:slice(n [, count <ph x="1">&lt;x1/&gt;</ph>, stride_multiplier<ph x="2">&lt;x2/&gt;</ph>]) {#view:slice .method-def}</seg>
6913+ </tuv>
6914+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T070234Z" creationid="isVowel" creationdate="20200617T070234Z">
6915+ <seg>view:slice(n [, count <ph x="1">&lt;x1/&gt;</ph>, stride_multiplier<ph x="2">&lt;x2/&gt;</ph>]) {#view:slice .method-def}</seg>
6916+ </tuv>
6917+ </tu>
6918+ <tu>
6919+ <tuv xml:lang="EN-US">
59696920 <seg>void main() {</seg>
59706921 </tuv>
59716922 <tuv xml:lang="JA" changeid="isVowel" changedate="20200607T051326Z" creationid="isVowel" creationdate="20200607T051326Z">
@@ -5990,6 +6941,14 @@ win.scene:action(am.play("ocean.ogg", true))</seg>
59906941 </tu>
59916942 <tu>
59926943 <tuv xml:lang="EN-US">
6944+ <seg>width = 800,</seg>
6945+ </tuv>
6946+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T112214Z" creationid="isVowel" creationdate="20200617T112214Z">
6947+ <seg>width = 800,</seg>
6948+ </tuv>
6949+ </tu>
6950+ <tu>
6951+ <tuv xml:lang="EN-US">
59936952 <seg>width=device-width, initial-scale=1.0, user-scalable=yes</seg>
59946953 </tuv>
59956954 <tuv xml:lang="JA" changeid="isVowel" changedate="20200602T085831Z" creationid="isVowel" creationdate="20200602T085831Z">
@@ -6174,6 +7133,14 @@ win.scene:action(am.play("ocean.ogg", true))</seg>
61747133 </tu>
61757134 <tu>
61767135 <tuv xml:lang="EN-US">
7136+ <seg>}</seg>
7137+ </tuv>
7138+ <tuv xml:lang="JA" changeid="isVowel" changedate="20200617T073242Z" creationid="isVowel" creationdate="20200617T073242Z">
7139+ <seg>}</seg>
7140+ </tuv>
7141+ </tu>
7142+ <tu>
7143+ <tuv xml:lang="EN-US">
61777144 <seg>}
61787145 ]]
61797146 local frag_shader = [[</seg>
--- a/other/amulet/v1.21.8/v1.21.8-omegat.tmx
+++ b/other/amulet/v1.21.8/v1.21.8-omegat.tmx
@@ -340,6 +340,20 @@ end</seg>
340340 </tu>
341341 <tu>
342342 <tuv lang="EN-US">
343+ <seg>&lt;s0&gt;local&lt;/s0&gt; buf &lt;s1&gt;=&lt;/s1&gt; am&lt;s2&gt;.&lt;/s2&gt;buffer&lt;s3&gt;(&lt;/s3&gt;&lt;s4&gt;12&lt;/s4&gt;&lt;s5&gt;)&lt;/s5&gt;
344+&lt;s6&gt;local&lt;/s6&gt; view &lt;s7&gt;=&lt;/s7&gt; buf:view&lt;s8&gt;(&lt;/s8&gt;&lt;s9&gt;"float"&lt;/s9&gt;&lt;s10&gt;)&lt;/s10&gt;
345+view&lt;s11&gt;[&lt;/s11&gt;&lt;s12&gt;1&lt;/s12&gt;&lt;s13&gt;]&lt;/s13&gt; &lt;s14&gt;=&lt;/s14&gt; &lt;s15&gt;1.5&lt;/s15&gt;
346+view&lt;s16&gt;[&lt;/s16&gt;&lt;s17&gt;2&lt;/s17&gt;&lt;s18&gt;]&lt;/s18&gt; &lt;s19&gt;=&lt;/s19&gt; view&lt;s20&gt;[&lt;/s20&gt;&lt;s21&gt;1&lt;/s21&gt;&lt;s22&gt;]&lt;/s22&gt; &lt;s23&gt;+&lt;/s23&gt; &lt;s24&gt;2&lt;/s24&gt;</seg>
347+ </tuv>
348+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070147Z" creationid="isVowel" creationdate="20200617T070147Z">
349+ <seg>&lt;s0&gt;local&lt;/s0&gt; buf &lt;s1&gt;=&lt;/s1&gt; am&lt;s2&gt;.&lt;/s2&gt;buffer&lt;s3&gt;(&lt;/s3&gt;&lt;s4&gt;12&lt;/s4&gt;&lt;s5&gt;)&lt;/s5&gt;
350+&lt;s6&gt;local&lt;/s6&gt; view &lt;s7&gt;=&lt;/s7&gt; buf:view&lt;s8&gt;(&lt;/s8&gt;&lt;s9&gt;"float"&lt;/s9&gt;&lt;s10&gt;)&lt;/s10&gt;
351+view&lt;s11&gt;[&lt;/s11&gt;&lt;s12&gt;1&lt;/s12&gt;&lt;s13&gt;]&lt;/s13&gt; &lt;s14&gt;=&lt;/s14&gt; &lt;s15&gt;1.5&lt;/s15&gt;
352+view&lt;s16&gt;[&lt;/s16&gt;&lt;s17&gt;2&lt;/s17&gt;&lt;s18&gt;]&lt;/s18&gt; &lt;s19&gt;=&lt;/s19&gt; view&lt;s20&gt;[&lt;/s20&gt;&lt;s21&gt;1&lt;/s21&gt;&lt;s22&gt;]&lt;/s22&gt; &lt;s23&gt;+&lt;/s23&gt; &lt;s24&gt;2&lt;/s24&gt;</seg>
353+ </tuv>
354+ </tu>
355+ <tu>
356+ <tuv lang="EN-US">
343357 <seg>&lt;x1/&gt;</seg>
344358 </tuv>
345359 <tuv lang="JA" changeid="isVowel" changedate="20200609T035607Z" creationid="isVowel" creationdate="20200609T035607Z">
@@ -412,6 +426,44 @@ end</seg>
412426 </tu>
413427 <tu>
414428 <tuv lang="EN-US">
429+ <seg>&lt;x1/&gt;"float"&lt;x2/&gt; 4 approx -3.4e38 to 3.4e38 same native
430+&lt;x3/&gt;"vec2"&lt;x4/&gt; 8 any &lt;x5/&gt;vec2&lt;x6/&gt; same native
431+&lt;x7/&gt;"vec3"&lt;x8/&gt; 12 any &lt;x9/&gt;vec3&lt;x10/&gt; same native
432+&lt;x11/&gt;"vec4"&lt;x12/&gt; 16 any &lt;x13/&gt;vec4&lt;x14/&gt; same native
433+&lt;x15/&gt;"byte"&lt;x16/&gt; 1 -128 to 127 same N/A
434+&lt;x17/&gt;"ubyte"&lt;x18/&gt; 1 0 to 255 same N/A
435+&lt;x19/&gt;"byte_norm"&lt;x20/&gt; 1 -1.0 to 1.0 -127 to 127 N/A
436+&lt;x21/&gt;"ubyte_norm"&lt;x22/&gt; 1 0.0 to 1.0 0 to 255 N/A
437+&lt;x23/&gt;"short"&lt;x24/&gt; 2 -32768 to 32767 same native
438+&lt;x25/&gt;"ushort"&lt;x26/&gt; 2 0 to 65535 same native
439+&lt;x27/&gt;"short_norm"&lt;x28/&gt; 2 -1.0 to 1.0 -32767 to 32767 native
440+&lt;x29/&gt;"ushort_norm"&lt;x30/&gt; 2 0.0 to 1.0 0 to 65535 native
441+&lt;x31/&gt;"ushort_elem"&lt;x32/&gt; 2 1 to 65536 0 to 65535 native
442+&lt;x33/&gt;"int"&lt;x34/&gt; 4 -2147483648 to 2147483647 same native
443+&lt;x35/&gt;"uint"&lt;x36/&gt; 4 0 to 4294967295 same native
444+&lt;x37/&gt;"uint_elem"&lt;x38/&gt; 4 1 to 4294967296 0 to 4294967295 native</seg>
445+ </tuv>
446+ <tuv lang="JA" changeid="isVowel" changedate="20200617T064733Z" creationid="isVowel" creationdate="20200617T064212Z">
447+ <seg>&lt;x1/&gt;"float"&lt;x2/&gt; 4 約 -3.4e38 ~ 3.4e38 同一 ネイティブ
448+&lt;x3/&gt;"vec2"&lt;x4/&gt; 8 全 &lt;x5/&gt;vec2&lt;x6/&gt; 同一 ネイティブ
449+&lt;x7/&gt;"vec3"&lt;x8/&gt; 12 全 &lt;x9/&gt;vec3&lt;x10/&gt; 同一 ネイティブ
450+&lt;x11/&gt;"vec4"&lt;x12/&gt; 16 全 &lt;x13/&gt;vec4&lt;x14/&gt; 同一 ネイティブ
451+&lt;x15/&gt;"byte"&lt;x16/&gt; 1 -128 ~ 127 同一 なし
452+&lt;x17/&gt;"ubyte"&lt;x18/&gt; 1 0 ~ 255 同一 なし
453+&lt;x19/&gt;"byte_norm"&lt;x20/&gt; 1 -1.0 ~ 1.0 -127 ~ 127 なし
454+&lt;x21/&gt;"ubyte_norm"&lt;x22/&gt; 1 0.0 ~ 1.0 0 ~ 255 なし
455+&lt;x23/&gt;"short"&lt;x24/&gt; 2 -32768 ~ 32767 同一 ネイティブ
456+&lt;x25/&gt;"ushort"&lt;x26/&gt; 2 0 ~ 65535 同一 ネイティブ
457+&lt;x27/&gt;"short_norm"&lt;x28/&gt; 2 -1.0 ~ 1.0 -32767 ~ 32767 ネイティブ
458+&lt;x29/&gt;"ushort_norm"&lt;x30/&gt; 2 0.0 ~ 1.0 0 ~ 65535 ネイティブ
459+&lt;x31/&gt;"ushort_elem"&lt;x32/&gt; 2 1 ~ 65536 0 ~ 65535 ネイティブ
460+&lt;x33/&gt;"int"&lt;x34/&gt; 4 -2147483648 ~ 2147483647 同一 ネイティブ
461+&lt;x35/&gt;"uint"&lt;x36/&gt; 4 0 ~ 4294967295 同一 ネイティブ
462+&lt;x37/&gt;"uint_elem"&lt;x38/&gt; 4 1 ~ 4294967296 0 ~ 4294967295 ネイティブ</seg>
463+ </tuv>
464+ </tu>
465+ <tu>
466+ <tuv lang="EN-US">
415467 <seg>&lt;x1/&gt;"g"&lt;x2/&gt;</seg>
416468 </tuv>
417469 <tuv lang="JA" changeid="isVowel" changedate="20200616T073737Z" creationid="isVowel" creationdate="20200616T073737Z">
@@ -1080,6 +1132,14 @@ in Hz.</seg>
10801132 </tu>
10811133 <tu>
10821134 <tuv lang="EN-US">
1135+ <seg>&lt;x1/&gt;mark_dirty()&lt;x2/&gt;: Mark the buffer dirty.</seg>
1136+ </tuv>
1137+ <tuv lang="JA" changeid="isVowel" changedate="20200617T071509Z" creationid="isVowel" creationdate="20200617T071355Z">
1138+ <seg>&lt;x1/&gt;mark_dirty()&lt;x2/&gt;: バッファの汚染標識を付けます。</seg>
1139+ </tuv>
1140+ </tu>
1141+ <tu>
1142+ <tuv lang="EN-US">
10831143 <seg>&lt;x1/&gt;min_fps&lt;x2/&gt;: the minimum frames per second over the last 60 frames</seg>
10841144 </tuv>
10851145 <tuv lang="JA" changeid="isVowel" changedate="20200609T030907Z" creationid="isVowel" creationdate="20200609T030907Z">
@@ -1309,6 +1369,15 @@ main.lua:1: 動くぞ!</seg>
13091369 </tu>
13101370 <tu>
13111371 <tuv lang="EN-US">
1372+ <seg>A buffer containing the vertex, normal and texture coordinate
1373+data.</seg>
1374+ </tuv>
1375+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075838Z" creationid="isVowel" creationdate="20200617T075838Z">
1376+ <seg>バッファの内容はバーテックス、法線とテクスチャ座標データとなります。</seg>
1377+ </tuv>
1378+ </tu>
1379+ <tu>
1380+ <tuv lang="EN-US">
13121381 <seg>A framebuffer is like an off-screen window you can draw to.</seg>
13131382 </tuv>
13141383 <tuv lang="JA" changeid="isVowel" changedate="20200612T062321Z" creationid="isVowel" creationdate="20200612T062051Z">
@@ -1424,6 +1493,14 @@ if it has a different sample rate (this requires extra processing).</seg>
14241493 </tu>
14251494 <tu>
14261495 <tuv lang="EN-US">
1496+ <seg>Amulet has some basic support for loading 3D models in Wavefront &lt;x1/&gt;.obj&lt;x2/&gt; format.</seg>
1497+ </tuv>
1498+ <tuv lang="JA" changeid="isVowel" changedate="20200617T074410Z" creationid="isVowel" creationdate="20200617T074410Z">
1499+ <seg>Amulet は 3D モデルのロードについて Wavefront &lt;x1/&gt;.obj&lt;x2/&gt; 形式の一部基本機能に対応しています。</seg>
1500+ </tuv>
1501+ </tu>
1502+ <tu>
1503+ <tuv lang="EN-US">
14271504 <seg>Amulet is a Lua-based audio/visual toolkit designed for small games and experimentation.</seg>
14281505 </tuv>
14291506 <tuv lang="JA" changeid="isVowel" changedate="20200609T035407Z" creationid="isVowel" creationdate="20200609T035407Z">
@@ -1679,6 +1756,30 @@ appended to their names, even on Windows.</seg>
16791756 </tu>
16801757 <tu>
16811758 <tuv lang="EN-US">
1759+ <seg>Buffers</seg>
1760+ </tuv>
1761+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061350Z" creationid="isVowel" creationdate="20200617T061350Z">
1762+ <seg> バッファ</seg>
1763+ </tuv>
1764+ </tu>
1765+ <tu>
1766+ <tuv lang="EN-US">
1767+ <seg>Buffers and views {#buffers-and-views}</seg>
1768+ </tuv>
1769+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065222Z" creationid="isVowel" creationdate="20200617T055931Z">
1770+ <seg>バッファとビュー {#buffers-and-views}</seg>
1771+ </tuv>
1772+ </tu>
1773+ <tu>
1774+ <tuv lang="EN-US">
1775+ <seg>Buffers are contiguous blocks of memory.</seg>
1776+ </tuv>
1777+ <tuv lang="JA" changeid="isVowel" changedate="20200617T060641Z" creationid="isVowel" creationdate="20200617T060641Z">
1778+ <seg>バッファは連続したメモリブロックです。</seg>
1779+ </tuv>
1780+ </tu>
1781+ <tu>
1782+ <tuv lang="EN-US">
16821783 <seg>Build status</seg>
16831784 </tuv>
16841785 <tuv lang="JA" changeid="isVowel" changedate="20200609T035716Z" creationid="isVowel" creationdate="20200609T035716Z">
@@ -1744,6 +1845,14 @@ appended to their names, even on Windows.</seg>
17441845 </tu>
17451846 <tu>
17461847 <tuv lang="EN-US">
1848+ <seg>Converts a base64 string to a buffer.</seg>
1849+ </tuv>
1850+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070913Z" creationid="isVowel" creationdate="20200617T070902Z">
1851+ <seg>Base64 エンコード文字列をバッファへ変換します。</seg>
1852+ </tuv>
1853+ </tu>
1854+ <tu>
1855+ <tuv lang="EN-US">
17471856 <seg>Converts a table to a string.</seg>
17481857 </tuv>
17491858 <tuv lang="JA" changeid="isVowel" changedate="20200616T071453Z" creationid="isVowel" creationdate="20200616T071453Z">
@@ -1935,8 +2044,8 @@ image buffer.</seg>
19352044 <tuv lang="EN-US">
19362045 <seg>Documentation</seg>
19372046 </tuv>
1938- <tuv lang="JA" changeid="isVowel" changedate="20200609T040717Z" creationid="isVowel" creationdate="20200609T040717Z">
1939- <seg>取扱説明書類</seg>
2047+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062332Z" creationid="isVowel" creationdate="20200609T040717Z">
2048+ <seg>取扱説明書</seg>
19402049 </tuv>
19412050 </tu>
19422051 <tu>
@@ -2169,6 +2278,14 @@ even on Windows.</seg>
21692278 </tu>
21702279 <tu>
21712280 <tuv lang="EN-US">
2281+ <seg>Here's an example of how to load a model and display it.</seg>
2282+ </tuv>
2283+ <tuv lang="JA" changeid="isVowel" changedate="20200617T080644Z" creationid="isVowel" creationdate="20200617T080644Z">
2284+ <seg>これはモデルのロードと表示方法に関する用例です。</seg>
2285+ </tuv>
2286+ </tu>
2287+ <tu>
2288+ <tuv lang="EN-US">
21722289 <seg>Here's an example:</seg>
21732290 </tuv>
21742291 <tuv lang="JA" changeid="isVowel" changedate="20200612T044121Z" creationid="isVowel" creationdate="20200612T044121Z">
@@ -2177,10 +2294,18 @@ even on Windows.</seg>
21772294 </tu>
21782295 <tu>
21792296 <tuv lang="EN-US">
2297+ <seg>Here's how to create a 800x600 window:</seg>
2298+ </tuv>
2299+ <tuv lang="JA" changeid="isVowel" changedate="20200617T113319Z" creationid="isVowel" creationdate="20200617T113319Z">
2300+ <seg>これは 800x600 のウィンドウを作成します:</seg>
2301+ </tuv>
2302+ </tu>
2303+ <tu>
2304+ <tuv lang="EN-US">
21802305 <seg>Here's what a minimal Hello World!</seg>
21812306 </tuv>
2182- <tuv lang="JA" changeid="isVowel" changedate="20200609T035531Z" creationid="isVowel" creationdate="20200609T035531Z">
2183- <seg>これは Hello World! です</seg>
2307+ <tuv lang="JA" changeid="isVowel" changedate="20200617T055629Z" creationid="isVowel" creationdate="20200609T035531Z">
2308+ <seg>これは Hello World! です。</seg>
21842309 </tuv>
21852310 </tu>
21862311 <tu>
@@ -2254,6 +2379,15 @@ then &lt;x5/&gt;nil&lt;x6/&gt; is returned.</seg>
22542379 </tu>
22552380 <tu>
22562381 <tuv lang="EN-US">
2382+ <seg>If the normal or texture coordinate data
2383+is not present, the corresponding return value will be nil.</seg>
2384+ </tuv>
2385+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075436Z" creationid="isVowel" creationdate="20200617T075436Z">
2386+ <seg>法線、またはテクスチャ座標データが存在しなければ、対応する返値は nil になります。</seg>
2387+ </tuv>
2388+ </tu>
2389+ <tu>
2390+ <tuv lang="EN-US">
22572391 <seg>If there was an error parsing the JSON
22582392 then &lt;x1/&gt;nil&lt;x2/&gt; is returned and the error message is returned as
22592393 a second return value.</seg>
@@ -2378,6 +2512,15 @@ or feature requests to me at ian -at- ianmaclarty.com, or use the</seg>
23782512 </tu>
23792513 <tu>
23802514 <tuv lang="EN-US">
2515+ <seg>Instead you access a buffer
2516+through a &lt;x1/&gt;view&lt;x2/&gt;.</seg>
2517+ </tuv>
2518+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061256Z" creationid="isVowel" creationdate="20200617T060633Z">
2519+ <seg>バッファには &lt;x1/&gt;view&lt;x2/&gt; (ビュー) からアクセスします。</seg>
2520+ </tuv>
2521+ </tu>
2522+ <tu>
2523+ <tuv lang="EN-US">
23812524 <seg>Instead you need to construct a new
23822525 vector.</seg>
23832526 </tuv>
@@ -2420,6 +2563,14 @@ draw to the framebuffer.</seg>
24202563 </tu>
24212564 <tu>
24222565 <tuv lang="EN-US">
2566+ <seg>It loads a texture from the file &lt;x3/&gt;texture.png&lt;x4/&gt;.</seg>
2567+ </tuv>
2568+ <tuv lang="JA" changeid="isVowel" changedate="20200617T074606Z" creationid="isVowel" creationdate="20200617T074606Z">
2569+ <seg>&lt;x3/&gt;texture.png&lt;x4/&gt; ファイルからテクスチャをロードします。</seg>
2570+ </tuv>
2571+ </tu>
2572+ <tu>
2573+ <tuv lang="EN-US">
24232574 <seg>It provides a cross-platform API
24242575 for drawing graphics, playing audio and responding to user input, and a
24252576 command-line interpreter for running Amulet scripts.</seg>
@@ -2583,6 +2734,15 @@ a function that, when called, will run the script.</seg>
25832734 </tu>
25842735 <tu>
25852736 <tuv lang="EN-US">
2737+ <seg>Loads the given file and returns a buffer containing the
2738+file's data, or &lt;x1/&gt;nil&lt;x2/&gt; if the file wasn't found.</seg>
2739+ </tuv>
2740+ <tuv lang="JA" changeid="isVowel" changedate="20200617T072744Z" creationid="isVowel" creationdate="20200617T072744Z">
2741+ <seg>指定されたファイルのロードを行い、ファイルのデータがあるバッファを返します。ファイルがなければ &lt;x1/&gt;nil&lt;x2/&gt; を返します。</seg>
2742+ </tuv>
2743+ </tu>
2744+ <tu>
2745+ <tuv lang="EN-US">
25862746 <seg>Loads the given image file and returns a new image buffer.</seg>
25872747 </tuv>
25882748 <tuv lang="JA" changeid="isVowel" changedate="20200612T063142Z" creationid="isVowel" creationdate="20200612T063142Z">
@@ -2648,6 +2808,14 @@ it.</seg>
26482808 </tu>
26492809 <tu>
26502810 <tuv lang="EN-US">
2811+ <seg>MV = mat4(1),</seg>
2812+ </tuv>
2813+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111444Z" creationid="isVowel" creationdate="20200617T111444Z">
2814+ <seg>MV = mat4(1),</seg>
2815+ </tuv>
2816+ </tu>
2817+ <tu>
2818+ <tuv lang="EN-US">
26512819 <seg>Mac OS X</seg>
26522820 </tuv>
26532821 <tuv lang="JA" changeid="isVowel" changedate="20200609T035415Z" creationid="isVowel" creationdate="20200609T035415Z">
@@ -2688,6 +2856,14 @@ it.</seg>
26882856 </tu>
26892857 <tu>
26902858 <tuv lang="EN-US">
2859+ <seg>Methods:</seg>
2860+ </tuv>
2861+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061538Z" creationid="isVowel" creationdate="20200617T061538Z">
2862+ <seg>メソッド:</seg>
2863+ </tuv>
2864+ </tu>
2865+ <tu>
2866+ <tuv lang="EN-US">
26912867 <seg>Mouse</seg>
26922868 </tuv>
26932869 <tuv lang="JA" changeid="isVowel" changedate="20200604T204741Z" creationid="isVowel" creationdate="20200604T204741Z">
@@ -2739,6 +2915,17 @@ currently support this feature.</seg>
27392915 </tu>
27402916 <tu>
27412917 <tuv lang="EN-US">
2918+ <seg>Note that you don't need to call this method if
2919+you're not using &lt;x5/&gt;dataptr&lt;x6/&gt; to update the buffer, for example if you're updating
2920+it through a view - in that case the buffer will automatically be marked
2921+dirty.</seg>
2922+ </tuv>
2923+ <tuv lang="JA" changeid="isVowel" changedate="20200617T072519Z" creationid="isVowel" creationdate="20200617T072418Z">
2924+ <seg>注意点として、このメソッドはバッファの更新で &lt;x5/&gt;dataptr&lt;x6/&gt; を使わないならば呼び出し不要です。例えば、ビューから更新をする場合は自動的にバッファの汚染標識が付けられます。</seg>
2925+ </tuv>
2926+ </tu>
2927+ <tu>
2928+ <tuv lang="EN-US">
27422929 <seg>O = vec4(1, 0.5, 0, 1), -- full orange</seg>
27432930 </tuv>
27442931 <tuv lang="JA" changeid="isVowel" changedate="20200612T050130Z" creationid="isVowel" creationdate="20200612T050130Z">
@@ -2834,6 +3021,30 @@ are not supported anc cycles are not detected.</seg>
28343021 </tu>
28353022 <tu>
28363023 <tuv lang="EN-US">
3024+ <seg>Overview</seg>
3025+ </tuv>
3026+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111646Z" creationid="isVowel" creationdate="20200617T111646Z">
3027+ <seg>概要</seg>
3028+ </tuv>
3029+ </tu>
3030+ <tu>
3031+ <tuv lang="EN-US">
3032+ <seg>P = mat4(1),</seg>
3033+ </tuv>
3034+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111442Z" creationid="isVowel" creationdate="20200617T111442Z">
3035+ <seg>P = mat4(1),</seg>
3036+ </tuv>
3037+ </tu>
3038+ <tu>
3039+ <tuv lang="EN-US">
3040+ <seg>P = math.perspective(math.rad(60), win.width/win.height, 1, 1000),</seg>
3041+ </tuv>
3042+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073227Z" creationid="isVowel" creationdate="20200617T073227Z">
3043+ <seg>P = math.perspective(math.rad(60), win.width/win.height, 1, 1000),</seg>
3044+ </tuv>
3045+ </tu>
3046+ <tu>
3047+ <tuv lang="EN-US">
28373048 <seg>Passing a single number to a vector constructor will set all components
28383049 of the vector to that value.</seg>
28393050 </tuv>
@@ -2989,6 +3200,22 @@ another common use of 4 dimensional vectors.</seg>
29893200 </tu>
29903201 <tu>
29913202 <tuv lang="EN-US">
3203+ <seg>Returns a base64 encoding of a buffer as a string.</seg>
3204+ </tuv>
3205+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070827Z" creationid="isVowel" creationdate="20200617T070827Z">
3206+ <seg>バッファを Base64 エンコード文字列へ変換して返します。</seg>
3207+ </tuv>
3208+ </tu>
3209+ <tu>
3210+ <tuv lang="EN-US">
3211+ <seg>Returns a new buffer of the given size in bytes.</seg>
3212+ </tuv>
3213+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061652Z" creationid="isVowel" creationdate="20200617T061652Z">
3214+ <seg>指定されたバイト単位による size で新しいバッファを返します。</seg>
3215+ </tuv>
3216+ </tu>
3217+ <tu>
3218+ <tuv lang="EN-US">
29923219 <seg>Returns a raw buffer containing the png encoding of the given
29933220 image.</seg>
29943221 </tuv>
@@ -3134,8 +3361,8 @@ result as a Lua value.</seg>
31343361 <tuv lang="EN-US">
31353362 <seg>See &lt;x1/&gt;.</seg>
31363363 </tuv>
3137- <tuv lang="JA" changeid="isVowel" changedate="20200609T040728Z" creationid="isVowel" creationdate="20200609T040728Z">
3138- <seg>こちらをお読みください&lt;x1/&gt;。</seg>
3364+ <tuv lang="JA" changeid="isVowel" changedate="20200617T055618Z" creationid="isVowel" creationdate="20200609T040728Z">
3365+ <seg>こちらをお読みください: &lt;x1/&gt;</seg>
31393366 </tuv>
31403367 </tu>
31413368 <tu>
@@ -3315,6 +3542,14 @@ are converted to JSON arrays.</seg>
33153542 </tu>
33163543 <tu>
33173544 <tuv lang="EN-US">
3545+ <seg>The &lt;x1/&gt;#&lt;x2/&gt; operator can be used to retrieve the size of a buffer in bytes.</seg>
3546+ </tuv>
3547+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062046Z" creationid="isVowel" creationdate="20200617T062046Z">
3548+ <seg>&lt;x1/&gt;#&lt;x2/&gt; 演算子はバッファサイズをバイト単位で取得するために使えます。</seg>
3549+ </tuv>
3550+ </tu>
3551+ <tu>
3552+ <tuv lang="EN-US">
33183553 <seg>The &lt;x1/&gt;#&lt;x2/&gt; operator returns the length of an array and array indices start at 1 by
33193554 default.</seg>
33203555 </tuv>
@@ -3427,6 +3662,22 @@ as a series of single precision floats (4 bytes each).</seg>
34273662 </tu>
34283663 <tu>
34293664 <tuv lang="EN-US">
3665+ <seg>The buffer associated with the view.</seg>
3666+ </tuv>
3667+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070138Z" creationid="isVowel" creationdate="20200617T070138Z">
3668+ <seg>ビューと関連付けられたバッファ。</seg>
3669+ </tuv>
3670+ </tu>
3671+ <tu>
3672+ <tuv lang="EN-US">
3673+ <seg>The buffer's memory will be zeroed.</seg>
3674+ </tuv>
3675+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061923Z" creationid="isVowel" creationdate="20200617T061923Z">
3676+ <seg>バッファのメモリはゼロクリアされます。</seg>
3677+ </tuv>
3678+ </tu>
3679+ <tu>
3680+ <tuv lang="EN-US">
34303681 <seg>The code:</seg>
34313682 </tuv>
34323683 <tuv lang="JA" changeid="isVowel" changedate="20200610T052441Z" creationid="isVowel" creationdate="20200610T052441Z">
@@ -3460,6 +3711,14 @@ as a series of single precision floats (4 bytes each).</seg>
34603711 </tu>
34613712 <tu>
34623713 <tuv lang="EN-US">
3714+ <seg>The default is 0.</seg>
3715+ </tuv>
3716+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065251Z" creationid="isVowel" creationdate="20200617T065251Z">
3717+ <seg>デフォルトは 0 です。</seg>
3718+ </tuv>
3719+ </tu>
3720+ <tu>
3721+ <tuv lang="EN-US">
34633722 <seg>The default is &lt;x7/&gt;lua&lt;x8/&gt;.</seg>
34643723 </tuv>
34653724 <tuv lang="JA" changeid="isVowel" changedate="20200610T171105Z" creationid="isVowel" creationdate="20200610T171105Z">
@@ -3468,6 +3727,22 @@ as a series of single precision floats (4 bytes each).</seg>
34683727 </tu>
34693728 <tu>
34703729 <tuv lang="EN-US">
3730+ <seg>The default is &lt;x9/&gt;"static"&lt;x10/&gt;.</seg>
3731+ </tuv>
3732+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062139Z" creationid="isVowel" creationdate="20200617T062139Z">
3733+ <seg>デフォルトは &lt;x9/&gt;"static"&lt;x10/&gt; です。</seg>
3734+ </tuv>
3735+ </tu>
3736+ <tu>
3737+ <tuv lang="EN-US">
3738+ <seg>The default value for &lt;x3/&gt;start&lt;x4/&gt; is &lt;x5/&gt;1&lt;x6/&gt;.</seg>
3739+ </tuv>
3740+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070456Z" creationid="isVowel" creationdate="20200617T070456Z">
3741+ <seg>&lt;x3/&gt;start&lt;x4/&gt; のデフォルト値は &lt;x5/&gt;1&lt;x6/&gt; です。</seg>
3742+ </tuv>
3743+ </tu>
3744+ <tu>
3745+ <tuv lang="EN-US">
34713746 <seg>The else part of an if-then-else executes
34723747 only if the condition evaluates to &lt;x1/&gt;false&lt;x2/&gt; or &lt;x3/&gt;nil&lt;x4/&gt;.</seg>
34733748 </tuv>
@@ -3477,6 +3752,25 @@ only if the condition evaluates to &lt;x1/&gt;false&lt;x2/&gt; or &lt;x3/&gt;nil
34773752 </tu>
34783753 <tu>
34793754 <tuv lang="EN-US">
3755+ <seg>The example
3756+loads an model from &lt;x1/&gt;model.obj&lt;x2/&gt; and assumes it contains normal
3757+and texture coordinate data and the triangles have a counter-clockwise
3758+winding.</seg>
3759+ </tuv>
3760+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111127Z" creationid="isVowel" creationdate="20200617T083057Z">
3761+ <seg>この用例において &lt;x1/&gt;model.obj&lt;x2/&gt; からロードしたモデルには法線とテクスチャ座標データがあり、三角形は反時計回りに回旋するものと想定します。</seg>
3762+ </tuv>
3763+ </tu>
3764+ <tu>
3765+ <tuv lang="EN-US">
3766+ <seg>The faces in the &lt;x1/&gt;.obj&lt;x2/&gt; file must all be triangles (quads aren't supported).</seg>
3767+ </tuv>
3768+ <tuv lang="JA" changeid="isVowel" changedate="20200617T080529Z" creationid="isVowel" creationdate="20200617T080529Z">
3769+ <seg>&lt;x1/&gt;.obj&lt;x2/&gt; ファイルの全面は必ず三角形になります (四辺形はサポートされていません)。</seg>
3770+ </tuv>
3771+ </tu>
3772+ <tu>
3773+ <tuv lang="EN-US">
34803774 <seg>The file must be a &lt;x1/&gt;.ogg&lt;x2/&gt; audio file.</seg>
34813775 </tuv>
34823776 <tuv lang="JA" changeid="isVowel" changedate="20200616T012414Z" creationid="isVowel" creationdate="20200616T012414Z">
@@ -3587,6 +3881,22 @@ in an overlay on the main window.</seg>
35873881 </tu>
35883882 <tu>
35893883 <tuv lang="EN-US">
3884+ <seg>The offset of the normals in bytes.</seg>
3885+ </tuv>
3886+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075529Z" creationid="isVowel" creationdate="20200617T075529Z">
3887+ <seg>バイト単位による法線のオフセット。</seg>
3888+ </tuv>
3889+ </tu>
3890+ <tu>
3891+ <tuv lang="EN-US">
3892+ <seg>The offset of the texture coordinates in bytes.</seg>
3893+ </tuv>
3894+ <tuv lang="JA" changeid="isVowel" changedate="20200617T074951Z" creationid="isVowel" creationdate="20200617T074951Z">
3895+ <seg>バイト単位によるテクスチャ座標のオフセット。</seg>
3896+ </tuv>
3897+ </tu>
3898+ <tu>
3899+ <tuv lang="EN-US">
35903900 <seg>The platform Amulet is running on.</seg>
35913901 </tuv>
35923902 <tuv lang="JA" changeid="isVowel" changedate="20200604T173546Z" creationid="isVowel" creationdate="20200604T173546Z">
@@ -3662,6 +3972,14 @@ on Windows (you don't need to use &lt;x3/&gt;\&lt;x4/&gt;).</seg>
36623972 </tu>
36633973 <tu>
36643974 <tuv lang="EN-US">
3975+ <seg>The stride in bytes.</seg>
3976+ </tuv>
3977+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075624Z" creationid="isVowel" creationdate="20200617T075624Z">
3978+ <seg>バイト単位によるストライド (刻み幅)。</seg>
3979+ </tuv>
3980+ </tu>
3981+ <tu>
3982+ <tuv lang="EN-US">
36653983 <seg>The string concatenation operator is two dots (e.g. &lt;x1/&gt;"abc".."def"&lt;x2/&gt;).</seg>
36663984 </tuv>
36673985 <tuv lang="JA" changeid="isVowel" changedate="20200605T015714Z" creationid="isVowel" creationdate="20200605T015714Z">
@@ -3712,6 +4030,14 @@ and Lua-5.1 on all other platforms.</seg>
37124030 </tu>
37134031 <tu>
37144032 <tuv lang="EN-US">
4033+ <seg>The vertex data is always at offset 0.</seg>
4034+ </tuv>
4035+ <tuv lang="JA" changeid="isVowel" changedate="20200617T075034Z" creationid="isVowel" creationdate="20200617T075034Z">
4036+ <seg>バーテックス・データのオフセットは必ず 0 になります。</seg>
4037+ </tuv>
4038+ </tu>
4039+ <tu>
4040+ <tuv lang="EN-US">
37154041 <seg>The width of the framebuffer, in pixels.</seg>
37164042 </tuv>
37174043 <tuv lang="JA" changeid="isVowel" changedate="20200612T055231Z" creationid="isVowel" creationdate="20200612T055231Z">
@@ -3746,8 +4072,8 @@ and Lua-5.1 on all other platforms.</seg>
37464072 <tuv lang="EN-US">
37474073 <seg>These are available from &lt;x1/&gt;.</seg>
37484074 </tuv>
3749- <tuv lang="JA" changeid="isVowel" changedate="20200609T040745Z" creationid="isVowel" creationdate="20200609T040706Z">
3750- <seg>こちらでダウンロードしてください&lt;x1/&gt;。</seg>
4075+ <tuv lang="JA" changeid="isVowel" changedate="20200617T055615Z" creationid="isVowel" creationdate="20200609T040706Z">
4076+ <seg>こちらでダウンロードしてください: &lt;x1/&gt;</seg>
37514077 </tuv>
37524078 </tu>
37534079 <tu>
@@ -3771,6 +4097,15 @@ to HTML from the desktop version.</seg>
37714097 </tu>
37724098 <tu>
37734099 <tuv lang="EN-US">
4100+ <seg>They are used for storing images,
4101+audio and vertex data, or anything else you like.</seg>
4102+ </tuv>
4103+ <tuv lang="JA" changeid="isVowel" changedate="20200617T060358Z" creationid="isVowel" creationdate="20200617T060358Z">
4104+ <seg>バッファはイメージ、オーディオとバーテックス・データ、またはそれ以外のものなどを記録するために使われます。</seg>
4105+ </tuv>
4106+ </tu>
4107+ <tu>
4108+ <tuv lang="EN-US">
37744109 <seg>They can be used as key-value maps or arrays.</seg>
37754110 </tuv>
37764111 <tuv lang="JA" changeid="isVowel" changedate="20200605T020941Z" creationid="isVowel" creationdate="20200605T020941Z">
@@ -3848,6 +4183,14 @@ shader language supported by WebGL 1.</seg>
38484183 </tu>
38494184 <tu>
38504185 <tuv lang="EN-US">
4186+ <seg>This loads the given &lt;x1/&gt;.obj&lt;x2/&gt; file and returns 4 things:</seg>
4187+ </tuv>
4188+ <tuv lang="JA" changeid="isVowel" changedate="20200617T080044Z" creationid="isVowel" creationdate="20200617T080044Z">
4189+ <seg>これで指定された &lt;x1/&gt;.obj&lt;x2/&gt; ファイルのロードと値を4種返します。</seg>
4190+ </tuv>
4191+ </tu>
4192+ <tu>
4193+ <tuv lang="EN-US">
38514194 <seg>This means that once you create a
38524195 vector, its value cannot be changed.</seg>
38534196 </tuv>
@@ -3874,6 +4217,25 @@ Game Center functions.</seg>
38744217 </tu>
38754218 <tu>
38764219 <tuv lang="EN-US">
4220+ <seg>This should be called if you
4221+update the buffer using the &lt;x3/&gt;dataptr&lt;x4/&gt; field.</seg>
4222+ </tuv>
4223+ <tuv lang="JA" changeid="isVowel" changedate="20200617T071450Z" creationid="isVowel" creationdate="20200617T071450Z">
4224+ <seg>これは &lt;x3/&gt;dataptr&lt;x4/&gt; フィールドでバッファを更新する場合は必ず呼び出してください。</seg>
4225+ </tuv>
4226+ </tu>
4227+ <tu>
4228+ <tuv lang="EN-US">
4229+ <seg>This will cause
4230+data to be copied to any textures or vbos that depend on the buffer
4231+when next they are drawn.</seg>
4232+ </tuv>
4233+ <tuv lang="JA" changeid="isVowel" changedate="20200617T071854Z" creationid="isVowel" creationdate="20200617T071854Z">
4234+ <seg>これは次回描画時に、バッファ依存のテクスチャ、または vbos のデータをコピーします。</seg>
4235+ </tuv>
4236+ </tu>
4237+ <tu>
4238+ <tuv lang="EN-US">
38774239 <seg>This will generate zip package files for Windows, Mac and Linux in the
38784240 current directory.</seg>
38794241 </tuv>
@@ -3891,6 +4253,14 @@ current directory.</seg>
38914253 </tu>
38924254 <tu>
38934255 <tuv lang="EN-US">
4256+ <seg>To close a window call its window:close method.</seg>
4257+ </tuv>
4258+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112732Z" creationid="isVowel" creationdate="20200617T112732Z">
4259+ <seg>ウィンドウを閉じるには window:close メソッドを呼び出します。</seg>
4260+ </tuv>
4261+ </tu>
4262+ <tu>
4263+ <tuv lang="EN-US">
38944264 <seg>To construct a vector use one of the functions &lt;x1/&gt;vec2&lt;x2/&gt;, &lt;x3/&gt;vec3&lt;x4/&gt; or &lt;x5/&gt;vec4&lt;x6/&gt;.</seg>
38954265 </tuv>
38964266 <tuv lang="JA" changeid="isVowel" changedate="20200612T061227Z" creationid="isVowel" creationdate="20200612T061227Z">
@@ -3899,6 +4269,14 @@ current directory.</seg>
38994269 </tu>
39004270 <tu>
39014271 <tuv lang="EN-US">
4272+ <seg>To create a window use the &lt;x1/&gt;am.window&lt;x2/&gt; function.</seg>
4273+ </tuv>
4274+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111424Z" creationid="isVowel" creationdate="20200617T111424Z">
4275+ <seg>ウィンドウを作成するには &lt;x1/&gt;am.window&lt;x2/&gt; 関数を使います。</seg>
4276+ </tuv>
4277+ </tu>
4278+ <tu>
4279+ <tuv lang="EN-US">
39024280 <seg>To generate distribution packages, use the amulet export command like so:</seg>
39034281 </tuv>
39044282 <tuv lang="JA" changeid="isVowel" changedate="20200610T123912Z" creationid="isVowel" creationdate="20200610T123906Z">
@@ -3966,6 +4344,38 @@ velocity in 2 or 3 dimensional space.</seg>
39664344 </tu>
39674345 <tu>
39684346 <tuv lang="EN-US">
4347+ <seg>View fields</seg>
4348+ </tuv>
4349+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061451Z" creationid="isVowel" creationdate="20200617T061451Z">
4350+ <seg>View フィールド</seg>
4351+ </tuv>
4352+ </tu>
4353+ <tu>
4354+ <tuv lang="EN-US">
4355+ <seg>View methods</seg>
4356+ </tuv>
4357+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061438Z" creationid="isVowel" creationdate="20200617T061438Z">
4358+ <seg>View メソッド</seg>
4359+ </tuv>
4360+ </tu>
4361+ <tu>
4362+ <tuv lang="EN-US">
4363+ <seg>Views</seg>
4364+ </tuv>
4365+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061525Z" creationid="isVowel" creationdate="20200617T061525Z">
4366+ <seg>ビュー</seg>
4367+ </tuv>
4368+ </tu>
4369+ <tu>
4370+ <tuv lang="EN-US">
4371+ <seg>Views provide a typed array-like interface to the buffer.</seg>
4372+ </tuv>
4373+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061319Z" creationid="isVowel" creationdate="20200617T061032Z">
4374+ <seg>ビューではバッファへ配列風のインターフェース型が使えます。</seg>
4375+ </tuv>
4376+ </tu>
4377+ <tu>
4378+ <tuv lang="EN-US">
39694379 <seg>W = vec4(1, 1, 1, 1), -- full white</seg>
39704380 </tuv>
39714381 <tuv lang="JA" changeid="isVowel" changedate="20200612T045331Z" creationid="isVowel" creationdate="20200612T045331Z">
@@ -4104,6 +4514,14 @@ table with all of the following fields:</seg>
41044514 </tu>
41054515 <tu>
41064516 <tuv lang="EN-US">
4517+ <seg>You can't access a buffer's memory directly.</seg>
4518+ </tuv>
4519+ <tuv lang="JA" changeid="isVowel" changedate="20200617T060527Z" creationid="isVowel" creationdate="20200617T060527Z">
4520+ <seg>直接的にはバッファのメモリへアクセスすることはできません。</seg>
4521+ </tuv>
4522+ </tu>
4523+ <tu>
4524+ <tuv lang="EN-US">
41074525 <seg>You will need to create your own version of msys.bat with something
41084526 like the following at the top:</seg>
41094527 </tuv>
@@ -4132,58 +4550,154 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
41324550 </tu>
41334551 <tu>
41344552 <tuv lang="EN-US">
4135- <seg>am.ascii_color_map = {</seg>
4553+ <seg>^ am.bind{</seg>
41364554 </tuv>
4137- <tuv lang="JA" changeid="isVowel" changedate="20200612T053451Z" creationid="isVowel" creationdate="20200612T053451Z">
4138- <seg>am.ascii_color_map = {</seg>
4555+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073225Z" creationid="isVowel" creationdate="20200617T073225Z">
4556+ <seg>^ am.bind{</seg>
41394557 </tuv>
41404558 </tu>
41414559 <tu>
41424560 <tuv lang="EN-US">
4143- <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
4561+ <seg>^ am.draw("triangles")</seg>
41444562 </tuv>
4145- <tuv lang="JA" changeid="isVowel" changedate="20200616T012736Z" creationid="isVowel" creationdate="20200616T012736Z">
4146- <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
4563+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111457Z" creationid="isVowel" creationdate="20200617T111457Z">
4564+ <seg>^ am.draw("triangles")</seg>
41474565 </tuv>
41484566 </tu>
41494567 <tu>
41504568 <tuv lang="EN-US">
4151- <seg>am.current_time() {#am.current_time .func-def}</seg>
4569+ <seg>^ am.translate(0, 0, -5)</seg>
41524570 </tuv>
4153- <tuv lang="JA" changeid="isVowel" changedate="20200604T204259Z" creationid="isVowel" creationdate="20200604T204259Z">
4154- <seg>am.current_time() {#am.current_time .func-def}</seg>
4571+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073222Z" creationid="isVowel" creationdate="20200617T073222Z">
4572+ <seg>^ am.translate(0, 0, -5)</seg>
41554573 </tuv>
41564574 </tu>
41574575 <tu>
41584576 <tuv lang="EN-US">
4159- <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4577+ <seg>^ am.use_program(shader)</seg>
41604578 </tuv>
4161- <tuv lang="JA" changeid="isVowel" changedate="20200612T071218Z" creationid="isVowel" creationdate="20200612T071218Z">
4162- <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4579+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073223Z" creationid="isVowel" creationdate="20200617T073223Z">
4580+ <seg>^ am.use_program(shader)</seg>
41634581 </tuv>
41644582 </tu>
41654583 <tu>
41664584 <tuv lang="EN-US">
4167- <seg>am.delta_time {#am.delta_time .field-def}</seg>
4585+ <seg>^am.draw"triangles"</seg>
41684586 </tuv>
4169- <tuv lang="JA" changeid="isVowel" changedate="20200604T204255Z" creationid="isVowel" creationdate="20200604T204255Z">
4170- <seg>am.delta_time {#am.delta_time .field-def}</seg>
4587+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073244Z" creationid="isVowel" creationdate="20200617T073244Z">
4588+ <seg>^am.draw"triangles"</seg>
41714589 </tuv>
41724590 </tu>
41734591 <tu>
41744592 <tuv lang="EN-US">
4175- <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4593+ <seg>am.ascii_color_map = {</seg>
41764594 </tuv>
4177- <tuv lang="JA" changeid="isVowel" changedate="20200612T071236Z" creationid="isVowel" creationdate="20200612T071236Z">
4178- <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4595+ <tuv lang="JA" changeid="isVowel" changedate="20200612T053451Z" creationid="isVowel" creationdate="20200612T053451Z">
4596+ <seg>am.ascii_color_map = {</seg>
41794597 </tuv>
41804598 </tu>
41814599 <tu>
41824600 <tuv lang="EN-US">
4183- <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4601+ <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
41844602 </tuv>
4185- <tuv lang="JA" changeid="isVowel" changedate="20200604T173314Z" creationid="isVowel" creationdate="20200604T173314Z">
4186- <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4603+ <tuv lang="JA" changeid="isVowel" changedate="20200616T012736Z" creationid="isVowel" creationdate="20200616T012736Z">
4604+ <seg>am.audio_buffer(buffer, channels, sample_rate) {#am.audio_buffer .func-def}</seg>
4605+ </tuv>
4606+ </tu>
4607+ <tu>
4608+ <tuv lang="EN-US">
4609+ <seg>am.base64_decode(string) {#am.base64_decode .func-def}</seg>
4610+ </tuv>
4611+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070520Z" creationid="isVowel" creationdate="20200617T070520Z">
4612+ <seg>am.base64_decode(string) {#am.base64_decode .func-def}</seg>
4613+ </tuv>
4614+ </tu>
4615+ <tu>
4616+ <tuv lang="EN-US">
4617+ <seg>am.base64_encode(buffer) {#am.base64_encode .func-def}</seg>
4618+ </tuv>
4619+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070522Z" creationid="isVowel" creationdate="20200617T070522Z">
4620+ <seg>am.base64_encode(buffer) {#am.base64_encode .func-def}</seg>
4621+ </tuv>
4622+ </tu>
4623+ <tu>
4624+ <tuv lang="EN-US">
4625+ <seg>am.buffer(size) {#am.buffer .func-def}</seg>
4626+ </tuv>
4627+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061545Z" creationid="isVowel" creationdate="20200617T061545Z">
4628+ <seg>am.buffer(size) {#am.buffer .func-def}</seg>
4629+ </tuv>
4630+ </tu>
4631+ <tu>
4632+ <tuv lang="EN-US">
4633+ <seg>am.byte_array(table) {#am.byte_array .func-def}</seg>
4634+ </tuv>
4635+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065600Z" creationid="isVowel" creationdate="20200617T065600Z">
4636+ <seg>am.byte_array(table) {#am.byte_array .func-def}</seg>
4637+ </tuv>
4638+ </tu>
4639+ <tu>
4640+ <tuv lang="EN-US">
4641+ <seg>am.byte_norm_array(table) {#am.byte_norm_array .func-def}</seg>
4642+ </tuv>
4643+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065556Z" creationid="isVowel" creationdate="20200617T065556Z">
4644+ <seg>am.byte_norm_array(table) {#am.byte_norm_array .func-def}</seg>
4645+ </tuv>
4646+ </tu>
4647+ <tu>
4648+ <tuv lang="EN-US">
4649+ <seg>am.cull_face"ccw"</seg>
4650+ </tuv>
4651+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073220Z" creationid="isVowel" creationdate="20200617T073220Z">
4652+ <seg>am.cull_face"ccw"</seg>
4653+ </tuv>
4654+ </tu>
4655+ <tu>
4656+ <tuv lang="EN-US">
4657+ <seg>am.current_time() {#am.current_time .func-def}</seg>
4658+ </tuv>
4659+ <tuv lang="JA" changeid="isVowel" changedate="20200604T204259Z" creationid="isVowel" creationdate="20200604T204259Z">
4660+ <seg>am.current_time() {#am.current_time .func-def}</seg>
4661+ </tuv>
4662+ </tu>
4663+ <tu>
4664+ <tuv lang="EN-US">
4665+ <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4666+ </tuv>
4667+ <tuv lang="JA" changeid="isVowel" changedate="20200612T071218Z" creationid="isVowel" creationdate="20200612T071218Z">
4668+ <seg>am.decode_png(buffer) {#am.decode_png .func-def}</seg>
4669+ </tuv>
4670+ </tu>
4671+ <tu>
4672+ <tuv lang="EN-US">
4673+ <seg>am.delta_time {#am.delta_time .field-def}</seg>
4674+ </tuv>
4675+ <tuv lang="JA" changeid="isVowel" changedate="20200604T204255Z" creationid="isVowel" creationdate="20200604T204255Z">
4676+ <seg>am.delta_time {#am.delta_time .field-def}</seg>
4677+ </tuv>
4678+ </tu>
4679+ <tu>
4680+ <tuv lang="EN-US">
4681+ <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4682+ </tuv>
4683+ <tuv lang="JA" changeid="isVowel" changedate="20200612T071236Z" creationid="isVowel" creationdate="20200612T071236Z">
4684+ <seg>am.encode_png(image_buffer) {#am.encode_png .func-def}</seg>
4685+ </tuv>
4686+ </tu>
4687+ <tu>
4688+ <tuv lang="EN-US">
4689+ <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4690+ </tuv>
4691+ <tuv lang="JA" changeid="isVowel" changedate="20200604T173314Z" creationid="isVowel" creationdate="20200604T173314Z">
4692+ <seg>am.eval_js(js) {#am.eval_js .func-def}</seg>
4693+ </tuv>
4694+ </tu>
4695+ <tu>
4696+ <tuv lang="EN-US">
4697+ <seg>am.float_array(table) {#am.float_array .func-def}</seg>
4698+ </tuv>
4699+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065602Z" creationid="isVowel" creationdate="20200617T065602Z">
4700+ <seg>am.float_array(table) {#am.float_array .func-def}</seg>
41874701 </tuv>
41884702 </tu>
41894703 <tu>
@@ -4260,6 +4774,22 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
42604774 </tu>
42614775 <tu>
42624776 <tuv lang="EN-US">
4777+ <seg>am.int_array(table) {#am.int_array .func-def}</seg>
4778+ </tuv>
4779+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065543Z" creationid="isVowel" creationdate="20200617T065543Z">
4780+ <seg>am.int_array(table) {#am.int_array .func-def}</seg>
4781+ </tuv>
4782+ </tu>
4783+ <tu>
4784+ <tuv lang="EN-US">
4785+ <seg>am.int_norm_array(table) {#am.int_norm_array .func-def}</seg>
4786+ </tuv>
4787+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065538Z" creationid="isVowel" creationdate="20200617T065538Z">
4788+ <seg>am.int_norm_array(table) {#am.int_norm_array .func-def}</seg>
4789+ </tuv>
4790+ </tu>
4791+ <tu>
4792+ <tuv lang="EN-US">
42634793 <seg>am.language() {#am.language .func-def}</seg>
42644794 </tuv>
42654795 <tuv lang="JA" changeid="isVowel" changedate="20200604T173342Z" creationid="isVowel" creationdate="20200604T173342Z">
@@ -4276,6 +4806,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
42764806 </tu>
42774807 <tu>
42784808 <tuv lang="EN-US">
4809+ <seg>am.load_buffer(filename) {#am.load_buffer .func-def}</seg>
4810+ </tuv>
4811+ <tuv lang="JA" changeid="isVowel" changedate="20200617T070525Z" creationid="isVowel" creationdate="20200617T070525Z">
4812+ <seg>am.load_buffer(filename) {#am.load_buffer .func-def}</seg>
4813+ </tuv>
4814+ </tu>
4815+ <tu>
4816+ <tuv lang="EN-US">
42794817 <seg>am.load_image(filename) {#am.load_image .func-def}</seg>
42804818 </tuv>
42814819 <tuv lang="JA" changeid="isVowel" changedate="20200604T204601Z" creationid="isVowel" creationdate="20200604T204601Z">
@@ -4284,6 +4822,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
42844822 </tu>
42854823 <tu>
42864824 <tuv lang="EN-US">
4825+ <seg>am.load_obj(filename) {#am.load_obj .func-def}</seg>
4826+ </tuv>
4827+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073831Z" creationid="isVowel" creationdate="20200617T073831Z">
4828+ <seg>am.load_obj(filename) {#am.load_obj .func-def}</seg>
4829+ </tuv>
4830+ </tu>
4831+ <tu>
4832+ <tuv lang="EN-US">
42874833 <seg>am.load_script(filename) {#am.load_script .func-def}</seg>
42884834 </tuv>
42894835 <tuv lang="JA" changeid="isVowel" changedate="20200604T181133Z" creationid="isVowel" creationdate="20200604T181133Z">
@@ -4388,6 +4934,22 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
43884934 </tu>
43894935 <tu>
43904936 <tuv lang="EN-US">
4937+ <seg>am.short_array(table) {#am.short_array .func-def}</seg>
4938+ </tuv>
4939+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065551Z" creationid="isVowel" creationdate="20200617T065551Z">
4940+ <seg>am.short_array(table) {#am.short_array .func-def}</seg>
4941+ </tuv>
4942+ </tu>
4943+ <tu>
4944+ <tuv lang="EN-US">
4945+ <seg>am.short_norm_array(table) {#am.short_norm_array .func-def}</seg>
4946+ </tuv>
4947+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065547Z" creationid="isVowel" creationdate="20200617T065547Z">
4948+ <seg>am.short_norm_array(table) {#am.short_norm_array .func-def}</seg>
4949+ </tuv>
4950+ </tu>
4951+ <tu>
4952+ <tuv lang="EN-US">
43914953 <seg>am.show_gamecenter_leaderboard(leaderboard_id)</seg>
43924954 </tuv>
43934955 <tuv lang="JA" changeid="isVowel" changedate="20200602T154030Z" creationid="isVowel" creationdate="20200602T154030Z">
@@ -4412,6 +4974,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
44124974 </tu>
44134975 <tu>
44144976 <tuv lang="EN-US">
4977+ <seg>am.struct_array(size, spec) {#am.struct_array .func-def}</seg>
4978+ </tuv>
4979+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065515Z" creationid="isVowel" creationdate="20200617T065515Z">
4980+ <seg>am.struct_array(size, spec) {#am.struct_array .func-def}</seg>
4981+ </tuv>
4982+ </tu>
4983+ <tu>
4984+ <tuv lang="EN-US">
44154985 <seg>am.submit_gamecenter_achievement(achievment_id)</seg>
44164986 </tuv>
44174987 <tuv lang="JA" changeid="isVowel" changedate="20200607T043715Z" creationid="isVowel" creationdate="20200607T043715Z">
@@ -4492,6 +5062,102 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
44925062 </tu>
44935063 <tu>
44945064 <tuv lang="EN-US">
5065+ <seg>am.ubyte_array(table) {#am.ubyte_array .func-def}</seg>
5066+ </tuv>
5067+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065558Z" creationid="isVowel" creationdate="20200617T065558Z">
5068+ <seg>am.ubyte_array(table) {#am.ubyte_array .func-def}</seg>
5069+ </tuv>
5070+ </tu>
5071+ <tu>
5072+ <tuv lang="EN-US">
5073+ <seg>am.ubyte_norm_array(table) {#am.ubyte_norm_array .func-def}</seg>
5074+ </tuv>
5075+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065554Z" creationid="isVowel" creationdate="20200617T065554Z">
5076+ <seg>am.ubyte_norm_array(table) {#am.ubyte_norm_array .func-def}</seg>
5077+ </tuv>
5078+ </tu>
5079+ <tu>
5080+ <tuv lang="EN-US">
5081+ <seg>am.uint_array(table) {#am.uint_array .func-def}</seg>
5082+ </tuv>
5083+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065541Z" creationid="isVowel" creationdate="20200617T065541Z">
5084+ <seg>am.uint_array(table) {#am.uint_array .func-def}</seg>
5085+ </tuv>
5086+ </tu>
5087+ <tu>
5088+ <tuv lang="EN-US">
5089+ <seg>am.uint_elem_array(table) {#am.uint_elem_array .func-def}</seg>
5090+ </tuv>
5091+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065531Z" creationid="isVowel" creationdate="20200617T065531Z">
5092+ <seg>am.uint_elem_array(table) {#am.uint_elem_array .func-def}</seg>
5093+ </tuv>
5094+ </tu>
5095+ <tu>
5096+ <tuv lang="EN-US">
5097+ <seg>am.uint_norm_array(table) {#am.uint_norm_array .func-def}</seg>
5098+ </tuv>
5099+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065536Z" creationid="isVowel" creationdate="20200617T065536Z">
5100+ <seg>am.uint_norm_array(table) {#am.uint_norm_array .func-def}</seg>
5101+ </tuv>
5102+ </tu>
5103+ <tu>
5104+ <tuv lang="EN-US">
5105+ <seg>am.use_program(am.shaders.colors2d)</seg>
5106+ </tuv>
5107+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111439Z" creationid="isVowel" creationdate="20200617T111439Z">
5108+ <seg>am.use_program(am.shaders.colors2d)</seg>
5109+ </tuv>
5110+ </tu>
5111+ <tu>
5112+ <tuv lang="EN-US">
5113+ <seg>am.ushort_array(table) {#am.ushort_array .func-def}</seg>
5114+ </tuv>
5115+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065549Z" creationid="isVowel" creationdate="20200617T065549Z">
5116+ <seg>am.ushort_array(table) {#am.ushort_array .func-def}</seg>
5117+ </tuv>
5118+ </tu>
5119+ <tu>
5120+ <tuv lang="EN-US">
5121+ <seg>am.ushort_elem_array(table) {#am.ushort_elem_array .func-def}</seg>
5122+ </tuv>
5123+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065534Z" creationid="isVowel" creationdate="20200617T065534Z">
5124+ <seg>am.ushort_elem_array(table) {#am.ushort_elem_array .func-def}</seg>
5125+ </tuv>
5126+ </tu>
5127+ <tu>
5128+ <tuv lang="EN-US">
5129+ <seg>am.ushort_norm_array(table) {#am.ushort_norm_array .func-def}</seg>
5130+ </tuv>
5131+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065545Z" creationid="isVowel" creationdate="20200617T065545Z">
5132+ <seg>am.ushort_norm_array(table) {#am.ushort_norm_array .func-def}</seg>
5133+ </tuv>
5134+ </tu>
5135+ <tu>
5136+ <tuv lang="EN-US">
5137+ <seg>am.vec2_array(table) {#am.vec2_array .func-def}</seg>
5138+ </tuv>
5139+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065528Z" creationid="isVowel" creationdate="20200617T065528Z">
5140+ <seg>am.vec2_array(table) {#am.vec2_array .func-def}</seg>
5141+ </tuv>
5142+ </tu>
5143+ <tu>
5144+ <tuv lang="EN-US">
5145+ <seg>am.vec3_array(table) {#am.vec3_array .func-def}</seg>
5146+ </tuv>
5147+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065525Z" creationid="isVowel" creationdate="20200617T065525Z">
5148+ <seg>am.vec3_array(table) {#am.vec3_array .func-def}</seg>
5149+ </tuv>
5150+ </tu>
5151+ <tu>
5152+ <tuv lang="EN-US">
5153+ <seg>am.vec4_array(table) {#am.vec4_array .func-def}</seg>
5154+ </tuv>
5155+ <tuv lang="JA" changeid="isVowel" changedate="20200617T072816Z" creationid="isVowel" creationdate="20200617T072816Z">
5156+ <seg>am.vec4_array(table) {#am.vec4_array .func-def}</seg>
5157+ </tuv>
5158+ </tu>
5159+ <tu>
5160+ <tuv lang="EN-US">
44955161 <seg>am.version</seg>
44965162 </tuv>
44975163 <tuv lang="JA" changeid="isVowel" changedate="20200602T154813Z" creationid="isVowel" creationdate="20200602T154813Z">
@@ -4532,6 +5198,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
45325198 </tu>
45335199 <tu>
45345200 <tuv lang="EN-US">
5201+ <seg>am.window{}.root =</seg>
5202+ </tuv>
5203+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111437Z" creationid="isVowel" creationdate="20200617T111437Z">
5204+ <seg>am.window{}.root =</seg>
5205+ </tuv>
5206+ </tu>
5207+ <tu>
5208+ <tuv lang="EN-US">
45355209 <seg>am.window{}.scene =</seg>
45365210 </tuv>
45375211 <tuv lang="JA" changeid="isVowel" changedate="20200608T173349Z" creationid="isVowel" creationdate="20200608T173349Z">
@@ -4636,6 +5310,14 @@ am.window{}.scene = am.scale(20) ^ am.sprite(face)</seg>
46365310 </tu>
46375311 <tu>
46385312 <tuv lang="EN-US">
5313+ <seg>buffer:view(type [, offset [, stride &lt;x1/&gt;, count&lt;x2/&gt;]]) {#buffer:view .func-def}</seg>
5314+ </tuv>
5315+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065235Z" creationid="isVowel" creationdate="20200617T065235Z">
5316+ <seg>buffer:view(type [, offset [, stride &lt;x1/&gt;, count&lt;x2/&gt;]]) {#buffer:view .func-def}</seg>
5317+ </tuv>
5318+ </tu>
5319+ <tu>
5320+ <tuv lang="EN-US">
46395321 <seg>but you can modify it as you please (though this must be
46405322 done before creating a sprite).</seg>
46415323 </tuv>
@@ -4661,6 +5343,14 @@ done before creating a sprite).</seg>
46615343 </tu>
46625344 <tu>
46635345 <tuv lang="EN-US">
5346+ <seg>color = am.vec4_array{vec4(1, 0, 0, 1), vec4(0, 1, 0, 1), vec4(0, 0, 1, 1)},</seg>
5347+ </tuv>
5348+ <tuv lang="JA" changeid="isVowel" changedate="20200617T111455Z" creationid="isVowel" creationdate="20200617T111455Z">
5349+ <seg>color = am.vec4_array{vec4(1, 0, 0, 1), vec4(0, 1, 0, 1), vec4(0, 0, 1, 1)},</seg>
5350+ </tuv>
5351+ </tu>
5352+ <tu>
5353+ <tuv lang="EN-US">
46645354 <seg>color = vec4(0, 1, 0, 1),</seg>
46655355 </tuv>
46665356 <tuv lang="JA" changeid="isVowel" changedate="20200608T173403Z" creationid="isVowel" creationdate="20200608T173403Z">
@@ -4887,6 +5577,22 @@ print(factorial(3)) -- 結果は 6</seg>
48875577 </tu>
48885578 <tu>
48895579 <tuv lang="EN-US">
5580+ <seg>gl_FragColor = texture2D(tex, v_uv) * vec4(v_shadow, 1.0);
5581+}
5582+]])
5583+
5584+win.scene =</seg>
5585+ </tuv>
5586+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073218Z" creationid="isVowel" creationdate="20200617T073218Z">
5587+ <seg>gl_FragColor = texture2D(tex, v_uv) * vec4(v_shadow, 1.0);
5588+}
5589+]])
5590+
5591+win.scene =</seg>
5592+ </tuv>
5593+ </tu>
5594+ <tu>
5595+ <tuv lang="EN-US">
48905596 <seg>gl_FragColor = vec4(1.0, 0, 0.5, 1.0);</seg>
48915597 </tuv>
48925598 <tuv lang="JA" changeid="isVowel" changedate="20200607T051340Z" creationid="isVowel" creationdate="20200607T051340Z">
@@ -4919,6 +5625,38 @@ print(factorial(3)) -- 結果は 6</seg>
49195625 </tu>
49205626 <tu>
49215627 <tuv lang="EN-US">
5628+ <seg>gl_Position = P * MV * vec4(vert, 1.0);
5629+}
5630+]], [[
5631+precision mediump float;
5632+uniform sampler2D tex;
5633+varying vec3 v_shadow;
5634+varying vec2 v_uv;
5635+void main() {</seg>
5636+ </tuv>
5637+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073216Z" creationid="isVowel" creationdate="20200617T073216Z">
5638+ <seg>gl_Position = P * MV * vec4(vert, 1.0);
5639+}
5640+]], [[
5641+precision mediump float;
5642+uniform sampler2D tex;
5643+varying vec3 v_shadow;
5644+varying vec2 v_uv;
5645+void main() {</seg>
5646+ </tuv>
5647+ </tu>
5648+ <tu>
5649+ <tuv lang="EN-US">
5650+ <seg>height = 600,
5651+}</seg>
5652+ </tuv>
5653+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112217Z" creationid="isVowel" creationdate="20200617T112217Z">
5654+ <seg>height = 600,
5655+}</seg>
5656+ </tuv>
5657+ </tu>
5658+ <tu>
5659+ <tuv lang="EN-US">
49225660 <seg>http://ianmaclarty.com</seg>
49235661 </tuv>
49245662 <tuv lang="JA" changeid="isVowel" changedate="20200602T092603Z" creationid="isVowel" creationdate="20200602T092603Z">
@@ -5041,6 +5779,18 @@ function append_z(str)</seg>
50415779 </tu>
50425780 <tu>
50435781 <tuv lang="EN-US">
5782+ <seg>local arr = am.struct_array(3, {"vert", "vec2", "color", "vec4"})
5783+arr.vert:set{vec2(-1, 0), vec2(1, 0), vec2(0, 1)}
5784+arr.color:set(vec4(1, 0, 0.5, 1))</seg>
5785+ </tuv>
5786+ <tuv lang="JA" changeid="isVowel" changedate="20200617T061359Z" creationid="isVowel" creationdate="20200617T061359Z">
5787+ <seg>local arr = am.struct_array(3, {"vert", "vec2", "color", "vec4"})
5788+arr.vert:set{vec2(-1, 0), vec2(1, 0), vec2(0, 1)}
5789+arr.color:set(vec4(1, 0, 0.5, 1))</seg>
5790+ </tuv>
5791+ </tu>
5792+ <tu>
5793+ <tuv lang="EN-US">
50445794 <seg>local arr = {"a", "b", "c"}
50455795 for k, v in ipairs(arr) do</seg>
50465796 </tuv>
@@ -5061,6 +5811,20 @@ for i = 1, #arr do</seg>
50615811 </tu>
50625812 <tu>
50635813 <tuv lang="EN-US">
5814+ <seg>local buf = am.buffer(12)
5815+local view = buf:view("float")
5816+view[1] = 1.5
5817+view[2] = view[1] + 2</seg>
5818+ </tuv>
5819+ <tuv lang="JA" changeid="isVowel" changedate="20200617T062405Z" creationid="isVowel" creationdate="20200617T062405Z">
5820+ <seg>local buf = am.buffer(12)
5821+local view = buf:view("float")
5822+view[1] = 1.5
5823+view[2] = view[1] + 2</seg>
5824+ </tuv>
5825+ </tu>
5826+ <tu>
5827+ <tuv lang="EN-US">
50645828 <seg>local c = 2 -- channels
50655829 local s = #buf / 4 / c -- samples per channel
50665830 local left_channel = buf:view("float", 0, 4, s)
@@ -5149,6 +5913,32 @@ while n &gt; 0 do</seg>
51495913 </tu>
51505914 <tu>
51515915 <tuv lang="EN-US">
5916+ <seg>local shader = am.program([[
5917+precision mediump float;
5918+attribute vec3 vert;
5919+attribute vec2 uv;
5920+attribute vec3 normal;
5921+uniform mat4 MV;
5922+uniform mat4 P;
5923+varying vec3 v_shadow;
5924+varying vec2 v_uv;
5925+void main() {</seg>
5926+ </tuv>
5927+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073151Z" creationid="isVowel" creationdate="20200617T073151Z">
5928+ <seg>local shader = am.program([[
5929+precision mediump float;
5930+attribute vec3 vert;
5931+attribute vec2 uv;
5932+attribute vec3 normal;
5933+uniform mat4 MV;
5934+uniform mat4 P;
5935+varying vec3 v_shadow;
5936+varying vec2 v_uv;
5937+void main() {</seg>
5938+ </tuv>
5939+ </tu>
5940+ <tu>
5941+ <tuv lang="EN-US">
51525942 <seg>local t = {a = 1, b = 2, c = 3}
51535943 for k, v in pairs(t) do</seg>
51545944 </tuv>
@@ -5245,6 +6035,46 @@ local t2 = {foo = "bar", baz = 123}</seg>
52456035 </tu>
52466036 <tu>
52476037 <tuv lang="EN-US">
6038+ <seg>local verts = am.buffer(24):view("vec3")
6039+verts:set{1, 2, 3, 4, 5, 6}
6040+print(verts[1]) -- vec3(1, 2, 3)
6041+print(verts[2]) -- vec3(4, 5, 6)</seg>
6042+ </tuv>
6043+ <tuv lang="JA" changeid="isVowel" changedate="20200617T065610Z" creationid="isVowel" creationdate="20200617T065610Z">
6044+ <seg>local verts = am.buffer(24):view("vec3")
6045+verts:set{1, 2, 3, 4, 5, 6}
6046+print(verts[1]) -- vec3(1, 2, 3)
6047+print(verts[2]) -- vec3(4, 5, 6)</seg>
6048+ </tuv>
6049+ </tu>
6050+ <tu>
6051+ <tuv lang="EN-US">
6052+ <seg>local win = am.window{</seg>
6053+ </tuv>
6054+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112141Z" creationid="isVowel" creationdate="20200617T112141Z">
6055+ <seg>local win = am.window{</seg>
6056+ </tuv>
6057+ </tu>
6058+ <tu>
6059+ <tuv lang="EN-US">
6060+ <seg>local win = am.window{depth_buffer = true}
6061+
6062+local buf, stride, norm_offset, tex_offset = am.load_obj("model.obj")
6063+local verts = buf:view("vec3", 0, stride)
6064+local normals = buf:view("vec3", norm_offset, stride)
6065+local uvs = buf:view("vec2", tex_offset, stride)</seg>
6066+ </tuv>
6067+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073147Z" creationid="isVowel" creationdate="20200617T073147Z">
6068+ <seg>local win = am.window{depth_buffer = true}
6069+
6070+local buf, stride, norm_offset, tex_offset = am.load_obj("model.obj")
6071+local verts = buf:view("vec3", 0, stride)
6072+local normals = buf:view("vec3", norm_offset, stride)
6073+local uvs = buf:view("vec2", tex_offset, stride)</seg>
6074+ </tuv>
6075+ </tu>
6076+ <tu>
6077+ <tuv lang="EN-US">
52486078 <seg>local win = am.window{}
52496079 local prog = am.program([[</seg>
52506080 </tuv>
@@ -5384,6 +6214,14 @@ end
53846214 </tu>
53856215 <tu>
53866216 <tuv lang="EN-US">
6217+ <seg>normal = normals,</seg>
6218+ </tuv>
6219+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073232Z" creationid="isVowel" creationdate="20200617T073232Z">
6220+ <seg>normal = normals,</seg>
6221+ </tuv>
6222+ </tu>
6223+ <tu>
6224+ <tuv lang="EN-US">
53876225 <seg>o = vec4(0.5, 0.25, 0, 1), -- half orange (brown)
53886226 }</seg>
53896227 </tuv>
@@ -5806,6 +6644,14 @@ title = "自作ゲーム"</seg>
58066644 </tu>
58076645 <tu>
58086646 <tuv lang="EN-US">
6647+ <seg>tex = am.texture2d("texture.png"),</seg>
6648+ </tuv>
6649+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073239Z" creationid="isVowel" creationdate="20200617T073239Z">
6650+ <seg>tex = am.texture2d("texture.png"),</seg>
6651+ </tuv>
6652+ </tu>
6653+ <tu>
6654+ <tuv lang="EN-US">
58096655 <seg>texture.filter {#texture.filter .field-def}</seg>
58106656 </tuv>
58116657 <tuv lang="JA" changeid="isVowel" changedate="20200612T062730Z" creationid="isVowel" creationdate="20200612T062730Z">
@@ -5877,6 +6723,15 @@ title = "自作ゲーム"</seg>
58776723 </tuv>
58786724 </tu>
58796725 <tu>
6726+ <note>「わたしのウィンドウ」では味気ないです。なにか召還しましたがなにか?</note>
6727+ <tuv lang="EN-US">
6728+ <seg>title = "My Window",</seg>
6729+ </tuv>
6730+ <tuv lang="JA" changeid="isVowel" changedate="20200617T112212Z" creationid="isVowel" creationdate="20200617T112212Z">
6731+ <seg>title = "我が名はウィンドウ",</seg>
6732+ </tuv>
6733+ </tu>
6734+ <tu>
58806735 <tuv lang="EN-US">
58816736 <seg>total = total + value</seg>
58826737 </tuv>
@@ -5910,6 +6765,14 @@ title = "自作ゲーム"</seg>
59106765 </tu>
59116766 <tu>
59126767 <tuv lang="EN-US">
6768+ <seg>type size (bytes) Lua value range internal range endianess</seg>
6769+ </tuv>
6770+ <tuv lang="JA" changeid="isVowel" changedate="20200617T064834Z" creationid="isVowel" creationdate="20200617T064326Z">
6771+ <seg>型 サイズ (バイト単位) Lua の範囲値 内部範囲 エンディアン</seg>
6772+ </tuv>
6773+ </tu>
6774+ <tu>
6775+ <tuv lang="EN-US">
59136776 <seg>uniform mat4 MV;</seg>
59146777 </tuv>
59156778 <tuv lang="JA" changeid="isVowel" changedate="20200607T051321Z" creationid="isVowel" creationdate="20200607T051321Z">
@@ -5926,6 +6789,14 @@ title = "自作ゲーム"</seg>
59266789 </tu>
59276790 <tu>
59286791 <tuv lang="EN-US">
6792+ <seg>uv = uvs,</seg>
6793+ </tuv>
6794+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073235Z" creationid="isVowel" creationdate="20200617T073235Z">
6795+ <seg>uv = uvs,</seg>
6796+ </tuv>
6797+ </tu>
6798+ <tu>
6799+ <tuv lang="EN-US">
59296800 <seg>v_color = color;</seg>
59306801 </tuv>
59316802 <tuv lang="JA" changeid="isVowel" changedate="20200611T090929Z" creationid="isVowel" creationdate="20200611T090929Z">
@@ -5934,6 +6805,22 @@ title = "自作ゲーム"</seg>
59346805 </tu>
59356806 <tu>
59366807 <tuv lang="EN-US">
6808+ <seg>v_shadow = vec3(max(0.1, dot(light, nm)));</seg>
6809+ </tuv>
6810+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073212Z" creationid="isVowel" creationdate="20200617T073212Z">
6811+ <seg>v_shadow = vec3(max(0.1, dot(light, nm)));</seg>
6812+ </tuv>
6813+ </tu>
6814+ <tu>
6815+ <tuv lang="EN-US">
6816+ <seg>v_uv = uv;</seg>
6817+ </tuv>
6818+ <tuv lang="JA" changeid="isVowel" changedate="20200617T073214Z" creationid="isVowel" creationdate="20200617T073214Z">
6819+ <seg>v_uv = uv;</seg>
6820+ </tuv>
6821+ </tu>
6822+ <tu>
6823+ <tuv lang="EN-US">
5937