+ IRenderTarget interface
+ RenderTarget.SaveGLStates + RenderTarget.RestoreGLStates - RenderTarget.Flush * some bugfixes git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1367 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
5a0feadb8f
commit
0d3f9a9f1c
9 changed files with 215 additions and 110 deletions
|
@ -47,7 +47,7 @@ string loadFromSharedLib(string fname)
|
|||
}
|
||||
|
||||
//used to mixin code function
|
||||
string loadFromSharedLib2(S...)(string lib, S fnames)
|
||||
string loadFromSharedLib2(S...)(string lib, string object, S fnames)
|
||||
{
|
||||
string res = `static this()
|
||||
{
|
||||
|
@ -60,7 +60,7 @@ string loadFromSharedLib2(S...)(string lib, S fnames)
|
|||
|
||||
foreach(fname; fnames)
|
||||
{
|
||||
res ~= "\t" ~ fname ~ " = " ~ "cast(typeof(" ~ fname ~ ")) dll.getSymbol(\"" ~ fname ~ "\");\n";
|
||||
res ~= "\t" ~ object ~ "_" ~ fname ~ " = " ~ "cast(typeof(" ~ object ~ "_" ~ fname ~ ")) dll.getSymbol(\"" ~ object ~ "_" ~ fname ~ "\");\n";
|
||||
}
|
||||
return res ~ "}\n";
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ extern(C)
|
|||
{
|
||||
typedef void function(float) pf_sfSleep;
|
||||
|
||||
private static __gshared pf_sfSleep sfSleep;
|
||||
private static const __gshared pf_sfSleep sfSleep;
|
||||
}
|
||||
|
||||
static this()
|
||||
|
|
|
@ -155,4 +155,6 @@ alias Vector2!(float) Vector2f;
|
|||
/// ditto
|
||||
alias Vector2!(int) Vector2i;
|
||||
/// ditto
|
||||
alias Vector2!(int) Vector2ui;
|
||||
alias Vector2!(uint) Vector2ui;
|
||||
/// ditto
|
||||
alias Vector2!(ubyte) Vector2ub;
|
Loading…
Add table
Add a link
Reference in a new issue