mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-24 00:06:10 +00:00
Spell out "Float" in function names
This commit is contained in:
@@ -256,39 +256,41 @@
|
||||
#endif
|
||||
|
||||
/* ##SDL_rect.h */
|
||||
#define SDL_EncloseFPoints SDL_GetRectEnclosingPointsF
|
||||
#define SDL_EncloseFPoints SDL_GetRectEnclosingPointsFloat
|
||||
#define SDL_EnclosePoints SDL_GetRectEnclosingPoints
|
||||
#define SDL_FRectEmpty SDL_RectEmptyF
|
||||
#define SDL_FRectEquals SDL_RectsEqualF
|
||||
#define SDL_FRectEmpty SDL_RectEmptyFloat
|
||||
#define SDL_FRectEquals SDL_RectsEqualFloat
|
||||
#define SDL_FRectEqualsEpsilon SDL_RectsEqualEpsilon
|
||||
#define SDL_HasIntersection SDL_HasRectIntersection
|
||||
#define SDL_HasIntersectionF SDL_HasRectIntersectionF
|
||||
#define SDL_IntersectFRect SDL_GetRectIntersectionF
|
||||
#define SDL_IntersectFRectAndLine SDL_GetRectAndLineIntersectionF
|
||||
#define SDL_HasIntersectionF SDL_HasRectIntersectionFloat
|
||||
#define SDL_IntersectFRect SDL_GetRectIntersectionFloat
|
||||
#define SDL_IntersectFRectAndLine SDL_GetRectAndLineIntersectionFloat
|
||||
#define SDL_IntersectRect SDL_GetRectIntersection
|
||||
#define SDL_IntersectRectAndLine SDL_GetRectAndLineIntersection
|
||||
#define SDL_PointInFRect SDL_PointInRectF
|
||||
#define SDL_PointInFRect SDL_PointInRectFloat
|
||||
#define SDL_RectEquals SDL_RectsEqual
|
||||
#define SDL_UnionFRect SDL_GetRectUnionF
|
||||
#define SDL_UnionFRect SDL_GetRectUnionFloat
|
||||
#define SDL_UnionRect SDL_GetRectUnion
|
||||
|
||||
/* ##SDL_render.h */
|
||||
#define SDL_RenderCopy SDL_RenderTexture
|
||||
#define SDL_RenderCopyEx SDL_RenderTextureRotated
|
||||
#define SDL_RenderCopyExF SDL_RenderTextureRotatedF
|
||||
#define SDL_RenderCopyF SDL_RenderTextureF
|
||||
#define SDL_RenderCopyExF SDL_RenderTextureRotatedFloat
|
||||
#define SDL_RenderCopyF SDL_RenderTextureFloat
|
||||
#define SDL_RenderDrawLine SDL_RenderLine
|
||||
#define SDL_RenderDrawLineF SDL_RenderLineF
|
||||
#define SDL_RenderDrawLineF SDL_RenderLineFloat
|
||||
#define SDL_RenderDrawLines SDL_RenderLines
|
||||
#define SDL_RenderDrawLinesF SDL_RenderLinesF
|
||||
#define SDL_RenderDrawLinesF SDL_RenderLinesFloat
|
||||
#define SDL_RenderDrawPoint SDL_RenderPoint
|
||||
#define SDL_RenderDrawPointF SDL_RenderPointF
|
||||
#define SDL_RenderDrawPointF SDL_RenderPointFloat
|
||||
#define SDL_RenderDrawPoints SDL_RenderPoints
|
||||
#define SDL_RenderDrawPointsF SDL_RenderPointsF
|
||||
#define SDL_RenderDrawPointsF SDL_RenderPointsFloat
|
||||
#define SDL_RenderDrawRect SDL_RenderRect
|
||||
#define SDL_RenderDrawRectF SDL_RenderRectF
|
||||
#define SDL_RenderDrawRectF SDL_RenderRectFloat
|
||||
#define SDL_RenderDrawRects SDL_RenderRects
|
||||
#define SDL_RenderDrawRectsF SDL_RenderRectsF
|
||||
#define SDL_RenderDrawRectsF SDL_RenderRectsFloat
|
||||
#define SDL_RenderFillRectF SDL_RenderFillRectFloat
|
||||
#define SDL_RenderFillRectsF SDL_RenderFillRectsFloat
|
||||
#define SDL_RenderGetClipRect SDL_GetRenderClipRect
|
||||
#define SDL_RenderGetIntegerScale SDL_GetRenderIntegerScale
|
||||
#define SDL_RenderGetLogicalSize SDL_GetRenderLogicalSize
|
||||
@@ -580,39 +582,41 @@
|
||||
#endif
|
||||
|
||||
/* ##SDL_rect.h */
|
||||
#define SDL_EncloseFPoints SDL_EncloseFPoints_renamed_SDL_GetRectEnclosingPointsF
|
||||
#define SDL_EncloseFPoints SDL_EncloseFPoints_renamed_SDL_GetRectEnclosingPointsFloat
|
||||
#define SDL_EnclosePoints SDL_EnclosePoints_renamed_SDL_GetRectEnclosingPoints
|
||||
#define SDL_FRectEmpty SDL_FRectEmpty_renamed_SDL_RectEmptyF
|
||||
#define SDL_FRectEquals SDL_FRectEquals_renamed_SDL_RectsEqualF
|
||||
#define SDL_FRectEmpty SDL_FRectEmpty_renamed_SDL_RectEmptyFloat
|
||||
#define SDL_FRectEquals SDL_FRectEquals_renamed_SDL_RectsEqualFloat
|
||||
#define SDL_FRectEqualsEpsilon SDL_FRectEqualsEpsilon_renamed_SDL_RectsEqualEpsilon
|
||||
#define SDL_HasIntersection SDL_HasIntersection_renamed_SDL_HasRectIntersection
|
||||
#define SDL_HasIntersectionF SDL_HasIntersectionF_renamed_SDL_HasRectIntersectionF
|
||||
#define SDL_IntersectFRect SDL_IntersectFRect_renamed_SDL_GetRectIntersectionF
|
||||
#define SDL_IntersectFRectAndLine SDL_IntersectFRectAndLine_renamed_SDL_GetRectAndLineIntersectionF
|
||||
#define SDL_HasIntersectionF SDL_HasIntersectionF_renamed_SDL_HasRectIntersectionFloat
|
||||
#define SDL_IntersectFRect SDL_IntersectFRect_renamed_SDL_GetRectIntersectionFloat
|
||||
#define SDL_IntersectFRectAndLine SDL_IntersectFRectAndLine_renamed_SDL_GetRectAndLineIntersectionFloat
|
||||
#define SDL_IntersectRect SDL_IntersectRect_renamed_SDL_GetRectIntersection
|
||||
#define SDL_IntersectRectAndLine SDL_IntersectRectAndLine_renamed_SDL_GetRectAndLineIntersection
|
||||
#define SDL_PointInFRect SDL_PointInFRect_renamed_SDL_PointInRectF
|
||||
#define SDL_PointInFRect SDL_PointInFRect_renamed_SDL_PointInRectFloat
|
||||
#define SDL_RectEquals SDL_RectEquals_renamed_SDL_RectsEqual
|
||||
#define SDL_UnionFRect SDL_UnionFRect_renamed_SDL_GetRectUnionF
|
||||
#define SDL_UnionFRect SDL_UnionFRect_renamed_SDL_GetRectUnionFloat
|
||||
#define SDL_UnionRect SDL_UnionRect_renamed_SDL_GetRectUnion
|
||||
|
||||
/* ##SDL_render.h */
|
||||
#define SDL_RenderCopy SDL_RenderCopy_renamed_SDL_RenderTexture
|
||||
#define SDL_RenderCopyEx SDL_RenderCopyEx_renamed_SDL_RenderTextureRotated
|
||||
#define SDL_RenderCopyExF SDL_RenderCopyExF_renamed_SDL_RenderTextureRotatedF
|
||||
#define SDL_RenderCopyF SDL_RenderCopyF_renamed_SDL_RenderTextureF
|
||||
#define SDL_RenderCopyExF SDL_RenderCopyExF_renamed_SDL_RenderTextureRotatedFloat
|
||||
#define SDL_RenderCopyF SDL_RenderCopyF_renamed_SDL_RenderTextureFloat
|
||||
#define SDL_RenderDrawLine SDL_RenderDrawLine_renamed_SDL_RenderLine
|
||||
#define SDL_RenderDrawLineF SDL_RenderDrawLineF_renamed_SDL_RenderLineF
|
||||
#define SDL_RenderDrawLineF SDL_RenderDrawLineF_renamed_SDL_RenderLineFloat
|
||||
#define SDL_RenderDrawLines SDL_RenderDrawLines_renamed_SDL_RenderLines
|
||||
#define SDL_RenderDrawLinesF SDL_RenderDrawLinesF_renamed_SDL_RenderLinesF
|
||||
#define SDL_RenderDrawLinesF SDL_RenderDrawLinesF_renamed_SDL_RenderLinesFloat
|
||||
#define SDL_RenderDrawPoint SDL_RenderDrawPoint_renamed_SDL_RenderPoint
|
||||
#define SDL_RenderDrawPointF SDL_RenderDrawPointF_renamed_SDL_RenderPointF
|
||||
#define SDL_RenderDrawPointF SDL_RenderDrawPointF_renamed_SDL_RenderPointFloat
|
||||
#define SDL_RenderDrawPoints SDL_RenderDrawPoints_renamed_SDL_RenderPoints
|
||||
#define SDL_RenderDrawPointsF SDL_RenderDrawPointsF_renamed_SDL_RenderPointsF
|
||||
#define SDL_RenderDrawPointsF SDL_RenderDrawPointsF_renamed_SDL_RenderPointsFloat
|
||||
#define SDL_RenderDrawRect SDL_RenderDrawRect_renamed_SDL_RenderRect
|
||||
#define SDL_RenderDrawRectF SDL_RenderDrawRectF_renamed_SDL_RenderRectF
|
||||
#define SDL_RenderDrawRectF SDL_RenderDrawRectF_renamed_SDL_RenderRectFloat
|
||||
#define SDL_RenderDrawRects SDL_RenderDrawRects_renamed_SDL_RenderRects
|
||||
#define SDL_RenderDrawRectsF SDL_RenderDrawRectsF_renamed_SDL_RenderRectsF
|
||||
#define SDL_RenderDrawRectsF SDL_RenderDrawRectsF_renamed_SDL_RenderRectsFloat
|
||||
#define SDL_RenderFillRectF SDL_RenderFillRectF_renamed_SDL_RenderFillRectFloat
|
||||
#define SDL_RenderFillRectsF SDL_RenderFillRectsF_renamed_SDL_RenderFillRectsFloat
|
||||
#define SDL_RenderGetClipRect SDL_RenderGetClipRect_renamed_SDL_GetRenderClipRect
|
||||
#define SDL_RenderGetIntegerScale SDL_RenderGetIntegerScale_renamed_SDL_GetRenderIntegerScale
|
||||
#define SDL_RenderGetLogicalSize SDL_RenderGetLogicalSize_renamed_SDL_GetRenderLogicalSize
|
||||
|
||||
@@ -54,8 +54,8 @@ typedef struct SDL_Point
|
||||
/**
|
||||
* The structure that defines a point (floating point)
|
||||
*
|
||||
* \sa SDL_GetRectEnclosingPointsF
|
||||
* \sa SDL_PointInRectF
|
||||
* \sa SDL_GetRectEnclosingPointsFloat
|
||||
* \sa SDL_PointInRectFloat
|
||||
*/
|
||||
typedef struct SDL_FPoint
|
||||
{
|
||||
@@ -85,15 +85,15 @@ typedef struct SDL_Rect
|
||||
/**
|
||||
* A rectangle, with the origin at the upper left (floating point).
|
||||
*
|
||||
* \sa SDL_RectEmptyF
|
||||
* \sa SDL_RectsEqualF
|
||||
* \sa SDL_RectEmptyFloat
|
||||
* \sa SDL_RectsEqualFloat
|
||||
* \sa SDL_RectsEqualEpsilon
|
||||
* \sa SDL_HasRectIntersectionF
|
||||
* \sa SDL_GetRectIntersectionF
|
||||
* \sa SDL_GetRectAndLineIntersectionF
|
||||
* \sa SDL_GetRectUnionF
|
||||
* \sa SDL_GetRectEnclosingPointsF
|
||||
* \sa SDL_PointInRectF
|
||||
* \sa SDL_HasRectIntersectionFloat
|
||||
* \sa SDL_GetRectIntersectionFloat
|
||||
* \sa SDL_GetRectAndLineIntersectionFloat
|
||||
* \sa SDL_GetRectUnionFloat
|
||||
* \sa SDL_GetRectEnclosingPointsFloat
|
||||
* \sa SDL_PointInRectFloat
|
||||
*/
|
||||
typedef struct SDL_FRect
|
||||
{
|
||||
@@ -230,7 +230,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GetRectAndLineIntersection(const SDL_Rect *
|
||||
/**
|
||||
* Returns true if point resides inside a rectangle.
|
||||
*/
|
||||
SDL_FORCE_INLINE SDL_bool SDL_PointInRectF(const SDL_FPoint *p, const SDL_FRect *r)
|
||||
SDL_FORCE_INLINE SDL_bool SDL_PointInRectFloat(const SDL_FPoint *p, const SDL_FRect *r)
|
||||
{
|
||||
return ( (p->x >= r->x) && (p->x < (r->x + r->w)) &&
|
||||
(p->y >= r->y) && (p->y < (r->y + r->h)) ) ? SDL_TRUE : SDL_FALSE;
|
||||
@@ -239,7 +239,7 @@ SDL_FORCE_INLINE SDL_bool SDL_PointInRectF(const SDL_FPoint *p, const SDL_FRect
|
||||
/**
|
||||
* Returns true if the rectangle has no area.
|
||||
*/
|
||||
SDL_FORCE_INLINE SDL_bool SDL_RectEmptyF(const SDL_FRect *r)
|
||||
SDL_FORCE_INLINE SDL_bool SDL_RectEmptyFloat(const SDL_FRect *r)
|
||||
{
|
||||
return ((!r) || (r->w <= 0.0f) || (r->h <= 0.0f)) ? SDL_TRUE : SDL_FALSE;
|
||||
}
|
||||
@@ -264,7 +264,7 @@ SDL_FORCE_INLINE SDL_bool SDL_RectsEqualEpsilon(const SDL_FRect *a, const SDL_FR
|
||||
*
|
||||
* \since This function is available since SDL 2.0.22.
|
||||
*/
|
||||
SDL_FORCE_INLINE SDL_bool SDL_RectsEqualF(const SDL_FRect *a, const SDL_FRect *b)
|
||||
SDL_FORCE_INLINE SDL_bool SDL_RectsEqualFloat(const SDL_FRect *a, const SDL_FRect *b)
|
||||
{
|
||||
return SDL_RectsEqualEpsilon(a, b, SDL_FLT_EPSILON);
|
||||
}
|
||||
@@ -282,7 +282,7 @@ SDL_FORCE_INLINE SDL_bool SDL_RectsEqualF(const SDL_FRect *a, const SDL_FRect *b
|
||||
*
|
||||
* \sa SDL_GetRectIntersection
|
||||
*/
|
||||
extern DECLSPEC SDL_bool SDLCALL SDL_HasRectIntersectionF(const SDL_FRect * A,
|
||||
extern DECLSPEC SDL_bool SDLCALL SDL_HasRectIntersectionFloat(const SDL_FRect * A,
|
||||
const SDL_FRect * B);
|
||||
|
||||
/**
|
||||
@@ -298,9 +298,9 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasRectIntersectionF(const SDL_FRect * A,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*
|
||||
* \sa SDL_HasRectIntersectionF
|
||||
* \sa SDL_HasRectIntersectionFloat
|
||||
*/
|
||||
extern DECLSPEC SDL_bool SDLCALL SDL_GetRectIntersectionF(const SDL_FRect * A,
|
||||
extern DECLSPEC SDL_bool SDLCALL SDL_GetRectIntersectionFloat(const SDL_FRect * A,
|
||||
const SDL_FRect * B,
|
||||
SDL_FRect * result);
|
||||
|
||||
@@ -314,7 +314,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GetRectIntersectionF(const SDL_FRect * A,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC void SDLCALL SDL_GetRectUnionF(const SDL_FRect * A,
|
||||
extern DECLSPEC void SDLCALL SDL_GetRectUnionFloat(const SDL_FRect * A,
|
||||
const SDL_FRect * B,
|
||||
SDL_FRect * result);
|
||||
|
||||
@@ -336,7 +336,7 @@ extern DECLSPEC void SDLCALL SDL_GetRectUnionF(const SDL_FRect * A,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC SDL_bool SDLCALL SDL_GetRectEnclosingPointsF(const SDL_FPoint * points,
|
||||
extern DECLSPEC SDL_bool SDLCALL SDL_GetRectEnclosingPointsFloat(const SDL_FPoint * points,
|
||||
int count,
|
||||
const SDL_FRect * clip,
|
||||
SDL_FRect * result);
|
||||
@@ -360,7 +360,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GetRectEnclosingPointsF(const SDL_FPoint *
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC SDL_bool SDLCALL SDL_GetRectAndLineIntersectionF(const SDL_FRect *
|
||||
extern DECLSPEC SDL_bool SDLCALL SDL_GetRectAndLineIntersectionFloat(const SDL_FRect *
|
||||
rect, float *X1,
|
||||
float *Y1, float *X2,
|
||||
float *Y2);
|
||||
|
||||
@@ -1486,7 +1486,7 @@ extern DECLSPEC int SDLCALL SDL_RenderTextureRotated(SDL_Renderer * renderer,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderPointF(SDL_Renderer * renderer,
|
||||
extern DECLSPEC int SDLCALL SDL_RenderPointFloat(SDL_Renderer * renderer,
|
||||
float x, float y);
|
||||
|
||||
/**
|
||||
@@ -1499,7 +1499,7 @@ extern DECLSPEC int SDLCALL SDL_RenderPointF(SDL_Renderer * renderer,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderPointsF(SDL_Renderer * renderer,
|
||||
extern DECLSPEC int SDLCALL SDL_RenderPointsFloat(SDL_Renderer * renderer,
|
||||
const SDL_FPoint * points,
|
||||
int count);
|
||||
|
||||
@@ -1515,7 +1515,7 @@ extern DECLSPEC int SDLCALL SDL_RenderPointsF(SDL_Renderer * renderer,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderLineF(SDL_Renderer * renderer,
|
||||
extern DECLSPEC int SDLCALL SDL_RenderLineFloat(SDL_Renderer * renderer,
|
||||
float x1, float y1, float x2, float y2);
|
||||
|
||||
/**
|
||||
@@ -1529,7 +1529,7 @@ extern DECLSPEC int SDLCALL SDL_RenderLineF(SDL_Renderer * renderer,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderLinesF(SDL_Renderer * renderer,
|
||||
extern DECLSPEC int SDLCALL SDL_RenderLinesFloat(SDL_Renderer * renderer,
|
||||
const SDL_FPoint * points,
|
||||
int count);
|
||||
|
||||
@@ -1543,7 +1543,7 @@ extern DECLSPEC int SDLCALL SDL_RenderLinesF(SDL_Renderer * renderer,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderRectF(SDL_Renderer * renderer,
|
||||
extern DECLSPEC int SDLCALL SDL_RenderRectFloat(SDL_Renderer * renderer,
|
||||
const SDL_FRect * rect);
|
||||
|
||||
/**
|
||||
@@ -1557,7 +1557,7 @@ extern DECLSPEC int SDLCALL SDL_RenderRectF(SDL_Renderer * renderer,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderRectsF(SDL_Renderer * renderer,
|
||||
extern DECLSPEC int SDLCALL SDL_RenderRectsFloat(SDL_Renderer * renderer,
|
||||
const SDL_FRect * rects,
|
||||
int count);
|
||||
|
||||
@@ -1572,7 +1572,7 @@ extern DECLSPEC int SDLCALL SDL_RenderRectsF(SDL_Renderer * renderer,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderFillRectF(SDL_Renderer * renderer,
|
||||
extern DECLSPEC int SDLCALL SDL_RenderFillRectFloat(SDL_Renderer * renderer,
|
||||
const SDL_FRect * rect);
|
||||
|
||||
/**
|
||||
@@ -1586,7 +1586,7 @@ extern DECLSPEC int SDLCALL SDL_RenderFillRectF(SDL_Renderer * renderer,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderFillRectsF(SDL_Renderer * renderer,
|
||||
extern DECLSPEC int SDLCALL SDL_RenderFillRectsFloat(SDL_Renderer * renderer,
|
||||
const SDL_FRect * rects,
|
||||
int count);
|
||||
|
||||
@@ -1604,7 +1604,7 @@ extern DECLSPEC int SDLCALL SDL_RenderFillRectsF(SDL_Renderer * renderer,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderTextureF(SDL_Renderer * renderer,
|
||||
extern DECLSPEC int SDLCALL SDL_RenderTextureFloat(SDL_Renderer * renderer,
|
||||
SDL_Texture * texture,
|
||||
const SDL_Rect * srcrect,
|
||||
const SDL_FRect * dstrect);
|
||||
@@ -1630,7 +1630,7 @@ extern DECLSPEC int SDLCALL SDL_RenderTextureF(SDL_Renderer * renderer,
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_RenderTextureRotatedF(SDL_Renderer * renderer,
|
||||
extern DECLSPEC int SDLCALL SDL_RenderTextureRotatedFloat(SDL_Renderer * renderer,
|
||||
SDL_Texture * texture,
|
||||
const SDL_Rect * srcrect,
|
||||
const SDL_FRect * dstrect,
|
||||
|
||||
Reference in New Issue
Block a user