SFML.Net
Texture Class |
Image living on the graphics card that can be used for drawing
Inheritance Hierarchy
Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
The Texture type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Texture(Byte) |
Construct the texture from a file in memory
| |
Texture(Stream) |
Construct the texture from a file in a stream
| |
Texture(String) |
Construct the texture from a file
| |
Texture(Image) |
Construct the texture from an image
| |
Texture(Texture) |
Construct the texture from another texture
| |
Texture(Stream, IntRect) |
Construct the texture from a file in a stream
| |
Texture(String, IntRect) |
Construct the texture from a file
| |
Texture(UInt32, UInt32) |
Construct the texture
| |
Texture(Image, IntRect) |
Construct the texture from an image
|
Methods
Name | Description | |
---|---|---|
Bind |
Bind a texture for rendering
| |
CopyToImage |
Copy a texture's pixels to an image
| |
Destroy |
Handle the destruction of the object
(Overrides ObjectBaseDestroy(Boolean).) | |
Dispose |
Explicitely dispose the object
(Inherited from ObjectBase.) | |
Equals |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) | |
Finalize |
Dispose the object
(Inherited from ObjectBase.) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
ToString |
Provide a string describing the object
(Overrides ObjectToString.) | |
Update(Byte) |
Update a texture from an array of pixels
| |
Update(Image) |
Update a texture from an image
| |
Update(RenderWindow) |
Update a texture from the contents of a render-window
| |
Update(Window) |
Update a texture from the contents of a window
| |
Update(Image, UInt32, UInt32) |
Update a texture from an image
| |
Update(RenderWindow, UInt32, UInt32) |
Update a texture from the contents of a render-window
| |
Update(Window, UInt32, UInt32) |
Update a texture from the contents of a window
| |
Update(Byte, UInt32, UInt32, UInt32, UInt32) |
Update a texture from an array of pixels
|
Properties
Name | Description | |
---|---|---|
CPointer |
Access to the internal pointer of the object.
For internal use only
(Inherited from ObjectBase.) | |
MaximumSize |
Maximum texture size allowed
| |
Repeated |
Control the repeat mode
| |
Size |
Size of the texture, in pixels
| |
Smooth |
Control the smooth filter
|
See Also