// // Image.cs // // Copyright (C) 2018 OpenTK // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. // using System; namespace OpenToolkit.GraphicsLibraryFramework { /// /// Contains GLFW Image data. /// public unsafe struct Image { /// /// Initializes a new instance of the struct. /// /// The width of the image in pixels. /// The height of the image in pixels. /// pointing to the RGBA pixel data of the image. public Image(int width, int height, byte* pixels) { Width = width; Height = height; Pixels = pixels; } /// /// The width, in pixels, of this . /// public int Width; /// /// The height, in pixels, of this . /// public int Height; /// /// A pointer pointing to the RGBA pixel data. /// public byte* Pixels; } }