Skip to content

Commit

Permalink
Fixed wrong types on sdl2 vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv authored and lerno committed Aug 15, 2024
1 parent b4d221a commit 0ffa417
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions libraries/sdl2.c3l/sdl2.c3i
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -3115,25 +3115,25 @@ 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");
fn int renderDrawPointF(Renderer* renderer, float x, float y) @extern("SDL_RenderDrawPointF");
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");
Expand Down

0 comments on commit 0ffa417

Please sign in to comment.