Mark Sibly 8 anos atrás
pai
commit
929708ec84

+ 2 - 0
modules/mojo/newdocs/audio.md

@@ -3,6 +3,8 @@
 
 ### Audio
 
+The [[Audio]] global contains a read only instance of an [[AudioDevice]] object which can be used to [[AudioDevice.PlayMusic|play music]].
+
 A [[Sound]] object contains static audio data that can be play through [[Channel]] objects.
 
 A sound object can be loaded from file using [[Sound.Load]] or constructed from an [[std::std.audio.AudoData|AudioData]] object.

+ 3 - 3
modules/mojo/newdocs/graphics.md

@@ -47,12 +47,12 @@ You can also render to an image using a canvas object.
 
 @#### Lighting
 
-A canvas also support 2d lighting with bumpmapping and specular effects.
+A canvas also supports 2d lighting with bumpmapping and specular effects.
 
 Light are 'drawn' using the [[Canvas.AddLight]] method, which can only be used when the canvas is in 'lighting mode'.
 
 To put the canvas into lighting mode, use the [[Canvas.BeginLighting]] method. To end lighting mode, use the [[Canvas.EndLighting]] method. EndLighting is what actually renders the lighting, and will add lighting to any graphics rendered between BeginLighting and EndLighting.
 
-You can not change the canvas viewport or scissor rect while the canvas is in lighting mode.
-
 AddLight takes an image parameter and is used in a very similar way to DrawImage. Light images can contain arbitrary colors and can be scaled, rotated etc. when drawn. However, images used for lighting should be loaded using the [[Image.LoadLight]] method.
+
+You can not change the canvas viewport or scissor rect while the canvas is in lighting mode.

+ 1 - 1
modules/mojo/newdocs/input.md

@@ -5,6 +5,6 @@ To handle keyboard input, an app can either handle KeyEvent events by overriding
 
 To handle mouse input, an app can either handle MouseEvent events by overriding the [[View.OnMouseEvent]] method, or poll the [[MouseDevice]] directly using the global [[Mouse]] const.
 
-To handle touch input, an app can either handle TouchEvent events ny overriding the [[View.OnTouchEvent]] method, or poll the [[TouchDevice]] directly using the global [[Touch]] const.
+To handle touch input, an app can poll the [[TouchDevice]] directly using the global [[Touch]] const.