Creates an RGB surface given at least a width and a height
Creates an RGB surface given at least a width, height, and an SDL_PixelFormatEnum
Creates a surface from another surface but with a different pixel format
Creates a surface from another surface but with a different pixel format
Creates a surface from a BMP file path; for other image formats, use loadImage
Creates a surface from an already existing SDL_Surface
Ensures that SDL can properly dispose of the surface
Blits another surface onto this surface Takes the surface to blit, the slice of the surface to blit, and where on this surface to blit to Is faster than a scaled blit to a rectangle
Does a scaled blit from another surface onto this surface Takes the surface to blit, the slice of the surface to blit, and the slice on this surface of where to blit to Is slower than the blit to a location
Draws a point on the surface with the given color
Draws a point on the surface with the given color
Draws a line on the surface with the given color
Draws a line on the surface with the given color
Draws a polygon on the surface with the given color
Draws a rectangle on the surface
Draws the given bezier curve with numPoints number of points on the curve More points is smoother but slower
Draws the ellipse bounded by the given box between the given angles in radians More points generally means a slower but more well drawn ellipse
Draws the ellipse bounded by the given box between the given angles in radians with the given color More points generally means a slower but more well drawn ellipse
Fills a rectangle of the surface with the given color Due to how SDL surfaces work, all other drawing functions on surface are built with this one
Fills the ellipse bounded by the given box between the given angles in radians Fills the ellipse between the arc endpoints: fills ellipse as arc rather than filling as ellipse (not a pizza slice) More points generally means a slower but more well drawn ellipse
Fills the ellipse bounded by the given box between the given angles in radians with the given color Fills the ellipse between the arc endpoints: fills ellipse as arc rather than filling as ellipse (not a pizza slice) More points generally means a slower but more well drawn ellipse
Fills a polygon on the surface with the given color
Saves the surface as a BMP with the given file name
Sets the alpha modifier for the surface Alpha modification works by multiplying the alphaMultiplier / 255 into the surface pixels
Gets the alpha modifier for the surface Alpha modification works by multiplying the alphaMultiplier / 255 into the surface pixels
Sets the surface's blend mode
Gets the surface's blend mode
Sets the clip boundaries for the surface Anything put on the surface outside of the clip boundaries gets discarded
Gets the clip boundaries for the surface Anything put on the surface outside of the clip boundaries gets discarded
Sets the color modifier for the surface Color modification works by multiplying the colorMultiplier / 255 into the surface pixels
Gets the color modifier for the surface Color modification works by multiplying the colorMultiplier / 255 into the surface pixels
Gets the surfaces dimensions as a vector with width as the x component and height as the y component
Returns the raw SDL data of this object
Surfaces are a rectangular collection of pixels Surfaces are easy to work with and edit and can be blitted on to another surface Surfaces can also be converted to textures which are more efficient but less flexible Surfaces are handled in software as opposed to textures which are handled in hardware Surfaces can be used, but when used repeatedly and stored, textures should be preferred Surface draw methods do not respect alpha, but surface blitting does; to draw with alpha, draw to another surface, and blit to desired surface