Exemple #1
0
 /// <summary>
 ///     Requests aadding a texture from a byte array <br />
 ///     Use this if you add textures from another thread or don't need it immediatelly
 /// </summary>
 /// <param name="w">Width of the image</param>
 /// <param name="h">Height of the image</param>
 /// <param name="data">Array of 4 byte values for each pixel</param>
 /// <returns>Reference to texture</returns>
 public static CTextureRef EnqueueTexture(int w, int h, byte[] data)
 {
     return(_Draw.EnqueueTexture(w, h, data));
 }