Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Microsoft.Xna.Framework.Graphics.BasicEffect Class Reference

Public Member Functions

 BasicEffect (GraphicsDevice device)
 
override Effect Clone ()
 
void EnableDefaultLighting ()
 
virtual void Dispose ()
 
override string ToString ()
 

Protected Member Functions

 BasicEffect (BasicEffect cloneSource)
 
override void Dispose ([MarshalAs(UnmanagedType.U1)] bool P_0)
 
void raise_Disposing (object value0, EventArgs value1)
 

Protected Attributes

GraphicsDevice _parent
 

Package Functions

override bool WantParameter (EffectParameter parameter)
 
override void OnApply ()
 
unsafe void OnLostDevice ()
 
unsafe void OnResetDevice ()
 
void AddClonedEffect (Effect effect)
 
virtual int SaveDataForRecreation ()
 
virtual unsafe int RecreateAndPopulateObject ()
 
virtual unsafe void ReleaseNativeObject ([MarshalAs(UnmanagedType.U1)] bool disposeManagedResource)
 

Static Package Functions

static unsafe Effect GetManagedObject (ID3DXEffect *pInterface, GraphicsDevice pDevice, uint pool)
 

Package Attributes

byte[] pCachedEffectData
 
WeakReference pParentEffect
 
List< WeakReferencepClonedEffects
 
EffectTechnique _currentTechnique
 
unsafe ID3DXEffectpComPtr
 
ulong _internalHandle
 
bool isDisposed
 

Static Package Attributes

static object pSyncObject = new object()
 

Properties

Matrix World [get, set]
 
Matrix View [get, set]
 
Matrix Projection [get, set]
 
Vector3 DiffuseColor [get, set]
 
Vector3 EmissiveColor [get, set]
 
Vector3 SpecularColor [get, set]
 
float SpecularPower [get, set]
 
float Alpha [get, set]
 
bool LightingEnabled [get, set]
 
bool PreferPerPixelLighting [get, set]
 
Vector3 AmbientLightColor [get, set]
 
DirectionalLight DirectionalLight0 [get]
 
DirectionalLight DirectionalLight1 [get]
 
DirectionalLight DirectionalLight2 [get]
 
bool FogEnabled [get, set]
 
float FogStart [get, set]
 
float FogEnd [get, set]
 
Vector3 FogColor [get, set]
 
bool TextureEnabled [get, set]
 
Texture2D Texture [get, set]
 
bool VertexColorEnabled [get, set]
 
EffectParameterCollection Parameters [get]
 
EffectTechniqueCollection Techniques [get]
 
unsafe EffectTechnique CurrentTechnique [get, set]
 
bool IsDisposed [get]
 
object Tag [get, set]
 
string Name [get, set]
 
GraphicsDevice GraphicsDevice [get]
 
EventHandler< EventArgsDisposing
 

Private Member Functions

void CacheEffectParameters (BasicEffect cloneSource)
 
unsafe void InitializeHelpers ()
 
unsafe void CreateEffectFromCode (GraphicsDevice graphicsDevice, byte[] effectCode)
 
int IGraphicsResource. SaveDataForRecreation ()
 
int IGraphicsResource. RecreateAndPopulateObject ()
 
void IGraphicsResource. ReleaseNativeObject ([MarshalAs(UnmanagedType.U1)] bool disposeManagedResource)
 
void OnObjectCreation ()
 
void _0021Effect ()
 
void _007EEffect ()
 
void _0021GraphicsResource ()
 
void _007EGraphicsResource ()
 

Static Private Member Functions

static string FormatShaderModel (uint shaderModel)
 

Private Attributes

EffectParameter textureParam
 
EffectParameter diffuseColorParam
 
EffectParameter emissiveColorParam
 
EffectParameter specularColorParam
 
EffectParameter specularPowerParam
 
EffectParameter eyePositionParam
 
EffectParameter fogColorParam
 
EffectParameter fogVectorParam
 
EffectParameter worldParam
 
EffectParameter worldInverseTransposeParam
 
EffectParameter worldViewProjParam
 
EffectParameter shaderIndexParam
 
bool lightingEnabled
 
bool preferPerPixelLighting
 
bool oneLight
 
bool fogEnabled
 
bool textureEnabled
 
bool vertexColorEnabled
 
Matrix world = Matrix.Identity
 
Matrix view = Matrix.Identity
 
Matrix projection = Matrix.Identity
 
Matrix worldView
 
Vector3 diffuseColor = Vector3.One
 
Vector3 emissiveColor = Vector3.Zero
 
Vector3 ambientLightColor = Vector3.Zero
 
float alpha = 1f
 
DirectionalLight light0
 
DirectionalLight light1
 
DirectionalLight light2
 
float fogStart
 
float fogEnd = 1f
 
EffectDirtyFlags dirtyFlags = EffectDirtyFlags.All
 
EffectTechniqueCollection pTechniqueCollection
 
EffectParameterCollection pParamCollection
 
string _localName
 
object _localTag
 
EventHandler< EventArgs_003Cbacking_store_003EDisposing
 

Detailed Description

Definition at line 3 of file BasicEffect.cs.


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