Click or drag to resize

TextureScreenOverlay Constructor (Double, Double, Texture2D)

Initializes the overlay with a specified background texture. The size of the overlay will be the same as the size of the texture.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public TextureScreenOverlay(
	double xPixels,
	double yPixels,
	Texture2D texture
)

Parameters

xPixels
Type: SystemDouble
The X position of the panel in pixels.
yPixels
Type: SystemDouble
The Y position of the panel in pixels.
texture
Type: AGI.Foundation.Graphics.RendererTexture2D
The texture (image) to be drawn on the overlay. Textures can be obtained from SceneManager.Textures.
See Also