Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mart++

Pages: [1]
1
Graphics / [SOLVED] Unable to load textures in SFML.net
« on: June 04, 2020, 04:24:43 am »
I can create a window, draw shapes and lines etc to it, but haven't been able to load textures. I'm using C#, .net framework 4.6.2 with Visual Studio 2017.
When I create a texture, I can't call texture.loadFromFile(path) as it's shown in the tutorials.

If there's something I missed in the documentation or tutorials, please direct me to it. Thank you in advance.

Edit: Got it thanks to user Laurent.
Texture texture = new Texture(path);


Pages: [1]