compiler: handle multi-iterators
[nit.git] / lib / sdl.nit
index 858e9b3..3bbabb5 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# SDL display support (used in Linux for windows and inputes only)
+# Simple DirectMedia Layer
 module sdl is
        cflags exec("sdl-config", "--cflags")
        ldflags(exec("sdl-config", "--libs"), "-lSDL_image -lSDL_ttf")
 end
 
-import mnit_display
+import mnit::display
 import c
 
 in "C header" `{
@@ -255,8 +255,8 @@ extern class SDLImage
        # Returns a reference to the pixels of the texture
        fun pixels: NativeCByteArray `{ return self->pixels; `}
 
-       # Does this texture has an alpha mask?
-       fun amask: Bool `{ return self->format->Amask; `}
+       # Mask for the alpha value of each pixel
+       fun amask: Int `{ return self->format->Amask; `}
 end
 
 # A simple rectangle