Creates a new instance of the GifFrame class with the specified duration and texture.
GifFrame(this.duration, this.texture);