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 - eXpl0it3r

Pages: [1] 2 3 ... 615
1
General / Re: How do I share a texture object amongst object instances?
« on: August 15, 2019, 09:26:34 am »
The object could hold a reference to a texture which you pass in via constructor.
Then you can manage the texture outside of your entity objects with something like a resource holder.

That's just one way to approach it, but it's generally recommended to not store the texture as part of your game objects as it's a heavy resource and as you noticed, you often want to share the same texture among multiple objects.

2
General / Re: SFML 2.5 CMake Migration
« on: August 13, 2019, 09:15:12 am »
You're probably using a different MinGW compiler (probably x86) and thus the architecture mismatches.

Also the SFML modules are in the wrong order in your find_package.

3
General / Re: Problem with deplyoing SFML.NET app
« on: August 09, 2019, 01:11:06 pm »
Are you still on Windows 7?

Googling the event name, I found various posts, such as this one: https://hasstoppedworking.com/fix-clr20r3-event-issues/

4
General / Re: Scaling a window with objects(Shape)
« on: August 08, 2019, 03:17:58 pm »
The official view tutorial is recommended to understand how the view works: https://www.sfml-dev.org/tutorials/2.5/graphics-view.php#showing-more-when-the-window-is-resized

For letter boxing there's also some code on the GitHub SFML Wiki.

5
General / Re: Problem with deplyoing SFML.NET app
« on: August 08, 2019, 02:01:36 pm »
Try launching it from the command line, maybe there's some output.
Or check the Windows event log.

Otherwise, without errors it's kind of impossible to tell what's going on...

6
General / Re: Scaling a window with objects(Shape)
« on: August 08, 2019, 07:34:25 am »
Handle the resize event and adjust the view accordingly. See the tutorial for more details.

7
SFML website / Re: Links in Tutorials lead to outdated DoxyGen docs
« on: August 05, 2019, 10:58:39 am »
Thanks for the report! :)
I opened an issue on GitHub, so it's better tracked: https://github.com/SFML/SFML-Website/issues/132
Not sure when I get around to fix it.

8
Wouldn't be surprised if ffmpeg could somehow also convert SVG. Seems like Inkscape is also a good alternative: https://stackoverflow.com/questions/9853325/how-to-convert-a-svg-to-a-png-with-image-magick

9
Graphics / Re: A single draw call severely slows thing down
« on: August 03, 2019, 03:11:37 am »
That's not exactly a strong CPU or "GPU", thus I think the frametime values might be expected.

10
Graphics / Re: A single draw call severely slows thing down
« on: August 02, 2019, 09:59:34 am »
What hardware are you running this on?

11
Window / Re: [SFML 2.5] sf::RenderWindow::setTitle crashes in main loop
« on: August 02, 2019, 09:56:22 am »
Ah okay, I guess the system could potentially lock up from spamming, but that would be the first time I hear of this.
To me this sounds more like a third-party issue, e.g. an anti-virus software or some other odd system application...

12
General / Re: batch file replace libraries with variable
« on: August 02, 2019, 09:52:43 am »
This has nothing to do with SFML really. There are better Q&A/forum for batch programming questions. ;)

Also the SFML Projects subforum is certainly the wrong place to ask for help.

13
General / Re: Is this Efficient (sf::RectangleShape vs tilemaps) ??
« on: August 02, 2019, 09:49:20 am »
While vertex arrays or buffers are certainly the way to go for tilemaps, at the scale of a breakout clone, it doesn't really matter. ;)

14
General / Re: Drawing without clearing the window problem
« on: July 31, 2019, 10:34:58 am »
You need to clear the window. If you want to preserve drawn things, you can use a render texture.

15
Even if it isn't meant to, it shouldn't crash.

What's the callstack?

Pages: [1] 2 3 ... 615