Class GLPlaceHolderTexture
The placeholder texture used for the swapchain.
Inherited Members
Namespace: Evergine.OpenGL
Assembly: Evergine.OpenGL.dll
Syntax
public class GLPlaceHolderTexture : GLBaseTexture, ILoadable, IDependencyObject
Constructors
GLPlaceHolderTexture(GraphicsContext, TextureDescription)
Initializes a new instance of the GLPlaceHolderTexture class.
Declaration
public GLPlaceHolderTexture(GraphicsContext context, TextureDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsContext | context | The graphics context. |
| TextureDescription | description | The texture description. |
Properties
CouldBeAttachedToFramebuffer
Gets a value indicating whether this texture can be attached to a framebuffer.
Declaration
public override bool CouldBeAttachedToFramebuffer { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Methods
CopyTo(uint, uint, Texture, uint, uint, uint, uint, uint)
Copies a pixel region from the swapchain color texture to destination texture. Swapchain texture is only 2D, therefore we only support 2D textures as destination.
Declaration
public void CopyTo(uint sourceX, uint sourceY, Texture destination, uint destinationX, uint destinationY, uint destinationMipLevel, uint width, uint height)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | sourceX | U coordinate of the source texture. |
| uint | sourceY | V coordinate of the source texture. |
| Texture | destination | Destination texture. |
| uint | destinationX | U coordinate of the destination texture. |
| uint | destinationY | V coordinate of the destination texture. |
| uint | destinationMipLevel | Destination mip level. |
| uint | width | Destination width. |
| uint | height | Destination height. |