Finished X11 shaped-window functionality and removed ellipse+polygon rendering.
This commit is contained in:
parent
2c8b1ce8f7
commit
ea29eee83c
9 changed files with 193 additions and 125 deletions
|
@ -114,10 +114,11 @@ extern DECLSPEC int SDLCALL SDL_SetWindowShape(SDL_Window *window,SDL_Surface *s
|
|||
* \brief Get the shape parameters of a shaped window.
|
||||
*
|
||||
* \param window The shaped window whose parameters should be retrieved.
|
||||
* \param shapeMode An empty shape-parameters structure to fill.
|
||||
* \param shapeMode An empty shape-mode structure to fill, or NULL to check whether the window has a shape.
|
||||
*
|
||||
* \return 0 on success, -1 on a null shapeMode, or -2 if the SDL_Window given is not a shaped window, or -3 if the
|
||||
* SDL_Window given is a window that can be shaped but isn't.
|
||||
* \return 0 if the window has a shape and, provided shapeMode was not NULL, shapeMode has been filled with the mode
|
||||
* data, -1 if the SDL_Window given is not a shaped window, or -2 if the SDL_Window* given is a shapeable
|
||||
* window currently lacking a shape.
|
||||
*
|
||||
* \sa SDL_WindowShapeMode
|
||||
* \sa SDL_SetWindowShape
|
||||
|
|
|
@ -1239,82 +1239,6 @@ extern DECLSPEC int SDLCALL SDL_RenderFillRect(const SDL_Rect * rect);
|
|||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderFillRects(const SDL_Rect ** rect, int count);
|
||||
|
||||
/**
|
||||
* \brief Draw an ellipse on the current rendering target with the drawing color.
|
||||
*
|
||||
* \param ellipse The destination ellipse.
|
||||
*
|
||||
* \return 0 on success, or -1 if there is no rendering context current.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderDrawEllipse(const SDL_Ellipse ellipse);
|
||||
|
||||
/**
|
||||
* \brief Draw some number of ellipses in the current rendering target with the drawing color.
|
||||
*
|
||||
* \param ellipse A pointer to an array of destination ellipses.
|
||||
* \param count The number of ellipses.
|
||||
*
|
||||
* \return 0 on success, or -1 if there is no rendering context current.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderDrawEllipses(const SDL_Ellipse * ellipse, int count);
|
||||
|
||||
/**
|
||||
* \brief Fill an ellipse on the current rendering target with the drawing color.
|
||||
*
|
||||
* \param ellipse The destination ellipse
|
||||
*
|
||||
* \return 0 on success, or -1 if there is no rendering context current.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderFillEllipse(const SDL_Ellipse ellipse);
|
||||
|
||||
/**
|
||||
* \brief Fill some number of ellipses in the current rendering target with the drawing color.
|
||||
*
|
||||
* \param ellipse A pointer to an array of destination ellipses.
|
||||
* \param count The number of ellipses.
|
||||
*
|
||||
* \return 0 on success, or -1 if there is no rendering context current.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderFillEllipses(const SDL_Ellipse *ellipse, int count);
|
||||
|
||||
/**
|
||||
* \brief Draw a polygon on the current rendering target with the drawing color.
|
||||
*
|
||||
* \param poly The destination polygon.
|
||||
*
|
||||
* \return 0 on success, or -1 if there is no rendering context current.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderDrawPoly(const SDL_Poly poly);
|
||||
|
||||
/**
|
||||
* \brief Draw some number of polygons in the current rendering target with the drawing color.
|
||||
*
|
||||
* \param poly A pointer to an array of destination polygons.
|
||||
* \param count The number of polygons.
|
||||
*
|
||||
* \return 0 on success, or -1 if there is no rendering context current.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderDrawPolys(const SDL_Poly *poly, int count);
|
||||
|
||||
/**
|
||||
* \brief Fill a polygon on the current rendering target with the drawing color.
|
||||
*
|
||||
* \param poly The destination polygon
|
||||
*
|
||||
* \return 0 on success, or -1 if there is no rendering context current.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderFillPoly(const SDL_Poly poly);
|
||||
|
||||
/**
|
||||
* \brief Fill some number of polygons in the current rendering target with the drawing color.
|
||||
*
|
||||
* \param poly A pointer to an array of destination polygons.
|
||||
* \param count The number of polygons.
|
||||
*
|
||||
* \return 0 on success, or -1 if there is no rendering context current.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderFillPolys(const SDL_Poly *poly, int count);
|
||||
|
||||
/**
|
||||
* \brief Copy a portion of the texture to the current rendering target.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue