Ejemplo n.º 1
0
 public void AddTexture(string key, uint textureId, int qtyFrames = 1, int duration = 1, Texture.Orientations orientation = Texture.Orientations.HORIZONTAL, int xFramesQty = 0)
 {
     this.Textures.Add(key, new Texture(gl, textureId, qtyFrames, duration, orientation, xFramesQty));
 }
Ejemplo n.º 2
0
 public void AddTexture(string key, Bitmap textureImage, int qtyFrames = 1, int duration = 1, Texture.Orientations orientation = Texture.Orientations.HORIZONTAL, int xFramesQty = 0)
 {
     this.Textures.Add(key, new Texture(gl, RegisterTexture(textureImage), qtyFrames, duration, orientation, xFramesQty));
 }