| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- #include "BsScriptAutoExposureSettings.generated.h"
- #include "BsMonoMethod.h"
- #include "BsMonoClass.h"
- #include "BsMonoUtil.h"
- #include "../../../bsf/Source/Foundation/bsfCore/Renderer/BsRenderSettings.h"
- namespace bs
- {
- ScriptAutoExposureSettings::ScriptAutoExposureSettings(MonoObject* managedInstance, const SPtr<AutoExposureSettings>& value)
- :ScriptObject(managedInstance), mInternal(value)
- {
- }
- void ScriptAutoExposureSettings::initRuntimeData()
- {
- metaData.scriptClass->addInternalCall("Internal_AutoExposureSettings", (void*)&ScriptAutoExposureSettings::Internal_AutoExposureSettings);
- metaData.scriptClass->addInternalCall("Internal_gethistogramLog2Min", (void*)&ScriptAutoExposureSettings::Internal_gethistogramLog2Min);
- metaData.scriptClass->addInternalCall("Internal_sethistogramLog2Min", (void*)&ScriptAutoExposureSettings::Internal_sethistogramLog2Min);
- metaData.scriptClass->addInternalCall("Internal_gethistogramLog2Max", (void*)&ScriptAutoExposureSettings::Internal_gethistogramLog2Max);
- metaData.scriptClass->addInternalCall("Internal_sethistogramLog2Max", (void*)&ScriptAutoExposureSettings::Internal_sethistogramLog2Max);
- metaData.scriptClass->addInternalCall("Internal_gethistogramPctLow", (void*)&ScriptAutoExposureSettings::Internal_gethistogramPctLow);
- metaData.scriptClass->addInternalCall("Internal_sethistogramPctLow", (void*)&ScriptAutoExposureSettings::Internal_sethistogramPctLow);
- metaData.scriptClass->addInternalCall("Internal_gethistogramPctHigh", (void*)&ScriptAutoExposureSettings::Internal_gethistogramPctHigh);
- metaData.scriptClass->addInternalCall("Internal_sethistogramPctHigh", (void*)&ScriptAutoExposureSettings::Internal_sethistogramPctHigh);
- metaData.scriptClass->addInternalCall("Internal_getminEyeAdaptation", (void*)&ScriptAutoExposureSettings::Internal_getminEyeAdaptation);
- metaData.scriptClass->addInternalCall("Internal_setminEyeAdaptation", (void*)&ScriptAutoExposureSettings::Internal_setminEyeAdaptation);
- metaData.scriptClass->addInternalCall("Internal_getmaxEyeAdaptation", (void*)&ScriptAutoExposureSettings::Internal_getmaxEyeAdaptation);
- metaData.scriptClass->addInternalCall("Internal_setmaxEyeAdaptation", (void*)&ScriptAutoExposureSettings::Internal_setmaxEyeAdaptation);
- metaData.scriptClass->addInternalCall("Internal_geteyeAdaptationSpeedUp", (void*)&ScriptAutoExposureSettings::Internal_geteyeAdaptationSpeedUp);
- metaData.scriptClass->addInternalCall("Internal_seteyeAdaptationSpeedUp", (void*)&ScriptAutoExposureSettings::Internal_seteyeAdaptationSpeedUp);
- metaData.scriptClass->addInternalCall("Internal_geteyeAdaptationSpeedDown", (void*)&ScriptAutoExposureSettings::Internal_geteyeAdaptationSpeedDown);
- metaData.scriptClass->addInternalCall("Internal_seteyeAdaptationSpeedDown", (void*)&ScriptAutoExposureSettings::Internal_seteyeAdaptationSpeedDown);
- }
- MonoObject* ScriptAutoExposureSettings::create(const SPtr<AutoExposureSettings>& value)
- {
- if(value == nullptr) return nullptr;
- bool dummy = false;
- void* ctorParams[1] = { &dummy };
- MonoObject* managedInstance = metaData.scriptClass->createInstance("bool", ctorParams);
- new (bs_alloc<ScriptAutoExposureSettings>()) ScriptAutoExposureSettings(managedInstance, value);
- return managedInstance;
- }
- void ScriptAutoExposureSettings::Internal_AutoExposureSettings(MonoObject* managedInstance)
- {
- SPtr<AutoExposureSettings> instance = bs_shared_ptr_new<AutoExposureSettings>();
- new (bs_alloc<ScriptAutoExposureSettings>())ScriptAutoExposureSettings(managedInstance, instance);
- }
- float ScriptAutoExposureSettings::Internal_gethistogramLog2Min(ScriptAutoExposureSettings* thisPtr)
- {
- float tmp__output;
- tmp__output = thisPtr->getInternal()->histogramLog2Min;
- float __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptAutoExposureSettings::Internal_sethistogramLog2Min(ScriptAutoExposureSettings* thisPtr, float value)
- {
- thisPtr->getInternal()->histogramLog2Min = value;
- }
- float ScriptAutoExposureSettings::Internal_gethistogramLog2Max(ScriptAutoExposureSettings* thisPtr)
- {
- float tmp__output;
- tmp__output = thisPtr->getInternal()->histogramLog2Max;
- float __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptAutoExposureSettings::Internal_sethistogramLog2Max(ScriptAutoExposureSettings* thisPtr, float value)
- {
- thisPtr->getInternal()->histogramLog2Max = value;
- }
- float ScriptAutoExposureSettings::Internal_gethistogramPctLow(ScriptAutoExposureSettings* thisPtr)
- {
- float tmp__output;
- tmp__output = thisPtr->getInternal()->histogramPctLow;
- float __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptAutoExposureSettings::Internal_sethistogramPctLow(ScriptAutoExposureSettings* thisPtr, float value)
- {
- thisPtr->getInternal()->histogramPctLow = value;
- }
- float ScriptAutoExposureSettings::Internal_gethistogramPctHigh(ScriptAutoExposureSettings* thisPtr)
- {
- float tmp__output;
- tmp__output = thisPtr->getInternal()->histogramPctHigh;
- float __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptAutoExposureSettings::Internal_sethistogramPctHigh(ScriptAutoExposureSettings* thisPtr, float value)
- {
- thisPtr->getInternal()->histogramPctHigh = value;
- }
- float ScriptAutoExposureSettings::Internal_getminEyeAdaptation(ScriptAutoExposureSettings* thisPtr)
- {
- float tmp__output;
- tmp__output = thisPtr->getInternal()->minEyeAdaptation;
- float __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptAutoExposureSettings::Internal_setminEyeAdaptation(ScriptAutoExposureSettings* thisPtr, float value)
- {
- thisPtr->getInternal()->minEyeAdaptation = value;
- }
- float ScriptAutoExposureSettings::Internal_getmaxEyeAdaptation(ScriptAutoExposureSettings* thisPtr)
- {
- float tmp__output;
- tmp__output = thisPtr->getInternal()->maxEyeAdaptation;
- float __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptAutoExposureSettings::Internal_setmaxEyeAdaptation(ScriptAutoExposureSettings* thisPtr, float value)
- {
- thisPtr->getInternal()->maxEyeAdaptation = value;
- }
- float ScriptAutoExposureSettings::Internal_geteyeAdaptationSpeedUp(ScriptAutoExposureSettings* thisPtr)
- {
- float tmp__output;
- tmp__output = thisPtr->getInternal()->eyeAdaptationSpeedUp;
- float __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptAutoExposureSettings::Internal_seteyeAdaptationSpeedUp(ScriptAutoExposureSettings* thisPtr, float value)
- {
- thisPtr->getInternal()->eyeAdaptationSpeedUp = value;
- }
- float ScriptAutoExposureSettings::Internal_geteyeAdaptationSpeedDown(ScriptAutoExposureSettings* thisPtr)
- {
- float tmp__output;
- tmp__output = thisPtr->getInternal()->eyeAdaptationSpeedDown;
- float __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptAutoExposureSettings::Internal_seteyeAdaptationSpeedDown(ScriptAutoExposureSettings* thisPtr, float value)
- {
- thisPtr->getInternal()->eyeAdaptationSpeedDown = value;
- }
- }
|