odin-blend2d

Odin bindings to Blend2D
Log | Files | Refs | README | LICENSE

runtimescope.odin (749B)


      1 // This file is part of Blend2D project <https://blend2d.com>
      2 //
      3 // See blend2d.h or LICENSE.md for license and copyright information
      4 // SPDX-License-Identifier: Zlib
      5 package blend2d
      6 
      7 when ODIN_OS == .Windows {
      8 	foreign import lib "blend2d.lib"
      9 } else when ODIN_OS == .Darwin {
     10 	foreign import lib "libblend2d.a"
     11 } else when ODIN_OS == .Linux {
     12 	foreign import lib "libblend2d.a"
     13 }
     14 
     15 
     16 //! Blend2D runtime scope [C API].
     17 RuntimeScopeCore :: struct {
     18 	data: [2]u32,
     19 }
     20 
     21 @(default_calling_convention="c", link_prefix="bl_")
     22 foreign lib {
     23 	runtime_scope_begin     :: proc(self: ^RuntimeScopeCore) -> Result ---
     24 	runtime_scope_end       :: proc(self: ^RuntimeScopeCore) -> Result ---
     25 	runtime_scope_is_active :: proc(self: ^RuntimeScopeCore) -> i32 ---
     26 }
     27