Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
XNAInterfaceComponents
Components
Component
GetDrawDepthOffset
XNAInterfaceComponents.Components.Component.GetDrawDepthOffset C# (CSharp) Method
Component Class Documentation
Mostrar archivo
Open project: Wotuu/RTS_XNA_v2
GetDrawDepthOffset()
protected
method
Takes the depth of this component, and multiplies it by 0.01f to get a value which you can use to draw the component at the correct depth on the screen.
protected
GetDrawDepthOffset
( ) :
float
return
float
protected float GetDrawDepthOffset() { return (this.GetDepth() * 0.01f); }
Component
Component
Draw
GetDepth
GetDrawDepthOffset
GetLocation
GetScreenBounds
OnMouseEnter
OnMouseExit
Unload
Update