Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
3.3KB

  1. // Copyright 2021 Jean Pierre Cimalando
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. //
  15. // SPDX-License-Identifier: Apache-2.0
  16. //
  17. #pragma once
  18. #include "ysfx_eel_utils.hpp"
  19. static EEL_F NSEEL_CGEN_CALL ysfx_api_gfx_stub_varparm(void *, INT_PTR, EEL_F **)
  20. {
  21. return 0;
  22. }
  23. static EEL_F *NSEEL_CGEN_CALL ysfx_api_gfx_stub_retptr1(void *, EEL_F *arg)
  24. {
  25. return arg;
  26. }
  27. static EEL_F *NSEEL_CGEN_CALL ysfx_api_gfx_stub_retptr2(void *, EEL_F *arg, EEL_F *)
  28. {
  29. return arg;
  30. }
  31. static EEL_F *NSEEL_CGEN_CALL ysfx_api_gfx_stub_retptr3(void *, EEL_F *arg, EEL_F *, EEL_F *)
  32. {
  33. return arg;
  34. }
  35. static EEL_F NSEEL_CGEN_CALL ysfx_api_gfx_stub_retval1(void *, EEL_F *)
  36. {
  37. return 0;
  38. }
  39. static EEL_F NSEEL_CGEN_CALL ysfx_api_gfx_stub_retval2(void *, EEL_F *, EEL_F *)
  40. {
  41. return 0;
  42. }
  43. static EEL_F NSEEL_CGEN_CALL ysfx_api_gfx_stub_retval3(void *, EEL_F *, EEL_F *, EEL_F *)
  44. {
  45. return 0;
  46. }
  47. #define ysfx_api_gfx_lineto ysfx_api_gfx_stub_retptr3
  48. #define ysfx_api_gfx_lineto2 ysfx_api_gfx_stub_retptr2
  49. #define ysfx_api_gfx_rectto ysfx_api_gfx_stub_retptr2
  50. #define ysfx_api_gfx_rect ysfx_api_gfx_stub_varparm
  51. #define ysfx_api_gfx_line ysfx_api_gfx_stub_varparm
  52. #define ysfx_api_gfx_gradrect ysfx_api_gfx_stub_varparm
  53. #define ysfx_api_gfx_muladdrect ysfx_api_gfx_stub_varparm
  54. #define ysfx_api_gfx_deltablit ysfx_api_gfx_stub_varparm
  55. #define ysfx_api_gfx_transformblit ysfx_api_gfx_stub_varparm
  56. #define ysfx_api_gfx_circle ysfx_api_gfx_stub_varparm
  57. #define ysfx_api_gfx_triangle ysfx_api_gfx_stub_varparm
  58. #define ysfx_api_gfx_roundrect ysfx_api_gfx_stub_varparm
  59. #define ysfx_api_gfx_arc ysfx_api_gfx_stub_varparm
  60. #define ysfx_api_gfx_blurto ysfx_api_gfx_stub_retptr2
  61. #define ysfx_api_gfx_showmenu ysfx_api_gfx_stub_varparm
  62. #define ysfx_api_gfx_setcursor ysfx_api_gfx_stub_varparm
  63. #define ysfx_api_gfx_drawnumber ysfx_api_gfx_stub_retptr2
  64. #define ysfx_api_gfx_drawchar ysfx_api_gfx_stub_retptr1
  65. #define ysfx_api_gfx_drawstr ysfx_api_gfx_stub_varparm
  66. #define ysfx_api_gfx_measurestr ysfx_api_gfx_stub_retptr3
  67. #define ysfx_api_gfx_measurechar ysfx_api_gfx_stub_retptr3
  68. #define ysfx_api_gfx_printf ysfx_api_gfx_stub_varparm
  69. #define ysfx_api_gfx_setpixel ysfx_api_gfx_stub_retptr3
  70. #define ysfx_api_gfx_getpixel ysfx_api_gfx_stub_retptr3
  71. #define ysfx_api_gfx_getimgdim ysfx_api_gfx_stub_retptr3
  72. #define ysfx_api_gfx_setimgdim ysfx_api_gfx_stub_retval3
  73. #define ysfx_api_gfx_loadimg ysfx_api_gfx_stub_retval2
  74. #define ysfx_api_gfx_blitext ysfx_api_gfx_stub_retptr3
  75. #define ysfx_api_gfx_blit2 ysfx_api_gfx_stub_varparm
  76. #define ysfx_api_gfx_setfont ysfx_api_gfx_stub_varparm
  77. #define ysfx_api_gfx_getfont ysfx_api_gfx_stub_varparm
  78. #define ysfx_api_gfx_set ysfx_api_gfx_stub_varparm
  79. #define ysfx_api_gfx_getdropfile ysfx_api_gfx_stub_varparm
  80. #define ysfx_api_gfx_getsyscol ysfx_api_gfx_stub_varparm
  81. #define ysfx_api_gfx_getchar ysfx_api_gfx_stub_retval1