Logo
GameView.h
1#pragma once
2
3namespace SharpKmyPhysics
4{
5 ref class PhysicsBase;
6}
7
8namespace SharpKmyGfx
9{
10 ref class SpriteBatch;
11 ref class Manipulator;
12 ref class GameViewDrawHook;
13 ref class Material;
14
15 public enum class ModelBoundSphereDrawType {
16 None,
17 All,
19 };
20
22 {
23 public:
24 virtual bool drawEnable() { return true; }
25 };
26
27 template<typename T>
28 public ref class SharedPtr
29 {
30 public:
32 m_ptr = new std::shared_ptr<T>();
33 }
34 void release() {
35 if(m_ptr)delete m_ptr;
36 m_ptr = nullptr;
37 }
38 std::shared_ptr<T>* m_ptr = nullptr;
39 operator bool()
40 {
41 return m_ptr != nullptr && m_ptr->get() != nullptr;
42 }
43 T* operator->() { return m_ptr->get(); }
44 std::shared_ptr<T> &operator* () { return *m_ptr; }
45 };
46
47 public ref class GameView
48 {
49 public:
50 GameView();
51 GameView(const std::shared_ptr<kmyGfx::GameView>& ptr);
52 ~GameView();
53 kmyGfx::GameView* getNativePtr() { return obj ? (*obj).get() : nullptr; }
54
55 void draw(bool swapbuffer, float timeScale);
56 void preDraw(float timeScale, Action<float>^ startFixedUpdate, Action<float>^ afterAnimate, Action<float>^ afterSimulate);
57 void postDraw(bool swapbuffer);
63 void setDirectionalLightShadowBias(f32 bias);
64 void setDirectionalLightShadowDistance(f32 distance);
65 void setCascadeStep(float s1, float s2, float s3);
66 void setCascadeCount(int num);
67 void enableCascadeVisualize(bool flg);
69 void setViewport(int x, int y, int width, int height);
70 void setViewportSize(int width, int height);
72 u32 getDisplayID() { return obj ? obj->getDisplayID() : 0; }
73 void setDisplayID(unsigned int id);
75 void addPickupFrame(int size);
76 void addCaptureFrame(int width, int height);
77 void removeCaptureFrame();
78 void enableBloom(bool flg);
79 void setBloomParam(float apply, float hilightThreshold);
80 void enableAutoExposure(bool flg);
81 void setAutoExposureParam(float targetBrightness, float minScale, float maxScale);
82 void enableChromaticAbberation(bool flg);
83 void setChromaticAbberationParam(float size);
84 void enableDof(bool flg);
85 void enableFxaa(bool flg);
86 void setDofParam(float focalDistance, float focalRange, float radius);
87 void enableSharpen(bool flg);
88 void setShapenParam(float strength, float distance);
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);
92 void getCaptureFrame(array<UINT32> ^color, array<UINT32> ^depth);
93 void createScreenShot(System::String^ path);
96 void setFogParam(f32 start, f32 depthDensity, f32 heightFallOff);
97 void setSSAOParam(f32 radius, f32 minLimit, f32 maxLimit, f32 shadowScale, int sampleCount, f32 contrast, SharpKmyGfx::Color color);
98 void enableSSSSS(bool flg);
99 void setSSSSSParam(f32 radius, int sampleCount, f32 apply);
100 void clearSettings() { if(obj)obj->clearSettings(); }
101
102 unsigned short pickup(float x, float y, SharpKmyMath::Vector3% wpos);
103 int pickupDetail(float x, float y, array<UINT16> ^idlist, array<SharpKmyMath::Vector3> ^wposlist, array<float> ^depthlist);
104 void getTerrainNormal(float x, float y, SharpKmyMath::Vector3% nrm);
105 /*
106 * 矩形でピックアップを行う
107 * left/top/right/bottom (0〜1) スクリーン座標系(左上原点)でピックアップしたい範囲を指定する
108 * idlist ピックアップされたアイテムのIDが入る
109 * ignoreTerrain 地形は対象外
110 * ignoreManipulator マニピュレータは対象外
111 */
112 void pickupRect(float left, float top, float right, float bottom, System::Collections::Generic::List<UINT16>^ idlist, bool ignoreTerrain, bool ignoreManipulator);
113 void addHilightPickupID(unsigned short id);
115 void addHoverHilightPickupID(unsigned short id);
117
118 void setReflectionMap(Texture^ tex);
119 void setSkyBoxMaterial(System::Guid mtl);
120 void setLutMap(System::Guid id);
121 void use2DGizmo() { if(obj)obj->use2DGizmo(); }
122 void enableVignette(bool flg);
123 void setVignette(float value);
124 void setIBLIntensity(float value);
125 void setReflectionIntensity(float value);
126 void setBillboardLightModulation(float value);
127
128 void setDistanceFadeEnable(bool flg) { if (obj)obj->setDistanceFadeEnable(flg); }
129 void setDistanceFadeStart(float v) { if (obj)obj->setDistanceFadeStart(v); }
130
131 bool XZPlaneHitTest(float u, float v, float yoffset, SharpKmyMath::Vector3 %hitpos);
132 void addPhysics() { if (obj)obj->addPhysics(); }
134 void addManipulator() { if (obj)obj->addManipulator(); }
136 void setMainGameView() { if (obj)obj->setMainGameView(); }
137 void resetQualityAdjust() { if (obj)obj->m_gpuTime.resetQualityAdjust((*obj).get()); }
138 void set3DGizmoDrawEnabled(bool flg);
139 void setModelBoundSphereDrawType(ModelBoundSphereDrawType flg) { if (obj)obj->setModelBoundSphereDrawType((kmyGfx::ModelBoundSphereDrawType)flg); }
140 void setSelectionDrawEnabled(bool flg);
141 void setPhysicsDebugDrawEnabled(int flag);
143 void setPhysicsDebugDrawConstraints(bool flg);
144 void setPhysicsProcessEnabled(bool flag);
145 bool viewVolumeCheck(float x, float y, float z, float radius);
146 void addSubGameView(GameView^ sub);
147 void enableAsSubGameView(bool flg);
148 void removeSubGameView(GameView^ sub, bool removeForce);
153 void baseImageCapture(bool flg);
154 void enableDynamicResolution(bool flg);
155 void setShadowMapScale(float s);
157 void usetDeferredLighting(bool flg);
159 void setHiddenStencilColor(float r, float g, float b, float a) { if(obj)obj->setHiddenStencilColor(r, g, b, a); };
160
161 static GameView^ getTaskGameView();
163 static void setMaximumResolution(int w, int h);
164 static void useAsyncCommandExec() { kmyGfx::GameViewStatics::asyncRendering(); }
165 static void globalEnablePostFX(bool flg);
166 static Texture^ getPickupIDTexture();
168 static void setPerformanceMeterDrawMode(int mode) { kmyBase::PerformanceMeter::setDrawMode((kmyBase::PerformanceMeter::DrawMode)mode); }
170 static bool isDrawSuspending();
172 static void bootProgressMessage(System::String^ text);
173
175 bool owning = false;
176
177 void save();
178 void restore();
179
180 void enableIconDrawer(bool enable) { if (obj) obj->m_iconDrawer._enable = enable; }
181
183 {
184 return (context._setCamera) ? context._cameraProj : SharpKmyMath::Matrix4::identity();
185 }
187 {
188 return (context._setCamera) ? context._cameraView : SharpKmyMath::Matrix4::identity();
189 }
190
191 private:
192 SharedPtr<kmyGfx::GameView>^ obj = nullptr;
193
194 ref struct settings
195 {
196 bool _setSpriteBatch = false;
197 SpriteBatch ^_spriteBatch;
198 bool _setCamera = false;
199 SharpKmyMath::Matrix4 _cameraProj;
200 SharpKmyMath::Matrix4 _cameraView;
201 bool _setDLPosture = false;
202 SharpKmyMath::Matrix4 _directionalLightPosture;
203 bool _setDLColor = false;
204 SharpKmyGfx::Color _directionalLightColor;
205 bool _setDLShadowColor = false;
206 SharpKmyGfx::Color _directionalLightShadowColor;
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;
214 f32 _cascadeStep1;
215 f32 _cascadeStep2;
216 f32 _cascadeStep3;
217 bool _setCascadeCount = false;
218 int _cascadeCount = 4;
219 bool _setEnableCascadeViusalize = false;
220 bool _enableCascadeVisualize = false;
221 bool _setAmbientLight = false;
222 SharpKmyGfx::Color _ambientLight;
223 bool _setViewport = false;
224 int _viewportX;
225 int _viewportY;
226 int _viewportWidth;
227 int _viewportHeight;
228 bool _setViewportSize = false;
229 int _viewportSizeWidth;
230 int _viewportSizeHeight;
231 bool _setDisplayID = false;
232 unsigned int _displayID;
233 bool _setBackGroundColor = false;
234 SharpKmyGfx::Color _backGroundColor;
235 bool _setBloom = false;
236 bool _bloom;
237 bool _setBloomParam = false;
238 float _bloomParamApply;
239 float _bloomParamHilightThreshold;
240 bool _setAutoExposure = false;
241 bool _autoExposure;
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;
251 bool _dof;
252 bool _setDofParam = false;
253 float _dofParamSmoothStart;
254 float _dofParamSmoothRange;
255 float _dofParamRadius;
256 bool _setFxaa = false;
257 bool _fxaa;
258 bool _setReflectionMap = false;
259 Texture^ _reflectionMap;
260 bool _setSkyBoxMaterial = false;
261 System::Guid _skyBoxMaterial;
262 bool _setLutMap = false;
263 System::Guid _lutMap;
264 bool _setFogColor = false;
265 SharpKmyGfx::Color _fogColor;
266 bool _setFogParam = false;
267 f32 _fogParamStart;
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;
277 SharpKmyGfx::Color _ssaoParamColor;
278 bool _setSSSSS = false;
279 bool _SSSSS;
280 bool _setSSSSSParam = false;
281 f32 _SSSSSParamRadius;
282 int _SSSSSParamSampleCount;
283 f32 _SSSSSParamApply;
284 bool _setShadowMapScale = false;
285 float _shadowMapScale;
286
287 bool _setEnableVignette = false;
288 bool _enableVignette;
289 bool _setVignette = false;
290 float _vignatte;
291 bool _setIBLIntensity = false;
292 float _IBLIntensity;
293 bool _setBillboardLightModulation = false;
294 float _billboardLightModulation;
295 bool _setReflectionIntensity = false;
296 float _reflectionIntensity;
297 bool _setUsetDeferredLighting = false;
298 bool _usetDeferredLighting;
299
300 bool _setSharpen = false;
301 bool _sharpen = false;
302 bool _setSharpenParam = false;
303 float _sharpenParamStrength;
304 float _sharpenParamDistance;
305
306 void copy(settings% o)
307 {
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;
340 _bloom = o._bloom;
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;
354 _setDof = o._setDof;
355 _dof = o._dof;
356 _setDofParam = o._setDofParam;
357 _dofParamSmoothStart = o._dofParamSmoothStart;
358 _dofParamSmoothRange = o._dofParamSmoothRange;
359 _dofParamRadius = o._dofParamRadius;
360 _setFxaa = o._setFxaa;
361 _fxaa = o._fxaa;
362 _setReflectionMap = o._setReflectionMap;
363 _reflectionMap = o._reflectionMap;
364 _setSkyBoxMaterial = o._setSkyBoxMaterial;
365 _skyBoxMaterial = o._skyBoxMaterial;
366 _setLutMap = o._setLutMap;
367 _lutMap = o._lutMap;
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;
383 _SSSSS = o._SSSSS;
384 _setSSSSSParam = o._setSSSSSParam;
385 _SSSSSParamRadius = o._SSSSSParamRadius;
386 _SSSSSParamSampleCount = o._SSSSSParamSampleCount;
387 _SSSSSParamApply = o._SSSSSParamApply;
388 _setShadowMapScale = o._setShadowMapScale;
389 _shadowMapScale = o._shadowMapScale;
390
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;
401 }
402 };
403 settings context;
404 bool _saved = false;
405 settings contextSaved;
406 };
407
408 public ref class GfxTest
409 {
410 public:
411 //非同期テスト
412 static void addParticleResourceForLoadTest(System::String^ path);
413 };
414}
Definition: Color.h:5
Definition: GameViewDrawHook.h:25
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
Definition: Texture.h:72
Definition: Matrix4.h:10
static Matrix4 identity()
Definition: Matrix4.h:99
Definition: Physics.h:31
Definition: Billboard.cpp:4
ModelBoundSphereDrawType
Definition: GameView.h:15
Definition: Billboard.h:6
Definition: Vector3.h:186
Definition: Vector3.h:8