-
Notifications
You must be signed in to change notification settings - Fork 0
ViewportTexture
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.ViewportTexture |
| Namespace | Electron2D |
| Kind | class |
| Category | Rendering |
Provides an Electron2D dynamic texture for the contents of a Electron2D.Viewport.
public sealed class Electron2D.ViewportTexture : Electron2D.Texture2DA viewport texture is created by Electron2D.Viewport.GetTexture and is
local to the scene that owns the viewport. It reports the viewport's current
size when queried.
Electron2D 0.1.0 Preview does not expose public GPU texture handles or image
readback through this type. Pixel opacity queries therefore return
false.
This type is not synchronized. Query and mutate the owning viewport on the main scene thread.
This type is available since Electron2D 0.1.0 Preview.
Electron2D.Texture2DElectron2D.Viewport
| Member | Kind | Summary |
|---|---|---|
GetHeight() |
Method | Gets the current viewport height in pixels. |
GetWidth() |
Method | Gets the current viewport width in pixels. |
HasAlpha() |
Method | Checks whether the viewport texture has an alpha channel. |
IsPixelOpaque(System.Int32, System.Int32) |
Method | Checks whether a viewport texture pixel is fully opaque. |
Kind: Method
public System.Int32 GetHeight()()Gets the current viewport height in pixels.
This method follows the validation and lifetime rules of its declaring type.
The owning viewport height in pixels, clamped to 0 for invalid negative sizes.
This method is not synchronized. Call it on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.ViewportTexture
Kind: Method
public System.Int32 GetWidth()()Gets the current viewport width in pixels.
This method follows the validation and lifetime rules of its declaring type.
The owning viewport width in pixels, clamped to 0 for invalid negative sizes.
This method is not synchronized. Call it on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.ViewportTexture
Kind: Method
public System.Boolean HasAlpha()()Checks whether the viewport texture has an alpha channel.
This method follows the validation and lifetime rules of its declaring type.
true, because Electron2D viewport textures are treated as alpha-capable render targets.
This method is not synchronized. Call it on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.ViewportTexture
Kind: Method
public System.Boolean IsPixelOpaque(System.Int32, System.Int32)(System.Int32 x, System.Int32 y)Checks whether a viewport texture pixel is fully opaque.
This method follows the validation and lifetime rules of its declaring type.
-
x: The pixel X coordinate in viewport texture space. -
y: The pixel Y coordinate in viewport texture space.
false until public image readback is available.
This method is not synchronized. Call it on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.ViewportTexture
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.