internal static extern int glfwLoadTextureImage2D(ref GlfwImage img, int flags);
internal static extern int glfwReadMemoryImage(IntPtr data, long size, ref GlfwImage img, int flags);
internal static extern void glfwFreeImage(ref GlfwImage img);
public static int LoadTextureImage2D(ref GlfwImage img, ReadImageModes flags) { return(GlfwDelegates.glfwLoadTextureImage2D(ref img, (int)flags)); }
internal static extern int glfwReadImage([MarshalAs(UnmanagedType.LPStr)] string name, out GlfwImage img, int flags);
public static int ReadMemoryImage(IntPtr data, long size, ref GlfwImage img, ReadImageModes flags) { return(GlfwDelegates.glfwReadMemoryImage(data, size, ref img, (int)flags)); }
public static void FreeImage(ref GlfwImage img) { GlfwDelegates.glfwFreeImage(ref img); }
public static int LoadTextureImage2D(ref GlfwImage img, ReadImageModes flags) { return GlfwDelegates.glfwLoadTextureImage2D(ref img, (int)flags); }
public static int ReadImage(string name, out GlfwImage img, ReadImageModes flags) { return(GlfwDelegates.glfwReadImage(name, out img, (int)flags)); }
public static int ReadMemoryImage(IntPtr data, long size, ref GlfwImage img, ReadImageModes flags) { return GlfwDelegates.glfwReadMemoryImage(data, size, ref img, (int)flags); }
public static int ReadImage(string name, out GlfwImage img, ReadImageModes flags) { return GlfwDelegates.glfwReadImage(name, out img, (int)flags); }