Logo
GameView.h
1#pragma once
2#include "base/SharedPtr.h"
3#include "../base/BaseTypes.h"
4
5namespace SharpKmyPhysics
6{
7 ref class PhysicsBase;
8}
9
10namespace SharpKmyGfx
11{
12 ref class SpriteBatch;
13 ref class Manipulator;
14 ref class GameViewDrawHook;
15 ref class Material;
16 ref class InternalCommandBufferHandle;
17
19 {
20 public:
21 virtual bool drawEnable() { return true; }
22 };
23
24 public ref class GameView
25 {
26 public:
27 GameView();
28 GameView(const std::shared_ptr<kmyGfx::GameView>& ptr);
29 ~GameView();
30 kmyGfx::GameView* getNativePtr() { return obj ? (*obj).get() : nullptr; }
31
32 void draw(bool swapbuffer, float timeScale);
33 void preDraw(float timeScale, Action<float>^ startFixedUpdate, Action<float>^ afterAnimate, Action<float>^ afterSimulate);
34 void postDraw(bool swapbuffer);
35 void debugPause(bool flg);
36 bool isDebugPause();
42 void setDirectionalLightShadowBias(f32 bias);
43 void setDirectionalLightShadowDistance(f32 distance);
44 void setCascadeStep(float s1, float s2, float s3);
45 void setCascadeCount(int num);
46 void enableCascadeVisualize(bool flg);
48 void setBuildingLightBrightness(float value);
49 void setViewport(int x, int y, int width, int height);
50 void setViewportSize(int width, int height);
52 u32 getDisplayID() { return obj ? obj->getDisplayID() : 0; }
53 void setDisplayID(unsigned int id);
55 void addPickupFrame(int size);
56 void addCaptureFrame(int width, int height);
57 void removeCaptureFrame();
58 void enableBloom(bool flg);
59 void setBloomParam(float apply, float hilightThreshold);
60 void enableAutoExposure(bool flg);
61 void setAutoExposureParam(float targetBrightness, float minScale, float maxScale);
62 void enableChromaticAbberation(bool flg);
63 void setChromaticAbberationParam(float size);
64 void enableDof(bool flg);
65 void enableFxaa(bool flg);
66 void setDofParam(float focalDistance, float focalRange, float radius);
67 void enableSharpen(bool flg);
68 void setShapenParam(float strength, float distance);
69 void getImage(int x, int y, int w, int h, array<UINT32> ^buffer);
70 void getDepth(int x, int y, int w, int h, array<float>^ buffer);
71 void getNormal(int x, int y, int w, int h, array<UINT32>^ buffer);
72 void getCaptureFrame(array<UINT32> ^color, array<UINT32> ^depth);
73 void createScreenShot(System::String^ path);
76 void setFogParam(f32 start, f32 depthDensity, f32 heightFallOff);
77 void setSSAOParam(f32 radius, f32 minLimit, f32 maxLimit, f32 shadowScale, int sampleCount, f32 contrast, SharpKmyGfx::Color color, SSAOALGORITHM algorithm, SSAOBLURTYPE blurType, int linearThresholdLevel, float fadeDistance);
78 void enableSSSSS(bool flg);
79 void setSSSSSParam(f32 radius, int sampleCount, f32 apply);
80 void clearSettings() { if(obj)obj->clearSettings(); }
81
82 unsigned short pickup(float x, float y, SharpKmyMath::Vector3% wpos);
83 int pickupDetail(float x, float y, array<UINT16> ^idlist, array<SharpKmyMath::Vector3> ^wposlist, array<float> ^depthlist);
84 void getTerrainNormal(float x, float y, SharpKmyMath::Vector3% nrm);
85 /*
86 * 矩形でピックアップを行う
87 * left/top/right/bottom (0〜1) スクリーン座標系(左上原点)でピックアップしたい範囲を指定する
88 * idlist ピックアップされたアイテムのIDが入る
89 * ignoreTerrain 地形は対象外
90 * ignoreManipulator マニピュレータは対象外
91 */
92 void pickupRect(float left, float top, float right, float bottom, System::Collections::Generic::List<UINT16>^ idlist, bool ignoreTerrain, bool ignoreManipulator);
93 void addHilightPickupID(unsigned short id);
94 array<unsigned short>^ getHilightPicupIDs();
96 void addHoverHilightPickupID(unsigned short id);
98
99 void setReflectionMap(Texture^ tex);
100 void setSkyBoxMaterial(System::Guid mtl);
101 void setLutMap(System::Guid id);
102 void setReflectionMap(Texture^ tex, float interpolateTime);
103 void setLutMap(System::Guid id, float interpolateTime);
104 void use2DGizmo() { if(obj)obj->use2DGizmo(); }
105 void enableVignette(bool flg);
106 void setVignette(float value);
107 void setIBLIntensity(float value);
108 void setReflectionIntensity(float value);
109 void setBillboardLightModulation(float value);
110
111 void setDistanceFadeEnable(bool flg) { if (obj)obj->setDistanceFadeEnable(flg); }
112 void setDistanceFadeStart(float v) { if (obj)obj->setDistanceFadeStart(v); }
113
114 bool XZPlaneHitTest(float u, float v, float yoffset, SharpKmyMath::Vector3 %hitpos);
115 void addPhysics() { if (obj)obj->addPhysics(); }
117 void addManipulator() { if (obj)obj->addManipulator(); }
119 static void setMainGameView(GameView^ gv);
120 static GameView^ getMainGameView();
121 void resetQualityAdjust() { if (obj)obj->m_gpuTime.resetQualityAdjust((*obj).get()); }
122 void set3DGizmoDrawEnabled(bool flg);
123 void setModelBoundSphereDrawType(ModelBoundSphereDrawType flg) { if (obj)obj->setModelBoundSphereDrawType((kmyGfx::ModelBoundSphereDrawType)flg); }
124 void setSelectionDrawEnabled(bool flg);
125 void setPhysicsDebugDrawEnabled(int flag);
127 void setPhysicsDebugDrawConstraints(bool flg);
128 void setPhysicsProcessEnabled(bool flag);
129 bool viewVolumeCheck(float x, float y, float z, float radius);
130 void addSubGameView(GameView^ sub);//互換性のための関数。SubGameViewDrawTriggerを指定するものを推奨。
132 void enableAsSubGameView(bool flg);
133 void removeSubGameView(GameView^ sub, bool removeForce);
138 void baseImageCapture(bool flg);
139 void enableDynamicResolution(bool flg);
140 void setShadowMapScale(float s);
143 void clearDrawHook();
144 void usetDeferredLighting(bool flg);
146 void setHiddenStencilColor(float r, float g, float b, float a) { if(obj)obj->setHiddenStencilColor(r, g, b, a); };
148
151
152 static GameView^ getTaskGameView();
154 static void setMaximumResolution(int w, int h);
155 static void useAsyncCommandExec() { kmyGfx::GameViewStatics::asyncRendering(); }
156 static void globalEnablePostFX(bool flg);
157 static Texture^ getPickupIDTexture();
159 static void setPerformanceMeterDrawMode(int mode) { }
161 static bool isDrawSuspending();
163 static void bootProgressMessage(System::String^ text);
164 static void windowsMessageEvent(IntPtr hWnd, UINT message, WPARAM wparam, LPARAM lparam);
167 static void waitPreviousDrawingFinished();
168 static void enableDraw(bool flg);
169 static void enableLimitFPS(bool flg);
170 static void setMaximumFPS(int fps);
171 static void setMaximumPhysicsUpdateCount(int count);
172
174 bool owning = false;
175
176 void save();
177 void restore();
178
179 void enableIconDrawer(bool enable) { if (obj) obj->m_iconDrawer._enable = enable; }
180 void showMiniMeter(bool flg) { if (obj)obj->m_showMiniMeter = flg; }
181 void showDevelopHint(bool flg) { if (obj)obj->m_showDevelopHint = flg; }
182
184 {
185 return (context._setCamera) ? context._cameraProj : SharpKmyMath::Matrix4::identity();
186 }
188 {
189 return (context._setCamera) ? context._cameraView : SharpKmyMath::Matrix4::identity();
190 }
191
192 private:
194
195 ref struct settings
196 {
197 bool _setSpriteBatch = false;
198 SpriteBatch ^_spriteBatch;
199 bool _setCamera = false;
200 SharpKmyMath::Matrix4 _cameraProj;
201 SharpKmyMath::Matrix4 _cameraView;
202 bool _setDLPosture = false;
203 SharpKmyMath::Matrix4 _directionalLightPosture;
204 bool _setDLColor = false;
205 SharpKmyGfx::Color _directionalLightColor;
206 bool _setDLShadowColor = false;
207 SharpKmyGfx::Color _directionalLightShadowColor;
208 bool _setDLShadowVM = false;
209 f32 _directionalLightShadowVolumeMargin;
210 bool _setDLShadowBias = false;
211 f32 _directionalLightShadowBias;
212 bool _setDLShadowDistane = false;
213 f32 _directionalLightShadowDistance;
214 bool _setCascadeStep = false;
215 f32 _cascadeStep1;
216 f32 _cascadeStep2;
217 f32 _cascadeStep3;
218 bool _setCascadeCount = false;
219 int _cascadeCount = 4;
220 bool _setEnableCascadeViusalize = false;
221 bool _enableCascadeVisualize = false;
222 bool _setAmbientLight = false;
223 SharpKmyGfx::Color _ambientLight;
224 bool _setViewport = false;
225 int _viewportX;
226 int _viewportY;
227 int _viewportWidth;
228 int _viewportHeight;
229 bool _setViewportSize = false;
230 int _viewportSizeWidth;
231 int _viewportSizeHeight;
232 bool _setDisplayID = false;
233 unsigned int _displayID;
234 bool _setBackGroundColor = false;
235 SharpKmyGfx::Color _backGroundColor;
236 bool _setBloom = false;
237 bool _bloom;
238 bool _setBloomParam = false;
239 float _bloomParamApply;
240 float _bloomParamHilightThreshold;
241 bool _setAutoExposure = false;
242 bool _autoExposure;
243 bool _setAutoExposureParam = false;
244 float _autoExposureParamTargetBrightness;
245 float _autoExposureParamMinScale;
246 float _autoExposureParamMaxScale;
247 bool _setChromaticAbberation = false;
248 bool _chromaticAbberation;
249 bool _setChromaticAbberationParam = false;
250 float _chromaticAbberationParmSize;
251 bool _setDof = false;
252 bool _dof;
253 bool _setDofParam = false;
254 float _dofParamSmoothStart;
255 float _dofParamSmoothRange;
256 float _dofParamRadius;
257 bool _setFxaa = false;
258 bool _fxaa;
259 bool _setReflectionMap = false;
260 Texture^ _reflectionMap;
261 bool _setSkyBoxMaterial = false;
262 System::Guid _skyBoxMaterial;
263 bool _setLutMap = false;
264 System::Guid _lutMap;
265 bool _setFogColor = false;
266 SharpKmyGfx::Color _fogColor;
267 bool _setFogParam = false;
268 f32 _fogParamStart;
269 f32 _fogParamDepthDensity;
270 f32 _fogParamHeightFallOff;
271 bool _setSSAOParam = false;
272 f32 _ssaoParamRadius;
273 f32 _ssaoParamMinLimit;
274 f32 _ssaoParamMaxLimit;
275 f32 _ssaoParamShadowScle;
276 int _ssaoParamSampleCount;
277 f32 _ssaoParamContrast;
278 SharpKmyGfx::Color _ssaoParamColor;
279 SSAOALGORITHM _ssaoAlgorithm;
280 SSAOBLURTYPE _ssaoBlurType;
281 int _ssaoLinearThresholdLevel;
282 float _ssaoFadeDistance;
283 bool _setSSSSS = false;
284 bool _SSSSS;
285 bool _setSSSSSParam = false;
286 f32 _SSSSSParamRadius;
287 int _SSSSSParamSampleCount;
288 f32 _SSSSSParamApply;
289 bool _setShadowMapScale = false;
290 float _shadowMapScale;
291
292 bool _setEnableVignette = false;
293 bool _enableVignette;
294 bool _setVignette = false;
295 float _vignatte;
296 bool _setIBLIntensity = false;
297 float _IBLIntensity;
298 bool _setBillboardLightModulation = false;
299 float _billboardLightModulation;
300 bool _setReflectionIntensity = false;
301 float _reflectionIntensity;
302 bool _setUsetDeferredLighting = false;
303 bool _usetDeferredLighting;
304
305 bool _setSharpen = false;
306 bool _sharpen = false;
307 bool _setSharpenParam = false;
308 float _sharpenParamStrength;
309 float _sharpenParamDistance;
310
311 void copy(settings% o)
312 {
313 _setSpriteBatch = o._setSpriteBatch;
314 _spriteBatch = o._spriteBatch;
315 _setCamera = o._setCamera;
316 _cameraProj = o._cameraProj;
317 _cameraView = o._cameraView;
318 _setDLPosture = o._setDLPosture;
319 _directionalLightPosture = o._directionalLightPosture;
320 _setDLColor = o._setDLColor;
321 _directionalLightColor = o._directionalLightColor;
322 _setDLShadowColor = o._setDLShadowColor;
323 _directionalLightShadowColor = o._directionalLightShadowColor;
324 _setDLShadowVM = o._setDLShadowVM;
325 _directionalLightShadowVolumeMargin = o._directionalLightShadowVolumeMargin;
326 _setDLShadowBias = o._setDLShadowBias;
327 _directionalLightShadowBias = o._directionalLightShadowBias;
328 _setDLShadowDistane = o._setDLShadowDistane;
329 _directionalLightShadowDistance = o._directionalLightShadowDistance;
330 _cascadeStep1 = o._cascadeStep1;
331 _cascadeStep2 = o._cascadeStep2;
332 _cascadeStep3 = o._cascadeStep3;
333 _cascadeCount = o._cascadeCount;
334 _enableCascadeVisualize = o._enableCascadeVisualize;
335 _setAmbientLight = o._setAmbientLight;
336 _ambientLight = o._ambientLight;
337 _setViewportSize = o._setViewportSize;
338 _viewportSizeWidth = o._viewportSizeWidth;
339 _viewportSizeHeight = o._viewportSizeHeight;
340 _setDisplayID = o._setDisplayID;
341 _displayID = o._displayID;
342 _setBackGroundColor = o._setBackGroundColor;
343 _backGroundColor = o._backGroundColor;
344 _setBloom = o._setBloom;
345 _bloom = o._bloom;
346 _setBloomParam = o._setBloomParam;
347 _bloomParamApply = o._bloomParamApply;
348 _bloomParamHilightThreshold = o._bloomParamHilightThreshold;
349 _setAutoExposure = o._setAutoExposure;
350 _autoExposure = o._autoExposure;
351 _setAutoExposureParam = o._setAutoExposureParam;
352 _autoExposureParamTargetBrightness = o._autoExposureParamTargetBrightness;
353 _autoExposureParamMinScale = o._autoExposureParamMinScale;
354 _autoExposureParamMaxScale = o._autoExposureParamMaxScale;
355 _setChromaticAbberation = o._setChromaticAbberation;
356 _chromaticAbberation = o._chromaticAbberation;
357 _setChromaticAbberationParam = o._setChromaticAbberationParam;
358 _chromaticAbberationParmSize = o._chromaticAbberationParmSize;
359 _setDof = o._setDof;
360 _dof = o._dof;
361 _setDofParam = o._setDofParam;
362 _dofParamSmoothStart = o._dofParamSmoothStart;
363 _dofParamSmoothRange = o._dofParamSmoothRange;
364 _dofParamRadius = o._dofParamRadius;
365 _setFxaa = o._setFxaa;
366 _fxaa = o._fxaa;
367 _setReflectionMap = o._setReflectionMap;
368 _reflectionMap = o._reflectionMap;
369 _setSkyBoxMaterial = o._setSkyBoxMaterial;
370 _skyBoxMaterial = o._skyBoxMaterial;
371 _setLutMap = o._setLutMap;
372 _lutMap = o._lutMap;
373 _setFogColor = o._setFogColor;
374 _fogColor = o._fogColor;
375 _setFogParam = o._setFogParam;
376 _fogParamStart = o._fogParamStart;
377 _fogParamDepthDensity = o._fogParamDepthDensity;
378 _fogParamHeightFallOff = o._fogParamHeightFallOff;
379 _setSSAOParam = o._setSSAOParam;
380 _ssaoParamRadius = o._ssaoParamRadius;
381 _ssaoParamMinLimit = o._ssaoParamMinLimit;
382 _ssaoParamMaxLimit = o._ssaoParamMaxLimit;
383 _ssaoParamShadowScle = o._ssaoParamShadowScle;
384 _ssaoParamSampleCount = o._ssaoParamSampleCount;
385 _ssaoParamContrast = o._ssaoParamContrast;
386 _ssaoParamColor = o._ssaoParamColor;
387 _setSSSSS = o._setSSSSS;
388 _SSSSS = o._SSSSS;
389 _setSSSSSParam = o._setSSSSSParam;
390 _SSSSSParamRadius = o._SSSSSParamRadius;
391 _SSSSSParamSampleCount = o._SSSSSParamSampleCount;
392 _SSSSSParamApply = o._SSSSSParamApply;
393 _setShadowMapScale = o._setShadowMapScale;
394 _shadowMapScale = o._shadowMapScale;
395
396 _setEnableVignette = o._setEnableVignette;
397 _enableVignette = o._enableVignette;
398 _setVignette = o._setVignette;
399 _vignatte = o._vignatte;
400 _setIBLIntensity = o._setIBLIntensity;
401 _IBLIntensity = o._IBLIntensity;
402 _setReflectionIntensity = o._setReflectionIntensity;
403 _reflectionIntensity = o._reflectionIntensity;
404 _setUsetDeferredLighting = o._setUsetDeferredLighting;
405 _usetDeferredLighting = o._usetDeferredLighting;
406 }
407 };
408 settings context;
409 bool _saved = false;
410 settings contextSaved;
411 };
412
413 public ref class GfxTest
414 {
415 public:
416 //非同期テスト
417 static void addParticleResourceForLoadTest(System::String^ path);
418 };
419}
Definition: Color.h:6
Definition: GameViewDrawHook.h:17
virtual bool drawEnable()
Definition: GameView.h:21
Definition: GameView.h:25
void setShadowMapScale(float s)
Definition: GameView.cpp:1158
void setSelectionDrawEnabled(bool flg)
Definition: GameView.cpp:1024
void resetQualityAdjust()
Definition: GameView.h:121
void preDraw(float timeScale, Action< float >^ startFixedUpdate, Action< float >^ afterAnimate, Action< float >^ afterSimulate)
Definition: GameView.cpp:97
void setHiddenStencilColor(float r, float g, float b, float a)
Definition: GameView.h:146
void setPhysicsDebugDrawContactPoints(bool flg)
Definition: GameView.cpp:1038
bool XZPlaneHitTest(float u, float v, float yoffset, SharpKmyMath::Vector3 %hitpos)
Definition: GameView.cpp:944
void getTerrainNormal(float x, float y, SharpKmyMath::Vector3% nrm)
Definition: GameView.cpp:510
void baseImageCapture(bool flg)
Definition: GameView.cpp:1144
static Texture getBaseDepthTexture()
Definition: GameView.cpp:1121
static void setPerformanceMeterDrawMode(int mode)
Definition: GameView.h:159
void setDistanceFadeStart(float v)
Definition: GameView.h:112
void clearHoverHilightPickupID()
Definition: GameView.cpp:599
SharpKmyMath::Matrix4 getCameraView()
Definition: GameView.h:187
static GameView getMainGameView()
Definition: GameView.cpp:68
void showDevelopHint(bool flg)
Definition: GameView.h:181
void pickupRect(float left, float top, float right, float bottom, System::Collections::Generic::List< UINT16 >^ idlist, bool ignoreTerrain, bool ignoreManipulator)
Definition: GameView.cpp:545
Texture getCaptureColorTexture()
Definition: GameView.cpp:1099
void setChromaticAbberationParam(float size)
Definition: GameView.cpp:423
static void enableLimitFPS(bool flg)
Definition: GameView.cpp:46
void setVignette(float value)
Definition: GameView.cpp:664
void addDrawHook(GameViewDrawHook ^d)
Definition: GameView.cpp:1170
void addPhysics()
Definition: GameView.h:115
static int getCurrentGameView3DScreenWidth()
Definition: GameView.cpp:1498
void setShapenParam(float strength, float distance)
Definition: GameView.cpp:472
void setDirectionalLightShadowBias(f32 bias)
Definition: GameView.cpp:203
void setDirectionalLightPosture(SharpKmyMath::Matrix4^ posture)
Definition: GameView.cpp:155
static void setMainGameView(GameView^ gv)
Definition: GameView.cpp:63
Manipulator getManipulator()
Definition: GameView.cpp:977
static void windowsMessageEvent(IntPtr hWnd, UINT message, WPARAM wparam, LPARAM lparam)
Definition: GameView.cpp:1490
array< unsigned short > getHilightPicupIDs()
Definition: GameView.cpp:568
void setModelBoundSphereDrawType(ModelBoundSphereDrawType flg)
Definition: GameView.h:123
void setAmbientLight(SharpKmyGfx::Color color)
Definition: GameView.cpp:262
void setViewport(int x, int y, int width, int height)
Definition: GameView.cpp:281
void setSSSSSParam(f32 radius, int sampleCount, f32 apply)
Definition: GameView.cpp:916
~GameView()
Definition: GameView.cpp:29
void getCaptureFrame(array< UINT32 > ^color, array< UINT32 > ^depth)
Definition: GameView.cpp:812
void setViewportSize(int width, int height)
Definition: GameView.cpp:295
void enableChromaticAbberation(bool flg)
Definition: GameView.cpp:411
void enableBloom(bool flg)
Definition: GameView.cpp:360
SharpKmyMath::Vector2 getViewportSize()
Definition: GameView.cpp:308
void setCascadeCount(int num)
Definition: GameView.cpp:240
void setLutMap(System::Guid id)
Definition: GameView.cpp:623
void addSubGameView(GameView^ sub)
Definition: GameView.cpp:1066
void ignoreSuspendChecker()
Definition: GameView.h:145
void setFogParam(f32 start, f32 depthDensity, f32 heightFallOff)
Definition: GameView.cpp:864
void setPhysicsDebugDrawConstraints(bool flg)
Definition: GameView.cpp:1045
void enableSSSSS(bool flg)
Definition: GameView.cpp:904
void removeSubGameView(GameView^ sub)
Definition: GameView.h:134
void enableFxaa(bool flg)
Definition: GameView.cpp:485
void setBillboardLightModulation(float value)
Definition: GameView.cpp:688
void usetDeferredLighting(bool flg)
Definition: GameView.cpp:931
void setDirectionalLightShadowVolumeMargin(f32 margin)
Definition: GameView.cpp:191
void addPickupFrame(int size)
Definition: GameView.cpp:339
void setDirectionalLightShadowDistance(f32 distance)
Definition: GameView.cpp:215
void enableAsSubGameView(bool flg)
Definition: GameView.cpp:1079
void setCascadeStep(float s1, float s2, float s3)
Definition: GameView.cpp:227
static void setSpriteBatchToTaskGameView(SpriteBatch^ s)
Definition: GameView.cpp:983
void enableCascadeVisualize(bool flg)
Definition: GameView.cpp:251
int pickupDetail(float x, float y, array< UINT16 > ^idlist, array< SharpKmyMath::Vector3 > ^wposlist, array< float > ^depthlist)
Definition: GameView.cpp:521
void addDrawCommand(DrawEvent ev, InternalCommandBufferHandle^ icb)
Definition: GameView.cpp:1463
float getBlockElapsed(SharpKmyBase::PerformancePeriodType type)
Definition: GameView.cpp:1473
static void waitPreviousDrawingFinished()
Definition: GameView.cpp:122
void setPhysicsProcessEnabled(bool flag)
Definition: GameView.cpp:1052
void addManipulator()
Definition: GameView.h:117
static void setDrawSuspendChecker(GameViewDrawSuspendChecker^ body)
Definition: GameView.cpp:1447
void setDirectionalLightColor(SharpKmyGfx::Color color)
Definition: GameView.cpp:167
bool isDebugPause()
Definition: GameView.cpp:135
void enableVignette(bool flg)
Definition: GameView.cpp:652
static void setMaximumFPS(int fps)
Definition: GameView.cpp:52
SharpKmyPhysics::PhysicsBase getPhysics()
Definition: GameView.cpp:965
static void enableDraw(bool flg)
Definition: GameView.cpp:40
void save()
Definition: GameView.cpp:1213
void enableSharpen(bool flg)
Definition: GameView.cpp:461
Texture getCaptureDepthTexture()
Definition: GameView.cpp:1110
void restore()
Definition: GameView.cpp:1224
static void bootProgressMessage(System::String^ text)
Definition: GameView.cpp:1009
GameView()
Definition: GameView.cpp:10
static GameViewDrawSuspendChecker s_checker
Definition: GameView.h:162
static bool isDrawSuspending()
Definition: GameView.cpp:1455
unsigned short pickup(float x, float y, SharpKmyMath::Vector3% wpos)
Definition: GameView.cpp:496
void addHilightPickupID(unsigned short id)
Definition: GameView.cpp:561
u32 getDisplayID()
Definition: GameView.h:52
void enableDynamicResolution(bool flg)
Definition: GameView.cpp:1151
void set3DGizmoDrawEnabled(bool flg)
Definition: GameView.cpp:1017
void setDofParam(float focalDistance, float focalRange, float radius)
Definition: GameView.cpp:447
bool owning
Definition: GameView.h:174
void setCamera(SharpKmyMath::Matrix4^ proj, SharpKmyMath::Matrix4^ view)
Definition: GameView.cpp:142
static void setMaximumResolution(int w, int h)
Definition: GameView.cpp:992
void addHoverHilightPickupID(unsigned short id)
Definition: GameView.cpp:592
void clearSettings()
Definition: GameView.h:80
void enableDof(bool flg)
Definition: GameView.cpp:435
void setReflectionMap(Texture^ tex)
Definition: GameView.cpp:606
void setIBLIntensity(float value)
Definition: GameView.cpp:676
bool viewVolumeCheck(float x, float y, float z, float radius)
Definition: GameView.cpp:1059
void setDisplayID(unsigned int id)
Definition: GameView.cpp:315
void setReflectionIntensity(float value)
Definition: GameView.cpp:700
void postDraw(bool swapbuffer)
Definition: GameView.cpp:114
void removeDrawHook(GameViewDrawHook^ d)
Definition: GameView.cpp:1186
void enableAutoExposure(bool flg)
Definition: GameView.cpp:385
void setSpriteBatch(SpriteBatch^ s)
Definition: GameView.cpp:834
static GameView getTaskGameView()
Definition: GameView.cpp:999
void removeSubGameView(GameView^ sub, bool removeForce)
Definition: GameView.cpp:1086
void use2DGizmo()
Definition: GameView.h:104
void debugPause(bool flg)
Definition: GameView.cpp:128
void getNormal(int x, int y, int w, int h, array< UINT32 >^ buffer)
Definition: GameView.cpp:727
void setBackGroundColor(SharpKmyGfx::Color color)
Definition: GameView.cpp:327
void setBloomParam(float apply, float hilightThreshold)
Definition: GameView.cpp:372
void setFogColor(SharpKmyGfx::Color color)
Definition: GameView.cpp:852
void copyBaseRenderingEnviroment(GameView^ src)
Definition: GameView.cpp:1135
void draw(bool swapbuffer, float timeScale)
Definition: GameView.cpp:74
static Texture getPickupIDTexture()
Definition: GameView.cpp:1128
bool m_ignoreSuspendChecker
Definition: GameView.h:173
void getImage(int x, int y, int w, int h, array< UINT32 > ^buffer)
Definition: GameView.cpp:712
void setDistanceFadeEnable(bool flg)
Definition: GameView.h:111
void setSSAOParam(f32 radius, f32 minLimit, f32 maxLimit, f32 shadowScale, int sampleCount, f32 contrast, SharpKmyGfx::Color color, SSAOALGORITHM algorithm, SSAOBLURTYPE blurType, int linearThresholdLevel, float fadeDistance)
Definition: GameView.cpp:878
void setPhysicsDebugDrawEnabled(int flag)
Definition: GameView.cpp:1031
void clearHilightPickupID()
Definition: GameView.cpp:585
void setAutoExposureParam(float targetBrightness, float minScale, float maxScale)
Definition: GameView.cpp:397
SharpKmyMath::Matrix4 getCameraProj()
Definition: GameView.h:183
static void setMaximumPhysicsUpdateCount(int count)
Definition: GameView.cpp:58
static void useAsyncCommandExec()
Definition: GameView.h:155
static void globalEnablePostFX(bool flg)
Definition: GameView.cpp:1204
void setDirectionalLightShadowColor(SharpKmyGfx::Color color)
Definition: GameView.cpp:179
int getFixedUpdateStepCount()
Definition: GameView.cpp:1481
void enableIconDrawer(bool enable)
Definition: GameView.h:179
void setBuildingLightBrightness(float value)
Definition: GameView.cpp:274
kmyGfx::GameView * getNativePtr()
Definition: GameView.h:30
void showMiniMeter(bool flg)
Definition: GameView.h:180
static int getCurrentGameView3DScreenHeight()
Definition: GameView.cpp:1506
void getDepth(int x, int y, int w, int h, array< float >^ buffer)
Definition: GameView.cpp:742
void clearDrawHook()
Definition: GameView.cpp:1196
void removeCaptureFrame()
Definition: GameView.cpp:353
void addCaptureFrame(int width, int height)
Definition: GameView.cpp:346
void setSkyBoxMaterial(System::Guid mtl)
Definition: GameView.cpp:611
void createScreenShot(System::String^ path)
Definition: GameView.cpp:803
Definition: GameView.h:414
static void addParticleResourceForLoadTest(System::String^ path)
Definition: GameView.cpp:1438
Definition: InternalCommandBuffer.h:12
Definition: Manipulator.h:8
Definition: SpriteBatch.h:9
Definition: Texture.h:12
Definition: Matrix4.h:12
static Matrix4 identity()
Definition: Matrix4.h:101
Definition: Physics.h:36
PerformancePeriodType
Definition: BaseTypes.h:6
Definition: Asset.h:4
SSAOBLURTYPE
Definition: GfxTypes.h:220
DrawEvent
Definition: GfxTypes.h:52
SSAOALGORITHM
Definition: GfxTypes.h:213
ModelBoundSphereDrawType
Definition: GfxTypes.h:60
SubGameViewDrawTrigger
Definition: GfxTypes.h:237
Definition: Billboard.h:6
Definition: Vector2.h:5
Definition: Vector3.h:7