Skip to content

Commit 1ba4d85

Browse files
committed
1 parent da15965 commit 1ba4d85

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/sdl3.zig

-35
Original file line numberDiff line numberDiff line change
@@ -361,25 +361,6 @@ pub const Texture = opaque {
361361
}
362362
extern fn SDL_DestroyTexture(texture: ?*Texture) void;
363363

364-
pub fn query(
365-
texture: *Texture,
366-
format: ?*PixelFormatEnum,
367-
access: ?*TextureAccess,
368-
w: ?*i32,
369-
h: ?*i32,
370-
) !void {
371-
if (SDL_QueryTexture(texture, format, access, w, h) == False) {
372-
return makeError();
373-
}
374-
}
375-
extern fn SDL_QueryTexture(
376-
texture: *Texture,
377-
format: ?*PixelFormatEnum,
378-
access: ?*TextureAccess,
379-
w: ?*c_int,
380-
h: ?*c_int,
381-
) c_int;
382-
383364
pub fn lock(texture: *Texture, rect: ?*Rect) !struct {
384365
pixels: [*]u8,
385366
pitch: i32,
@@ -435,15 +416,6 @@ pub const RendererFlip = enum(c_int) {
435416
both = 0x0003,
436417
};
437418

438-
pub const RendererInfo = extern struct {
439-
name: [*c]const u8,
440-
flags: u32,
441-
num_texture_formats: u32,
442-
texture_formats: [16]u32,
443-
max_texture_width: i32,
444-
max_texture_height: i32,
445-
};
446-
447419
pub const RendererLogicalPresentationMode = enum(c_int) {
448420
disabled,
449421
stretch,
@@ -620,13 +592,6 @@ pub const Renderer = opaque {
620592
}
621593
extern fn SDL_CreateTextureFromSurface(renderer: *Renderer, surface: *Surface) ?*Texture;
622594

623-
pub fn getInfo(r: *const Renderer) Error!RendererInfo {
624-
var result: RendererInfo = undefined;
625-
if (SDL_GetRendererInfo(r, &result) == False) return makeError();
626-
return result;
627-
}
628-
extern fn SDL_GetRendererInfo(renderer: *const Renderer, info: *RendererInfo) c_int;
629-
630595
pub fn clipEnabled(renderer: *const Renderer) bool {
631596
return SDL_RenderClipEnabled(renderer) == True;
632597
}

0 commit comments

Comments
 (0)