![]() |
|
#include <GameView.h>
Public Member Functions | |
| GameView () | |
| GameView (const std::shared_ptr< kmyGfx::GameView > &ptr) | |
| ~GameView () | |
| kmyGfx::GameView * | getNativePtr () |
| void | draw (bool swapbuffer, float timeScale) |
| void | preDraw (float timeScale, Action< float >^ startFixedUpdate, Action< float >^ afterAnimate, Action< float >^ afterSimulate) |
| void | postDraw (bool swapbuffer) |
| void | debugPause (bool flg) |
| bool | isDebugPause () |
| void | setCamera (SharpKmyMath::Matrix4^ proj, SharpKmyMath::Matrix4^ view) |
| void | setDirectionalLightPosture (SharpKmyMath::Matrix4^ posture) |
| void | setDirectionalLightColor (SharpKmyGfx::Color color) |
| void | setDirectionalLightShadowColor (SharpKmyGfx::Color color) |
| void | setDirectionalLightShadowVolumeMargin (f32 margin) |
| void | setDirectionalLightShadowBias (f32 bias) |
| void | setDirectionalLightShadowDistance (f32 distance) |
| void | setCascadeStep (float s1, float s2, float s3) |
| void | setCascadeCount (int num) |
| void | enableCascadeVisualize (bool flg) |
| void | setAmbientLight (SharpKmyGfx::Color color) |
| void | setBuildingLightBrightness (float value) |
| void | setViewport (int x, int y, int width, int height) |
| void | setViewportSize (int width, int height) |
| SharpKmyMath::Vector2 | getViewportSize () |
| u32 | getDisplayID () |
| void | setDisplayID (unsigned int id) |
| void | setBackGroundColor (SharpKmyGfx::Color color) |
| void | addPickupFrame (int size) |
| void | addCaptureFrame (int width, int height) |
| void | removeCaptureFrame () |
| void | enableBloom (bool flg) |
| void | setBloomParam (float apply, float hilightThreshold) |
| void | enableAutoExposure (bool flg) |
| void | setAutoExposureParam (float targetBrightness, float minScale, float maxScale) |
| void | enableChromaticAbberation (bool flg) |
| void | setChromaticAbberationParam (float size) |
| void | enableDof (bool flg) |
| void | enableFxaa (bool flg) |
| void | setDofParam (float focalDistance, float focalRange, float radius) |
| void | enableSharpen (bool flg) |
| void | setShapenParam (float strength, float distance) |
| void | getImage (int x, int y, int w, int h, array< UINT32 > ^buffer) |
| void | getDepth (int x, int y, int w, int h, array< float >^ buffer) |
| void | getNormal (int x, int y, int w, int h, array< UINT32 >^ buffer) |
| void | getCaptureFrame (array< UINT32 > ^color, array< UINT32 > ^depth) |
| void | createScreenShot (System::String^ path) |
| void | setSpriteBatch (SpriteBatch^ s) |
| void | setFogColor (SharpKmyGfx::Color color) |
| void | setFogParam (f32 start, f32 depthDensity, f32 heightFallOff) |
| 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) |
| void | enableSSSSS (bool flg) |
| void | setSSSSSParam (f32 radius, int sampleCount, f32 apply) |
| void | clearSettings () |
| unsigned short | pickup (float x, float y, SharpKmyMath::Vector3% wpos) |
| int | pickupDetail (float x, float y, array< UINT16 > ^idlist, array< SharpKmyMath::Vector3 > ^wposlist, array< float > ^depthlist) |
| void | getTerrainNormal (float x, float y, SharpKmyMath::Vector3% nrm) |
| void | pickupRect (float left, float top, float right, float bottom, System::Collections::Generic::List< UINT16 >^ idlist, bool ignoreTerrain, bool ignoreManipulator) |
| void | addHilightPickupID (unsigned short id) |
| array< unsigned short > | getHilightPicupIDs () |
| void | clearHilightPickupID () |
| void | addHoverHilightPickupID (unsigned short id) |
| void | clearHoverHilightPickupID () |
| void | setReflectionMap (Texture^ tex) |
| void | setSkyBoxMaterial (System::Guid mtl) |
| void | setLutMap (System::Guid id) |
| void | setReflectionMap (Texture^ tex, float interpolateTime) |
| void | setLutMap (System::Guid id, float interpolateTime) |
| void | use2DGizmo () |
| void | enableVignette (bool flg) |
| void | setVignette (float value) |
| void | setIBLIntensity (float value) |
| void | setReflectionIntensity (float value) |
| void | setBillboardLightModulation (float value) |
| void | setDistanceFadeEnable (bool flg) |
| void | setDistanceFadeStart (float v) |
| bool | XZPlaneHitTest (float u, float v, float yoffset, SharpKmyMath::Vector3 %hitpos) |
| void | addPhysics () |
| SharpKmyPhysics::PhysicsBase | getPhysics () |
| void | addManipulator () |
| Manipulator | getManipulator () |
| void | resetQualityAdjust () |
| void | set3DGizmoDrawEnabled (bool flg) |
| void | setModelBoundSphereDrawType (ModelBoundSphereDrawType flg) |
| void | setSelectionDrawEnabled (bool flg) |
| void | setPhysicsDebugDrawEnabled (int flag) |
| void | setPhysicsDebugDrawContactPoints (bool flg) |
| void | setPhysicsDebugDrawConstraints (bool flg) |
| void | setPhysicsProcessEnabled (bool flag) |
| bool | viewVolumeCheck (float x, float y, float z, float radius) |
| void | addSubGameView (GameView^ sub) |
| void | addSubGameView (GameView^ sub, SubGameViewDrawTrigger type) |
| void | enableAsSubGameView (bool flg) |
| void | removeSubGameView (GameView^ sub, bool removeForce) |
| void | removeSubGameView (GameView^ sub) |
| Texture | getCaptureColorTexture () |
| Texture | getCaptureDepthTexture () |
| void | copyBaseRenderingEnviroment (GameView^ src) |
| void | baseImageCapture (bool flg) |
| void | enableDynamicResolution (bool flg) |
| void | setShadowMapScale (float s) |
| void | addDrawHook (GameViewDrawHook ^d) |
| void | removeDrawHook (GameViewDrawHook^ d) |
| void | clearDrawHook () |
| void | usetDeferredLighting (bool flg) |
| void | ignoreSuspendChecker () |
| void | setHiddenStencilColor (float r, float g, float b, float a) |
| void | addDrawCommand (DrawEvent ev, InternalCommandBufferHandle^ icb) |
| float | getBlockElapsed (SharpKmyBase::PerformancePeriodType type) |
| int | getFixedUpdateStepCount () |
| void | save () |
| void | restore () |
| void | enableIconDrawer (bool enable) |
| void | showMiniMeter (bool flg) |
| void | showDevelopHint (bool flg) |
| SharpKmyMath::Matrix4 | getCameraProj () |
| SharpKmyMath::Matrix4 | getCameraView () |
Static Public Member Functions | |
| static void | setMainGameView (GameView^ gv) |
| static GameView | getMainGameView () |
| static GameView | getTaskGameView () |
| static void | setSpriteBatchToTaskGameView (SpriteBatch^ s) |
| static void | setMaximumResolution (int w, int h) |
| static void | useAsyncCommandExec () |
| static void | globalEnablePostFX (bool flg) |
| static Texture | getPickupIDTexture () |
| static Texture | getBaseDepthTexture () |
| static void | setPerformanceMeterDrawMode (int mode) |
| static void | setDrawSuspendChecker (GameViewDrawSuspendChecker^ body) |
| static bool | isDrawSuspending () |
| static void | bootProgressMessage (System::String^ text) |
| static void | windowsMessageEvent (IntPtr hWnd, UINT message, WPARAM wparam, LPARAM lparam) |
| static int | getCurrentGameView3DScreenWidth () |
| static int | getCurrentGameView3DScreenHeight () |
| static void | waitPreviousDrawingFinished () |
| static void | enableDraw (bool flg) |
| static void | enableLimitFPS (bool flg) |
| static void | setMaximumFPS (int fps) |
| static void | setMaximumPhysicsUpdateCount (int count) |
Public Attributes | |
| bool | m_ignoreSuspendChecker = false |
| bool | owning = false |
Static Public Attributes | |
| static GameViewDrawSuspendChecker | s_checker |
| SharpKmyGfx::GameView::GameView | ( | ) |
| SharpKmyGfx::GameView::GameView | ( | const std::shared_ptr< kmyGfx::GameView > & | ptr | ) |
| SharpKmyGfx::GameView::~GameView | ( | ) |
| void SharpKmyGfx::GameView::addCaptureFrame | ( | int | width, |
| int | height | ||
| ) |
| void SharpKmyGfx::GameView::addDrawCommand | ( | DrawEvent | ev, |
| InternalCommandBufferHandle^ | icb | ||
| ) |
| void SharpKmyGfx::GameView::addDrawHook | ( | GameViewDrawHook ^ | d | ) |
| void SharpKmyGfx::GameView::addHilightPickupID | ( | unsigned short | id | ) |
| void SharpKmyGfx::GameView::addHoverHilightPickupID | ( | unsigned short | id | ) |
| void SharpKmyGfx::GameView::addManipulator | ( | ) |
| void SharpKmyGfx::GameView::addPhysics | ( | ) |
| void SharpKmyGfx::GameView::addPickupFrame | ( | int | size | ) |
| void SharpKmyGfx::GameView::addSubGameView | ( | GameView^ | sub | ) |
| void SharpKmyGfx::GameView::addSubGameView | ( | GameView^ | sub, |
| SubGameViewDrawTrigger | type | ||
| ) |
| void SharpKmyGfx::GameView::baseImageCapture | ( | bool | flg | ) |
|
static |
| void SharpKmyGfx::GameView::clearDrawHook | ( | ) |
| void SharpKmyGfx::GameView::clearHilightPickupID | ( | ) |
| void SharpKmyGfx::GameView::clearHoverHilightPickupID | ( | ) |
| void SharpKmyGfx::GameView::clearSettings | ( | ) |
| void SharpKmyGfx::GameView::copyBaseRenderingEnviroment | ( | GameView^ | src | ) |
| void SharpKmyGfx::GameView::createScreenShot | ( | System::String^ | path | ) |
| void SharpKmyGfx::GameView::debugPause | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::draw | ( | bool | swapbuffer, |
| float | timeScale | ||
| ) |
| void SharpKmyGfx::GameView::enableAsSubGameView | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::enableAutoExposure | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::enableBloom | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::enableCascadeVisualize | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::enableChromaticAbberation | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::enableDof | ( | bool | flg | ) |
|
static |
| void SharpKmyGfx::GameView::enableDynamicResolution | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::enableFxaa | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::enableIconDrawer | ( | bool | enable | ) |
|
static |
| void SharpKmyGfx::GameView::enableSharpen | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::enableSSSSS | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::enableVignette | ( | bool | flg | ) |
|
static |
| float SharpKmyGfx::GameView::getBlockElapsed | ( | SharpKmyBase::PerformancePeriodType | type | ) |
| SharpKmyMath::Matrix4 SharpKmyGfx::GameView::getCameraProj | ( | ) |
| SharpKmyMath::Matrix4 SharpKmyGfx::GameView::getCameraView | ( | ) |
| Texture SharpKmyGfx::GameView::getCaptureColorTexture | ( | ) |
| Texture SharpKmyGfx::GameView::getCaptureDepthTexture | ( | ) |
| void SharpKmyGfx::GameView::getCaptureFrame | ( | array< UINT32 > ^ | color, |
| array< UINT32 > ^ | depth | ||
| ) |
|
static |
|
static |
| void SharpKmyGfx::GameView::getDepth | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| array< float >^ | buffer | ||
| ) |
| u32 SharpKmyGfx::GameView::getDisplayID | ( | ) |
| int SharpKmyGfx::GameView::getFixedUpdateStepCount | ( | ) |
| array< unsigned short > SharpKmyGfx::GameView::getHilightPicupIDs | ( | ) |
| void SharpKmyGfx::GameView::getImage | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| array< UINT32 > ^ | buffer | ||
| ) |
|
static |
| Manipulator SharpKmyGfx::GameView::getManipulator | ( | ) |
| kmyGfx::GameView * SharpKmyGfx::GameView::getNativePtr | ( | ) |
| void SharpKmyGfx::GameView::getNormal | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| array< UINT32 >^ | buffer | ||
| ) |
| SharpKmyPhysics::PhysicsBase SharpKmyGfx::GameView::getPhysics | ( | ) |
|
static |
|
static |
| void SharpKmyGfx::GameView::getTerrainNormal | ( | float | x, |
| float | y, | ||
| SharpKmyMath::Vector3% | nrm | ||
| ) |
| SharpKmyMath::Vector2 SharpKmyGfx::GameView::getViewportSize | ( | ) |
|
static |
| void SharpKmyGfx::GameView::ignoreSuspendChecker | ( | ) |
| bool SharpKmyGfx::GameView::isDebugPause | ( | ) |
|
static |
| unsigned short SharpKmyGfx::GameView::pickup | ( | float | x, |
| float | y, | ||
| SharpKmyMath::Vector3% | wpos | ||
| ) |
| int SharpKmyGfx::GameView::pickupDetail | ( | float | x, |
| float | y, | ||
| array< UINT16 > ^ | idlist, | ||
| array< SharpKmyMath::Vector3 > ^ | wposlist, | ||
| array< float > ^ | depthlist | ||
| ) |
| void SharpKmyGfx::GameView::pickupRect | ( | float | left, |
| float | top, | ||
| float | right, | ||
| float | bottom, | ||
| System::Collections::Generic::List< UINT16 >^ | idlist, | ||
| bool | ignoreTerrain, | ||
| bool | ignoreManipulator | ||
| ) |
| void SharpKmyGfx::GameView::postDraw | ( | bool | swapbuffer | ) |
| void SharpKmyGfx::GameView::preDraw | ( | float | timeScale, |
| Action< float >^ | startFixedUpdate, | ||
| Action< float >^ | afterAnimate, | ||
| Action< float >^ | afterSimulate | ||
| ) |
| void SharpKmyGfx::GameView::removeCaptureFrame | ( | ) |
| void SharpKmyGfx::GameView::removeDrawHook | ( | GameViewDrawHook^ | d | ) |
| void SharpKmyGfx::GameView::removeSubGameView | ( | GameView^ | sub | ) |
| void SharpKmyGfx::GameView::removeSubGameView | ( | GameView^ | sub, |
| bool | removeForce | ||
| ) |
| void SharpKmyGfx::GameView::resetQualityAdjust | ( | ) |
| void SharpKmyGfx::GameView::restore | ( | ) |
| void SharpKmyGfx::GameView::save | ( | ) |
| void SharpKmyGfx::GameView::set3DGizmoDrawEnabled | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::setAmbientLight | ( | SharpKmyGfx::Color | color | ) |
| void SharpKmyGfx::GameView::setAutoExposureParam | ( | float | targetBrightness, |
| float | minScale, | ||
| float | maxScale | ||
| ) |
| void SharpKmyGfx::GameView::setBackGroundColor | ( | SharpKmyGfx::Color | color | ) |
| void SharpKmyGfx::GameView::setBillboardLightModulation | ( | float | value | ) |
| void SharpKmyGfx::GameView::setBloomParam | ( | float | apply, |
| float | hilightThreshold | ||
| ) |
| void SharpKmyGfx::GameView::setBuildingLightBrightness | ( | float | value | ) |
| void SharpKmyGfx::GameView::setCamera | ( | SharpKmyMath::Matrix4^ | proj, |
| SharpKmyMath::Matrix4^ | view | ||
| ) |
| void SharpKmyGfx::GameView::setCascadeCount | ( | int | num | ) |
| void SharpKmyGfx::GameView::setCascadeStep | ( | float | s1, |
| float | s2, | ||
| float | s3 | ||
| ) |
| void SharpKmyGfx::GameView::setChromaticAbberationParam | ( | float | size | ) |
| void SharpKmyGfx::GameView::setDirectionalLightColor | ( | SharpKmyGfx::Color | color | ) |
| void SharpKmyGfx::GameView::setDirectionalLightPosture | ( | SharpKmyMath::Matrix4^ | posture | ) |
| void SharpKmyGfx::GameView::setDirectionalLightShadowBias | ( | f32 | bias | ) |
| void SharpKmyGfx::GameView::setDirectionalLightShadowColor | ( | SharpKmyGfx::Color | color | ) |
| void SharpKmyGfx::GameView::setDirectionalLightShadowDistance | ( | f32 | distance | ) |
| void SharpKmyGfx::GameView::setDirectionalLightShadowVolumeMargin | ( | f32 | margin | ) |
| void SharpKmyGfx::GameView::setDisplayID | ( | unsigned int | id | ) |
| void SharpKmyGfx::GameView::setDistanceFadeEnable | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::setDistanceFadeStart | ( | float | v | ) |
| void SharpKmyGfx::GameView::setDofParam | ( | float | focalDistance, |
| float | focalRange, | ||
| float | radius | ||
| ) |
|
static |
| void SharpKmyGfx::GameView::setFogColor | ( | SharpKmyGfx::Color | color | ) |
| void SharpKmyGfx::GameView::setFogParam | ( | f32 | start, |
| f32 | depthDensity, | ||
| f32 | heightFallOff | ||
| ) |
| void SharpKmyGfx::GameView::setHiddenStencilColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
| void SharpKmyGfx::GameView::setIBLIntensity | ( | float | value | ) |
| void SharpKmyGfx::GameView::setLutMap | ( | System::Guid | id | ) |
| void SharpKmyGfx::GameView::setLutMap | ( | System::Guid | id, |
| float | interpolateTime | ||
| ) |
|
static |
|
static |
|
static |
|
static |
| void SharpKmyGfx::GameView::setModelBoundSphereDrawType | ( | ModelBoundSphereDrawType | flg | ) |
|
static |
| void SharpKmyGfx::GameView::setPhysicsDebugDrawConstraints | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::setPhysicsDebugDrawContactPoints | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::setPhysicsDebugDrawEnabled | ( | int | flag | ) |
| void SharpKmyGfx::GameView::setPhysicsProcessEnabled | ( | bool | flag | ) |
| void SharpKmyGfx::GameView::setReflectionIntensity | ( | float | value | ) |
| void SharpKmyGfx::GameView::setReflectionMap | ( | Texture^ | tex | ) |
| void SharpKmyGfx::GameView::setReflectionMap | ( | Texture^ | tex, |
| float | interpolateTime | ||
| ) |
| void SharpKmyGfx::GameView::setSelectionDrawEnabled | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::setShadowMapScale | ( | float | s | ) |
| void SharpKmyGfx::GameView::setShapenParam | ( | float | strength, |
| float | distance | ||
| ) |
| void SharpKmyGfx::GameView::setSkyBoxMaterial | ( | System::Guid | mtl | ) |
| void SharpKmyGfx::GameView::setSpriteBatch | ( | SpriteBatch^ | s | ) |
|
static |
| void SharpKmyGfx::GameView::setSSAOParam | ( | f32 | radius, |
| f32 | minLimit, | ||
| f32 | maxLimit, | ||
| f32 | shadowScale, | ||
| int | sampleCount, | ||
| f32 | contrast, | ||
| SharpKmyGfx::Color | color, | ||
| SSAOALGORITHM | algorithm, | ||
| SSAOBLURTYPE | blurType, | ||
| int | linearThresholdLevel, | ||
| float | fadeDistance | ||
| ) |
| void SharpKmyGfx::GameView::setSSSSSParam | ( | f32 | radius, |
| int | sampleCount, | ||
| f32 | apply | ||
| ) |
| void SharpKmyGfx::GameView::setViewport | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
| void SharpKmyGfx::GameView::setViewportSize | ( | int | width, |
| int | height | ||
| ) |
| void SharpKmyGfx::GameView::setVignette | ( | float | value | ) |
| void SharpKmyGfx::GameView::showDevelopHint | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::showMiniMeter | ( | bool | flg | ) |
| void SharpKmyGfx::GameView::use2DGizmo | ( | ) |
|
static |
| void SharpKmyGfx::GameView::usetDeferredLighting | ( | bool | flg | ) |
| bool SharpKmyGfx::GameView::viewVolumeCheck | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | radius | ||
| ) |
|
static |
|
static |
| bool SharpKmyGfx::GameView::XZPlaneHitTest | ( | float | u, |
| float | v, | ||
| float | yoffset, | ||
| SharpKmyMath::Vector3 % | hitpos | ||
| ) |
| bool SharpKmyGfx::GameView::m_ignoreSuspendChecker = false |
| bool SharpKmyGfx::GameView::owning = false |
|
static |