Beispiel #1
0
 /// <summary>
 /// Initializes the texture from raw pixel data.
 /// </summary>
 /// <param name="width">Texture width.</param>
 /// <param name="height">Texture height.</param>
 /// <param name="pixelData">Color array in RGBA format.</param>
 public void LoadRaw(int width, int height, byte[] pixelData)
 {
     Width  = width;
     Height = height;
     m_Renderer.LoadTextureRaw(this, pixelData);
 }