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

Pages: [1] 2 3 ... 5
1
General discussions / Re: Italian members?
« on: August 07, 2022, 10:25:39 pm »
Here I am.

2
General / Re: Sfml on dynamic dll
« on: April 28, 2021, 09:38:18 pm »
Yes, if loading dynamically all works well. Just curious if this could be done also with static linking.

3
General / Sfml on dynamic dll
« on: April 02, 2021, 08:21:44 am »
Hello, I have an sfml exe that should dynamically (using loadlibrary) load a dll that uses sfml too. In the dll there is a base class and are exposed two function to create and destroy an instance of that class. All works, but when I try to do something sfml related like loading textures, I get opengl context errors and nothing works. I linked both (exe and dll) with sfml in a static way.

Any help to get it working?

4
It is very interesting. Would be nice to share the code.

5
SFML projects / Re: Shadow Gangs
« on: January 10, 2021, 09:02:31 pm »
Very nice, it remainds me Shinobi a game that I loved very much

6
General / Re: Failed to set DirectInput device axis mode: 1
« on: August 27, 2020, 11:49:29 am »
Same problem for me. It starts on window creation and them it spams.

7
SFML projects / Re: TGUI: GUI library for SFML
« on: January 30, 2019, 01:53:01 pm »
Quote
one thing needed is the gui builder, or just an example on how to add all the gauges
What do you mean with adding all the gauges?

Files created by the gui builder can be imported in code by executing
gui.loadWidgetsFromFile("form.txt");

The gui builder still needs a lot of work, it has been neglected a bit since it was released. This might be something that I could improve in the next version.

Sorry I was unclear.
What I was talking about is just how to add widgets in the gui builder itself. As an example I need to add the TABS widget, what are the files that need to update in the guibuilder project?

8
SFML projects / Re: TGUI: GUI library for SFML
« on: January 29, 2019, 07:26:46 am »
thanks, i really like tgui and use it all the time. one thing needed is the gui builder, or just an example on how to add all the gauges

9
General / Re: Multiple windows
« on: November 28, 2018, 11:29:04 am »
Many thanks,

I have tried and not using setActive at all, and I have no issues. Just wondering if this is the correct way.

10
General / Multiple windows
« on: November 28, 2018, 09:17:24 am »
Hello,
I have a question regarding the correct way of using mnultiple windows with SFML (2.5.1).

Here is the general info:

- one window is the main program interface
- from this interface you can launch a thread that will open many other windows (al opened and managed in this new thread)

so the question are:

1) do I need to call setActive(true) for every window?
2) what happens if I set the vertical retrace to true? Every window will stop the code waiting the retrace?

thanks

11
Network / Re: UDP multiple ports
« on: August 22, 2018, 06:42:13 pm »
Is it possible to mix UDP and TCP sockets?

Can I have one UDP socket and another TCP running at the same time?

12
Network / Re: UDP multiple ports
« on: August 21, 2018, 02:31:32 pm »
Ok, thank you.

Now I have another question for you masters ;)

I would like to send a quite big image over the net as fast as possible (it must be runtime). I have it compressed so it's like 120K, what's the best method?

It's ok to use UDP (datagram limit) or better go to TCP?

13
Network / UDP multiple ports
« on: August 21, 2018, 10:58:20 am »
Hello, I would like to know if it is possible to have two udp sockets receiving on two different port at the same ipaddress.

Thanks

14
General / Possible memory leak
« on: October 12, 2017, 04:06:22 pm »
Hello, I was trying to play with many windows for my application, and I noticed one strange thing (I see it using default window manager).

When I create a new window the memory goes up.
When I delete the window the memory goes down, but just a little, so that if I continue to create windows the memory used will grow.
I noticed that this only happes if I use antialias in context settings, so maybe it's a driver issue.

Here is a little code to reproduce.

Code: [Select]
#include <SFML/Graphics.hpp>
#include <vector>

int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);

std::vector<sf::RenderWindow*> windows;

while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
else if (event.type == sf::Event::KeyPressed)
{
if (event.key.code == sf::Keyboard::A)
{
sf::ContextSettings settings;
settings.antialiasingLevel = 8;

sf::RenderWindow* wnd = new sf::RenderWindow();
wnd->create({ 800, 800 }, "2", sf::Style::Default, settings);
windows.push_back(wnd);
}
if (event.key.code == sf::Keyboard::D)
{
for (auto wnd : windows)
wnd->close();
// delete wnd;

windows.clear();
}
}
}

window.clear();
window.draw(shape);
window.display();

for (auto wnd : windows)
{
wnd->clear();
wnd->display();
}
}

return 0;
}

15
SFML projects / Re: AchBall
« on: October 12, 2017, 07:25:34 am »
If you send me the strings i can translate in italian (and maybe French)

Pages: [1] 2 3 ... 5