Texture Class

SFML.Net

Texture Class
Image living on the graphics card that can be used for drawing
Inheritance Hierarchy
SystemObject  SFMLObjectBase
    SFML.GraphicsTexture

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public class Texture : ObjectBase
Public Class Texture
	Inherits ObjectBase
public ref class Texture : public ObjectBase
type Texture =  
    class
        inherit ObjectBase
    end

The Texture type exposes the following members.

Constructors
  NameDescription
Public methodTexture(Byte)
Construct the texture from a file in memory
Public methodTexture(Stream)
Construct the texture from a file in a stream
Public methodTexture(String)
Construct the texture from a file
Public methodTexture(Image)
Construct the texture from an image
Public methodTexture(Texture)
Construct the texture from another texture
Public methodTexture(Stream, IntRect)
Construct the texture from a file in a stream
Public methodTexture(String, IntRect)
Construct the texture from a file
Public methodTexture(UInt32, UInt32)
Construct the texture
Public methodTexture(Image, IntRect)
Construct the texture from an image
Top
Methods
  NameDescription
Public methodStatic memberBind
Bind a texture for rendering
Public methodCopyToImage
Copy a texture's pixels to an image
Protected methodDestroy
Handle the destruction of the object
(Overrides ObjectBaseDestroy(Boolean).)
Public methodDispose
Explicitely dispose the object
(Inherited from ObjectBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Dispose the object
(Inherited from ObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Provide a string describing the object
(Overrides ObjectToString.)
Public methodUpdate(Byte)
Update a texture from an array of pixels
Public methodUpdate(Image)
Update a texture from an image
Public methodUpdate(RenderWindow)
Update a texture from the contents of a render-window
Public methodUpdate(Window)
Update a texture from the contents of a window
Public methodUpdate(Image, UInt32, UInt32)
Update a texture from an image
Public methodUpdate(RenderWindow, UInt32, UInt32)
Update a texture from the contents of a render-window
Public methodUpdate(Window, UInt32, UInt32)
Update a texture from the contents of a window
Public methodUpdate(Byte, UInt32, UInt32, UInt32, UInt32)
Update a texture from an array of pixels
Top
Properties
  NameDescription
Public propertyCPointer
Access to the internal pointer of the object. For internal use only
(Inherited from ObjectBase.)
Public propertyStatic memberMaximumSize
Maximum texture size allowed
Public propertyRepeated
Control the repeat mode
Public propertySize
Size of the texture, in pixels
Public propertySmooth
Control the smooth filter
Top
See Also