OGLTexture1D Class

Base class to load 1D textures.
Public Class OGLTexture1D 
Inherits OGLTextureBase
This language is not supported or no code example is available.
public class OGLTexture1D : OGLTextureBase
This language is not supported or no code example is available.
Name Description
Public property BitmapSize The size of the bitmap from which the texture was created. (inherited from TextureBase).
Public property FirstPixelColor Gets the color of the first pixel of this texture object bitmap. (inherited from TextureBase).
Public property Size The texture size. (inherited from TextureBase).
Public property TextureUnitMode Gets the texture unit where the Texture is applied. (inherited from TextureBase).
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[]) (inherited from TextureBase).
Public method Check() (inherited from OGLTextureBase).
Public method Dispose() Calls OpenGL's glDeleteTexture. (inherited from TextureBase).
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() (inherited from OGLTextureBase).
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. (inherited from TextureBase).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method IsValid() (inherited from OGLTextureBase).
Public method Load(RenderContextBase, Bitmap, textureFilteringFunctionType, textureFilteringFunctionType, bool, bool, bool, bool, bool) Loads the texture
Protected method LoadBitmap(RenderContextBase, Bitmap, bool, bool) (inherited from OGLTextureBase).
Protected method LockBitmapBits(Bitmap, out int, out int) Locks the bitmap into system memory. (inherited from OGLTextureBase).
Public method Static MakePowerOfTwo(RenderContextBase, Bitmap) (inherited from TextureBase).
Public method Static MakePowerOfTwoBigger(RenderContextBase, ref int) (inherited from TextureBase).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Internal protected (Protected Friend) method SetTextureInternal(RenderContextBase, textureUnitType) (inherited from TextureBase).
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. (inherited from OGLTextureBase).
Top
Fields
 
Name Description
Protected field MipMapping Tells if the mipmapping is enabled on the texture. (inherited from TextureBase).
Public field Name (inherited from OGLTextureBase).
Protected field needsDispose Tells if the bitmap must be disposed when disposing the texture (because was created internally). (inherited from TextureBase).
Protected field target2D (inherited from TextureBase).
Top

.NET Framework

Supported in: 4.8

In this article

Definition