mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Remove #by_ptr and replace with Maybe(^T) where necessary
This commit is contained in:
Vendored
+14
-14
@@ -144,10 +144,10 @@ foreign lib {
|
|||||||
CreateTextureWithProperties :: proc(renderer: ^Renderer, props: PropertiesID) -> ^Texture ---
|
CreateTextureWithProperties :: proc(renderer: ^Renderer, props: PropertiesID) -> ^Texture ---
|
||||||
GetTextureProperties :: proc(texture: ^Texture) -> PropertiesID ---
|
GetTextureProperties :: proc(texture: ^Texture) -> PropertiesID ---
|
||||||
GetRendererFromTexture :: proc(texture: ^Texture) -> ^Renderer ---
|
GetRendererFromTexture :: proc(texture: ^Texture) -> ^Renderer ---
|
||||||
GetRenderTarget :: proc(renderer: ^Renderer) -> ^Texture ---
|
GetRenderTarget :: proc(renderer: ^Renderer) -> Maybe(^Texture) ---
|
||||||
RenderViewportSet :: proc(renderer: ^Renderer) -> bool ---
|
RenderViewportSet :: proc(renderer: ^Renderer) -> bool ---
|
||||||
RenderClipEnabled :: proc(renderer: ^Renderer) -> bool ---
|
RenderClipEnabled :: proc(renderer: ^Renderer) -> bool ---
|
||||||
RenderReadPixels :: proc(renderer: ^Renderer, #by_ptr rect: Rect) -> ^Surface ---
|
RenderReadPixels :: proc(renderer: ^Renderer, rect: Maybe(^Rect)) -> ^Surface ---
|
||||||
GetRenderMetalLayer :: proc(renderer: ^Renderer) -> rawptr ---
|
GetRenderMetalLayer :: proc(renderer: ^Renderer) -> rawptr ---
|
||||||
GetRenderMetalCommandEncoder :: proc(renderer: ^Renderer) -> rawptr ---
|
GetRenderMetalCommandEncoder :: proc(renderer: ^Renderer) -> rawptr ---
|
||||||
}
|
}
|
||||||
@@ -170,13 +170,13 @@ foreign lib {
|
|||||||
GetTextureBlendMode :: proc(texture: ^Texture, blendMode: ^BlendMode) -> bool ---
|
GetTextureBlendMode :: proc(texture: ^Texture, blendMode: ^BlendMode) -> bool ---
|
||||||
SetTextureScaleMode :: proc(texture: ^Texture, scaleMode: ScaleMode) -> bool ---
|
SetTextureScaleMode :: proc(texture: ^Texture, scaleMode: ScaleMode) -> bool ---
|
||||||
GetTextureScaleMode :: proc(texture: ^Texture, scaleMode: ^ScaleMode) -> bool ---
|
GetTextureScaleMode :: proc(texture: ^Texture, scaleMode: ^ScaleMode) -> bool ---
|
||||||
UpdateTexture :: proc(texture: ^Texture, #by_ptr rect: Rect, pixels: rawptr, pitch: c.int) -> bool ---
|
UpdateTexture :: proc(texture: ^Texture, rect: Maybe(^Rect), pixels: rawptr, pitch: c.int) -> bool ---
|
||||||
UpdateYUVTexture :: proc(texture: ^Texture, #by_ptr rect: Rect, Yplane: [^]Uint8, Ypitch: c.int, Uplane: [^]Uint8, Upitch: c.int, Vplane: [^]Uint8, Vpitch: c.int) -> bool ---
|
UpdateYUVTexture :: proc(texture: ^Texture, rect: Maybe(^Rect), Yplane: [^]Uint8, Ypitch: c.int, Uplane: [^]Uint8, Upitch: c.int, Vplane: [^]Uint8, Vpitch: c.int) -> bool ---
|
||||||
UpdateNVTexture :: proc(texture: ^Texture, #by_ptr rect: Rect, Yplane: [^]Uint8, Ypitch: c.int, UVplane: [^]Uint8, UVpitch: c.int) -> bool ---
|
UpdateNVTexture :: proc(texture: ^Texture, rect: Maybe(^Rect), Yplane: [^]Uint8, Ypitch: c.int, UVplane: [^]Uint8, UVpitch: c.int) -> bool ---
|
||||||
LockTexture :: proc(texture: ^Texture, #by_ptr rect: Rect, pixels: ^rawptr, pitch: ^c.int) -> bool ---
|
LockTexture :: proc(texture: ^Texture, rect: Maybe(^Rect), pixels: ^rawptr, pitch: ^c.int) -> bool ---
|
||||||
LockTextureToSurface :: proc(texture: ^Texture, #by_ptr rect: Rect, surface: ^^Surface) -> bool ---
|
LockTextureToSurface :: proc(texture: ^Texture, rect: Maybe(^Rect), surface: ^^Surface) -> bool ---
|
||||||
UnlockTexture :: proc(texture: ^Texture) ---
|
UnlockTexture :: proc(texture: ^Texture) ---
|
||||||
SetRenderTarget :: proc(renderer: ^Renderer, texture: ^Texture) -> bool ---
|
SetRenderTarget :: proc(renderer: ^Renderer, texture: Maybe(^Texture)) -> bool ---
|
||||||
SetRenderLogicalPresentation :: proc(renderer: ^Renderer, w, h: c.int, mode: RendererLogicalPresentation) -> bool ---
|
SetRenderLogicalPresentation :: proc(renderer: ^Renderer, w, h: c.int, mode: RendererLogicalPresentation) -> bool ---
|
||||||
GetRenderLogicalPresentation :: proc(renderer: ^Renderer, w, h: ^c.int, mode: ^RendererLogicalPresentation) -> bool ---
|
GetRenderLogicalPresentation :: proc(renderer: ^Renderer, w, h: ^c.int, mode: ^RendererLogicalPresentation) -> bool ---
|
||||||
GetRenderLogicalPresentationRect :: proc(renderer: ^Renderer, rect: ^FRect) -> bool ---
|
GetRenderLogicalPresentationRect :: proc(renderer: ^Renderer, rect: ^FRect) -> bool ---
|
||||||
@@ -207,18 +207,18 @@ foreign lib {
|
|||||||
RenderRects :: proc(renderer: ^Renderer, rects: [^]FRect, count: c.int) -> bool ---
|
RenderRects :: proc(renderer: ^Renderer, rects: [^]FRect, count: c.int) -> bool ---
|
||||||
RenderFillRect :: proc(renderer: ^Renderer, #by_ptr rect: FRect) -> bool ---
|
RenderFillRect :: proc(renderer: ^Renderer, #by_ptr rect: FRect) -> bool ---
|
||||||
RenderFillRects :: proc(renderer: ^Renderer, rects: [^]FRect, count: c.int) -> bool ---
|
RenderFillRects :: proc(renderer: ^Renderer, rects: [^]FRect, count: c.int) -> bool ---
|
||||||
RenderTexture :: proc(renderer: ^Renderer, texture: ^Texture, #by_ptr srcrect, dstrect: FRect) -> bool ---
|
RenderTexture :: proc(renderer: ^Renderer, texture: ^Texture, srcrect, dstrect: Maybe(^FRect)) -> bool ---
|
||||||
RenderTextureRotated :: proc(renderer: ^Renderer, texture: ^Texture, #by_ptr srcrect, dstrect: FRect, angle: f64, #by_ptr center: FPoint, flip: FlipMode) -> bool ---
|
RenderTextureRotated :: proc(renderer: ^Renderer, texture: ^Texture, srcrect, dstrect: Maybe(^FRect), angle: f64, #by_ptr center: FPoint, flip: FlipMode) -> bool ---
|
||||||
RenderTextureAffine :: proc(renderer: ^Renderer, texture: ^Texture, #by_ptr srcrect: FRect, #by_ptr origin: FPoint, #by_ptr right: FPoint, #by_ptr down: FPoint) -> bool ---
|
RenderTextureAffine :: proc(renderer: ^Renderer, texture: ^Texture, srcrect: Maybe(^FRect), origin, right, down: Maybe(^FPoint)) -> bool ---
|
||||||
RenderTextureTiled :: proc(renderer: ^Renderer, texture: ^Texture, #by_ptr srcrect: FRect, scale: f32, #by_ptr dstrect: FRect) -> bool ---
|
RenderTextureTiled :: proc(renderer: ^Renderer, texture: ^Texture, srcrect: Maybe(^FRect), scale: f32, dstrect: Maybe(^FRect)) -> bool ---
|
||||||
RenderTexture9Grid :: proc(renderer: ^Renderer, texture: ^Texture, #by_ptr srcrect: FRect, left_width, right_width, top_height, bottom_height: f32, scale: f32, #by_ptr dstrect: FRect) -> bool ---
|
RenderTexture9Grid :: proc(renderer: ^Renderer, texture: ^Texture, srcrect: Maybe(^FRect), left_width, right_width, top_height, bottom_height: f32, scale: f32, dstrect: Maybe(^FRect)) -> bool ---
|
||||||
RenderGeometry :: proc(renderer: ^Renderer, texture: ^Texture, vertices: [^]Vertex, num_vertices: c.int, indices: [^]c.int, num_indices: c.int) -> bool ---
|
RenderGeometry :: proc(renderer: ^Renderer, texture: ^Texture, vertices: [^]Vertex, num_vertices: c.int, indices: [^]c.int, num_indices: c.int) -> bool ---
|
||||||
RenderGeometryRaw :: proc(renderer: ^Renderer, texture: ^Texture, xy: [^]f32, xy_stride: c.int, color: [^]FColor, color_stride: c.int, uv: [^]f32, uv_stride: c.int, num_vertices: c.int, indices: rawptr, num_indices: c.int, size_indices: c.int) -> bool ---
|
RenderGeometryRaw :: proc(renderer: ^Renderer, texture: ^Texture, xy: [^]f32, xy_stride: c.int, color: [^]FColor, color_stride: c.int, uv: [^]f32, uv_stride: c.int, num_vertices: c.int, indices: rawptr, num_indices: c.int, size_indices: c.int) -> bool ---
|
||||||
RenderPresent :: proc(renderer: ^Renderer) -> bool ---
|
RenderPresent :: proc(renderer: ^Renderer) -> bool ---
|
||||||
DestroyTexture :: proc(texture: ^Texture) ---
|
DestroyTexture :: proc(texture: ^Texture) ---
|
||||||
DestroyRenderer :: proc(renderer: ^Renderer) ---
|
DestroyRenderer :: proc(renderer: ^Renderer) ---
|
||||||
FlushRenderer :: proc(renderer: ^Renderer) -> bool ---
|
FlushRenderer :: proc(renderer: ^Renderer) -> bool ---
|
||||||
AddVulkanRenderSemaphores :: proc(renderer: ^Renderer, wait_stage_mask: Uint32 , wait_semaphore, signal_semaphore: Sint64) -> bool ---
|
AddVulkanRenderSemaphores :: proc(renderer: ^Renderer, wait_stage_mask: Uint32, wait_semaphore, signal_semaphore: Sint64) -> bool ---
|
||||||
SetRenderVSync :: proc(renderer: ^Renderer, vsync: c.int) -> bool ---
|
SetRenderVSync :: proc(renderer: ^Renderer, vsync: c.int) -> bool ---
|
||||||
GetRenderVSync :: proc(renderer: ^Renderer, vsync: ^c.int) -> bool ---
|
GetRenderVSync :: proc(renderer: ^Renderer, vsync: ^c.int) -> bool ---
|
||||||
RenderDebugText :: proc(renderer: ^Renderer, x, y: f32, str: cstring) -> bool ---
|
RenderDebugText :: proc(renderer: ^Renderer, x, y: f32, str: cstring) -> bool ---
|
||||||
|
|||||||
Reference in New Issue
Block a user