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

Pages: [1]
1
Feature requests / sf::Event::Resized also while the user is still resizing?
« on: September 14, 2011, 06:20:27 pm »
I see. Sorry if i didn't see previous threads on the subject.

Thanks for the detailed answer, though.

2
Feature requests / sf::Event::Resized also while the user is still resizing?
« on: September 13, 2011, 11:16:43 pm »
Howdy,

Is it possible that SFML also sends an sf::Event::Resized (or name it sf::Event::Sizing or whatever) if the user is still engaged in resizing the Window but hasn't released the mouse button yet?

I'd like to update the Window on every little size change so it would immediately give the user a preview while she's deciding about how large/small it shall get. Also, it might make it possible to catch sizes which are not supported by the application (too small or bad x/y ratio etc.) while the user is resizing the window.

Of course, this feature would not necessarily be guaranteed to work on all operating systems SFML works on, but then, SFML could support it if the system does. For example, Win32 sends WM_SIZING messages in this case.

Keep up the good work..

3
Feature requests / sf::String removal
« on: September 13, 2011, 11:07:08 pm »
One helluva string class is glib::ustring (from gtkmm), all UTF-8 and a fine string formatter included. Fully exchangeable with std::string. I wish C++0x would just add that class to the STL. My 2 cents..

4
General discussions / SFML/OpenGL.hpp doesn't need Windows.h
« on: August 30, 2011, 10:40:38 pm »
Quote from: "Laurent"
Quote
Maybe we got a different gl.h header?

Yes, mine doesn't define APIENTRY nor WINGDIAPI, and triggers compile errors if included alone.


Poor MSC users then... :P

Bottom line is, this issue applies to MinGW users.

Btw., MinGW could be identified by checking:

#ifndef __MINGW32__
  #include <Windows.h>
#endif // __MINGW32__

Cheers.

5
General discussions / SFML/OpenGL.hpp doesn't need Windows.h
« on: August 30, 2011, 07:46:20 pm »
Quote from: Laurent
They do, GL.h on Windows uses macros defined in windows.h such as APIENTRY. You can't use OpenGL on Windows without windows.h included first -- try it if you're not convinced ;)

Heres what my gl.h looks like:

#if !defined(APIENTRY)
#  if defined(__WIN32__)
#    define APIENTRY __stdcall
#  else
#    define APIENTRY
#  endif
#endif

My sourcecode:

#include <GL/gl.h>

int main(void)
{
  //DWORD nothing;  // error: DWORD not defined

  glIndexi(1);
  return(0);
}

> g++ -o test.exe main.cpp -lOpenGL32

...compiles fine only if the DWORD line stays commented.

Maybe we got a different gl.h header?

6
General discussions / SFML/OpenGL.hpp doesn't need Windows.h
« on: August 30, 2011, 11:56:44 am »
Please do not include Windows.h in <SFML/OpenGL.hpp>.

The intention of the header file is good (different include GL path on MacOS), but i won't let Windows.h sneak into all my sources, as they are 100% Windows-clean. Windows.h is huge, and the GL includes don't need any of it.

7
General discussions / where is sf::RenderImage ?
« on: August 20, 2011, 02:57:26 am »
Where is sf::RenderImage?

Just downloaded a project that uses it, but the 2.0 snapshot doesn't mention it anywhere... then i read in this thread that sf::RenderImage was a new addition but i can't find it anywhere in the snapshot or the docs, now i got no clue how to compile the project..

Also, is it possible to download win32 DLLs from recent 2.0 snapshots anywhere?

And... do you have any idea when v2.0 might become official?

Pages: [1]