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 4 ... 614
Feature requests / Re: Image saving
« on: July 02, 2019, 12:44:19 am »
One of the issues with any design is, that it would need to be adapted for audio and font as well.

With the current design, one needs to be aware that the buffer can be resized by the save function. It should also be defined what happens with an already allocated buffer and with an over-sized buffer.

Also one thing to consider whether sf::Unit8 is the best binary data representation.

Otherwise, I think it's the most straight forward approach.

General / Re: SFML 2.3.2 compilation
« on: June 19, 2019, 02:39:20 pm »
There's isn't necessarily just "one" command. You simply have to use CMake in whatever way works best for your environment. If you don't know the basics of CMake, you'll have to look it up.

We also have the CMake tutorial that shows the different CMake options: https://www.sfml-dev.org/tutorials/2.3/compile-with-cmake.php

Graphics / Re: Problems with collision [solved]
« on: June 18, 2019, 08:27:21 am »
You added [solved] to the title, so what was the solution?

Graphics / Re: My texture holder gets deleted although still in scope
« on: June 13, 2019, 05:23:06 pm »
You create a new, local tile_texture_holder which creates a texture, then you set the texture to the sprite.
But since the tile_texture_holder is local, it will be destroyed as soon as you run out of scope, destroying the texture and thus the reference from the sprite to the texture becomes invalid.

Window / Re: How to check if sf::RenderWindow is fullscreen?
« on: June 13, 2019, 12:43:50 pm »
Not yet, no. :)

General / Re: Can't execute simple SFML program(CodeLite IDE)
« on: June 10, 2019, 07:57:21 pm »
Not 100% sure, but I think the include directory specifier -I needs to come before the main.cpp source file.

General / Re: Can't execute simple SFML program(CodeLite IDE)
« on: June 10, 2019, 06:00:00 pm »
#include <include/SFML/Graphics.hpp> is obviously wrong, as you can see from any SFML example. ;)

Audio / Re: Music thread is stuck waiting
« on: June 10, 2019, 02:12:15 pm »
What SFML version?
Can you provide a minimal but complete example?

Awesome work as always! :)

Looking forward to getting a demo of this.

Audio / Re: Compilation errors with music.hpp
« on: June 07, 2019, 08:35:00 am »
Probably not causing any issues, but do you really need to link SFML and SDL at the same time.
Also if you link SFML statically, you have to link SFML's dependencies as well.

You're asking the wrong question, because instead of sprites and rectangles, you should be using vertex arrays or buffers instead. The most expensive operation overall is the draw call, with a vertex array you reduce that from 1000 calls to a single call. ;)

General / Re: Dotted line instead of normal
« on: May 28, 2019, 12:47:46 am »
What you want to do is save the last mouse position and on the next mouse moved event, take the last and current mouse position and connect them with a line.

Currently you're taking twice the current position of the mouse to draw a "line".

Network / Re: Selector.wait() not calling after client disconnect
« on: May 27, 2019, 08:45:54 am »
So does this code reproduce the issue or is it the code that works perfectly? :D

Network / Re: Selector.wait() not calling after client disconnect
« on: May 26, 2019, 05:54:34 pm »
Can you provide a minimal example that reproduces the issue?

Network / Re: Selector.wait() not calling after client disconnect
« on: May 26, 2019, 12:46:07 pm »
If you're using SFML 2.4.x make sure to update to SFML 2.5.x (or git master). We have fixed some issue with reusing of sockets.

Pages: 1 [2] 3 4 ... 614