arvr.gen.c 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. #include "gdnative.gen.h"
  16. #include <gdnative/aabb.h>
  17. #include <gdnative/array.h>
  18. #include <gdnative/basis.h>
  19. #include <gdnative/color.h>
  20. #include <gdnative/dictionary.h>
  21. #include <gdnative/gdnative.h>
  22. #include <gdnative/node_path.h>
  23. #include <gdnative/plane.h>
  24. #include <gdnative/pool_arrays.h>
  25. #include <gdnative/quat.h>
  26. #include <gdnative/rect2.h>
  27. #include <gdnative/rid.h>
  28. #include <gdnative/string.h>
  29. #include <gdnative/string_name.h>
  30. #include <gdnative/transform.h>
  31. #include <gdnative/transform2d.h>
  32. #include <gdnative/variant.h>
  33. #include <gdnative/vector2.h>
  34. #include <gdnative/vector3.h>
  35. #include <gdnative_api_struct.gen.h>
  36. /*------------------------------------------------------------------------------
  37. // This file was autogenerated by PimPam GDNative-Go binding tools
  38. // Please do not modify this file, any change will be lost
  39. //----------------------------------------------------------------------------*/
  40. /* GDNative ARVR 1.1 */
  41. void go_godot_arvr_register_interface(godot_gdnative_ext_arvr_api_struct * p_api, const godot_arvr_interface_gdnative * p_interface) {
  42. p_api->godot_arvr_register_interface(p_interface);
  43. }
  44. godot_real go_godot_arvr_get_worldscale(godot_gdnative_ext_arvr_api_struct * p_api) {
  45. return p_api->godot_arvr_get_worldscale();
  46. }
  47. godot_transform go_godot_arvr_get_reference_frame(godot_gdnative_ext_arvr_api_struct * p_api) {
  48. return p_api->godot_arvr_get_reference_frame();
  49. }
  50. void go_godot_arvr_blit(godot_gdnative_ext_arvr_api_struct * p_api, int p_eye, godot_rid * p_render_target, godot_rect2 * p_screen_rect) {
  51. p_api->godot_arvr_blit(p_eye, p_render_target, p_screen_rect);
  52. }
  53. godot_int go_godot_arvr_get_texid(godot_gdnative_ext_arvr_api_struct * p_api, godot_rid * p_render_target) {
  54. return p_api->godot_arvr_get_texid(p_render_target);
  55. }
  56. godot_int go_godot_arvr_add_controller(godot_gdnative_ext_arvr_api_struct * p_api, char * p_device_name, godot_int p_hand, godot_bool p_tracks_orientation, godot_bool p_tracks_position) {
  57. return p_api->godot_arvr_add_controller(p_device_name, p_hand, p_tracks_orientation, p_tracks_position);
  58. }
  59. void go_godot_arvr_remove_controller(godot_gdnative_ext_arvr_api_struct * p_api, godot_int p_controller_id) {
  60. p_api->godot_arvr_remove_controller(p_controller_id);
  61. }
  62. void go_godot_arvr_set_controller_transform(godot_gdnative_ext_arvr_api_struct * p_api, godot_int p_controller_id, godot_transform * p_transform, godot_bool p_tracks_orientation, godot_bool p_tracks_position) {
  63. p_api->godot_arvr_set_controller_transform(p_controller_id, p_transform, p_tracks_orientation, p_tracks_position);
  64. }
  65. void go_godot_arvr_set_controller_button(godot_gdnative_ext_arvr_api_struct * p_api, godot_int p_controller_id, godot_int p_button, godot_bool p_is_pressed) {
  66. p_api->godot_arvr_set_controller_button(p_controller_id, p_button, p_is_pressed);
  67. }
  68. void go_godot_arvr_set_controller_axis(godot_gdnative_ext_arvr_api_struct * p_api, godot_int p_controller_id, godot_int p_exis, godot_real p_value, godot_bool p_can_be_negative) {
  69. p_api->godot_arvr_set_controller_axis(p_controller_id, p_exis, p_value, p_can_be_negative);
  70. }
  71. godot_real go_godot_arvr_get_controller_rumble(godot_gdnative_ext_arvr_api_struct * p_api, godot_int p_controller_id) {
  72. return p_api->godot_arvr_get_controller_rumble(p_controller_id);
  73. }