Click or drag to resize

Drawing Class

This class offers everything one needs to render ontop of the Ensages window.
Inheritance Hierarchy
SystemObject
  EnsageDrawing

Namespace:  Ensage
Assembly:  Ensage (in Ensage.dll) Version: 0.0.0.1
Syntax
C#
public sealed class Drawing

The Drawing type exposes the following members.

Constructors
  NameDescription
Public methodDrawing
Initializes a new instance of the Drawing class
Top
Properties
  NameDescription
Public propertyStatic memberDefaultTextSize
Returns the default text size for the DrawText function
Public propertyStatic memberDirect3DDevice11
Gets the DirectX11 device.
Public propertyStatic memberDirect3DDevice11Context
Gets the DirectX11 device context.
Public propertyStatic memberDirect3DDevice9
Gets the DirectX9 device.
Public propertyStatic memberHeight
Gets the screen height of the dota window.
Public propertyStatic memberProjection
Game camera's Projection (Currently not working!)
Public propertyStatic memberRenderMode
Active render mode of dota
Public propertyStatic memberScreenSize
Gets the screen size of the dota window.
Public propertyStatic memberSwapChain
Gets the swap chain for DirectX11 drawing.
Public propertyStatic memberView
Game camera's view
Public propertyStatic memberWidth
Gets the screen width of the dota window.
Public propertyStatic memberWorld
Game world matrix
Top
Methods
  NameDescription
Public methodStatic memberDrawCircle Obsolete.
Draws an outlined circle using the Dota2 drawing functions. Only works in Drawing.OnDraw event.
Public methodStatic memberDrawLine Obsolete.
Draws a line from a to b using the Dota2 drawing functions. Only works in Drawing.OnDraw event.
Public methodStatic memberDrawRect(Vector2, Vector2, DotaTexture) Obsolete.
Draws a rectangle with a texture using the Dota2 drawing functions. Only works in Drawing.OnDraw event.
Public methodStatic memberDrawRect(Vector2, Vector2, Color) Obsolete.
Draws a rectangle using the Dota2 drawing functions. Only works in Drawing.OnDraw event.
Public methodStatic memberDrawRect(Vector2, Vector2, Color, Boolean) Obsolete.
Draws a rectangle using the Dota2 drawing functions. Only works in Drawing.OnDraw event.
Public methodStatic memberDrawText(String, Vector2, Color, FontFlags) Obsolete.
Draws text using the Dota2 drawing functions. Only works in Drawing.OnDraw event.
Public methodStatic memberDrawText(String, Vector2, Vector2, Color, FontFlags) Obsolete.
Draws text using the Dota2 drawing functions. Only works in Drawing.OnDraw event.
Public methodStatic memberDrawText(String, String, Vector2, Vector2, Color, FontFlags) Obsolete.
Draws text using the Dota2 drawing functions. Only works in Drawing.OnDraw event.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetTexture Obsolete.
Returns a texture of Dota, which can be used to draw with DrawRect. The path is relative to the materials folder.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberMeasureText Obsolete.
Measures the size of the given text for a certain font.
Public methodStatic memberScreenToWorld(Vector2)
Converts the given screen coordinates into 3D world coordinates.
Public methodStatic memberScreenToWorld(Single, Single)
Converts the given screen coordinates into 3D world coordinates.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberWorldToMinimap
Converts the given 3D world coordinates into minimap coordinates.
Public methodStatic memberWorldToScreen(Vector3)
Converts the given 3D world coordinates into screen coordinates.
Public methodStatic memberWorldToScreen(Vector3, Vector2)
Converts the given 3D world coordinates into screen coordinates.
Top
Events
See Also