Show / Hide Table of Contents

Class MyRenderComponentScreenAreas

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyRenderComponentBase
MyRenderComponent
MyRenderComponentCubeBlock
MyRenderComponentScreenAreas
Inherited Members
MyRenderComponentCubeBlock.m_cubeBlock
MyRenderComponentCubeBlock.OnAddedToContainer()
MyRenderComponentCubeBlock.InvalidateRenderObjects()
MyRenderComponentCubeBlock.UpdateGridParent()
MyRenderComponent.m_model
MyRenderComponent.SetRenderObjectID(Int32, UInt32)
MyRenderComponent.Draw()
MyRenderComponent.IsVisible()
MyRenderComponent.Model
MyRenderComponent.ModelStorage
MyRenderComponent.NeedsDraw
MyRenderComponentBase.UNINITIALIZED_IDs
MyRenderComponentBase.OldRedToHSV
MyRenderComponentBase.OldYellowToHSV
MyRenderComponentBase.OldBlueToHSV
MyRenderComponentBase.OldGreenToHSV
MyRenderComponentBase.OldBlackToHSV
MyRenderComponentBase.OldWhiteToHSV
MyRenderComponentBase.OldGrayToHSV
MyRenderComponentBase.m_enableColorMaskHsv
MyRenderComponentBase.m_colorMaskHsv
MyRenderComponentBase.m_textureChanges
MyRenderComponentBase.m_diffuseColor
MyRenderComponentBase.LastMomentUpdateIndex
MyRenderComponentBase.NeedForDrawFromParentChanged
MyRenderComponentBase.FadeIn
MyRenderComponentBase.FadeOut
MyRenderComponentBase.m_parentIDs
MyRenderComponentBase.m_renderObjectIDs
MyRenderComponentBase.Transparency
MyRenderComponentBase.DepthBias
MyRenderComponentBase.GetRenderObjectID()
MyRenderComponentBase.RemoveRenderObjects()
MyRenderComponentBase.ResizeRenderObjectArray(Int32)
MyRenderComponentBase.IsRenderObjectAssigned(Int32)
MyRenderComponentBase.UpdateRenderObjectLocal(Matrix)
MyRenderComponentBase.UpdateRenderEntity(Vector3)
MyRenderComponentBase.UpdateRenderTextureChanges(Dictionary<MyStringId, MyTextureChange>)
MyRenderComponentBase.CanBeAddedToRender()
MyRenderComponentBase.UpdateRenderObject(Boolean, Boolean)
MyRenderComponentBase.UpdateRenderObjectVisibility(Boolean)
MyRenderComponentBase.GetDiffuseColor()
MyRenderComponentBase.GetRenderFlags()
MyRenderComponentBase.GetRenderCullingOptions()
MyRenderComponentBase.SetParent(Int32, UInt32, Nullable<Matrix>)
MyRenderComponentBase.IsChild(Int32)
MyRenderComponentBase.SetVisibilityUpdates(Boolean)
MyRenderComponentBase.PropagateVisibilityUpdates(Boolean)
MyRenderComponentBase.UpdateTransparency()
MyRenderComponentBase.EnableColorMaskHsv
MyRenderComponentBase.ColorMaskHsv
MyRenderComponentBase.TextureChanges
MyRenderComponentBase.PersistentFlags
MyRenderComponentBase.ParentIDs
MyRenderComponentBase.RenderObjectIDs
MyRenderComponentBase.Visible
MyRenderComponentBase.DrawInAllCascades
MyRenderComponentBase.MetalnessColorable
MyRenderComponentBase.NearFlag
MyRenderComponentBase.NeedsDrawFromParent
MyRenderComponentBase.CastShadows
MyRenderComponentBase.NeedsResolveCastShadow
MyRenderComponentBase.FastCastShadowResolve
MyRenderComponentBase.SkipIfTooSmall
MyRenderComponentBase.DrawOutsideViewDistance
MyRenderComponentBase.ShadowBoxLod
MyRenderComponentBase.OffsetInVertexShader
MyRenderComponentBase.ComponentTypeDebugString
MyEntityComponentBase.OnBeforeRemovedFromContainer()
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.AttachSyncToEntity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.OnAddedToScene()
MyComponentBase.OnRemovedFromScene()
MyComponentBase.Serialize(Boolean)
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)
MyComponentBase.Init(MyComponentDefinitionBase)
MyComponentBase.IsSerialized()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.Components
Assembly: Sandbox.Game.dll
Syntax
public class MyRenderComponentScreenAreas : MyRenderComponentCubeBlock, IMyEntityComponentBase, IMyComponentBase

Constructors

MyRenderComponentScreenAreas(MyEntity)

Declaration
public MyRenderComponentScreenAreas(MyEntity entity)
Parameters
Type Name Description
MyEntity entity

Properties

IsUpdateModelPropertiesEnabled

Declaration
public bool IsUpdateModelPropertiesEnabled { get; set; }
Property Value
Type Description
System.Boolean

Methods

AddRenderObjects()

Declaration
public override void AddRenderObjects()
Overrides
MyRenderComponentCubeBlock.AddRenderObjects()

AddScreenArea(UInt32[], String)

Declaration
public void AddScreenArea(uint[] renderObjectIDs, string materialName)
Parameters
Type Name Description
System.UInt32[] renderObjectIDs
System.String materialName

ChangeTexture(Int32, String)

Declaration
public void ChangeTexture(int area, string path)
Parameters
Type Name Description
System.Int32 area
System.String path

CreateTexture(Int32, Vector2I)

Declaration
public void CreateTexture(int area, Vector2I textureSize)
Parameters
Type Name Description
System.Int32 area
Vector2I textureSize

GenerateOffscreenTextureName(Int64, Int32)

Declaration
public string GenerateOffscreenTextureName(long entityId, int area)
Parameters
Type Name Description
System.Int64 entityId
System.Int32 area
Returns
Type Description
System.String

GetTextureByteCount(Vector2I)

Declaration
public static int GetTextureByteCount(Vector2I textureSize)
Parameters
Type Name Description
Vector2I textureSize
Returns
Type Description
System.Int32

HideScreenArea(Int32)

Declaration
public void HideScreenArea(int area)
Parameters
Type Name Description
System.Int32 area

ReleaseRenderObjectID(Int32)

Declaration
public override void ReleaseRenderObjectID(int index)
Parameters
Type Name Description
System.Int32 index
Overrides
MyRenderComponent.ReleaseRenderObjectID(Int32)

ReleaseTexture(Int32, Boolean)

Declaration
public void ReleaseTexture(int area, bool useEmptyTexture = true)
Parameters
Type Name Description
System.Int32 area
System.Boolean useEmptyTexture

RenderSpritesToTexture(Int32, ListReader<MySprite>, Vector2I, Vector2, Color, Byte)

Declaration
public void RenderSpritesToTexture(int area, ListReader<MySprite> sprites, Vector2I textureSize, Vector2 aspectRatio, Color backgroundColor, byte backgroundAlpha)
Parameters
Type Name Description
System.Int32 area
ListReader<MySprite> sprites
Vector2I textureSize
Vector2 aspectRatio
Color backgroundColor
System.Byte backgroundAlpha

UpdateModelProperties()

Declaration
public void UpdateModelProperties()

UpdateRenderAreas()

Declaration
protected void UpdateRenderAreas()

Extension Methods

MyRenderComponentExtensions.CalculateBlockDepthBias(MyRenderComponent, MyCubeBlock)
MyEntityContainerEventExtensions.RegisterForEntityEvent(MyEntityComponentBase, MyStringHash, MyEntityContainerEventExtensions.EntityEventHandler)
MyEntityContainerEventExtensions.RegisterForEntityEvent(MyEntityComponentBase, MyEntity, MyStringHash, MyEntityContainerEventExtensions.EntityEventHandler)
MyEntityContainerEventExtensions.UnregisterForEntityEvent(MyEntityComponentBase, MyEntity, MyStringHash)
MyEntityContainerEventExtensions.RaiseEntityEvent(MyEntityComponentBase, MyStringHash, MyEntityContainerEventExtensions.EntityEventParams)
MyRenderComponentBaseExtensions.GetModel(MyRenderComponentBase)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾