bindgen.sjson (5855B)
1 // See README.md in root of repository for documentation and more configuration options. 2 3 inputs = [ 4 "input" 5 ] 6 7 output_folder = "raylib" 8 imports_file = "imports.odin" 9 package_name = "raylib" 10 11 // "Old_Name" = "New_Name" 12 rename = { 13 "Gesture" = "Gestures" 14 "Gesture_Enum" = "Gesture" 15 } 16 17 // "Enum_To_Turn_Into_Bitset" = "New_Enum_Type_Name" 18 bit_setify = { 19 "Gesture" = "Gesture_Enum" 20 "ConfigFlags" = "ConfigFlag" 21 } 22 23 type_overrides = { 24 "Vector2" = "[2]f32" 25 "Vector3" = "[3]f32" 26 "Vector4" = "[4]f32" 27 "Matrix" = "#row_major matrix[4, 4]f32" 28 "Color" = "distinct [4]u8" 29 } 30 31 struct_field_overrides = { 32 "Image.format" = "PixelFormat" 33 "Texture.format" = "PixelFormat" 34 "NPatchInfo.layout" = "NPatchLayout" 35 "GlyphInfo.value" = "rune" 36 37 "Font.recs" = "[^]" 38 "Font.glyphs" = "[^]" 39 40 "Sound.stream" = "using", 41 "Music.stream" = "using", 42 43 "Camera3D.projection" = "CameraProjection" 44 45 "Mesh.vertices" = "[^]" 46 "Mesh.texcoords" = "[^]" 47 "Mesh.texcoords2" = "[^]" 48 "Mesh.normals" = "[^]" 49 "Mesh.tangents" = "[^]" 50 "Mesh.colors" = "[^]" 51 "Mesh.indices" = "[^]" 52 "Mesh.animVertices" = "[^]" 53 "Mesh.animNormals" = "[^]" 54 "Mesh.boneIds" = "[^]" 55 "Mesh.boneWeights" = "[^]" 56 "Mesh.boneMatrices" = "[^]" 57 "Mesh.vboId" = "[^]" 58 "Shader.locs" = "[^]" 59 "Material.maps" = "[^]" 60 "Model.meshes" = "[^]" 61 "Model.materials" = "[^]" 62 "Model.meshMaterial" = "[^]" 63 "Model.bones" = "[^]" 64 "Model.bindPose" = "[^]" 65 "ModelAnimation.bones" = "[^]" 66 "ModelAnimation.framePoses" = "[^][^]Transform" 67 68 "AudioStream.buffer" = "rawptr" 69 "AudioStream.processor" = "rawptr" 70 71 "FilePathList.paths" = "[^]" 72 "AutomationEventList.events" = "[^]" 73 } 74 75 struct_field_tags = { 76 "BoneInfo.name" = "fmt:\"s,0\"" 77 "ModelAnimation.name" = "fmt:\"s,0\"" 78 } 79 80 procedure_type_overrides = { 81 "SetConfigFlags.flags" = "ConfigFlags" 82 "SetWindowState.flags" = "ConfigFlags" 83 "ClearWindowState.flags" = "ConfigFlags" 84 85 "SetWindowIcons.images" = "[^]" 86 87 "IsKeyPressed.key" = "KeyboardKey" 88 "IsKeyPressedRepeat.key" = "KeyboardKey" 89 "IsKeyDown.key" = "KeyboardKey" 90 "IsKeyReleased.key" = "KeyboardKey" 91 "IsKeyUp.key" = "KeyboardKey" 92 "GetKeyPressed" = "KeyboardKey" 93 94 "IsMouseButtonPressed.button" = "MouseButton" 95 "IsMouseButtonDown.button" = "MouseButton" 96 "IsMouseButtonReleased.button" = "MouseButton" 97 "IsMouseButtonUp.button" = "MouseButton" 98 99 "SetShaderValue.locIndex" = "#any_int", 100 "SetShaderValueV.locIndex" = "#any_int", 101 "SetShaderValueMatrix.locIndex" = "#any_int", 102 "SetShaderValueTexture.locIndex" = "#any_int", 103 104 "SetShaderValue.uniformType" = "ShaderUniformDataType" 105 "SetShaderValueV.uniformType" = "ShaderUniformDataType" 106 "SetExitKey.key" = "KeyboardKey" 107 "GetKeyName.key" = "KeyboardKey" 108 "IsGestureDetected.gesture" = "Gestures" 109 "SetGesturesEnabled.flags" = "Gestures" 110 111 "LoadRandomSequence" = "[^]" 112 "UnloadRandomSequence.sequence" = "[^]" 113 114 "LoadFileData" = "[^]" 115 "UnloadFileData.data" = "[^]" 116 "LoadFileText" = "[^]u8" 117 "UnloadFileText.text" = "[^]u8" 118 "SaveFileText.text" = "[^]u8" 119 120 "CompressData" = "[^]" 121 "CompressData.data" = "rawptr" 122 "DecompressData" = "[^]" 123 "DecompressData.compData" = "rawptr" 124 "EncodeDataBase64" = "[^]u8" 125 "EncodeDataBase64.data" = "rawptr" 126 "DecodeDataBase64" = "[^]" 127 "DecodeDataBase64.data" = "rawptr" 128 "ComputeCRC32.data" = "rawptr" 129 "ComputeMD5" = "[^]" 130 "ComputeMD5.data" = "rawptr" 131 "ComputeSHA1" = "[^]" 132 "ComputeSHA1.data" = "rawptr" 133 134 "IsGamepadButtonPressed.button" = "GamepadButton" 135 "IsGamepadButtonDown.button" = "GamepadButton" 136 "IsGamepadButtonReleased.button" = "GamepadButton" 137 "IsGamepadButtonUp.button" = "GamepadButton" 138 "GetGamepadButtonPressed" = "GamepadButton" 139 "GetGamepadAxisMovement.axis" = "GamepadAxis" 140 141 "SetMouseCursor.cursor" = "MouseCursor" 142 143 "UpdateCamera.mode" = "CameraMode" 144 145 "DrawLineStrip.points" = "[^]" 146 "DrawTriangleFan.points" = "[^]" 147 "DrawTriangleStrip.points" = "[^]" 148 149 "DrawSplineLinear.points" = "[^]" 150 "DrawSplineBasis.points" = "[^]" 151 "DrawSplineCatmullRom.points" = "[^]" 152 "DrawSplineBezierQuadratic.points" = "[^]" 153 "DrawSplineBezierCubic.points" = "[^]" 154 155 "CheckCollisionLines.collisionPoint" = "[^]" 156 157 "ExportImageToMemory" = "rawptr" 158 159 "UnloadImageColors.colors" = "[^]" 160 "UnloadImagePalette.colors" = "[^]" 161 162 "ImageDrawTriangleFan.points" = "[^]" 163 "ImageDrawTriangleStrip.points" = "[^]" 164 165 "GetPixelColor.format" = "PixelFormat" 166 "SetPixelColor.format" = "PixelFormat" 167 "GetPixelDataSize.format" = "PixelFormat" 168 169 "LoadFontEx.codepoints" = "[^]rune" 170 "LoadFontFromMemory.codepoints" = "[^]rune" 171 "LoadFontData.codepoints" = "[^]rune" 172 "LoadFontData" = "[^]" 173 174 "GenImageFontAtlas.glyphs" = "[^]" 175 "GenImageFontAtlas.glyphRecs" = "^[^]Rectangle" 176 "UnloadFontData.glyphs" = "[^]" 177 178 "DrawTextCodepoints.codepoints" = "[^]" 179 180 "LoadUTF8.codepoints" = "[^]rune" 181 "LoadUTF8" = "[^]u8" 182 "UnloadUTF8.text" = "[^]u8" 183 "LoadCodepoints" = "[^]rune" 184 "UnloadCodepoints.codepoints" = "[^]rune" 185 "GetCodepoint" = "rune" 186 "GetCodepointNext" = "rune" 187 "GetCodepointPrevious" = "rune" 188 "CodepointToUTF8.codepoint" = "rune" 189 190 "TextCopy.dst" = "[^]u8" 191 "TextInsert" = "[^]u8" 192 "TextReplace" = "[^]u8" 193 "TextReplace.text" = "[^]u8" 194 "TextJoin.textList" = "[^]" 195 "TextSplit" = "[^]" 196 "TextAppend.text" = "[^]u8" 197 198 "DrawTriangleStrip3D.points" = "[^]" 199 200 "DrawMeshInstanced.transforms" = "[^]" 201 202 "LoadMaterials" = "[^]" 203 204 "LoadModelAnimations" = "[^]" 205 "UnloadModelAnimations.animations" = "[^]" 206 207 "LoadWaveFromMemory.fileData" = "rawptr" 208 "LoadWaveSamples" = "[^]" 209 "UnloadWaveSamples.samples" = "[^]" 210 211 "LoadMusicStreamFromMemory.data" = "rawptr" 212 } 213 214 procedures_at_end = true 215 216 remove = [ 217 "MemFree", 218 "IsGestureDetected", 219 "GetGestureDetected", 220 "IsWindowState", 221 "TextFormat", 222 "rAudioBuffer", 223 "rAudioProcessor", 224 ]