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

3
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

4
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?

5
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?

6
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]
anything