From 5421f1c42f32af726201b8ed7b45b193ecae0c65 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Sat, 13 Nov 2010 18:27:03 +0000 Subject: [PATCH] Minor fixes in SFML.Net git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1636 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/dotnet/src/Graphics/Image.cs | 3 --- bindings/dotnet/src/Graphics/Shader.cs | 6 ++---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/bindings/dotnet/src/Graphics/Image.cs b/bindings/dotnet/src/Graphics/Image.cs index 03c01237..745395db 100644 --- a/bindings/dotnet/src/Graphics/Image.cs +++ b/bindings/dotnet/src/Graphics/Image.cs @@ -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); diff --git a/bindings/dotnet/src/Graphics/Shader.cs b/bindings/dotnet/src/Graphics/Shader.cs index eabdf7ed..3817c9d1 100644 --- a/bindings/dotnet/src/Graphics/Shader.cs +++ b/bindings/dotnet/src/Graphics/Shader.cs @@ -48,7 +48,7 @@ namespace SFML /// String containing the shader code /// //////////////////////////////////////////////////////////// - void LoadFromString(string shader) + public void LoadFromString(string shader) { SetThis(sfShader_CreateFromMemory(shader)); @@ -207,9 +207,7 @@ namespace SFML Dictionary myTextures = new Dictionary(); #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);