mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
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
|
#region Imports
|
||||||
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
|
||||||
static extern IntPtr sfImage_Create();
|
|
||||||
|
|
||||||
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
||||||
static extern IntPtr sfImage_CreateFromColor(uint Width, uint Height, Color Col);
|
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>
|
/// <param name="shader">String containing the shader code</param>
|
||||||
/// <exception cref="LoadingFailedException" />
|
/// <exception cref="LoadingFailedException" />
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
void LoadFromString(string shader)
|
public void LoadFromString(string shader)
|
||||||
{
|
{
|
||||||
SetThis(sfShader_CreateFromMemory(shader));
|
SetThis(sfShader_CreateFromMemory(shader));
|
||||||
|
|
||||||
@ -207,8 +207,6 @@ namespace SFML
|
|||||||
Dictionary<string, Image> myTextures = new Dictionary<string, Image>();
|
Dictionary<string, Image> myTextures = new Dictionary<string, Image>();
|
||||||
|
|
||||||
#region Imports
|
#region Imports
|
||||||
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
|
||||||
static extern IntPtr sfShader_Create();
|
|
||||||
|
|
||||||
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
||||||
static extern IntPtr sfShader_CreateFromFile(string Filename);
|
static extern IntPtr sfShader_CreateFromFile(string Filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user