Minor fixes in SFML.Net
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1636 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
10de308f44
commit
5421f1c42f
@ -394,9 +394,6 @@ namespace SFML
|
||||
}
|
||||
|
||||
#region Imports
|
||||
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
||||
static extern IntPtr sfImage_Create();
|
||||
|
||||
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
||||
static extern IntPtr sfImage_CreateFromColor(uint Width, uint Height, Color Col);
|
||||
|
||||
|
@ -48,7 +48,7 @@ namespace SFML
|
||||
/// <param name="shader">String containing the shader code</param>
|
||||
/// <exception cref="LoadingFailedException" />
|
||||
////////////////////////////////////////////////////////////
|
||||
void LoadFromString(string shader)
|
||||
public void LoadFromString(string shader)
|
||||
{
|
||||
SetThis(sfShader_CreateFromMemory(shader));
|
||||
|
||||
@ -207,9 +207,7 @@ namespace SFML
|
||||
Dictionary<string, Image> myTextures = new Dictionary<string, Image>();
|
||||
|
||||
#region Imports
|
||||
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
||||
static extern IntPtr sfShader_Create();
|
||||
|
||||
|
||||
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
||||
static extern IntPtr sfShader_CreateFromFile(string Filename);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user