TextureBase Class

Base utility class to load textures.
Public MustInherit Class TextureBase 
Implements IDisposable, _ 
ISerializable
This language is not supported or no code example is available.
public abstract class TextureBase : IDisposable
ISerializable
This language is not supported or no code example is available.
Name Description
Protected constructor TextureBase(SerializationInfo, StreamingContext) Constructor for deserializing objects.
Public constructor TextureBase()
Top
Name Description
Public property BitmapSize The size of the bitmap from which the texture was created.
Public property FirstPixelColor Gets the color of the first pixel of this texture object bitmap.
Public property Size The texture size.
Public property TextureUnitMode Gets the texture unit where the Texture is applied.
Top
Methods
 
Name Description
Public method AllocateMemory(RenderContextBase, bool, int, int, textureFilteringFunctionType, textureFilteringFunctionType, bool, bool, IntPtr, bool) Allocates memory for a texture.
Internal protected (Protected Friend) method Static BitmapFromColors(Color[])
Public method Check()
Public method Dispose() Calls OpenGL's glDeleteTexture.
Protected method EnableTexture(RenderContextBase, textureUnitType)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method FreeResources()
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetObjectData(SerializationInfo, StreamingContext) Populates a SerializationInfo instance with the data needed to serialize the target object.
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method IsValid()
Public method Load(RenderContextBase, Bitmap, textureFilteringFunctionType, textureFilteringFunctionType, bool, bool, bool, bool, bool) Loads the texture
Public method Load(RenderContextBase, textureFilteringFunctionType, textureFilteringFunctionType, bool, bool, bool) Loads the texture
Public method Static MakePowerOfTwo(RenderContextBase, Bitmap)
Public method Static MakePowerOfTwoBigger(RenderContextBase, ref int)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Internal protected (Protected Friend) method SetTextureInternal(RenderContextBase, textureUnitType)
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method Unbind()
Public method UpdateRegion(RenderContextBase, Bitmap, int, int) Updates a region of a texture already loaded in memory.
Top
Name Description
Public enumeration textureUnitType Texture units definitions
Top
Fields
 
Name Description
Protected field MipMapping Tells if the mipmapping is enabled on the texture.
Protected field needsDispose Tells if the bitmap must be disposed when disposing the texture (because was created internally).
Protected field target2D
Top

.NET Framework

Supported in: 4.8

In this article

Definition