// Copyright © 2019 - 2020 Oscar Campos // Copyright © 2017 - William Edwards // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package gdnative // ================================================================== // This file was autogenerated by PimPam GDNative-Go binding tools // Please do not modify this file, any change will be lost // ================================================================== /* #include "gdnative.gen.h" #include // Include all headers for now. TODO: Look up all the required // headers we need to import based on the method arguments and return types. #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include */ import "C" import "unsafe" // NewEmptyVideodecoderInterfaceGdnative will return a pointer to an empty // initialized VideodecoderInterfaceGdnative. This is primarily used in // conjunction with MethodBindPtrCall. func NewEmptyVideodecoderInterfaceGdnative() Pointer { var obj C.godot_videodecoder_interface_gdnative return Pointer{base: unsafe.Pointer(&obj)} } // NewPointerFromVideodecoderInterfaceGdnative will return an unsafe pointer to the given // object. This is primarily used in conjunction with MethodBindPtrCall. func NewPointerFromVideodecoderInterfaceGdnative(obj VideodecoderInterfaceGdnative) Pointer { return Pointer{base: unsafe.Pointer(obj.getBase())} } // NewVideodecoderInterfaceGdnativeFromPointer will return a VideodecoderInterfaceGdnative from the // given unsafe pointer. This is primarily used in conjunction with MethodBindPtrCall. func NewVideodecoderInterfaceGdnativeFromPointer(ptr Pointer) VideodecoderInterfaceGdnative { return VideodecoderInterfaceGdnative{base: (*C.godot_videodecoder_interface_gdnative)(ptr.getBase())} } // VideodecoderInterfaceGdnative data structure wrapper type VideodecoderInterfaceGdnative struct { base *C.godot_videodecoder_interface_gdnative Version GdnativeApiVersion } // returns the wrapped C base data type for this type func (gdt VideodecoderInterfaceGdnative) getBase() *C.godot_videodecoder_interface_gdnative { return gdt.base }