View manipulation functions. More...
Public Member Functions | |
| void | SetX (integer viewIndex, number x) |
| Sets the x-axis position of the camera for the specified view. | |
| void | SetY (integer viewIndex, number y) |
| Sets the y-axis position of the camera for the specified view. | |
| void | SetZ (integer viewIndex, number z) |
| Sets the z-axis position of the camera for the specified view. | |
| void | SetPosition (integer viewIndex, number x, number y, number z) |
| Sets the position of the camera for the specified view. | |
| void | AdjustX (integer viewIndex, number x) |
| Adjusts the x-axis position of the camera for the specified view by an amount. | |
| void | AdjustY (integer viewIndex, number y) |
| Adjusts the y-axis position of the camera for the specified view by an amount. | |
| void | AdjustZ (integer viewIndex, number z) |
| Adjusts the z-axis position of the camera for the specified view by an amount. | |
| void | SetScale (integer viewIndex, number x, number y, number z) |
| Sets the scale of the camera for the specified view. | |
| void | SetAngle (integer viewIndex, number x, number y, number z) |
| Sets the angle of the camera for the specified view. | |
| void | SetSize (integer viewIndex, number width, number height) |
| Sets the size of the camera for the specified view. | |
| void | SetOutputX (integer viewIndex, number x) |
| Sets the x-axis output position of the specified view. | |
| void | SetOutputY (integer viewIndex, number y) |
| Sets the y-axis output position of the specified view. | |
| void | SetOutputPosition (integer viewIndex, number x, number y) |
| Sets the output position of the specified view. | |
| void | SetOutputSize (integer viewIndex, number width, number height) |
| Sets the output size of the specified view. | |
| decimal | GetX (integer viewIndex) |
| Gets the x-axis position of the camera for the specified view. | |
| decimal | GetY (integer viewIndex) |
| Gets the y-axis position of the camera for the specified view. | |
| decimal | GetZ (integer viewIndex) |
| Gets the z-axis position of the camera for the specified view. | |
| decimal | GetWidth (integer viewIndex) |
| Gets the width of the camera for the specified view. | |
| decimal | GetHeight (integer viewIndex) |
| Gets the height of the camera for the specified view. | |
| decimal | GetCenterX (integer viewIndex) |
| Gets the x center of the camera for the specified view. | |
| decimal | GetCenterY (integer viewIndex) |
| Gets the y center of the camera for the specified view. | |
| boolean | IsUsingDrawTarget (integer viewIndex) |
| Gets whether the specified camera is using a draw target. | |
| void | SetUseDrawTarget (integer viewIndex, boolean useDrawTarget) |
| Sets the specified camera to use a draw target. | |
| integer | GetDrawTarget (integer viewIndex) |
| Gets the specified camera's draw target. | |
| void | SetShader (integer viewIndex, Shader shader) |
| Sets a shader for the specified camera. | |
| Shader | GetShader (integer viewIndex) |
| Gets the shader of the specified camera. | |
| boolean | IsUsingSoftwareRenderer (integer viewIndex) |
| Gets whether the specified camera is using the software renderer. | |
| void | SetUseSoftwareRenderer (integer viewIndex, boolean useSoftwareRenderer) |
| Sets the specified camera to use the software renderer. | |
| void | SetUsePerspective () |
| boolean | IsEnabled (integer viewIndex) |
| Gets whether the specified camera is active. | |
| void | SetEnabled (integer viewIndex, boolean enabled) |
| Sets the specified camera to be active. | |
| boolean | IsVisible (integer viewIndex) |
| Gets whether the specified camera is visible. | |
| void | SetVisible (integer viewIndex, boolean visible) |
| Sets the specified camera to be visible. | |
| void | SetFieldOfView () |
| integer | SetPriority (integer viewIndex) |
| Gets the specified view's priority. | |
| void | GetPriority (integer viewIndex, integer priority) |
| Gets the specified view's priority. | |
| integer | GetCurrent () |
| Gets the current view index being drawn to. | |
| integer | GetCount () |
| Gets the total amount of views. | |
| integer | GetActiveCount () |
| Gets the total amount of views currently activated. | |
| boolean | CheckOnScreen (Entity entity, decimal rangeX, decimal rangeY) |
| Determines whether an instance is on screen. | |
| boolean | CheckPosOnScreen (decimal posX, decimal posY, decimal rangeX, decimal rangeY) |
| Determines whether a position is on screen. | |
View manipulation functions.
| void View.AdjustX | ( | integer | viewIndex, |
| number | x ) |
Adjusts the x-axis position of the camera for the specified view by an amount.
| viewIndex | Index of the view. |
| x | Desired X adjust amount. |
| void View.AdjustY | ( | integer | viewIndex, |
| number | y ) |
Adjusts the y-axis position of the camera for the specified view by an amount.
| viewIndex | Index of the view. |
| y | Desired Y adjust amount. |
| void View.AdjustZ | ( | integer | viewIndex, |
| number | z ) |
Adjusts the z-axis position of the camera for the specified view by an amount.
| viewIndex | Index of the view. |
| z | Desired Z adjust amount. |
| boolean View.CheckOnScreen | ( | Entity | entity, |
| decimal | rangeX, | ||
| decimal | rangeY ) |
Determines whether an instance is on screen.
| entity | The instance to check. |
| rangeX | The x range to check, or null if the entity's update region width should be used. |
| rangeY | The y range to check, or null if the entity's update region height should be used. |
| boolean View.CheckPosOnScreen | ( | decimal | posX, |
| decimal | posY, | ||
| decimal | rangeX, | ||
| decimal | rangeY ) |
Determines whether a position is on screen.
| posX | The x position to check. |
| posY | The y position to check. |
| rangeX | The x range to check. |
| rangeY | The y range to check. |
| integer View.GetActiveCount | ( | ) |
Gets the total amount of views currently activated.
| decimal View.GetCenterX | ( | integer | viewIndex | ) |
Gets the x center of the camera for the specified view.
| viewIndex | Index of the view. |
| decimal View.GetCenterY | ( | integer | viewIndex | ) |
Gets the y center of the camera for the specified view.
| viewIndex | Index of the view. |
| integer View.GetCount | ( | ) |
Gets the total amount of views.
| integer View.GetCurrent | ( | ) |
Gets the current view index being drawn to.
| integer View.GetDrawTarget | ( | integer | viewIndex | ) |
Gets the specified camera's draw target.
| viewIndex | Index of the view. |
| decimal View.GetHeight | ( | integer | viewIndex | ) |
Gets the height of the camera for the specified view.
| viewIndex | Index of the view. |
| void View.GetPriority | ( | integer | viewIndex, |
| integer | priority ) |
Gets the specified view's priority.
| viewIndex | Index of the view. |
| priority |
| Shader View.GetShader | ( | integer | viewIndex | ) |
Gets the shader of the specified camera.
| viewIndex | Index of the view. |
| decimal View.GetWidth | ( | integer | viewIndex | ) |
Gets the width of the camera for the specified view.
| viewIndex | Index of the view. |
| decimal View.GetX | ( | integer | viewIndex | ) |
Gets the x-axis position of the camera for the specified view.
| viewIndex | Index of the view. |
| decimal View.GetY | ( | integer | viewIndex | ) |
Gets the y-axis position of the camera for the specified view.
| viewIndex | Index of the view. |
| decimal View.GetZ | ( | integer | viewIndex | ) |
Gets the z-axis position of the camera for the specified view.
| viewIndex | Index of the view. |
| boolean View.IsEnabled | ( | integer | viewIndex | ) |
Gets whether the specified camera is active.
| viewIndex | Index of the view. |
| boolean View.IsUsingDrawTarget | ( | integer | viewIndex | ) |
Gets whether the specified camera is using a draw target.
| viewIndex | Index of the view. |
| boolean View.IsUsingSoftwareRenderer | ( | integer | viewIndex | ) |
Gets whether the specified camera is using the software renderer.
| viewIndex | Index of the view. |
| boolean View.IsVisible | ( | integer | viewIndex | ) |
Gets whether the specified camera is visible.
| viewIndex | Index of the view. |
| void View.SetAngle | ( | integer | viewIndex, |
| number | x, | ||
| number | y, | ||
| number | z ) |
Sets the angle of the camera for the specified view.
| viewIndex | Index of the view. |
| x | Desired X angle. |
| y | Desired Y angle. |
| z | Desired Z angle. |
| void View.SetEnabled | ( | integer | viewIndex, |
| boolean | enabled ) |
Sets the specified camera to be active.
| viewIndex | Index of the view. |
| enabled | Whether the camera should be enabled. |
| void View.SetOutputPosition | ( | integer | viewIndex, |
| number | x, | ||
| number | y ) |
Sets the output position of the specified view.
| viewIndex | Index of the view. |
| x | Desired X position. |
| y | Desired Y position. |
| void View.SetOutputSize | ( | integer | viewIndex, |
| number | width, | ||
| number | height ) |
Sets the output size of the specified view.
| viewIndex | Index of the view. |
| width | Desired width. |
| height | Desired height. |
| void View.SetOutputX | ( | integer | viewIndex, |
| number | x ) |
Sets the x-axis output position of the specified view.
| viewIndex | Index of the view. |
| x | Desired X position. |
| void View.SetOutputY | ( | integer | viewIndex, |
| number | y ) |
Sets the y-axis output position of the specified view.
| viewIndex | Index of the view. |
| y | Desired Y position. |
| void View.SetPosition | ( | integer | viewIndex, |
| number | x, | ||
| number | y, | ||
| number | z ) |
Sets the position of the camera for the specified view.
| viewIndex | Index of the view. |
| x | Desired X position. |
| y | Desired Y position. |
| z | Desired Z position. |
| integer View.SetPriority | ( | integer | viewIndex | ) |
Gets the specified view's priority.
| viewIndex | Index of the view. |
| void View.SetScale | ( | integer | viewIndex, |
| number | x, | ||
| number | y, | ||
| number | z ) |
Sets the scale of the camera for the specified view.
| viewIndex | Index of the view. |
| x | Desired X scale. |
| y | Desired Y scale. |
| z | Desired Z scale. |
| void View.SetShader | ( | integer | viewIndex, |
| Shader | shader ) |
Sets a shader for the specified camera.
| viewIndex | Index of the view. |
| shader | The shader, or null to unset the shader. |
| void View.SetSize | ( | integer | viewIndex, |
| number | width, | ||
| number | height ) |
Sets the size of the camera for the specified view.
| viewIndex | Index of the view. |
| width | Desired width. |
| height | Desired height. |
| void View.SetUseDrawTarget | ( | integer | viewIndex, |
| boolean | useDrawTarget ) |
Sets the specified camera to use a draw target.
| viewIndex | Index of the view. |
| useDrawTarget | Whether to use a draw target. |
| void View.SetUseSoftwareRenderer | ( | integer | viewIndex, |
| boolean | useSoftwareRenderer ) |
Sets the specified camera to use the software renderer.
| viewIndex | Index of the view. |
| useSoftwareRenderer | Whether to use the software renderer. |
| void View.SetVisible | ( | integer | viewIndex, |
| boolean | visible ) |
Sets the specified camera to be visible.
| viewIndex | Index of the view. |
| visible | Whether the camera should be visible. |
| void View.SetX | ( | integer | viewIndex, |
| number | x ) |
Sets the x-axis position of the camera for the specified view.
| viewIndex | Index of the view. |
| x | Desired X position. |
| void View.SetY | ( | integer | viewIndex, |
| number | y ) |
Sets the y-axis position of the camera for the specified view.
| viewIndex | Index of the view. |
| y | Desired Y position. |
| void View.SetZ | ( | integer | viewIndex, |
| number | z ) |
Sets the z-axis position of the camera for the specified view.
| viewIndex | Index of the view. |
| z | Desired Z position. |