BsScriptDepthOfFieldSettings.generated.cpp 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. #include "BsScriptDepthOfFieldSettings.generated.h"
  2. #include "BsMonoMethod.h"
  3. #include "BsMonoClass.h"
  4. #include "BsMonoUtil.h"
  5. #include "../../../bsf/Source/Foundation/bsfCore/Renderer/BsRenderSettings.h"
  6. namespace bs
  7. {
  8. ScriptDepthOfFieldSettings::ScriptDepthOfFieldSettings(MonoObject* managedInstance, const SPtr<DepthOfFieldSettings>& value)
  9. :ScriptObject(managedInstance), mInternal(value)
  10. {
  11. }
  12. void ScriptDepthOfFieldSettings::initRuntimeData()
  13. {
  14. metaData.scriptClass->addInternalCall("Internal_DepthOfFieldSettings", (void*)&ScriptDepthOfFieldSettings::Internal_DepthOfFieldSettings);
  15. metaData.scriptClass->addInternalCall("Internal_getenabled", (void*)&ScriptDepthOfFieldSettings::Internal_getenabled);
  16. metaData.scriptClass->addInternalCall("Internal_setenabled", (void*)&ScriptDepthOfFieldSettings::Internal_setenabled);
  17. metaData.scriptClass->addInternalCall("Internal_getfocalDistance", (void*)&ScriptDepthOfFieldSettings::Internal_getfocalDistance);
  18. metaData.scriptClass->addInternalCall("Internal_setfocalDistance", (void*)&ScriptDepthOfFieldSettings::Internal_setfocalDistance);
  19. metaData.scriptClass->addInternalCall("Internal_getfocalRange", (void*)&ScriptDepthOfFieldSettings::Internal_getfocalRange);
  20. metaData.scriptClass->addInternalCall("Internal_setfocalRange", (void*)&ScriptDepthOfFieldSettings::Internal_setfocalRange);
  21. metaData.scriptClass->addInternalCall("Internal_getnearTransitionRange", (void*)&ScriptDepthOfFieldSettings::Internal_getnearTransitionRange);
  22. metaData.scriptClass->addInternalCall("Internal_setnearTransitionRange", (void*)&ScriptDepthOfFieldSettings::Internal_setnearTransitionRange);
  23. metaData.scriptClass->addInternalCall("Internal_getfarTransitionRange", (void*)&ScriptDepthOfFieldSettings::Internal_getfarTransitionRange);
  24. metaData.scriptClass->addInternalCall("Internal_setfarTransitionRange", (void*)&ScriptDepthOfFieldSettings::Internal_setfarTransitionRange);
  25. metaData.scriptClass->addInternalCall("Internal_getnearBlurAmount", (void*)&ScriptDepthOfFieldSettings::Internal_getnearBlurAmount);
  26. metaData.scriptClass->addInternalCall("Internal_setnearBlurAmount", (void*)&ScriptDepthOfFieldSettings::Internal_setnearBlurAmount);
  27. metaData.scriptClass->addInternalCall("Internal_getfarBlurAmount", (void*)&ScriptDepthOfFieldSettings::Internal_getfarBlurAmount);
  28. metaData.scriptClass->addInternalCall("Internal_setfarBlurAmount", (void*)&ScriptDepthOfFieldSettings::Internal_setfarBlurAmount);
  29. }
  30. MonoObject* ScriptDepthOfFieldSettings::create(const SPtr<DepthOfFieldSettings>& value)
  31. {
  32. if(value == nullptr) return nullptr;
  33. bool dummy = false;
  34. void* ctorParams[1] = { &dummy };
  35. MonoObject* managedInstance = metaData.scriptClass->createInstance("bool", ctorParams);
  36. new (bs_alloc<ScriptDepthOfFieldSettings>()) ScriptDepthOfFieldSettings(managedInstance, value);
  37. return managedInstance;
  38. }
  39. void ScriptDepthOfFieldSettings::Internal_DepthOfFieldSettings(MonoObject* managedInstance)
  40. {
  41. SPtr<DepthOfFieldSettings> instance = bs_shared_ptr_new<DepthOfFieldSettings>();
  42. new (bs_alloc<ScriptDepthOfFieldSettings>())ScriptDepthOfFieldSettings(managedInstance, instance);
  43. }
  44. bool ScriptDepthOfFieldSettings::Internal_getenabled(ScriptDepthOfFieldSettings* thisPtr)
  45. {
  46. bool tmp__output;
  47. tmp__output = thisPtr->getInternal()->enabled;
  48. bool __output;
  49. __output = tmp__output;
  50. return __output;
  51. }
  52. void ScriptDepthOfFieldSettings::Internal_setenabled(ScriptDepthOfFieldSettings* thisPtr, bool value)
  53. {
  54. thisPtr->getInternal()->enabled = value;
  55. }
  56. float ScriptDepthOfFieldSettings::Internal_getfocalDistance(ScriptDepthOfFieldSettings* thisPtr)
  57. {
  58. float tmp__output;
  59. tmp__output = thisPtr->getInternal()->focalDistance;
  60. float __output;
  61. __output = tmp__output;
  62. return __output;
  63. }
  64. void ScriptDepthOfFieldSettings::Internal_setfocalDistance(ScriptDepthOfFieldSettings* thisPtr, float value)
  65. {
  66. thisPtr->getInternal()->focalDistance = value;
  67. }
  68. float ScriptDepthOfFieldSettings::Internal_getfocalRange(ScriptDepthOfFieldSettings* thisPtr)
  69. {
  70. float tmp__output;
  71. tmp__output = thisPtr->getInternal()->focalRange;
  72. float __output;
  73. __output = tmp__output;
  74. return __output;
  75. }
  76. void ScriptDepthOfFieldSettings::Internal_setfocalRange(ScriptDepthOfFieldSettings* thisPtr, float value)
  77. {
  78. thisPtr->getInternal()->focalRange = value;
  79. }
  80. float ScriptDepthOfFieldSettings::Internal_getnearTransitionRange(ScriptDepthOfFieldSettings* thisPtr)
  81. {
  82. float tmp__output;
  83. tmp__output = thisPtr->getInternal()->nearTransitionRange;
  84. float __output;
  85. __output = tmp__output;
  86. return __output;
  87. }
  88. void ScriptDepthOfFieldSettings::Internal_setnearTransitionRange(ScriptDepthOfFieldSettings* thisPtr, float value)
  89. {
  90. thisPtr->getInternal()->nearTransitionRange = value;
  91. }
  92. float ScriptDepthOfFieldSettings::Internal_getfarTransitionRange(ScriptDepthOfFieldSettings* thisPtr)
  93. {
  94. float tmp__output;
  95. tmp__output = thisPtr->getInternal()->farTransitionRange;
  96. float __output;
  97. __output = tmp__output;
  98. return __output;
  99. }
  100. void ScriptDepthOfFieldSettings::Internal_setfarTransitionRange(ScriptDepthOfFieldSettings* thisPtr, float value)
  101. {
  102. thisPtr->getInternal()->farTransitionRange = value;
  103. }
  104. float ScriptDepthOfFieldSettings::Internal_getnearBlurAmount(ScriptDepthOfFieldSettings* thisPtr)
  105. {
  106. float tmp__output;
  107. tmp__output = thisPtr->getInternal()->nearBlurAmount;
  108. float __output;
  109. __output = tmp__output;
  110. return __output;
  111. }
  112. void ScriptDepthOfFieldSettings::Internal_setnearBlurAmount(ScriptDepthOfFieldSettings* thisPtr, float value)
  113. {
  114. thisPtr->getInternal()->nearBlurAmount = value;
  115. }
  116. float ScriptDepthOfFieldSettings::Internal_getfarBlurAmount(ScriptDepthOfFieldSettings* thisPtr)
  117. {
  118. float tmp__output;
  119. tmp__output = thisPtr->getInternal()->farBlurAmount;
  120. float __output;
  121. __output = tmp__output;
  122. return __output;
  123. }
  124. void ScriptDepthOfFieldSettings::Internal_setfarBlurAmount(ScriptDepthOfFieldSettings* thisPtr, float value)
  125. {
  126. thisPtr->getInternal()->farBlurAmount = value;
  127. }
  128. }