* using property style in Input
* sync with changes to Glyph class * renamed network files (sync) git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1513 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
49983415cd
commit
1464a35711
7 changed files with 125 additions and 127 deletions
|
@ -37,9 +37,9 @@ import dsfml.graphics.rect,
|
|||
/// Glyph describes a glyph (a visual character)
|
||||
struct Glyph
|
||||
{
|
||||
int Advance; /// Offset to move horizontically to the next character
|
||||
IntRect Rectangle; /// Bounding rectangle of the glyph, in relative coordinates
|
||||
FloatRect TexCoords; /// Texture coordinates of the glyph inside the bitmap font
|
||||
int Advance; /// Offset to move horizontically to the next character
|
||||
IntRect Bounds; /// Bounding rectangle of the glyph, in coordinates relative to the baseline
|
||||
IntRect SubRect; /// Texture coordinates of the glyph inside the font's image
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -95,6 +95,11 @@ public:
|
|||
m_image = img;
|
||||
}
|
||||
|
||||
@property void image(Image img)
|
||||
{
|
||||
setImage(img, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Resize the sprite (by changing its scale factors).
|
||||
* The default size is defined by the subrect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue