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

Pages: [1]
1
Window / Force window updates whilst minimized?
« on: February 28, 2021, 03:02:37 pm »
Can i somehow force my sfml window to update all the time?
At the moment it freezes whenever it gets minimized.

I like to make custom OBS widgets with sfml, minimize them, and add a window capture in OBS for them. But they have to be open for them to actually update.

Is there some way to tell, either windows or sfml, to just update anyways?

Lg

2
Feature requests / Re: Why is there no TriangleShape?
« on: December 09, 2020, 12:15:05 pm »
Why no hexagon, pentagon, octagon, ...? There has to be a limit ;)

And, as highlighted in the tutorial, regular polygons can be obtained easily with sf::CircleShape:
https://www.sfml-dev.org/tutorials/2.5/graphics-shape.php#built-in-shape-types

Not that triangles can also be constructed with a sf::VertexArray of type "Triangles". This is lower level and will offer better performances.

For equilateral triangles, yes. But not if you want a triangle to cover three specific points. But this might actually be too much of a nieche shape to have it's own class.

Maybe something for some kind of extension...

3
Feature requests / Why is there no TriangleShape?
« on: December 09, 2020, 10:20:45 am »
Sure, you could just use a ConvexShape, but by this logic we wouldn't need RectangleShape either...

Would there be any interest in this feature?

4
Hey, i program with sfml formaybe 1-2 years and, needless to say, i know the api. I've always been using v2.1 because i somehow got no other version to work.. But now i really need any newer version because i need sf::Touch support!

I've tried every version up to 2.5.0 but 2.1 is the only one that worked for me.
I've been using the 32bit visual studio versions. The compilers have always matched perfectly.
When i tried 2.5.0 32b v140 i used a project configured to compile for 32bit with the v140 compiler. I linked everything correct etc...
The program works perfectly with 2.1 32bit v110, but as soon as i even just update to 2.2 32bit v110 i only get linking errors... I've checked the directories, they're all correct, the platformtoolset is the correct one... i really need help. I use visual studio 2017 btw

5
Graphics / Only render Parts of a sf::sprite | Light sources?
« on: August 09, 2016, 06:35:31 pm »
Hey. I want to implement light sources in my game. I want to lay a complete blank sprite (exactly the window size)
over the game.
Is it possible to create masks for the light (like a white circle wich fades out) as a texture and to say, that the black sprite wont render over the lightmasks? (i dont mean with the intersect function. the pixels of the black sprite wich doesnt cover the mask should render).

I'm open for other ideas to implement light sources.

6
General / game.exe has stopped working!
« on: November 13, 2015, 11:59:47 pm »
Hello. I made a pong-copy for my school project.
I have to do a presentation about game developers, so i devided, to show the class the source of a little game.
This is why everything is in the main.cpp. Usually i dont do this :D

The Game works fine, aslong i run it in VS12.
If i run the .exe in my explorer it works for about 3 seconds and it crashes! pong.exe stopped working!

I compile it in the release mode. It is a Win32 project and i linked the sfml-name-s.lib libs

Heres my Quellcode  (the RenderWindow instance isnt global!)

http://pastebin.com/7PXsVG7w

Please help me! I have this problem on nearly EVERY sfml program wich uses the RenderWindow instance!

7
Graphics / Image scanning
« on: August 20, 2015, 03:28:28 am »
Hi, im Leon.
I wonder how i can make my SFML check for faces or shapes in an Image so that it finds the face in the attached picture and returns its positions like placing a sprite on it.
How can i do this?

Pages: [1]
anything