OpenMetaverse.AgentManager.SetHeightWidth C# (CSharp) Method

SetHeightWidth() public method

Set the height and the width of the client window. This is used by the server to build a virtual camera frustum for our avatar
public SetHeightWidth ( ushort height, ushort width ) : void
height ushort New height of the viewer window
width ushort New width of the viewer window
return void
        public void SetHeightWidth(ushort height, ushort width)
        {
            AgentHeightWidthPacket heightwidth = new AgentHeightWidthPacket();
            heightwidth.AgentData.AgentID = Client.Self.AgentID;
            heightwidth.AgentData.SessionID = Client.Self.SessionID;
            heightwidth.AgentData.CircuitCode = Client.Network.CircuitCode;
            heightwidth.HeightWidthBlock.Height = height;
            heightwidth.HeightWidthBlock.Width = width;
            heightwidth.HeightWidthBlock.GenCounter = heightWidthGenCounter++;

            Client.Network.SendPacket(heightwidth);
        }