diff --git a/libraries/sdl2.c3l/sdl2.c3i b/libraries/sdl2.c3l/sdl2.c3i index 5f105a4..34665f2 100644 --- a/libraries/sdl2.c3l/sdl2.c3i +++ b/libraries/sdl2.c3l/sdl2.c3i @@ -3097,9 +3097,9 @@ fn int renderSetLogicalSize(Renderer* renderer, int w, int h) @extern("SDL_Rende fn void* renderGetLogicalSize(Renderer* renderer, int* w, int* h) @extern("SDL_RenderGetLogicalSize"); fn int renderSetIntegerScale(Renderer* renderer, bool enable) @extern("SDL_RenderSetIntegerScale"); fn bool renderGetIntegerScale(Renderer* renderer) @extern("SDL_RenderGetIntegerScale"); -fn int renderSetViewport(Renderer* renderer, Rect rect) @extern("SDL_RenderSetViewport"); +fn int renderSetViewport(Renderer* renderer, Rect* rect) @extern("SDL_RenderSetViewport"); fn void* renderGetViewport(Renderer* renderer, Rect* rect) @extern("SDL_RenderGetViewport"); -fn int renderSetClipRect(Renderer* renderer, Rect rect) @extern("SDL_RenderSetClipRect"); +fn int renderSetClipRect(Renderer* renderer, Rect* rect) @extern("SDL_RenderSetClipRect"); fn void* renderGetClipRect(Renderer* renderer, Rect* rect) @extern("SDL_RenderGetClipRect"); fn bool renderIsClipEnabled(Renderer* renderer) @extern("SDL_RenderIsClipEnabled"); fn int renderSetScale(Renderer* renderer, float scaleX, float scaleY) @extern("SDL_RenderSetScale"); @@ -3115,9 +3115,9 @@ fn int renderDrawPoint(Renderer* renderer, int x, int y) @extern("SDL_RenderDraw fn int renderDrawPoints(Renderer* renderer, Point* points, int count) @extern("SDL_RenderDrawPoints"); fn int renderDrawLine(Renderer* renderer, int x1, int y1, int x2, int y2) @extern("SDL_RenderDrawLine"); fn int renderDrawLines(Renderer* renderer, Point* points, int count) @extern("SDL_RenderDrawLines"); -fn int renderDrawRect(Renderer* renderer, Rect rect) @extern("SDL_RenderDrawRect"); +fn int renderDrawRect(Renderer* renderer, Rect* rect) @extern("SDL_RenderDrawRect"); fn int renderDrawRects(Renderer* renderer, Rect* rects, int count) @extern("SDL_RenderDrawRects"); -fn int renderFillRect(Renderer* renderer, Rect rect) @extern("SDL_RenderFillRect"); +fn int renderFillRect(Renderer* renderer, Rect* rect) @extern("SDL_RenderFillRect"); fn int renderFillRects(Renderer* renderer, Rect* rects, int count) @extern("SDL_RenderFillRects"); fn int renderCopy(Renderer* renderer, Texture* texture, Rect* srcrect, Rect* dstrect) @extern("SDL_RenderCopy"); fn int renderCopyEx(Renderer* renderer, Texture* texture, Rect* srcrect, Rect* dstrect, double angle, Point* center, RendererFlip flip) @extern("SDL_RenderCopyEx"); @@ -3125,15 +3125,15 @@ fn int renderDrawPointF(Renderer* renderer, float x, float y) @extern("SDL_Rende fn int renderDrawPointsF(Renderer* renderer, FPoint* points, int count) @extern("SDL_RenderDrawPointsF"); fn int renderDrawLineF(Renderer* renderer, float x1, float y1, float x2, float y2) @extern("SDL_RenderDrawLineF"); fn int renderDrawLinesF(Renderer* renderer, FPoint* points, int count) @extern("SDL_RenderDrawLinesF"); -fn int renderDrawRectF(Renderer* renderer, FRect rect) @extern("SDL_RenderDrawRectF"); +fn int renderDrawRectF(Renderer* renderer, FRect* rect) @extern("SDL_RenderDrawRectF"); fn int renderDrawRectsF(Renderer* renderer, FRect* rects, int count) @extern("SDL_RenderDrawRectsF"); -fn int renderFillRectF(Renderer* renderer, FRect rect) @extern("SDL_RenderFillRectF"); +fn int renderFillRectF(Renderer* renderer, FRect* rect) @extern("SDL_RenderFillRectF"); fn int renderFillRectsF(Renderer* renderer, FRect* rects, int count) @extern("SDL_RenderFillRectsF"); fn int renderCopyF(Renderer* renderer, Texture* texture, Rect* srcrect, FRect dstrect) @extern("SDL_RenderCopyF"); fn int renderCopyExF(Renderer* renderer, Texture* texture, Rect* srcrect, FRect dstrect, double angle, FPoint* center, RendererFlip flip) @extern("SDL_RenderCopyExF"); fn int renderGeometry(Renderer* renderer, Texture* texture, Vertex* vertices, int num_vertices, int* indices, int num_indices) @extern("SDL_RenderGeometry"); fn int renderGeometryRaw(Renderer* renderer, Texture* texture, float* xy, int xy_stride, Color* color, int color_stride, float* uv, int uv_stride, int num_vertices, void* indices, int num_indices, int size_indices) @extern("SDL_RenderGeometryRaw"); -fn int renderReadPixels(Renderer* renderer, Rect rect, uint format, void* pixels, int pitch) @extern("SDL_RenderReadPixels"); +fn int renderReadPixels(Renderer* renderer, Rect* rect, uint format, void* pixels, int pitch) @extern("SDL_RenderReadPixels"); fn void* renderPresent(Renderer* renderer) @extern("SDL_RenderPresent"); fn void* destroyTexture(Texture* texture) @extern("SDL_DestroyTexture"); fn void* destroyRenderer(Renderer* renderer) @extern("SDL_DestroyRenderer");