terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Microsoft.Xna.Framework.Graphics.GraphicsDevice Class Reference
+ Collaboration diagram for Microsoft.Xna.Framework.Graphics.GraphicsDevice:

Public Member Functions

 GraphicsDevice (GraphicsAdapter adapter, GraphicsProfile graphicsProfile, PresentationParameters presentationParameters)
 
void Clear (Color color)
 
void Clear (ClearOptions options, Color color, float depth, int stencil)
 
void Clear (ClearOptions options, Vector4 color, float depth, int stencil)
 
void Present ()
 
void Reset ()
 
void Reset (PresentationParameters presentationParameters)
 
void SetRenderTarget (RenderTarget2D renderTarget)
 
RenderTargetBinding[] GetRenderTargets ()
 
void GetRenderTargets (RenderTargetBinding[] outTargets)
 
Material GetMaterial (int offset)
 
void DrawGeometry (SpriteBatcher.VertexData[] vertices, short[] indices, int vertexCount, int indexCount, Vector3 position, Vector3 scale)
 
void DrawGeometryWithSubMeshes (SpriteBatcher.VertexData[] vertices, short[] indices, int vertexCount, int indexCount, Vector3 position, Vector3 scale, List< Material > subMeshMaterials, List< SubMeshDescriptor > subMeshPartitions)
 
void DrawGeometry (List< Vector3 > positions, List< Vector2 > uvs, List< Vector4 > uv2s, List< Color32 > colours, List< int > indices, Vector3 position, Vector3 scale)
 

Public Attributes

Texture2D[] Textures
 
bool CachedImmediateDrawMaterialActive
 

Static Public Attributes

static GraphicsDevice Instance
 

Protected Member Functions

override void Finalize ()
 

Package Functions

 GraphicsDevice ()
 
int GetClampedMultisampleCount (int multiSampleCount)
 
void Initialize ()
 
void ApplyState (bool applyShaders)
 

Static Package Functions

static Rectangle GetDefaultTitleSafeArea (int x, int y, int width, int height)
 
static Rectangle GetTitleSafeArea (int x, int y, int width, int height)
 

Package Attributes

Dictionary< int, EffectEffectCache
 
int MaxTextureSlots
 
int MaxVertexTextureSlots
 

Properties

GraphicsCapabilities GraphicsCapabilities [get, set, private set]
 
EventHandler< EventArgsDeviceLost [set]
 
EventHandler< EventArgsDeviceReset [set]
 
EventHandler< EventArgsDeviceResetting [set]
 
EventHandler< ResourceCreatedEventArgsResourceCreated [set]
 
EventHandler< ResourceDestroyedEventArgsResourceDestroyed [set]
 
EventHandler< EventArgsDisposing [set]
 
EventHandler< PresentationEventArgsPresentationChanged [set]
 
bool IsRenderTargetBound [get, set]
 
DepthFormat ActiveDepthFormat [get, set]
 
GraphicsAdapter Adapter [get, set, private set]
 
RasterizerState RasterizerState [get, set]
 
Color BlendFactor [get, set]
 
BlendState BlendState [get, set]
 
DepthStencilState DepthStencilState [get, set]
 
DisplayMode DisplayMode [get, set]
 
GraphicsDeviceStatus GraphicsDeviceStatus [get, set]
 
PresentationParameters PresentationParameters [get, set, private set]
 
Viewport Viewport [get, set]
 
GraphicsProfile GraphicsProfile [get, set]
 
Rectangle ScissorRectangle [get, set]
 
int RenderTargetCount [get, set]
 
bool ResourcesLost [get, set]
 

Private Member Functions

void Setup ()
 
T[] Clone< T > (T[] srcArray, int Count)
 
Material[] GetMaterialArray (List< Material > subMeshMaterials)
 

Static Private Member Functions

static GraphicsDevice ()
 

Private Attributes

Viewport _viewport
 
Color _blendFactor
 
bool _blendFactorDirty
 
BlendState _blendState
 
BlendState _actualBlendState
 
bool _blendStateDirty
 
BlendState _blendStateAdditive
 
BlendState _blendStateAlphaBlend
 
BlendState _blendStateNonPremultiplied
 
BlendState _blendStateOpaque
 
DepthStencilState _depthStencilState
 
DepthStencilState _actualDepthStencilState
 
bool _depthStencilStateDirty
 
DepthStencilState _depthStencilStateDefault
 
DepthStencilState _depthStencilStateDepthRead
 
DepthStencilState _depthStencilStateNone
 
RasterizerState _rasterizerState
 
RasterizerState _actualRasterizerState
 
bool _rasterizerStateDirty
 
RasterizerState _rasterizerStateCullClockwise
 
RasterizerState _rasterizerStateCullCounterClockwise
 
RasterizerState _rasterizerStateCullNone
 
Rectangle _scissorRectangle
 
bool _scissorRectangleDirty
 
readonly RenderTargetBinding[] _currentRenderTargetBindings
 
int _currentRenderTargetCount
 
readonly RenderTargetBinding[] _tempRenderTargetBinding
 
GraphicsCapabilities< GraphicsCapabilitiesk__BackingField
 
int _maxVertexBufferSlots
 
GraphicsAdapter< Adapterk__BackingField
 
PresentationParameters< PresentationParametersk__BackingField
 
readonly GraphicsProfile _graphicsProfile
 
bool< ResourcesLostk__BackingField
 
EffectPass _cachedImmediateDrawEffect
 
int _cachedImmediateDrawEffectState
 
Material _cachedImmediateDrawMaterial
 
Texture2D _cachedImmediateTexture0
 
Texture2D _cachedImmediateTexture1
 
List< Material[]> MaterialArrays
 

Static Private Attributes

static readonly Color DiscardColor
 

Detailed Description

Definition at line 16 of file GraphicsDevice.cs.


The documentation for this class was generated from the following file: