Python: Modified Text, Font and RenderWindow to build with latest revision of SFML2. Adjusted samples.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1403 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
239071c0fa
commit
0a7d28b687
5 changed files with 74 additions and 145 deletions
|
@ -20,7 +20,7 @@ wnd.UseVerticalSync( True )
|
|||
|
||||
# Load a fancy font.
|
||||
cheese = sf.Font()
|
||||
cheese.LoadFromFile( "data/cheeseburger.ttf", 50 )
|
||||
cheese.LoadFromFile( "data/cheeseburger.ttf" )
|
||||
|
||||
# Create a text.
|
||||
text = sf.Text( u"Hello SFML from Python!", cheese, 50 )
|
||||
|
|
|
@ -73,7 +73,6 @@ def main():
|
|||
|
||||
# Draw background
|
||||
App.Draw(Background)
|
||||
App.Flush()
|
||||
|
||||
# Active window to be able to perform OpenGL commands.
|
||||
App.SetActive()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue