Search Results for

    Show / Hide Table of Contents

    Class GLBaseTexture

    The OpenGL implementation of a texture object.

    Inheritance
    object
    GraphicsResource
    Texture
    GLBaseTexture
    GLPlaceHolderTexture
    GLTexture
    Implements
    ILoadable
    IDependencyObject
    Inherited Members
    Texture.Id
    Texture.Description
    Texture.ReaderVersion
    Texture.Invalidated
    Texture.Dependencies
    Texture.Sampler
    Texture.CouldBeAttachedToFramebuffer
    Texture.Destroy()
    Texture.Invalidate(ILoadable)
    Texture.ReleaseUnusedMemory()
    GraphicsResource.Context
    GraphicsResource.Disposed
    GraphicsResource.Dispose()
    GraphicsResource.Dispose(bool)
    Namespace: Evergine.OpenGL
    Assembly: Evergine.OpenGL.dll
    Syntax
    public abstract class GLBaseTexture : Texture, ILoadable, IDependencyObject

    Constructors

    GLBaseTexture(GraphicsContext, ref TextureDescription)

    Initializes a new instance of the GLBaseTexture class.

    Declaration
    public GLBaseTexture(GraphicsContext context, ref TextureDescription description)
    Parameters
    Type Name Description
    GraphicsContext context

    The graphics context.

    TextureDescription description

    The texture description.

    Fields

    Format

    The GL format for this texture, GLPixelFormat.

    Declaration
    public GLPixelFormat Format
    Field Value
    Type Description
    GLPixelFormat

    TextureTarget

    The GL texture target for this texture.

    Declaration
    public TextureTarget TextureTarget
    Field Value
    Type Description
    TextureTarget

    Properties

    Name

    Gets or sets a string identifying this instance. Can be used in graphics debugger tools.

    Declaration
    public override string Name { get; set; }
    Property Value
    Type Description
    string
    Overrides
    Texture.Name

    NativePointer

    Gets the native pointer.

    Declaration
    public override nint NativePointer { get; }
    Property Value
    Type Description
    nint
    Overrides
    GraphicsResource.NativePointer

    Methods

    HasStencil()

    Indicates whether the texture format has a stencil.

    Declaration
    public bool HasStencil()
    Returns
    Type Description
    bool

    Returns whether the texture has a stencil.

    Implements

    ILoadable
    IDependencyObject

    Extension Methods

    TextureExtension.SaveToFile(Texture, GraphicsContext, string)
    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX