SdlSurface
Mutabe surface backed by an SDL surface.
This class assumes to be the only owner of the surface, and will free the surface when garbage collected.
Value members
Inherited methods
def blitWithMask(that: Surface, mask: Color)(x: Int, y: Int, cx: Int, cy: Int, cw: Int, ch: Int): Unit
Draws a surface on top of this surface and masks the pixels with a certain color.
Draws a surface on top of this surface and masks the pixels with a certain color.
- Value parameters:
- ch
clip height of the source surface
- cw
clip width of the source surface
- cx
leftmost pixel on the source surface
- cy
topmost pixel on the source surface
- mask
color to usa as a mask
- that
surface to draw
- x
leftmost pixel on the destination surface
- y
topmost pixel on the destination surface
- Inherited from:
- MutableSurface