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

Pages: 1 2 [3]
31
General / Compiling SFML2 binaries using build.bat
« on: November 19, 2009, 09:28:51 am »
I make build.bat work (just had to add codeblocks path to the PATH), but it seems not to compile sfml-main. Build.bat looks fine... maybe it fails somewhere copying files.
Is it just me? :o

EDIT: Also, I can't link with the static libraries
Code: [Select]
n\sfml2\lib\mingw\libsfml-graphics-s.a(RenderTarget.o):RenderTarget.cpp:(.text+0x289)||undefined reference to `_glClearColor@16'| and more than 50 lines like this...

Any idea? (the console window tells me that it couldn't copy some files because they were in use)

32
General discussions / [solved]Difference on sfml-debug and sfml-release?
« on: November 17, 2009, 10:27:54 pm »
Maybe something that helps debuggers to work?
I am quite noob at this.

33
SFML website / Duplicated phrase :P
« on: November 17, 2009, 12:59:56 pm »
Here http://www.sfml-dev.org/documentation/1.6/classsf_1_1Window.htm#9fc1e745594d5cf6a30225ec9ea36675

Quote
Activate of deactivate the window as the current target for rendering.

Activate of deactivate the window as the current target for rendering.

34
Graphics / Gray line when drawing an sprite
« on: November 12, 2009, 07:40:58 pm »
At revision 1275, using Windows 7 and a very old notebook.

Here is the code and the image: http://www.64digits.com/download.php?name=Thingy.rar&id=28234Thingy.rar

I just draw an image to a sf::RenderWindow, and then appears two gray lines on the top left corner!

And this is what I get:


BTW, I just get like 10 FPS lol Is just my computer?

35
Window / Strange behavior using sf::RenderWindow::SetFramerateLimit()
« on: November 04, 2009, 10:48:18 pm »
I noticed time ago that sf::RenderWindow::SetFramerateLimit() doesn't work at all. If you put a value of 30, the frame limit goes to 27. If you put 300, it goes to 360 or something.

Also, and that's what I want you to know, my frame rate changes while I move the mouse. When no move is going on, the framerate stays at a number.

It's only me?

36
Feature requests / Enhance sf::Input class
« on: October 29, 2009, 06:48:07 pm »
I think that sf::Input is quite inneficient comparing to sf::Event.

It would be nice for sf::Input to have higher level functions, like:
bool isKeyHold(...);
bool isKeyPressed(...);
bool isKeyReleased(...);
and maybe
bool isMouseMoving();

is very simple to implement, and I think that everyone needs to know when a key is just pressed or released! I have to make a custom sf::RenderWindow class to implement this...

37
Network / Download files different than .txt
« on: October 21, 2009, 11:11:54 pm »
I would like to download, for example, an image.

I do. Then I get the char* from the string received by the response, and try to make an image loading from memory.

LoadFromMemory returns error. I put the code here.

Code: [Select]
// Create Http
sf::Http Http;
Http.SetHost("www.64digits.com");

// Create request
sf::Http::Request Request;
Request.SetMethod(sf::Http::Request::Get);
Request.SetURI("/users/Panithadrum/preview.gif");

// Send request & Get response
sf::Http::Response Page = Http.SendRequest(Request);

const char *pixels = Page.GetBody().c_str();
sf::Image image;
if (!image.LoadFromMemory(pixels, sizeof(pixels)))
{
std::cout << "error loading from memory" << std::endl;
}


Any idea? Do I have to do something with my char pointer?

Pages: 1 2 [3]