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

Pages: [1]
1
Graphics / Drawing lines
« on: September 26, 2009, 07:35:40 pm »
The code is for PySFML.

When I draw two lines:
Code: [Select]

l1 = sf.Shape.Line(x, y, x + w, x + h, 1.0, color, 0.0, color)
l2 = sf.Shape.Line(x, y, x + w, x - h, 1.0, color, 0.0, color)


The lines do not start at the same (x,y) coordinate.  The second line is draw exactly 1 pixel above the first line.  I don't see anywhere in the code that would make this happen.  Why aren't the lines being drawn from the same (x,y) coordinate?

2
Python / wxWidgets
« on: March 31, 2009, 05:24:01 am »
Yes, this same problem effects Ogre3d also.  It appears there is no way to do this without writing a C module for python.

3
Python / wxWidgets
« on: March 29, 2009, 05:29:57 am »
It appears this isn't possible to do from an all Python perspective.  From what I've read, it is impossible to get the gtk.gdk.Window pointer necessary to set up the SFML render window.

Does anyone have a suggestion?

4
Python / wxWidgets
« on: March 24, 2009, 02:19:17 am »
I had no problem following the documentation to get wxWidgets to work with SFML.  However, I'm having some issues getting wxWidgets to work with PySFML.  It's basically the same thing.  I'm just much more used to the C++ syntax than Python, so I'm having some issues.

Has anyone been able to get PySFML and wxWidgets working?  Would you care to share the code?

Thank you

5
Python / Help getting PySFML running
« on: March 22, 2009, 07:07:26 pm »
The sfml-system compiles fine.  However, the sfml-window does not.  I get these errors:

Quote
make[2]: Entering directory `/home/zill/Desktop/SFML-1.4/src/SFML/Window'
g++ -o Context.o -c Context.cpp -W -Wall -pedantic -I../../../include -I../../ -O2 -DNDEBUG -fPIC
g++ -o Input.o -c Input.cpp -W -Wall -pedantic -I../../../include -I../../ -O2 -DNDEBUG -fPIC
g++ -o VideoMode.o -c VideoMode.cpp -W -Wall -pedantic -I../../../include -I../../ -O2 -DNDEBUG -fPIC
g++ -o Window.o -c Window.cpp -W -Wall -pedantic -I../../../include -I../../ -O2 -DNDEBUG -fPIC
g++ -o WindowImpl.o -c WindowImpl.cpp -W -Wall -pedantic -I../../../include -I../../ -O2 -DNDEBUG -fPIC
g++ -o Linux/Joystick.o -c Linux/Joystick.cpp -W -Wall -pedantic -I../../../include -I../../ -O2 -DNDEBUG -fPIC
g++ -o Linux/VideoModeSupport.o -c Linux/VideoModeSupport.cpp -W -Wall -pedantic -I../../../include -I../../ -O2 -DNDEBUG -fPIC
Linux/VideoModeSupport.cpp:31:35: error: X11/extensions/Xrandr.h: No such file or directory
Linux/VideoModeSupport.cpp: In static member function ‘static void sf::priv::VideoModeSupport::GetSupportedVideoModes(std::vector<sf::VideoMode, std::allocator<sf::VideoMode> >&)’:
Linux/VideoModeSupport.cpp:58: error: ‘XRRScreenConfiguration’ was not declared in this scope
Linux/VideoModeSupport.cpp:58: error: ‘Config’ was not declared in this scope
Linux/VideoModeSupport.cpp:58: error: ‘XRRGetScreenInfo’ was not declared in this scope
Linux/VideoModeSupport.cpp:63: error: ‘XRRScreenSize’ was not declared in this scope
Linux/VideoModeSupport.cpp:63: error: ‘Sizes’ was not declared in this scope
Linux/VideoModeSupport.cpp:63: error: ‘XRRConfigSizes’ was not declared in this scope
Linux/VideoModeSupport.cpp:79: error: ‘XRRFreeScreenConfigInfo’ was not declared in this scope
Linux/VideoModeSupport.cpp: In static member function ‘static sf::VideoMode sf::priv::VideoModeSupport::GetDesktopVideoMode()’:
Linux/VideoModeSupport.cpp:112: error: ‘XRRScreenConfiguration’ was not declared in this scope
Linux/VideoModeSupport.cpp:112: error: ‘Config’ was not declared in this scope
Linux/VideoModeSupport.cpp:112: error: ‘XRRGetScreenInfo’ was not declared in this scope
Linux/VideoModeSupport.cpp:116: error: ‘Rotation’ was not declared in this scope
Linux/VideoModeSupport.cpp:116: error: expected `;' before ‘CurrentRotation’
Linux/VideoModeSupport.cpp:117: error: ‘CurrentRotation’ was not declared in this scope
Linux/VideoModeSupport.cpp:117: error: ‘XRRConfigCurrentConfiguration’ was not declared in this scope
Linux/VideoModeSupport.cpp:121: error: ‘XRRScreenSize’ was not declared in this scope
Linux/VideoModeSupport.cpp:121: error: ‘Sizes’ was not declared in this scope
Linux/VideoModeSupport.cpp:121: error: ‘XRRConfigSizes’ was not declared in this scope
Linux/VideoModeSupport.cpp:126: error: ‘XRRFreeScreenConfigInfo’ was not declared in this scope
make[2]: *** [Linux/VideoModeSupport.o] Error 1
make[2]: Leaving directory `/home/zill/Desktop/SFML-1.4/src/SFML/Window'
make[1]: *** [sfml-window] Error 2
make[1]: Leaving directory `/home/zill/Desktop/SFML-1.4/src/SFML'
make: *** [sfml] Error 2


Do you know what to do?

Edit:

I didn't realize that I needed to have xorg-dev installed in order to compile SFML.  I got it working.

6
Python / Help getting PySFML running
« on: March 22, 2009, 06:55:05 pm »
Wow, you reply fast.  I tried using the 32 bit version of PySFML, but I just got an error saying that sf.so is the wrong elf class.

So, I'm trying to compile SFML for my architecture.  Hopefully I can get it to work.

Thank you for the quick response.

7
Python / Help getting PySFML running
« on: March 22, 2009, 06:19:37 pm »
I downloaded the DEV files for linux and put the PySFML folder in the site-packages of my python installation.

I get the error:
Quote
ImprotError: libsfml-graphics.so.1.4: wrong ELF class: ELFCLASS32


I have the libsfml-graphics.so.1.4 file, but I don't know how to fix the error.  Can anyone help?

Thank you

8
Window / Drawing to a window with SFML that you only have the handle
« on: October 21, 2008, 02:53:44 am »
I figured there was a way to do this.  I just didn't see that function in the documentation.  Thank you.

9
Window / Drawing to a window with SFML that you only have the handle
« on: October 19, 2008, 07:34:43 pm »
Is it possible to use SFML to draw to a window in which I only have the window handle?  For example, a function creates a window and returns the window handle.  The window handle is the only bit of information I have about that window.  Can I use that handle and draw directly to that window?

10
Audio / OpenFromMemory
« on: October 18, 2008, 03:57:00 am »
I wasn't at the time, but I figured out shortly after that that was probably what was happening.

I just made a struct to store the ogg contents and the music pointer.

Thank you.

11
Audio / OpenFromMemory
« on: October 14, 2008, 04:27:42 am »
I don't know what I'm doing wrong with OpenFromMemory, but it won't work.

I read out the entire .ogg from memory into a char buffer and call OpenFromMemory with that buffer and the number of bytes read from memory.  When I try to play the sound it freezes my computer.

However, when I make an .ogg file out of what I have read and then play it, it works fine.

What am I doing wrong?

12
General discussions / Particle Systems
« on: September 09, 2008, 09:25:26 pm »
Has anyone created a really good particle system extension for SFML?

Pages: [1]