BsScriptAutoExposureSettings.generated.cpp 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. #include "BsScriptAutoExposureSettings.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. ScriptAutoExposureSettings::ScriptAutoExposureSettings(MonoObject* managedInstance, const SPtr<AutoExposureSettings>& value)
  9. :ScriptObject(managedInstance), mInternal(value)
  10. {
  11. }
  12. void ScriptAutoExposureSettings::initRuntimeData()
  13. {
  14. metaData.scriptClass->addInternalCall("Internal_AutoExposureSettings", (void*)&ScriptAutoExposureSettings::Internal_AutoExposureSettings);
  15. metaData.scriptClass->addInternalCall("Internal_gethistogramLog2Min", (void*)&ScriptAutoExposureSettings::Internal_gethistogramLog2Min);
  16. metaData.scriptClass->addInternalCall("Internal_sethistogramLog2Min", (void*)&ScriptAutoExposureSettings::Internal_sethistogramLog2Min);
  17. metaData.scriptClass->addInternalCall("Internal_gethistogramLog2Max", (void*)&ScriptAutoExposureSettings::Internal_gethistogramLog2Max);
  18. metaData.scriptClass->addInternalCall("Internal_sethistogramLog2Max", (void*)&ScriptAutoExposureSettings::Internal_sethistogramLog2Max);
  19. metaData.scriptClass->addInternalCall("Internal_gethistogramPctLow", (void*)&ScriptAutoExposureSettings::Internal_gethistogramPctLow);
  20. metaData.scriptClass->addInternalCall("Internal_sethistogramPctLow", (void*)&ScriptAutoExposureSettings::Internal_sethistogramPctLow);
  21. metaData.scriptClass->addInternalCall("Internal_gethistogramPctHigh", (void*)&ScriptAutoExposureSettings::Internal_gethistogramPctHigh);
  22. metaData.scriptClass->addInternalCall("Internal_sethistogramPctHigh", (void*)&ScriptAutoExposureSettings::Internal_sethistogramPctHigh);
  23. metaData.scriptClass->addInternalCall("Internal_getminEyeAdaptation", (void*)&ScriptAutoExposureSettings::Internal_getminEyeAdaptation);
  24. metaData.scriptClass->addInternalCall("Internal_setminEyeAdaptation", (void*)&ScriptAutoExposureSettings::Internal_setminEyeAdaptation);
  25. metaData.scriptClass->addInternalCall("Internal_getmaxEyeAdaptation", (void*)&ScriptAutoExposureSettings::Internal_getmaxEyeAdaptation);
  26. metaData.scriptClass->addInternalCall("Internal_setmaxEyeAdaptation", (void*)&ScriptAutoExposureSettings::Internal_setmaxEyeAdaptation);
  27. metaData.scriptClass->addInternalCall("Internal_geteyeAdaptationSpeedUp", (void*)&ScriptAutoExposureSettings::Internal_geteyeAdaptationSpeedUp);
  28. metaData.scriptClass->addInternalCall("Internal_seteyeAdaptationSpeedUp", (void*)&ScriptAutoExposureSettings::Internal_seteyeAdaptationSpeedUp);
  29. metaData.scriptClass->addInternalCall("Internal_geteyeAdaptationSpeedDown", (void*)&ScriptAutoExposureSettings::Internal_geteyeAdaptationSpeedDown);
  30. metaData.scriptClass->addInternalCall("Internal_seteyeAdaptationSpeedDown", (void*)&ScriptAutoExposureSettings::Internal_seteyeAdaptationSpeedDown);
  31. }
  32. MonoObject* ScriptAutoExposureSettings::create(const SPtr<AutoExposureSettings>& value)
  33. {
  34. if(value == nullptr) return nullptr;
  35. bool dummy = false;
  36. void* ctorParams[1] = { &dummy };
  37. MonoObject* managedInstance = metaData.scriptClass->createInstance("bool", ctorParams);
  38. new (bs_alloc<ScriptAutoExposureSettings>()) ScriptAutoExposureSettings(managedInstance, value);
  39. return managedInstance;
  40. }
  41. void ScriptAutoExposureSettings::Internal_AutoExposureSettings(MonoObject* managedInstance)
  42. {
  43. SPtr<AutoExposureSettings> instance = bs_shared_ptr_new<AutoExposureSettings>();
  44. new (bs_alloc<ScriptAutoExposureSettings>())ScriptAutoExposureSettings(managedInstance, instance);
  45. }
  46. float ScriptAutoExposureSettings::Internal_gethistogramLog2Min(ScriptAutoExposureSettings* thisPtr)
  47. {
  48. float tmp__output;
  49. tmp__output = thisPtr->getInternal()->histogramLog2Min;
  50. float __output;
  51. __output = tmp__output;
  52. return __output;
  53. }
  54. void ScriptAutoExposureSettings::Internal_sethistogramLog2Min(ScriptAutoExposureSettings* thisPtr, float value)
  55. {
  56. thisPtr->getInternal()->histogramLog2Min = value;
  57. }
  58. float ScriptAutoExposureSettings::Internal_gethistogramLog2Max(ScriptAutoExposureSettings* thisPtr)
  59. {
  60. float tmp__output;
  61. tmp__output = thisPtr->getInternal()->histogramLog2Max;
  62. float __output;
  63. __output = tmp__output;
  64. return __output;
  65. }
  66. void ScriptAutoExposureSettings::Internal_sethistogramLog2Max(ScriptAutoExposureSettings* thisPtr, float value)
  67. {
  68. thisPtr->getInternal()->histogramLog2Max = value;
  69. }
  70. float ScriptAutoExposureSettings::Internal_gethistogramPctLow(ScriptAutoExposureSettings* thisPtr)
  71. {
  72. float tmp__output;
  73. tmp__output = thisPtr->getInternal()->histogramPctLow;
  74. float __output;
  75. __output = tmp__output;
  76. return __output;
  77. }
  78. void ScriptAutoExposureSettings::Internal_sethistogramPctLow(ScriptAutoExposureSettings* thisPtr, float value)
  79. {
  80. thisPtr->getInternal()->histogramPctLow = value;
  81. }
  82. float ScriptAutoExposureSettings::Internal_gethistogramPctHigh(ScriptAutoExposureSettings* thisPtr)
  83. {
  84. float tmp__output;
  85. tmp__output = thisPtr->getInternal()->histogramPctHigh;
  86. float __output;
  87. __output = tmp__output;
  88. return __output;
  89. }
  90. void ScriptAutoExposureSettings::Internal_sethistogramPctHigh(ScriptAutoExposureSettings* thisPtr, float value)
  91. {
  92. thisPtr->getInternal()->histogramPctHigh = value;
  93. }
  94. float ScriptAutoExposureSettings::Internal_getminEyeAdaptation(ScriptAutoExposureSettings* thisPtr)
  95. {
  96. float tmp__output;
  97. tmp__output = thisPtr->getInternal()->minEyeAdaptation;
  98. float __output;
  99. __output = tmp__output;
  100. return __output;
  101. }
  102. void ScriptAutoExposureSettings::Internal_setminEyeAdaptation(ScriptAutoExposureSettings* thisPtr, float value)
  103. {
  104. thisPtr->getInternal()->minEyeAdaptation = value;
  105. }
  106. float ScriptAutoExposureSettings::Internal_getmaxEyeAdaptation(ScriptAutoExposureSettings* thisPtr)
  107. {
  108. float tmp__output;
  109. tmp__output = thisPtr->getInternal()->maxEyeAdaptation;
  110. float __output;
  111. __output = tmp__output;
  112. return __output;
  113. }
  114. void ScriptAutoExposureSettings::Internal_setmaxEyeAdaptation(ScriptAutoExposureSettings* thisPtr, float value)
  115. {
  116. thisPtr->getInternal()->maxEyeAdaptation = value;
  117. }
  118. float ScriptAutoExposureSettings::Internal_geteyeAdaptationSpeedUp(ScriptAutoExposureSettings* thisPtr)
  119. {
  120. float tmp__output;
  121. tmp__output = thisPtr->getInternal()->eyeAdaptationSpeedUp;
  122. float __output;
  123. __output = tmp__output;
  124. return __output;
  125. }
  126. void ScriptAutoExposureSettings::Internal_seteyeAdaptationSpeedUp(ScriptAutoExposureSettings* thisPtr, float value)
  127. {
  128. thisPtr->getInternal()->eyeAdaptationSpeedUp = value;
  129. }
  130. float ScriptAutoExposureSettings::Internal_geteyeAdaptationSpeedDown(ScriptAutoExposureSettings* thisPtr)
  131. {
  132. float tmp__output;
  133. tmp__output = thisPtr->getInternal()->eyeAdaptationSpeedDown;
  134. float __output;
  135. __output = tmp__output;
  136. return __output;
  137. }
  138. void ScriptAutoExposureSettings::Internal_seteyeAdaptationSpeedDown(ScriptAutoExposureSettings* thisPtr, float value)
  139. {
  140. thisPtr->getInternal()->eyeAdaptationSpeedDown = value;
  141. }
  142. }