nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
online_ide: update to the new API of the loader
[nit.git]
/
lib
/
sdl.nit
diff --git
a/lib/sdl.nit
b/lib/sdl.nit
index
a8fa112
..
3bbabb5
100644
(file)
--- a/
lib/sdl.nit
+++ b/
lib/sdl.nit
@@
-20,7
+20,7
@@
module sdl is
ldflags(exec("sdl-config", "--libs"), "-lSDL_image -lSDL_ttf")
end
ldflags(exec("sdl-config", "--libs"), "-lSDL_image -lSDL_ttf")
end
-import mnit_display
+import mnit::display
import c
in "C header" `{
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; `}
# 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
end
# A simple rectangle