메소드 | 설명 | |
---|---|---|
Bind ( |
Bind a texture for rendering
|
|
CopyToImage ( ) : Image |
Copy a texture's pixels to an image
|
|
GenerateMipmap ( ) : bool |
Generate a mipmap using the current texture data Mipmaps are pre-computed chains of optimized textures. Each level of texture in a mipmap is generated by halving each of the previous level's dimensions. This is done until the final level has the size of 1x1. The textures generated in this process may make use of more advanced filters which might improve the visual quality of textures when they are applied to objects much smaller than they are. This is known as minification. Because fewer texels (texture elements) have to be sampled from when heavily minified, usage of mipmaps can also improve rendering performance in certain scenarios. Mipmap generation relies on the necessary OpenGL extension being available. If it is unavailable or generation fails due to another reason, this function will return false. Mipmap data is only valid from the time it is generated until the next time the base level image is modified, at which point this function will have to be called again to regenerate it. |
|
Texture ( Image image ) : System |
Construct the texture from an image
|
|
Texture ( Image image, IntRect area ) : System |
Construct the texture from an image
|
|
Texture ( Stream stream ) : System |
Construct the texture from a file in a stream
|
|
Texture ( Stream stream, IntRect area ) : System |
Construct the texture from a file in a stream
|
|
Texture ( |
Construct the texture from another texture
|
|
Texture ( byte bytes ) : System |
Construct the texture from a file in memory
|
|
Texture ( string filename ) : System |
Construct the texture from a file
|
|
Texture ( string filename, IntRect area ) : System |
Construct the texture from a file
|
|
Texture ( uint width, uint height ) : System |
Construct the texture
|
|
ToString ( ) : string |
Provide a string describing the object
|
|
Update ( Image image ) : void |
Update a texture from an image
|
|
Update ( Image image, uint x, uint y ) : void |
Update a texture from an image
|
|
Update ( |
Update a texture from the contents of a render-window
|
|
Update ( |
Update a texture from the contents of a render-window
|
|
Update ( SFML window ) : void |
Update a texture from the contents of a window
|
|
Update ( SFML window, uint x, uint y ) : void |
Update a texture from the contents of a window
|
|
Update ( byte pixels ) : void |
Update a texture from an array of pixels
|
|
Update ( byte pixels, uint width, uint height, uint x, uint y ) : void |
Update a texture from an array of pixels
|
메소드 | 설명 | |
---|---|---|
Destroy ( bool disposing ) : void |
Handle the destruction of the object
|
메소드 | 설명 | |
---|---|---|
Texture ( |
Internal constructor
|
|
sfTexture_bind ( |
||
sfTexture_copy ( |
||
sfTexture_copyToImage ( |
||
sfTexture_create ( uint width, uint height ) : |
||
sfTexture_createFromFile ( string filename, IntRect &area ) : |
||
sfTexture_createFromImage ( |
||
sfTexture_createFromMemory ( |
||
sfTexture_createFromStream ( |
||
sfTexture_destroy ( |
||
sfTexture_generateMipmap ( |
||
sfTexture_getMaximumSize ( ) : uint | ||
sfTexture_getNativeHandle ( |
||
sfTexture_getSize ( |
||
sfTexture_getTexCoords ( |
||
sfTexture_isRepeated ( |
||
sfTexture_isSmooth ( |
||
sfTexture_isSrgb ( |
||
sfTexture_setRepeated ( |
||
sfTexture_setSmooth ( |
||
sfTexture_setSrgb ( |
||
sfTexture_updateFromImage ( |
||
sfTexture_updateFromPixels ( |
||
sfTexture_updateFromRenderWindow ( |
||
sfTexture_updateFromWindow ( |
public static Bind ( |
||
texture | Shader to bind (can be null to use no texture) | |
리턴 | void |
protected Destroy ( bool disposing ) : void | ||
disposing | bool | Is the GC disposing the object, or is it an explicit call ? |
리턴 | void |
public Texture ( Image image ) : System | ||
image | Image | Image to load to the texture |
리턴 | System |
public Texture ( Image image, IntRect area ) : System | ||
image | Image | Image to load to the texture |
area | IntRect | Area of the image to load |
리턴 | System |
public Texture ( Stream stream ) : System | ||
stream | Stream | Stream containing the file contents |
리턴 | System |
public Texture ( Stream stream, IntRect area ) : System | ||
stream | Stream | Stream containing the file contents |
area | IntRect | Area of the image to load |
리턴 | System |
public Texture ( byte bytes ) : System | ||
bytes | byte | Byte array containing the file contents |
리턴 | System |
public Texture ( string filename ) : System | ||
filename | string | Path of the image file to load |
리턴 | System |
public Texture ( string filename, IntRect area ) : System | ||
filename | string | Path of the image file to load |
area | IntRect | Area of the image to load |
리턴 | System |
public Texture ( uint width, uint height ) : System | ||
width | uint | Texture width |
height | uint | Texture height |
리턴 | System |
public Update ( Image image ) : void | ||
image | Image | Image to copy to the texture |
리턴 | void |
public Update ( Image image, uint x, uint y ) : void | ||
image | Image | Image to copy to the texture |
x | uint | X offset in the texture where to copy the source pixels |
y | uint | Y offset in the texture where to copy the source pixels |
리턴 | void |
public Update ( |
||
window | Render-window to copy to the texture | |
리턴 | void |
public Update ( |
||
window | Render-window to copy to the texture | |
x | uint | X offset in the texture where to copy the source pixels |
y | uint | Y offset in the texture where to copy the source pixels |
리턴 | void |
public Update ( SFML window ) : void | ||
window | SFML | Window to copy to the texture |
리턴 | void |
public Update ( SFML window, uint x, uint y ) : void | ||
window | SFML | Window to copy to the texture |
x | uint | X offset in the texture where to copy the source pixels |
y | uint | Y offset in the texture where to copy the source pixels |
리턴 | void |
public Update ( byte pixels ) : void | ||
pixels | byte | Array of pixels to copy to the texture |
리턴 | void |
public Update ( byte pixels, uint width, uint height, uint x, uint y ) : void | ||
pixels | byte | Array of pixels to copy to the texture |
width | uint | Width of the pixel region contained in pixels |
height | uint | Height of the pixel region contained in pixels |
x | uint | X offset in the texture where to copy the source pixels |
y | uint | Y offset in the texture where to copy the source pixels |
리턴 | void |