Drawing3d documented Class Library

Texture Members

Texture overview

Public Static (Shared) Methods

Make2Pot Reduce a bitmap to a new bitmap whose width and height is a potency of 2. This is expected from opengl version smaller 1.5

Public Instance Constructors

Texture Constructor Initializes a new instance of the Texture class.

Public Instance Fields

_HasTransparentColor
Handle This handle will be used by OpenGldevice to bind a texture.
Transformation This matrix can be used to transform the texture.

Public Instance Properties

Bitmap Set and returns the Bitmapdata, which will be drawn as texture
HasTransparentColor To activate TransparentColor this field must be true;
Mirrored If mirrored is true every repeated bitmap is mirrored.
Modulate Gets the modulatemodus.
In opengl this means: if Modulate is true the GL_TEXTURE_ENV_MODE is set to GL_MODULATE else the GL_TEXTURE_ENV_MODE is set to GL_DECAL
Rotation Gets or sets an angle for the rotation of the texture
TextureName
Translation sets or gets a translation vector for the texture
TransparentColor Sets or gets the transparentcolor for the texture.
WorldHeight With WorldHeight you can fix the with of a texture in world coordinates.
WorldWidth With WorldWidth you can fix the with of a texture in world coordinates.
XRepeating Indicates, whether the bitmap is repeated on the x-direction
YRepeating Indicates, whether the bitmap is repeated on the x-direction

Public Instance Methods

Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
LoadFromFile Loads a Bitmap from a file.
SetBitmap Sets the Bitmap and the TransparentColor
ToString (inherited from Object) 

Public Instance Events

BitmapChanged
OnDelete

Protected Instance Methods

Disposed
Finalize
MemberwiseClone (inherited from Object) 

See Also

Texture Class | Drawing3d Namespace