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 - Mr. X

Pages: 1 ... 3 4 [5] 6
61
General discussions / Wikibook about SFML in German
« on: December 02, 2008, 02:52:15 pm »
I prefer a wikibook because there is also a book about SDL. A book on an independant website like wikibooks.de would make SFML more common. Potential Users who search on wikibooks for an useful API would see SDL and SFML instead only SDL.
For Users who look at the offizial SFML website would be a link to the wikibook as useful as an german part of the wiki.

62
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".

63
General / Stack arround variable is corrupted
« on: November 30, 2008, 10:29:21 am »
Thank you, you're right.

64
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.

65
Feature requests / Drawing an Ellipse
« on: October 26, 2008, 09:54:03 am »
Hello,
it doesn't work. Also when I center the circle before scaling, it is only moved by this factor.

66
Feature requests / Drawing an Ellipse
« on: October 19, 2008, 10:47:09 am »
Yes,
but if I try to scale it, it is just moved by that factor...

67
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?

68
Feature requests / Finding out, what key is pressed, Key code "all"
« on: October 13, 2008, 08:49:42 am »
I didn't find a way, to use the TextEntered Event for getting back a character without a compiler error. What code do I need, if I want the character. What have I to write down?
This gives a compiler Error that a sf::Event::EventType couldn't be converted to a std::string:
Code: [Select]
SF.ETB->AddText(SF.Event.TextEntered);
But As I tried to convert it first to a char and then to a string, I get runtime Errors.
What Is the mistake?

69
Feature requests / Finding out, what key is pressed, Key code "all"
« on: October 12, 2008, 10:23:45 pm »
My compiler told me, that event.text.unicode is an Integer...
Is it a character code?
If Yes, how could I convert it to a char?

70
Feature requests / Finding out, what key is pressed, Key code "all"
« on: October 12, 2008, 08:27:03 pm »
But I haven't found a way to get it...
My code:
Code: [Select]
while(SF.App.GetEvent(SF.Event)) {
if(SF.Event.Type == sf::Event::Closed) {
SF.App.Close();
}
if(SF.Event.Type == sf::Event::TextEntered) {
SF.ETB->AddText(/*Here should stand the pressed key*/);
}
}

71
Feature requests / Finding out, what key is pressed, Key code "all"
« on: October 12, 2008, 08:07:27 pm »
Thank you.
And how do I find out, what key is pressed?

72
Feature requests / Finding out, what key is pressed, Key code "all"
« on: October 12, 2008, 06:25:30 pm »
Ah, Thank you. Is it part of sf::Event?

73
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)

74
Graphics / How to get the expected scale of an not drawn String
« on: October 02, 2008, 07:36:41 pm »
Thank you,
it works.

75
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?

Pages: 1 ... 3 4 [5] 6
anything