فهرست منبع

Update appsettings.adoc

Fixed broken new lines.
mitm001 9 سال پیش
والد
کامیت
874bb3a53c
1فایلهای تغییر یافته به همراه27 افزوده شده و 12 حذف شده
  1. 27 12
      src/docs/asciidoc/jme3/intermediate/appsettings.adoc

+ 27 - 12
src/docs/asciidoc/jme3/intermediate/appsettings.adoc

@@ -63,12 +63,16 @@ a|Settings Property (Video)
 a|Description
 a|Default
 
-a|setRenderer(AppSettings.LWJGL_OPENGL1) +setRenderer(AppSettings.LWJGL_OPENGL2) +setRenderer(AppSettings.LWJGL_OPENGL3)
+a|setRenderer(AppSettings.LWJGL_OPENGL1) +
+setRenderer(AppSettings.LWJGL_OPENGL2) +
+setRenderer(AppSettings.LWJGL_OPENGL3)
 a|Switch Video Renderer to OpenGL 1.1, OpenGL 2, or OpenGL 3.3. If your graphic card does not support all OpenGL2 features (`UnsupportedOperationException: GLSL and OpenGL2 is required for the LWJGL renderer`), then you can force your SimpleApplication to use OpenGL1 compatibility. (Then you still can't use special OpenGL2 features, but at least the error goes away and you can continue with the rest.) 
 a| OpenGL 2 
 
 a|setBitsPerPixel(32)
-a|Set the color depth. +1 bpp = black and white, 2 bpp = gray, +4 bpp = 16 colors, 8 bpp = 256 colors, 24 or 32 bpp = “truecolor.
+a|Set the color depth. +
+1 bpp = black and white, 2 bpp = gray, +
+4 bpp = 16 colors, 8 bpp = 256 colors, 24 or 32 bpp = “truecolor.
 a|24
 
 a|setFramerate(60)
@@ -76,27 +80,35 @@ a|How often per second the engine should try to refresh the frame. For the relea
 a|-1 (unlimited)
 
 a|setFullscreen(true)
-a|Set this to true to make the game window fill the whole screen; you need to provide a key that calls app.stop() to exit the fullscreen view gracefully (default: escape). +Set this to false to play the game in a normal window of its own.
+a|Set this to true to make the game window fill the whole screen; you need to provide a key that calls app.stop() to exit the fullscreen view gracefully (default: escape). +
+Set this to false to play the game in a normal window of its own.
 a|False (windowed)
 
-a|setHeight(480), setWidth(640) +setResolution(640,480)
+a|setHeight(480), setWidth(640) +
+setResolution(640,480)
 a|Two equivalent ways of setting the display resolution.
 a|640x480 pixels
 
 a|setSamples(4)
-a|Set multisampling to 0 to switch antialiasing off (harder edges, faster.) +Set multisampling to 2 or 4 to activate antialising (softer edges, may be slower.) +Depending on your graphic card, you may be able to set multisampling to higher values such as 8, 16, or 32 samples.
+a|Set multisampling to 0 to switch antialiasing off (harder edges, faster.) +
+Set multisampling to 2 or 4 to activate antialising (softer edges, may be slower.) +
+Depending on your graphic card, you may be able to set multisampling to higher values such as 8, 16, or 32 samples.
 a|0
 
-a|setVSync(true) +setFrequency(60)
-a|Set vertical syncing to true to time the frame buffer to coincide with the refresh frequency of the screen. VSync prevents ugly page tearing artefacts, but is a bit slower; recommened for release build. +Set VSync to false to deactivate vertical syncing (faster, but possible page tearing artifacts); can remain deactivated during development or for slower PCs.
+a|setVSync(true) +
+setFrequency(60)
+a|Set vertical syncing to true to time the frame buffer to coincide with the refresh frequency of the screen. VSync prevents ugly page tearing artefacts, but is a bit slower; recommened for release build. +
+Set VSync to false to deactivate vertical syncing (faster, but possible page tearing artifacts); can remain deactivated during development or for slower PCs.
 a|false +60 fps
 
 a|setStencilBits(8)
-a|Set the number of stencil bits. +This value is only relevant when the stencil buffer is being used. Specify 8 to indicate an 8-bit stencil buffer, specify 0 to disable the stencil buffer.
+a|Set the number of stencil bits. +
+This value is only relevant when the stencil buffer is being used. Specify 8 to indicate an 8-bit stencil buffer, specify 0 to disable the stencil buffer.
 a|0 (disabled)
 
 a|setDepthBits(16)
-a|Sets the number of depth bits to use. + The number of depth bits specifies the precision of the depth buffer. To increase precision, specify 32 bits. To decrease precision, specify 16 bits. On some platforms 24 bits might not be supported, in that case, specify 16 bits. 
+a|Sets the number of depth bits to use. +
+The number of depth bits specifies the precision of the depth buffer. To increase precision, specify 32 bits. To decrease precision, specify 16 bits. On some platforms 24 bits might not be supported, in that case, specify 16 bits. 
 a|24
 
 |===
@@ -151,7 +163,8 @@ a|setTitle(“My Game)
 a|This string will be visible in the titlebar, unless the window is fullscreen.
 a|“jMonkey Engine 3.0
 
-a|setIcons(new BufferedImage[]{ +ImageIO.read(new File(“)), …});
+a|setIcons(new BufferedImage[]{ +
+ImageIO.read(new File(“)), …});
 a|This specifies the little application icon in the titlebar of the application (unused in MacOS?). You should specify the icon in various sizes (256,128,32,16) to look good on various operating systems. Note: This is not the application icon on the desktop.
 a|null
 
@@ -211,6 +224,8 @@ Provide the unique name of your jME3 application as the String argument. For exa
 
 ----
 
-*  On Windows, the preferences are saved under the following registry key: +`HKEY_CURRENT_USER\Software\JavaSoft\Prefs\com\foo\MyCoolGame3`
+*  On Windows, the preferences are saved under the following registry key: +
+`HKEY_CURRENT_USER\Software\JavaSoft\Prefs\com\foo\MyCoolGame3`
 *  On Linux, the preferences are saved in an XML file under: +`$HOME/.java/.userPrefs/com/foo/MyCoolGame3`
-*  On Mac +++<abbr title="Operating System">OS</abbr>+++ X, the preferences are saved as XML file under: +`$HOME/Library/Preferences/com.foo.MyCoolGame3.plist`
+*  On Mac +++<abbr title="Operating System">OS</abbr>+++ X, the preferences are saved as XML file under: +
+`$HOME/Library/Preferences/com.foo.MyCoolGame3.plist`