godot_videodecoder.gen.go 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. // Copyright © 2019 - 2020 Oscar Campos <oscar.campos@thepimpam.com>
  2. // Copyright © 2017 - William Edwards
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. package gdnative
  16. // ==================================================================
  17. // This file was autogenerated by PimPam GDNative-Go binding tools
  18. // Please do not modify this file, any change will be lost
  19. // ==================================================================
  20. /*
  21. #include "gdnative.gen.h"
  22. #include <videodecoder/godot_videodecoder.h>
  23. // Include all headers for now. TODO: Look up all the required
  24. // headers we need to import based on the method arguments and return types.
  25. #include <gdnative/aabb.h>
  26. #include <gdnative/array.h>
  27. #include <gdnative/basis.h>
  28. #include <gdnative/color.h>
  29. #include <gdnative/dictionary.h>
  30. #include <gdnative/gdnative.h>
  31. #include <gdnative/node_path.h>
  32. #include <gdnative/plane.h>
  33. #include <gdnative/pool_arrays.h>
  34. #include <gdnative/quat.h>
  35. #include <gdnative/rect2.h>
  36. #include <gdnative/rid.h>
  37. #include <gdnative/string.h>
  38. #include <gdnative/string_name.h>
  39. #include <gdnative/transform.h>
  40. #include <gdnative/transform2d.h>
  41. #include <gdnative/variant.h>
  42. #include <gdnative/vector2.h>
  43. #include <gdnative/vector3.h>
  44. #include <gdnative_api_struct.gen.h>
  45. */
  46. import "C"
  47. import "unsafe"
  48. // NewEmptyVideodecoderInterfaceGdnative will return a pointer to an empty
  49. // initialized VideodecoderInterfaceGdnative. This is primarily used in
  50. // conjunction with MethodBindPtrCall.
  51. func NewEmptyVideodecoderInterfaceGdnative() Pointer {
  52. var obj C.godot_videodecoder_interface_gdnative
  53. return Pointer{base: unsafe.Pointer(&obj)}
  54. }
  55. // NewPointerFromVideodecoderInterfaceGdnative will return an unsafe pointer to the given
  56. // object. This is primarily used in conjunction with MethodBindPtrCall.
  57. func NewPointerFromVideodecoderInterfaceGdnative(obj VideodecoderInterfaceGdnative) Pointer {
  58. return Pointer{base: unsafe.Pointer(obj.getBase())}
  59. }
  60. // NewVideodecoderInterfaceGdnativeFromPointer will return a VideodecoderInterfaceGdnative from the
  61. // given unsafe pointer. This is primarily used in conjunction with MethodBindPtrCall.
  62. func NewVideodecoderInterfaceGdnativeFromPointer(ptr Pointer) VideodecoderInterfaceGdnative {
  63. return VideodecoderInterfaceGdnative{base: (*C.godot_videodecoder_interface_gdnative)(ptr.getBase())}
  64. }
  65. // VideodecoderInterfaceGdnative data structure wrapper
  66. type VideodecoderInterfaceGdnative struct {
  67. base *C.godot_videodecoder_interface_gdnative
  68. Version GdnativeApiVersion
  69. }
  70. // returns the wrapped C base data type for this type
  71. func (gdt VideodecoderInterfaceGdnative) getBase() *C.godot_videodecoder_interface_gdnative {
  72. return gdt.base
  73. }