Select the types of activity you want to include in your feed.
Added hotspot coordinates to GPU_Image so the drawing, scaling, and rotation pivot can be set (by GPU_SetHotspot() and GPU_SetDefaultHotspot()). This means SDL_gpu can be set to draw just like SDL_BlitSurface() and SDL_RenderCopy() do.
···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.
236236+234237 SDL_Color color;
235238 Uint8 use_blending;
236239 GPU_BlendMode blend_mode;
···590593 /*! 0 for inverted, 1 for mathematical */
591594 Uint8 coordinate_mode;
592595596596+ /*! Default is (0.5, 0.5) - images draw centered. */
597597+ float default_image_hotspot_x;
598598+ float default_image_hotspot_y;
599599+593600 struct GPU_RendererImpl* impl;
594601};
595602···784791785792DECLSPEC Uint8 SDLCALL GPU_GetCoordinateMode(void);
786793794794+/*! Sets the default image blitting hotspot for newly created images.
795795+ * \see GPU_SetHotspot
796796+ */
797797+DECLSPEC void SDLCALL GPU_SetDefaultHotspot(float hotspot_x, float hotspot_y);
798798+787799// End of RendererControls
788800/*! @} */
789801···1054106610551067/*! Sets the image filtering mode, if supported by the renderer. */
10561068DECLSPEC void SDLCALL GPU_SetImageFilter(GPU_Image* image, GPU_FilterEnum filter);
10691069+10701070+/*! 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);
1057107210581073/*! Gets the current pixel snap setting. The default value is GPU_SNAP_POSITION_AND_DIMENSIONS. */
10591074DECLSPEC GPU_SnapEnum SDLCALL GPU_GetSnapMode(GPU_Image* image);