···231231 Uint16 texture_w, texture_h; // Underlying texture dimensions
232232 Uint8 has_mipmaps;
233233234234- float hotspot_x; // Normalized coords for the point at which the image is blitted. Default is (0.5, 0.5), that is, the image is drawn centered.
235235- float hotspot_y; // These are always interpreted as inverted. (0,0) is in the upper left and would draw as SDL_BlitSurface() does.
234234+ float anchor_x; // Normalized coords for the point at which the image is blitted. Default is (0.5, 0.5), that is, the image is drawn centered.
235235+ float anchor_y; // These are interpreted according to GPU_SetCoordinateMode() and range from (0.0 - 1.0) normally.
236236237237 SDL_Color color;
238238 Uint8 use_blending;
···594594 Uint8 coordinate_mode;
595595596596 /*! Default is (0.5, 0.5) - images draw centered. */
597597- float default_image_hotspot_x;
598598- float default_image_hotspot_y;
597597+ float default_image_anchor_x;
598598+ float default_image_anchor_y;
599599600600 struct GPU_RendererImpl* impl;
601601};
···791791792792DECLSPEC Uint8 SDLCALL GPU_GetCoordinateMode(void);
793793794794-/*! Sets the default image blitting hotspot for newly created images.
795795- * \see GPU_SetHotspot
794794+/*! Sets the default image blitting anchor for newly created images.
795795+ * \see GPU_SetAnchor
796796 */
797797-DECLSPEC void SDLCALL GPU_SetDefaultHotspot(float hotspot_x, float hotspot_y);
797797+DECLSPEC void SDLCALL GPU_SetDefaultAnchor(float anchor_x, float anchor_y);
798798+799799+/*! Returns the default image blitting anchor through the given variables.
800800+ * \see GPU_GetAnchor
801801+ */
802802+DECLSPEC void SDLCALL GPU_GetDefaultAnchor(float* anchor_x, float* anchor_y);
798803799804// End of RendererControls
800805/*! @} */
···10671072/*! Sets the image filtering mode, if supported by the renderer. */
10681073DECLSPEC void SDLCALL GPU_SetImageFilter(GPU_Image* image, GPU_FilterEnum filter);
1069107410701070-/*! Sets the image hotspot, which is the point about which the image is blitted. The default is to blit the image on-center (0.5, 0.5). The hotspot is in inverted (+y down) normalized coordinates (0.0-1.0). */
10711071-DECLSPEC void SDLCALL GPU_SetHotspot(GPU_Image* image, float hotspot_x, float hotspot_y);
10751075+/*! Sets the image anchor, which is the point about which the image is blitted. The default is to blit the image on-center (0.5, 0.5). The anchor is in normalized coordinates (0.0-1.0). */
10761076+DECLSPEC void SDLCALL GPU_SetAnchor(GPU_Image* image, float anchor_x, float anchor_y);
10771077+10781078+/*! Returns the image anchor via the passed parameters. The anchor is in normalized coordinates (0.0-1.0). */
10791079+DECLSPEC void SDLCALL GPU_GetAnchor(GPU_Image* image, float* anchor_x, float* anchor_y);
1072108010731081/*! Gets the current pixel snap setting. The default value is GPU_SNAP_POSITION_AND_DIMENSIONS. */
10741082DECLSPEC GPU_SnapEnum SDLCALL GPU_GetSnapMode(GPU_Image* image);