@@ -361,25 +361,6 @@ pub const Texture = opaque {
361
361
}
362
362
extern fn SDL_DestroyTexture (texture : ? * Texture ) void ;
363
363
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
-
383
364
pub fn lock (texture : * Texture , rect : ? * Rect ) ! struct {
384
365
pixels : [* ]u8 ,
385
366
pitch : i32 ,
@@ -435,15 +416,6 @@ pub const RendererFlip = enum(c_int) {
435
416
both = 0x0003 ,
436
417
};
437
418
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
-
447
419
pub const RendererLogicalPresentationMode = enum (c_int ) {
448
420
disabled ,
449
421
stretch ,
@@ -620,13 +592,6 @@ pub const Renderer = opaque {
620
592
}
621
593
extern fn SDL_CreateTextureFromSurface (renderer : * Renderer , surface : * Surface ) ? * Texture ;
622
594
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
-
630
595
pub fn clipEnabled (renderer : * const Renderer ) bool {
631
596
return SDL_RenderClipEnabled (renderer ) == True ;
632
597
}
0 commit comments