Logo
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
SharpKmyGfx::GameView Class Reference

#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 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 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)
 
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)
 
void clearHilightPickupID ()
 
void addHoverHilightPickupID (unsigned short id)
 
void clearHoverHilightPickupID ()
 
void setReflectionMap (Texture^ tex)
 
void setSkyBoxMaterial (System::Guid mtl)
 
void setLutMap (System::Guid id)
 
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 setMainGameView ()
 
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 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 setDrawDelegate (GameViewDrawHook ^d)
 
void usetDeferredLighting (bool flg)
 
void ignoreSuspendChecker ()
 
void setHiddenStencilColor (float r, float g, float b, float a)
 
void save ()
 
void restore ()
 
void enableIconDrawer (bool enable)
 
SharpKmyMath::Matrix4 getCameraProj ()
 
SharpKmyMath::Matrix4 getCameraView ()
 

Static Public Member Functions

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)
 

Public Attributes

bool m_ignoreSuspendChecker = false
 
bool owning = false
 

Static Public Attributes

static GameViewDrawSuspendChecker s_checker
 

Constructor & Destructor Documentation

◆ GameView() [1/2]

SharpKmyGfx::GameView::GameView ( )

◆ GameView() [2/2]

SharpKmyGfx::GameView::GameView ( const std::shared_ptr< kmyGfx::GameView > &  ptr)

◆ ~GameView()

SharpKmyGfx::GameView::~GameView ( )

Member Function Documentation

◆ addCaptureFrame()

void SharpKmyGfx::GameView::addCaptureFrame ( int  width,
int  height 
)

◆ addHilightPickupID()

void SharpKmyGfx::GameView::addHilightPickupID ( unsigned short  id)

◆ addHoverHilightPickupID()

void SharpKmyGfx::GameView::addHoverHilightPickupID ( unsigned short  id)

◆ addManipulator()

void SharpKmyGfx::GameView::addManipulator ( )

◆ addPhysics()

void SharpKmyGfx::GameView::addPhysics ( )

◆ addPickupFrame()

void SharpKmyGfx::GameView::addPickupFrame ( int  size)

◆ addSubGameView()

void SharpKmyGfx::GameView::addSubGameView ( GameView sub)

◆ baseImageCapture()

void SharpKmyGfx::GameView::baseImageCapture ( bool  flg)

◆ bootProgressMessage()

void SharpKmyGfx::GameView::bootProgressMessage ( System::String^  text)
static

◆ clearHilightPickupID()

void SharpKmyGfx::GameView::clearHilightPickupID ( )

◆ clearHoverHilightPickupID()

void SharpKmyGfx::GameView::clearHoverHilightPickupID ( )

◆ clearSettings()

void SharpKmyGfx::GameView::clearSettings ( )

◆ copyBaseRenderingEnviroment()

void SharpKmyGfx::GameView::copyBaseRenderingEnviroment ( GameView src)

◆ createScreenShot()

void SharpKmyGfx::GameView::createScreenShot ( System::String^  path)

◆ draw()

void SharpKmyGfx::GameView::draw ( bool  swapbuffer,
float  timeScale 
)

◆ enableAsSubGameView()

void SharpKmyGfx::GameView::enableAsSubGameView ( bool  flg)

◆ enableAutoExposure()

void SharpKmyGfx::GameView::enableAutoExposure ( bool  flg)

◆ enableBloom()

void SharpKmyGfx::GameView::enableBloom ( bool  flg)

◆ enableCascadeVisualize()

void SharpKmyGfx::GameView::enableCascadeVisualize ( bool  flg)

◆ enableChromaticAbberation()

void SharpKmyGfx::GameView::enableChromaticAbberation ( bool  flg)

◆ enableDof()

void SharpKmyGfx::GameView::enableDof ( bool  flg)

◆ enableDynamicResolution()

void SharpKmyGfx::GameView::enableDynamicResolution ( bool  flg)

◆ enableFxaa()

void SharpKmyGfx::GameView::enableFxaa ( bool  flg)

◆ enableIconDrawer()

void SharpKmyGfx::GameView::enableIconDrawer ( bool  enable)

◆ enableSharpen()

void SharpKmyGfx::GameView::enableSharpen ( bool  flg)

◆ enableSSSSS()

void SharpKmyGfx::GameView::enableSSSSS ( bool  flg)

◆ enableVignette()

void SharpKmyGfx::GameView::enableVignette ( bool  flg)

◆ getBaseDepthTexture()

Texture SharpKmyGfx::GameView::getBaseDepthTexture ( )
static

◆ getCameraProj()

SharpKmyMath::Matrix4 SharpKmyGfx::GameView::getCameraProj ( )

◆ getCameraView()

SharpKmyMath::Matrix4 SharpKmyGfx::GameView::getCameraView ( )

◆ getCaptureColorTexture()

Texture SharpKmyGfx::GameView::getCaptureColorTexture ( )

◆ getCaptureDepthTexture()

Texture SharpKmyGfx::GameView::getCaptureDepthTexture ( )

◆ getCaptureFrame()

void SharpKmyGfx::GameView::getCaptureFrame ( array< UINT32 > ^  color,
array< UINT32 > ^  depth 
)

◆ getDepth()

void SharpKmyGfx::GameView::getDepth ( int  x,
int  y,
int  w,
int  h,
array< float >^  buffer 
)

◆ getDisplayID()

u32 SharpKmyGfx::GameView::getDisplayID ( )

◆ getImage()

void SharpKmyGfx::GameView::getImage ( int  x,
int  y,
int  w,
int  h,
array< UINT32 > ^  buffer 
)

◆ getManipulator()

Manipulator SharpKmyGfx::GameView::getManipulator ( )

◆ getNativePtr()

kmyGfx::GameView * SharpKmyGfx::GameView::getNativePtr ( )

◆ getNormal()

void SharpKmyGfx::GameView::getNormal ( int  x,
int  y,
int  w,
int  h,
array< UINT32 >^  buffer 
)

◆ getPhysics()

SharpKmyPhysics::PhysicsBase SharpKmyGfx::GameView::getPhysics ( )

◆ getPickupIDTexture()

Texture SharpKmyGfx::GameView::getPickupIDTexture ( )
static

◆ getTaskGameView()

GameView SharpKmyGfx::GameView::getTaskGameView ( )
static

◆ getTerrainNormal()

void SharpKmyGfx::GameView::getTerrainNormal ( float  x,
float  y,
SharpKmyMath::Vector3 nrm 
)

◆ getViewportSize()

SharpKmyMath::Vector2 SharpKmyGfx::GameView::getViewportSize ( )

◆ globalEnablePostFX()

void SharpKmyGfx::GameView::globalEnablePostFX ( bool  flg)
static

◆ ignoreSuspendChecker()

void SharpKmyGfx::GameView::ignoreSuspendChecker ( )

◆ isDrawSuspending()

bool SharpKmyGfx::GameView::isDrawSuspending ( )
static

◆ pickup()

unsigned short SharpKmyGfx::GameView::pickup ( float  x,
float  y,
SharpKmyMath::Vector3 wpos 
)

◆ pickupDetail()

int SharpKmyGfx::GameView::pickupDetail ( float  x,
float  y,
array< UINT16 > ^  idlist,
array< SharpKmyMath::Vector3 > ^  wposlist,
array< float > ^  depthlist 
)

◆ pickupRect()

void SharpKmyGfx::GameView::pickupRect ( float  left,
float  top,
float  right,
float  bottom,
System::Collections::Generic::List< UINT16 >^  idlist,
bool  ignoreTerrain,
bool  ignoreManipulator 
)

◆ postDraw()

void SharpKmyGfx::GameView::postDraw ( bool  swapbuffer)

◆ preDraw()

void SharpKmyGfx::GameView::preDraw ( float  timeScale,
Action< float >^  startFixedUpdate,
Action< float >^  afterAnimate,
Action< float >^  afterSimulate 
)

◆ removeCaptureFrame()

void SharpKmyGfx::GameView::removeCaptureFrame ( )

◆ removeSubGameView() [1/2]

void SharpKmyGfx::GameView::removeSubGameView ( GameView sub)

◆ removeSubGameView() [2/2]

void SharpKmyGfx::GameView::removeSubGameView ( GameView sub,
bool  removeForce 
)

◆ resetQualityAdjust()

void SharpKmyGfx::GameView::resetQualityAdjust ( )

◆ restore()

void SharpKmyGfx::GameView::restore ( )

◆ save()

void SharpKmyGfx::GameView::save ( )

◆ set3DGizmoDrawEnabled()

void SharpKmyGfx::GameView::set3DGizmoDrawEnabled ( bool  flg)

◆ setAmbientLight()

void SharpKmyGfx::GameView::setAmbientLight ( SharpKmyGfx::Color  color)

◆ setAutoExposureParam()

void SharpKmyGfx::GameView::setAutoExposureParam ( float  targetBrightness,
float  minScale,
float  maxScale 
)

◆ setBackGroundColor()

void SharpKmyGfx::GameView::setBackGroundColor ( SharpKmyGfx::Color  color)

◆ setBillboardLightModulation()

void SharpKmyGfx::GameView::setBillboardLightModulation ( float  value)

◆ setBloomParam()

void SharpKmyGfx::GameView::setBloomParam ( float  apply,
float  hilightThreshold 
)

◆ setCamera()

void SharpKmyGfx::GameView::setCamera ( SharpKmyMath::Matrix4 proj,
SharpKmyMath::Matrix4 view 
)

◆ setCascadeCount()

void SharpKmyGfx::GameView::setCascadeCount ( int  num)

◆ setCascadeStep()

void SharpKmyGfx::GameView::setCascadeStep ( float  s1,
float  s2,
float  s3 
)

◆ setChromaticAbberationParam()

void SharpKmyGfx::GameView::setChromaticAbberationParam ( float  size)

◆ setDirectionalLightColor()

void SharpKmyGfx::GameView::setDirectionalLightColor ( SharpKmyGfx::Color  color)

◆ setDirectionalLightPosture()

void SharpKmyGfx::GameView::setDirectionalLightPosture ( SharpKmyMath::Matrix4 posture)

◆ setDirectionalLightShadowBias()

void SharpKmyGfx::GameView::setDirectionalLightShadowBias ( f32  bias)

◆ setDirectionalLightShadowColor()

void SharpKmyGfx::GameView::setDirectionalLightShadowColor ( SharpKmyGfx::Color  color)

◆ setDirectionalLightShadowDistance()

void SharpKmyGfx::GameView::setDirectionalLightShadowDistance ( f32  distance)

◆ setDirectionalLightShadowVolumeMargin()

void SharpKmyGfx::GameView::setDirectionalLightShadowVolumeMargin ( f32  margin)

◆ setDisplayID()

void SharpKmyGfx::GameView::setDisplayID ( unsigned int  id)

◆ setDistanceFadeEnable()

void SharpKmyGfx::GameView::setDistanceFadeEnable ( bool  flg)

◆ setDistanceFadeStart()

void SharpKmyGfx::GameView::setDistanceFadeStart ( float  v)

◆ setDofParam()

void SharpKmyGfx::GameView::setDofParam ( float  focalDistance,
float  focalRange,
float  radius 
)

◆ setDrawDelegate()

void SharpKmyGfx::GameView::setDrawDelegate ( GameViewDrawHook d)

◆ setDrawSuspendChecker()

void SharpKmyGfx::GameView::setDrawSuspendChecker ( GameViewDrawSuspendChecker body)
static

◆ setFogColor()

void SharpKmyGfx::GameView::setFogColor ( SharpKmyGfx::Color  color)

◆ setFogParam()

void SharpKmyGfx::GameView::setFogParam ( f32  start,
f32  depthDensity,
f32  heightFallOff 
)

◆ setHiddenStencilColor()

void SharpKmyGfx::GameView::setHiddenStencilColor ( float  r,
float  g,
float  b,
float  a 
)

◆ setIBLIntensity()

void SharpKmyGfx::GameView::setIBLIntensity ( float  value)

◆ setLutMap()

void SharpKmyGfx::GameView::setLutMap ( System::Guid  id)

◆ setMainGameView()

void SharpKmyGfx::GameView::setMainGameView ( )

◆ setMaximumResolution()

void SharpKmyGfx::GameView::setMaximumResolution ( int  w,
int  h 
)
static

◆ setModelBoundSphereDrawType()

void SharpKmyGfx::GameView::setModelBoundSphereDrawType ( ModelBoundSphereDrawType  flg)

◆ setPerformanceMeterDrawMode()

static void SharpKmyGfx::GameView::setPerformanceMeterDrawMode ( int  mode)
static

◆ setPhysicsDebugDrawConstraints()

void SharpKmyGfx::GameView::setPhysicsDebugDrawConstraints ( bool  flg)

◆ setPhysicsDebugDrawContactPoints()

void SharpKmyGfx::GameView::setPhysicsDebugDrawContactPoints ( bool  flg)

◆ setPhysicsDebugDrawEnabled()

void SharpKmyGfx::GameView::setPhysicsDebugDrawEnabled ( int  flag)

◆ setPhysicsProcessEnabled()

void SharpKmyGfx::GameView::setPhysicsProcessEnabled ( bool  flag)

◆ setReflectionIntensity()

void SharpKmyGfx::GameView::setReflectionIntensity ( float  value)

◆ setReflectionMap()

void SharpKmyGfx::GameView::setReflectionMap ( Texture tex)

◆ setSelectionDrawEnabled()

void SharpKmyGfx::GameView::setSelectionDrawEnabled ( bool  flg)

◆ setShadowMapScale()

void SharpKmyGfx::GameView::setShadowMapScale ( float  s)

◆ setShapenParam()

void SharpKmyGfx::GameView::setShapenParam ( float  strength,
float  distance 
)

◆ setSkyBoxMaterial()

void SharpKmyGfx::GameView::setSkyBoxMaterial ( System::Guid  mtl)

◆ setSpriteBatch()

void SharpKmyGfx::GameView::setSpriteBatch ( SpriteBatch s)

◆ setSpriteBatchToTaskGameView()

void SharpKmyGfx::GameView::setSpriteBatchToTaskGameView ( SpriteBatch s)
static

◆ setSSAOParam()

void SharpKmyGfx::GameView::setSSAOParam ( f32  radius,
f32  minLimit,
f32  maxLimit,
f32  shadowScale,
int  sampleCount,
f32  contrast,
SharpKmyGfx::Color  color 
)

◆ setSSSSSParam()

void SharpKmyGfx::GameView::setSSSSSParam ( f32  radius,
int  sampleCount,
f32  apply 
)

◆ setViewport()

void SharpKmyGfx::GameView::setViewport ( int  x,
int  y,
int  width,
int  height 
)

◆ setViewportSize()

void SharpKmyGfx::GameView::setViewportSize ( int  width,
int  height 
)

◆ setVignette()

void SharpKmyGfx::GameView::setVignette ( float  value)

◆ use2DGizmo()

void SharpKmyGfx::GameView::use2DGizmo ( )

◆ useAsyncCommandExec()

static void SharpKmyGfx::GameView::useAsyncCommandExec ( )
static

◆ usetDeferredLighting()

void SharpKmyGfx::GameView::usetDeferredLighting ( bool  flg)

◆ viewVolumeCheck()

bool SharpKmyGfx::GameView::viewVolumeCheck ( float  x,
float  y,
float  z,
float  radius 
)

◆ XZPlaneHitTest()

bool SharpKmyGfx::GameView::XZPlaneHitTest ( float  u,
float  v,
float  yoffset,
SharpKmyMath::Vector3 hitpos 
)

Member Data Documentation

◆ m_ignoreSuspendChecker

bool SharpKmyGfx::GameView::m_ignoreSuspendChecker = false

◆ owning

bool SharpKmyGfx::GameView::owning = false

◆ s_checker

GameViewDrawSuspendChecker SharpKmyGfx::GameView::s_checker
static