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

Pages: [1] 2 3 ... 7
1
Graphics / Code Generated Image does not display on Windows
« on: February 03, 2010, 12:50:56 am »
Yeah, there is a package you need to download for that. Read the notes here for everything to download:

http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Current%20Release_%20gcc-4.4.0/gcc-4.4.0-mingw32-notes.txt/download

It sounds like SFML or OpenGL has a Windows 7 problem though.

2
Graphics / Code Generated Image does not display on Windows
« on: February 01, 2010, 05:59:33 am »
I also tested it. Works fine with MinGW, g++ 4.4.0 on Vista (although it's very slow).

3
Graphics / Huge problem with SFML
« on: January 06, 2010, 09:22:56 pm »
Your program ran fine for me (after commenting out the font stuff).

4
Window / GetEvent with pre-existing Win32 window.
« on: January 01, 2010, 02:42:15 am »
Yeah. I've been using Winspector to see window messages. Somehow the frame isn't even getting the messages, so this is in no way SFML's fault.

I'm just hoping there is some TK setting that will fix it. Hmmm.

5
Window / GetEvent with pre-existing Win32 window.
« on: December 31, 2009, 09:32:31 pm »
OK, thanks for your reply.

I am still having some trouble getting it to work though.

What I am doing is making a frame using the TK toolkit, and then passing the HWND of the frame to sf::RenderWindow. Rendering works fine, and the mouse up/down/move events work fine. The resize and close events also seem to work.

My problem is that I am not receiving any keyboard or mouse wheel events.

I'll keep working on it, I'm sure I'm just making some stupid mistake.

6
Window / GetEvent with pre-existing Win32 window.
« on: December 31, 2009, 08:39:18 am »
If I make a sf::RenderWindow using a pre-existing Win32 window, what do I need to do in order for GetEvent() to work? Is it possible?

Thanks.

7
SFML projects / Hexagon Puzzle Thing
« on: December 31, 2009, 12:52:49 am »
Nice game.

My only criticism is that whenever I close the game (by clicking the X in the upper right) it crashes. This doesn't affect game-play at all, but it's unprofessional.



I guess you're not cleaning up correctly. Maybe this is because of all your global variables?

Anyway, neat game. Nice concept. I like the hex grid.

8
General / sf::string
« on: November 19, 2009, 08:48:04 pm »
I very recently did this same thing.

Here is my relevant code, which converts a mouse position to the caret position. Note the averaging of the last value, this is so the caret snaps to the nearest gap.

mString is a pointer to my string.

Code: [Select]
   size_t TextBox::GetCharacter(float x) const
    {
        size_t caret = 0;
        float lastPos = 0.0f;
        const std::string s = mString->GetText();
        while (caret < s.length())
        {
            const float curPos = mString->GetCharacterPos(caret + 1).x + mString->GetPosition().x;

            if ((lastPos + curPos) / 2.0f > x)
                break;

            ++caret;
            lastPos = curPos;
        }

        return caret;
    }


Knowing where to draw the caret is just a call to mString->GetCharacterPos(caret).

9
Audio / SFML 2 Won't play OGG files
« on: November 07, 2009, 01:13:56 am »
:oops: Thanks. That was it.

Sorry for bothering you all.

10
Audio / SFML 2 Won't play OGG files
« on: November 07, 2009, 01:04:14 am »
OK, the sample program "sound" works fine. But if I copy the .ogg file over to my game, my game can't play it.

I'll figure this out some how.

11
Audio / SFML 2 Won't play OGG files
« on: November 07, 2009, 12:38:04 am »
I just upgraded to SFML 2 today.

I can't get my old music ogg files to play at all. It doesn't matter if they are loaded from memory or file. SFML puts "Failed to read sound file from memory (Supported file format but file is malformed.)" into the std error stream.

Is this a known issue? Like I said, these files played great in SFML 1.5 (And the svn version).

12
SFML projects / Short n Sweet 2D Space Shooter Action
« on: September 15, 2009, 03:03:24 am »
I get this error with a fairly clean install of Vista x64. Any ideas?

13
Graphics / Setting application icon
« on: August 25, 2009, 09:21:56 am »
Quote from: "panithadrum"
but then the executable icon is a crappy looking window, isnt it?
That's an issue for your compiler.

14
Graphics / rotating and THEN scaling sprite
« on: August 13, 2009, 11:41:48 pm »
Quote from: "Nexus"
When you turn a rectangular sprite, you can't scale its new x and y size (whose axes are parallel to the window).
Ok, that makes sense. Thanks for explaining.

15
General / Makefile & MinGW problems
« on: August 13, 2009, 04:36:51 pm »
In the tutorials, time is listed under the windows package. Maybe try that?

Pages: [1] 2 3 ... 7