+ 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";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue