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.


Topics - Mr. X

Pages: [1]
1
Feature requests / Optimize memory layout of SFML classes
« on: April 17, 2016, 10:23:31 pm »
There are several classes in SFML with a non-optimal memory layout, for example sf::Transformable or sf::RenderTarget::StatesCache. If in sf::Transformable members are reordered such that the boolean variables are next to each other, 4 Bytes can be saved (MSVC14, but there will be a size reduction with virtually every available compiler, although the size might vary). The reason is, that for optimization purposes compilers align class members, so that padding bytes are required between members of different size. The amount of padding bytes cannot be optimized automatically, since the compiler must place the members in memory in the same order as they are declared. What do you think about implementing this?

2
General discussions / Deprecated functions
« on: January 14, 2016, 02:19:14 pm »
Since this commit, SFML started to make use of the SFML_DEPRECATED feature:
https://github.com/SFML/SFML/commit/957cabb816f69a3d7a3909d24b9e773ffc9a65b5

In my opinion, this is a bad idea for two reasons:
- Since the new methods are not available, using the new function setFillColor means breaking compatibility with older SFML versions - even if the new feature outlined text is not used. In general, I think it is a bad idea to mark an old function as deprecated immediately after an alternative was introduced.
- The implementation of SFML_DEPRECATED causes MSVC to issue warnings that turn into compilation errors if /sdl is enabled. This is not what I would call API compatibility, so, the policy until now, that minor releases are backward compatible would be dropped.

Hence, I would recommend to wait a few releases until using SFML_DEPRECATED for sf::Text::setColor().

3
SFML projects / SFML2-Build-Package (VC++)
« on: November 20, 2010, 01:42:47 pm »
For everyone who does not like CMake:
A nicer VC++ 2010 project file with x64-configuration (And all needed extlibs) (Its also usable for x86, of course): http://kloke-witten.dyndns.org/~philipp/downloads/SFML-Build-Paket_2.1813.0.zip
This version is for revision 1813, but it works with some newer revisions as well (I will update it if necessary)

Just extract it into the existing SFML2 folder and open the project file in /build/VC++ 2010/. The libs will appear in /lib/VC++ 2010/.

Thread in the inofficial german forum: http://forum.sfml-dev.de/index.php/topic,303.0.html

If you would like to get a x64 (and/or Itanium) compiler for VC++ 2010 Express, just install the Windows SDK 7.1

4
System / Problem with sf::Randomizer. Seed isn't set in other threads
« on: July 09, 2009, 01:23:51 pm »
Hello,
I've noticed, that the Seed of sf::Randomizer is not automatically set if I use it in another thread than the main thread. This occures also if I use std::rand directly. Is there a workaround so that SFML sets the seed also automatically in other threads, or have I to set the seed in every thread myself?

Maybe SFML could set the seed everytimes a new thread is opened.

5
Graphics / Changing Image of a Sprite do not work
« on: April 06, 2009, 08:15:28 pm »
If I have a Sprite with an Image and I change the Image by
Code: [Select]
Sprite.SetImage(Img);
the Image is cut at the left and down side if it is bigger than the old one.
A workaround is
Code: [Select]
Sprite = sf::Sprite(Img);
but I think that is inefficient.

Is that a bug or a feature that the size of the new image is not assumed?

6
General / Programm doesn't start with wheel
« on: January 14, 2009, 06:30:26 pm »
Hello,
I've got a problem, with maybe has something to do with SFML.
Yesterday I used my wheel for my computer the first time after a long break. Today, the wheel was still connected to my PC, my SFML Programm doesn't start.
After disconnecting the wheel everything works fine.
Has it sth. to do with SFML? Does anybody know how to solve the Problem?

7
General discussions / Why doesn't SFML use sf::vector in the Input class?
« on: January 03, 2009, 11:49:40 am »
Hello,
I'm just wondering about the Input class.
Why doesn't SFML use sf::vector2i instead of two int?

Because it is easier to use for my Project, I tried to change it, and it works.

8
General discussions / Wikibook about SFML in German
« on: December 01, 2008, 10:29:12 pm »
Hello,
I'm not quite sure, in which part of this Forum I should write that so I put it into "General Discussions" :wink:

There are a lot of programmers who are programming with SFML and speak german but there is no german Documentation or forum.

I could write a book/documentation in german about SFML, but I think, the programmer of SFML(Laurent...) should agree to that. It would be great, if there are other German SFML-Programmers, who would like to help because in a team the book could be bigger, better and correcter.

I think it would help many programmers to start with SFML and many others who have already started could also get help by this books.

Please let me know your opinion to this "project".

9
General / Stack arround variable is corrupted
« on: November 29, 2008, 11:26:03 pm »
Hello,
with this simple code:
 
Code: [Select]
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>

int main() {
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
bool Running = true;
sf::Event Event;
while (Running) {
while (App.GetEvent(Event)) {
if (Event.Type == sf::Event::Closed)
Running = false;
if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
Running = false;
}
App.Display();
}

return EXIT_SUCCESS;

}

I get this error when I exit the programm:
Quote
Run-Time Check Failure #2 - Stack around the variable 'App' was corrupted.


I am using vc++ 2008 Express, if this helps.

10
Feature requests / Drawing an Ellipse
« on: October 18, 2008, 07:04:31 pm »
Hello,
Is it possible to Add a method to the sf::Shape class for drawing an ellipse, or change the circle function, so that it could draw ellipses?

11
Feature requests / Finding out, what key is pressed, Key code "all"
« on: October 12, 2008, 11:56:18 am »
Hello,
I have not find a way to find out, what key is pressed.
It would be great if there is a method that returns the pressed key as a string, so if you press for example the Enter Key, it returns "\n", or if you press the Equal Key, it returns "=".
If thats already available, please say me, how to use it.

It would be also good, if there is an option to find out if any key is pressed.(Or I haven't found it)

12
Graphics / How to get the expected scale of an not drawn String
« on: October 02, 2008, 06:29:39 pm »
Hello,
I'm trying to write a GUI for my program. For displaying an well looking Button I want to write the Text in the middle of the Rectangle around it. For my algorithm I need to find out the expected X-Scale of the String, which isn't drawn at this moment.

Is there a way to find out?

13
Feature requests / Video player
« on: September 05, 2008, 02:47:49 pm »
Hello,
I'm asking for a video player.
Is it intended to implement it(I know, it would be lots of work)?
It would be great for things like intro-videos for example.

14
General discussions / Microsoft .Net with SFML; Windows Forms
« on: September 04, 2008, 06:33:21 pm »
Hello,
I've a question. in General it is possible to use some classes/funktions of .Net with SFML, like Timers(quite useful if you only use Microsoft Windows :wink: ) for example.
But is it also possible, to display Windows Forms Buttons in an SFML Window, or to display the SFML Graphic in an Windows Forms Window?

Sorry for my bad English, I'm German(What about a german part of the forum  :?: )

Pages: [1]
anything