10 ref class SpriteBatch;
11 ref class Manipulator;
12 ref class GameViewDrawHook;
32 m_ptr =
new std::shared_ptr<T>();
38 std::shared_ptr<T>*
m_ptr =
nullptr;
41 return m_ptr !=
nullptr &&
m_ptr->get() !=
nullptr;
51 GameView(
const std::shared_ptr<kmyGfx::GameView>& ptr);
53 kmyGfx::GameView*
getNativePtr() {
return obj ? (*obj).get() :
nullptr; }
55 void draw(
bool swapbuffer,
float timeScale);
56 void preDraw(
float timeScale, Action<float>^ startFixedUpdate, Action<float>^ afterAnimate, Action<float>^ afterSimulate);
69 void setViewport(
int x,
int y,
int width,
int height);
86 void setDofParam(
float focalDistance,
float focalRange,
float radius);
89 void getImage(
int x,
int y,
int w,
int h, array<UINT32> ^buffer);
90 void getDepth(
int x,
int y,
int w,
int h, array<float>^ buffer);
91 void getNormal(
int x,
int y,
int w,
int h, array<UINT32>^ buffer);
96 void setFogParam(f32 start, f32 depthDensity, f32 heightFallOff);
103 int pickupDetail(
float x,
float y, array<UINT16> ^idlist, array<SharpKmyMath::Vector3> ^wposlist, array<float> ^depthlist);
112 void pickupRect(
float left,
float top,
float right,
float bottom, System::Collections::Generic::List<UINT16>^ idlist,
bool ignoreTerrain,
bool ignoreManipulator);
196 bool _setSpriteBatch =
false;
198 bool _setCamera =
false;
201 bool _setDLPosture =
false;
203 bool _setDLColor =
false;
205 bool _setDLShadowColor =
false;
207 bool _setDLShadowVM =
false;
208 f32 _directionalLightShadowVolumeMargin;
209 bool _setDLShadowBias =
false;
210 f32 _directionalLightShadowBias;
211 bool _setDLShadowDistane =
false;
212 f32 _directionalLightShadowDistance;
213 bool _setCascadeStep =
false;
217 bool _setCascadeCount =
false;
218 int _cascadeCount = 4;
219 bool _setEnableCascadeViusalize =
false;
220 bool _enableCascadeVisualize =
false;
221 bool _setAmbientLight =
false;
223 bool _setViewport =
false;
228 bool _setViewportSize =
false;
229 int _viewportSizeWidth;
230 int _viewportSizeHeight;
231 bool _setDisplayID =
false;
232 unsigned int _displayID;
233 bool _setBackGroundColor =
false;
235 bool _setBloom =
false;
237 bool _setBloomParam =
false;
238 float _bloomParamApply;
239 float _bloomParamHilightThreshold;
240 bool _setAutoExposure =
false;
242 bool _setAutoExposureParam =
false;
243 float _autoExposureParamTargetBrightness;
244 float _autoExposureParamMinScale;
245 float _autoExposureParamMaxScale;
246 bool _setChromaticAbberation =
false;
247 bool _chromaticAbberation;
248 bool _setChromaticAbberationParam =
false;
249 float _chromaticAbberationParmSize;
250 bool _setDof =
false;
252 bool _setDofParam =
false;
253 float _dofParamSmoothStart;
254 float _dofParamSmoothRange;
255 float _dofParamRadius;
256 bool _setFxaa =
false;
258 bool _setReflectionMap =
false;
260 bool _setSkyBoxMaterial =
false;
261 System::Guid _skyBoxMaterial;
262 bool _setLutMap =
false;
263 System::Guid _lutMap;
264 bool _setFogColor =
false;
266 bool _setFogParam =
false;
268 f32 _fogParamDepthDensity;
269 f32 _fogParamHeightFallOff;
270 bool _setSSAOParam =
false;
271 f32 _ssaoParamRadius;
272 f32 _ssaoParamMinLimit;
273 f32 _ssaoParamMaxLimit;
274 f32 _ssaoParamShadowScle;
275 int _ssaoParamSampleCount;
276 f32 _ssaoParamContrast;
278 bool _setSSSSS =
false;
280 bool _setSSSSSParam =
false;
281 f32 _SSSSSParamRadius;
282 int _SSSSSParamSampleCount;
283 f32 _SSSSSParamApply;
284 bool _setShadowMapScale =
false;
285 float _shadowMapScale;
287 bool _setEnableVignette =
false;
288 bool _enableVignette;
289 bool _setVignette =
false;
291 bool _setIBLIntensity =
false;
293 bool _setBillboardLightModulation =
false;
294 float _billboardLightModulation;
295 bool _setReflectionIntensity =
false;
296 float _reflectionIntensity;
297 bool _setUsetDeferredLighting =
false;
298 bool _usetDeferredLighting;
300 bool _setSharpen =
false;
301 bool _sharpen =
false;
302 bool _setSharpenParam =
false;
303 float _sharpenParamStrength;
304 float _sharpenParamDistance;
306 void copy(settings% o)
308 _setSpriteBatch = o._setSpriteBatch;
309 _spriteBatch = o._spriteBatch;
310 _setCamera = o._setCamera;
311 _cameraProj = o._cameraProj;
312 _cameraView = o._cameraView;
313 _setDLPosture = o._setDLPosture;
314 _directionalLightPosture = o._directionalLightPosture;
315 _setDLColor = o._setDLColor;
316 _directionalLightColor = o._directionalLightColor;
317 _setDLShadowColor = o._setDLShadowColor;
318 _directionalLightShadowColor = o._directionalLightShadowColor;
319 _setDLShadowVM = o._setDLShadowVM;
320 _directionalLightShadowVolumeMargin = o._directionalLightShadowVolumeMargin;
321 _setDLShadowBias = o._setDLShadowBias;
322 _directionalLightShadowBias = o._directionalLightShadowBias;
323 _setDLShadowDistane = o._setDLShadowDistane;
324 _directionalLightShadowDistance = o._directionalLightShadowDistance;
325 _cascadeStep1 = o._cascadeStep1;
326 _cascadeStep2 = o._cascadeStep2;
327 _cascadeStep3 = o._cascadeStep3;
328 _cascadeCount = o._cascadeCount;
329 _enableCascadeVisualize = o._enableCascadeVisualize;
330 _setAmbientLight = o._setAmbientLight;
331 _ambientLight = o._ambientLight;
332 _setViewportSize = o._setViewportSize;
333 _viewportSizeWidth = o._viewportSizeWidth;
334 _viewportSizeHeight = o._viewportSizeHeight;
335 _setDisplayID = o._setDisplayID;
336 _displayID = o._displayID;
337 _setBackGroundColor = o._setBackGroundColor;
338 _backGroundColor = o._backGroundColor;
339 _setBloom = o._setBloom;
341 _setBloomParam = o._setBloomParam;
342 _bloomParamApply = o._bloomParamApply;
343 _bloomParamHilightThreshold = o._bloomParamHilightThreshold;
344 _setAutoExposure = o._setAutoExposure;
345 _autoExposure = o._autoExposure;
346 _setAutoExposureParam = o._setAutoExposureParam;
347 _autoExposureParamTargetBrightness = o._autoExposureParamTargetBrightness;
348 _autoExposureParamMinScale = o._autoExposureParamMinScale;
349 _autoExposureParamMaxScale = o._autoExposureParamMaxScale;
350 _setChromaticAbberation = o._setChromaticAbberation;
351 _chromaticAbberation = o._chromaticAbberation;
352 _setChromaticAbberationParam = o._setChromaticAbberationParam;
353 _chromaticAbberationParmSize = o._chromaticAbberationParmSize;
356 _setDofParam = o._setDofParam;
357 _dofParamSmoothStart = o._dofParamSmoothStart;
358 _dofParamSmoothRange = o._dofParamSmoothRange;
359 _dofParamRadius = o._dofParamRadius;
360 _setFxaa = o._setFxaa;
362 _setReflectionMap = o._setReflectionMap;
363 _reflectionMap = o._reflectionMap;
364 _setSkyBoxMaterial = o._setSkyBoxMaterial;
365 _skyBoxMaterial = o._skyBoxMaterial;
366 _setLutMap = o._setLutMap;
368 _setFogColor = o._setFogColor;
369 _fogColor = o._fogColor;
370 _setFogParam = o._setFogParam;
371 _fogParamStart = o._fogParamStart;
372 _fogParamDepthDensity = o._fogParamDepthDensity;
373 _fogParamHeightFallOff = o._fogParamHeightFallOff;
374 _setSSAOParam = o._setSSAOParam;
375 _ssaoParamRadius = o._ssaoParamRadius;
376 _ssaoParamMinLimit = o._ssaoParamMinLimit;
377 _ssaoParamMaxLimit = o._ssaoParamMaxLimit;
378 _ssaoParamShadowScle = o._ssaoParamShadowScle;
379 _ssaoParamSampleCount = o._ssaoParamSampleCount;
380 _ssaoParamContrast = o._ssaoParamContrast;
381 _ssaoParamColor = o._ssaoParamColor;
382 _setSSSSS = o._setSSSSS;
384 _setSSSSSParam = o._setSSSSSParam;
385 _SSSSSParamRadius = o._SSSSSParamRadius;
386 _SSSSSParamSampleCount = o._SSSSSParamSampleCount;
387 _SSSSSParamApply = o._SSSSSParamApply;
388 _setShadowMapScale = o._setShadowMapScale;
389 _shadowMapScale = o._shadowMapScale;
391 _setEnableVignette = o._setEnableVignette;
392 _enableVignette = o._enableVignette;
393 _setVignette = o._setVignette;
394 _vignatte = o._vignatte;
395 _setIBLIntensity = o._setIBLIntensity;
396 _IBLIntensity = o._IBLIntensity;
397 _setReflectionIntensity = o._setReflectionIntensity;
398 _reflectionIntensity = o._reflectionIntensity;
399 _setUsetDeferredLighting = o._setUsetDeferredLighting;
400 _usetDeferredLighting = o._usetDeferredLighting;
405 settings contextSaved;
Definition: GameViewDrawHook.h:25
Definition: GameView.h:22
virtual bool drawEnable()
Definition: GameView.h:24
Definition: GameView.h:48
void setShadowMapScale(float s)
Definition: GameView.cpp:869
void setSelectionDrawEnabled(bool flg)
Definition: GameView.cpp:772
void resetQualityAdjust()
Definition: GameView.h:137
void preDraw(float timeScale, Action< float >^ startFixedUpdate, Action< float >^ afterAnimate, Action< float >^ afterSimulate)
Definition: GameView.cpp:48
void setHiddenStencilColor(float r, float g, float b, float a)
Definition: GameView.h:159
void setPhysicsDebugDrawContactPoints(bool flg)
Definition: GameView.cpp:782
bool XZPlaneHitTest(float u, float v, float yoffset, SharpKmyMath::Vector3 %hitpos)
Definition: GameView.cpp:706
void getTerrainNormal(float x, float y, SharpKmyMath::Vector3% nrm)
Definition: GameView.cpp:367
void baseImageCapture(bool flg)
Definition: GameView.cpp:859
static Texture getBaseDepthTexture()
Definition: GameView.cpp:842
static void setPerformanceMeterDrawMode(int mode)
Definition: GameView.h:168
void setDistanceFadeStart(float v)
Definition: GameView.h:129
void clearHoverHilightPickupID()
Definition: GameView.cpp:427
SharpKmyMath::Matrix4 getCameraView()
Definition: GameView.h:186
void pickupRect(float left, float top, float right, float bottom, System::Collections::Generic::List< UINT16 >^ idlist, bool ignoreTerrain, bool ignoreManipulator)
Definition: GameView.cpp:398
Texture getCaptureColorTexture()
Definition: GameView.cpp:824
void setChromaticAbberationParam(float size)
Definition: GameView.cpp:294
void setVignette(float value)
Definition: GameView.cpp:472
void setDrawDelegate(GameViewDrawHook ^d)
Definition: GameView.cpp:879
void addPhysics()
Definition: GameView.h:132
void setShapenParam(float strength, float distance)
Definition: GameView.cpp:335
void setDirectionalLightShadowBias(f32 bias)
Definition: GameView.cpp:119
void setDirectionalLightPosture(SharpKmyMath::Matrix4^ posture)
Definition: GameView.cpp:79
Manipulator getManipulator()
Definition: GameView.cpp:735
void setModelBoundSphereDrawType(ModelBoundSphereDrawType flg)
Definition: GameView.h:139
void setAmbientLight(SharpKmyGfx::Color color)
Definition: GameView.cpp:168
void setViewport(int x, int y, int width, int height)
Definition: GameView.cpp:178
void setMainGameView()
Definition: GameView.h:136
void setSSSSSParam(f32 radius, int sampleCount, f32 apply)
Definition: GameView.cpp:682
~GameView()
Definition: GameView.cpp:22
void getCaptureFrame(array< UINT32 > ^color, array< UINT32 > ^depth)
Definition: GameView.cpp:598
void setViewportSize(int width, int height)
Definition: GameView.cpp:190
void enableChromaticAbberation(bool flg)
Definition: GameView.cpp:284
void enableBloom(bool flg)
Definition: GameView.cpp:241
SharpKmyMath::Vector2 getViewportSize()
Definition: GameView.cpp:201
void setCascadeCount(int num)
Definition: GameView.cpp:150
void setLutMap(System::Guid id)
Definition: GameView.cpp:452
void addSubGameView(GameView^ sub)
Definition: GameView.cpp:802
void ignoreSuspendChecker()
Definition: GameView.h:158
void setFogParam(f32 start, f32 depthDensity, f32 heightFallOff)
Definition: GameView.cpp:644
void setPhysicsDebugDrawConstraints(bool flg)
Definition: GameView.cpp:787
void enableSSSSS(bool flg)
Definition: GameView.cpp:672
void removeSubGameView(GameView^ sub)
Definition: GameView.h:149
void enableFxaa(bool flg)
Definition: GameView.cpp:346
void setBillboardLightModulation(float value)
Definition: GameView.cpp:492
void usetDeferredLighting(bool flg)
Definition: GameView.cpp:695
void setDirectionalLightShadowVolumeMargin(f32 margin)
Definition: GameView.cpp:109
void addPickupFrame(int size)
Definition: GameView.cpp:226
void setDirectionalLightShadowDistance(f32 distance)
Definition: GameView.cpp:129
void enableAsSubGameView(bool flg)
Definition: GameView.cpp:808
void setCascadeStep(float s1, float s2, float s3)
Definition: GameView.cpp:139
static void setSpriteBatchToTaskGameView(SpriteBatch^ s)
Definition: GameView.cpp:741
void enableCascadeVisualize(bool flg)
Definition: GameView.cpp:159
int pickupDetail(float x, float y, array< UINT16 > ^idlist, array< SharpKmyMath::Vector3 > ^wposlist, array< float > ^depthlist)
Definition: GameView.cpp:376
void setPhysicsProcessEnabled(bool flag)
Definition: GameView.cpp:792
void addManipulator()
Definition: GameView.h:134
static void setDrawSuspendChecker(GameViewDrawSuspendChecker^ body)
Definition: GameView.cpp:1115
void setDirectionalLightColor(SharpKmyGfx::Color color)
Definition: GameView.cpp:89
void enableVignette(bool flg)
Definition: GameView.cpp:462
SharpKmyPhysics::PhysicsBase getPhysics()
Definition: GameView.cpp:725
void save()
Definition: GameView.cpp:892
void enableSharpen(bool flg)
Definition: GameView.cpp:326
Texture getCaptureDepthTexture()
Definition: GameView.cpp:833
void restore()
Definition: GameView.cpp:901
static void bootProgressMessage(System::String^ text)
Definition: GameView.cpp:761
GameView()
Definition: GameView.cpp:7
static GameViewDrawSuspendChecker s_checker
Definition: GameView.h:171
static bool isDrawSuspending()
Definition: GameView.cpp:1121
unsigned short pickup(float x, float y, SharpKmyMath::Vector3% wpos)
Definition: GameView.cpp:355
void addHilightPickupID(unsigned short id)
Definition: GameView.cpp:412
u32 getDisplayID()
Definition: GameView.h:72
void enableDynamicResolution(bool flg)
Definition: GameView.cpp:864
void set3DGizmoDrawEnabled(bool flg)
Definition: GameView.cpp:767
void setDofParam(float focalDistance, float focalRange, float radius)
Definition: GameView.cpp:314
bool owning
Definition: GameView.h:175
void setCamera(SharpKmyMath::Matrix4^ proj, SharpKmyMath::Matrix4^ view)
Definition: GameView.cpp:68
static void setMaximumResolution(int w, int h)
Definition: GameView.cpp:748
void addHoverHilightPickupID(unsigned short id)
Definition: GameView.cpp:422
void clearSettings()
Definition: GameView.h:100
void enableDof(bool flg)
Definition: GameView.cpp:304
void setReflectionMap(Texture^ tex)
Definition: GameView.cpp:432
void setIBLIntensity(float value)
Definition: GameView.cpp:482
bool viewVolumeCheck(float x, float y, float z, float radius)
Definition: GameView.cpp:797
void setDisplayID(unsigned int id)
Definition: GameView.cpp:206
void setSSAOParam(f32 radius, f32 minLimit, f32 maxLimit, f32 shadowScale, int sampleCount, f32 contrast, SharpKmyGfx::Color color)
Definition: GameView.cpp:656
void setReflectionIntensity(float value)
Definition: GameView.cpp:502
void postDraw(bool swapbuffer)
Definition: GameView.cpp:63
void enableAutoExposure(bool flg)
Definition: GameView.cpp:262
void setSpriteBatch(SpriteBatch^ s)
Definition: GameView.cpp:618
static GameView getTaskGameView()
Definition: GameView.cpp:753
void removeSubGameView(GameView^ sub, bool removeForce)
Definition: GameView.cpp:813
void use2DGizmo()
Definition: GameView.h:121
void getNormal(int x, int y, int w, int h, array< UINT32 >^ buffer)
Definition: GameView.cpp:525
void setBackGroundColor(SharpKmyGfx::Color color)
Definition: GameView.cpp:216
void setBloomParam(float apply, float hilightThreshold)
Definition: GameView.cpp:251
void setFogColor(SharpKmyGfx::Color color)
Definition: GameView.cpp:634
void copyBaseRenderingEnviroment(GameView^ src)
Definition: GameView.cpp:852
void draw(bool swapbuffer, float timeScale)
Definition: GameView.cpp:30
static Texture getPickupIDTexture()
Definition: GameView.cpp:847
bool m_ignoreSuspendChecker
Definition: GameView.h:174
void getImage(int x, int y, int w, int h, array< UINT32 > ^buffer)
Definition: GameView.cpp:512
void setDistanceFadeEnable(bool flg)
Definition: GameView.h:128
void setPhysicsDebugDrawEnabled(int flag)
Definition: GameView.cpp:777
void clearHilightPickupID()
Definition: GameView.cpp:417
void setAutoExposureParam(float targetBrightness, float minScale, float maxScale)
Definition: GameView.cpp:272
SharpKmyMath::Matrix4 getCameraProj()
Definition: GameView.h:182
static void useAsyncCommandExec()
Definition: GameView.h:164
static void globalEnablePostFX(bool flg)
Definition: GameView.cpp:885
void setDirectionalLightShadowColor(SharpKmyGfx::Color color)
Definition: GameView.cpp:99
void enableIconDrawer(bool enable)
Definition: GameView.h:180
kmyGfx::GameView * getNativePtr()
Definition: GameView.h:53
void getDepth(int x, int y, int w, int h, array< float >^ buffer)
Definition: GameView.cpp:538
void removeCaptureFrame()
Definition: GameView.cpp:236
void addCaptureFrame(int width, int height)
Definition: GameView.cpp:231
void setSkyBoxMaterial(System::Guid mtl)
Definition: GameView.cpp:442
void createScreenShot(System::String^ path)
Definition: GameView.cpp:591
Definition: GameView.h:409
static void addParticleResourceForLoadTest(System::String^ path)
Definition: GameView.cpp:1108
Definition: Manipulator.h:8
Definition: GameView.h:29
void release()
Definition: GameView.h:34
T * operator->()
Definition: GameView.h:43
std::shared_ptr< T > * m_ptr
Definition: GameView.h:38
std::shared_ptr< T > & operator*()
Definition: GameView.h:44
SharedPtr()
Definition: GameView.h:31
Definition: SpriteBatch.h:9
static Matrix4 identity()
Definition: Matrix4.h:99
Definition: Billboard.cpp:4
ModelBoundSphereDrawType
Definition: GameView.h:15
Definition: Billboard.h:6
Definition: Vector3.h:186