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

Pages: [1] 2
1
Graphics / Anyone Know What is Causing This?
« on: February 02, 2011, 06:05:42 pm »
Yeah, Programming is never an easy task... Good luck! :)

2
Graphics / Rendertarget - sf::text
« on: January 29, 2011, 06:00:13 pm »
Ok, i switched to renderwindow.

Code: [Select]
void Renderer2D::refresh()
{
std::cout << "Renderer2D::refresh()\n";
m_Engine->getWindow()->SaveGLStates();

sf::Font font;
    if (!font.LoadFromFile("arial.ttf"))
         return;
    sf::Text text("Hello SFML", font, 50);

m_Engine->getWindow()->Draw(text);
m_Engine->getWindow()->RestoreGLStates();
};


However, this codes doesn t draw any text. (and i think my OpenGL perspective changed a bit...). The Font gets loaded. Where should the text appear?

3
Graphics / Rendertarget - sf::text
« on: January 29, 2011, 05:28:40 pm »
Hi,

Can i use sf::text with the normal Window? Its not a rendertarget. But how do i display text then?

lg

4
Feature requests / Mouse capture/grab
« on: January 10, 2011, 05:43:03 pm »
i am going to wait until its implemented :) As long as its implemented before 20th February :)

lg

5
Feature requests / Mouse capture/grab
« on: January 06, 2011, 02:51:34 pm »
Can anybody post a workaround until we get it?

6
Feature requests / Mouse capture/grab
« on: January 06, 2011, 03:17:32 am »
Another Request from me, pls :)

7
Window / Windows Messages
« on: December 10, 2010, 11:12:07 pm »
Ok, i got 3 Problems that are fixed now:
1) i didn t called SetActive(false)
2) I hadn t had a sf::Context in both Threads
3) I called m_Window->Display() in Thread X and i think this activates the context for thread X again?

lg

8
Window / Windows Messages
« on: December 10, 2010, 10:01:29 pm »
Ok, now i created the Window in thread X, this way i can ask for input from thread X.
On the other site i want to render in thread Y. But everytime i try to use m_Window->setActive(true) in thread Y it says: "Failed to activate the window's context".

What are the conditions to make it work?

9
Window / Windows Messages
« on: December 10, 2010, 04:14:04 pm »
Yes, i do.
I got the error. I created the Window in an other Thread. But i thought setActive() is implemented for the reason to switch the context to the current thread. its also working witht he opengl stuff, but not with the windows messaging stuff.

10
Window / Windows Messages
« on: December 10, 2010, 04:00:22 pm »
Hey,

For some reason my RenderWindow is not answering to events like moving the window around or minimize, maximize. The OpenGL stuff is rendered correctly, but the windows does not respond to any windows7 messages. I render in a thread.

11
General / Where Did you learn OpenGL?
« on: December 08, 2010, 09:03:28 am »
I learned it complete at nehes tutorials. Back in the old days it was the only Ressource i got.

Later i bought a book. but didn t read too much :) And 2 years ago i bought an advanced book, but never read it :) But i have s.th. to look, when i need to know s.th.

12
General / MSVC++ 2010 64 bit libraries
« on: December 07, 2010, 10:03:22 pm »
Hey,

I made you some new Libs from the current, today version. So everybody who needs them, get Release and Debug Libs for SFML2 here:

http://data.whosme.de/SFML2/SFML2_REV1751.zip

I used this external 64Bit versions of libjpeg, glew, freetype, openal and sndfile, if anybody wants to compile their own sfml libs.

http://data.whosme.de/SFML2/extlibs_x64.zip

I just used cmake, it worked very well.

13
General discussions / Thanks
« on: November 01, 2010, 10:47:03 pm »
i agree, thanks!

14
Window / Input in the Mainthread
« on: October 28, 2010, 04:02:54 pm »
Hi,

I read somewhere that all Input have to be handled in the MainThread of the Program. Is that a SFML restriction or general for Windows?

I found this here and thought, that it should be possible: http://msdn.microsoft.com/en-us/library/ms682523(v=VS.85).aspx

15
General / Linker error GLEW / Jpeg
« on: October 27, 2010, 02:12:05 am »
just to make it sure, i mean compilation worked instantly. like i said above, when i try to use those libraries i still get those glew errors :(

Pages: [1] 2
anything