Can you please show a complete and minimal code that reproduces the problem? By minimal I mean a simple Main() with a sprite, not your game engine
Ok, Is this what you need?
static void Main
(string[] args
) { ImageTexture
= new Texture
("Image File Path"); ImageFile
= new Sprite
(ImageTexture
); Width
= ImageFile
.Texture.Size.X; Height
= ImageFile
.Texture.Size.Y; FormControl
.Draw(ImageFile
); } If it is not than I have add code for what is going on in the parts of the engine.
Opening the window:
FormControl
= new RenderWindow
(VideoMode
.Desktop,
"Window Caption");FormControl
.Size = new Vector2u
((uint)FormWidth,
(uint)FormHeight
); The two classes used for drawing objects to screen:
private Sprite ImageFile;
private Texture ImageTexture;
Loading the Image:
ImageTexture
= new Texture
("The image file.");ImageFile
= new Sprite
(ImageTexture
);Width
= ImageFile
.Texture.Size.X;Height
= ImageFile
.Texture.Size.Y;ImageFile
.Position = new Vector2f
((float)X,
(float)Y
); Drawing the Image:
Core.FormControl.Draw(ImageFile);