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

Pages: [1] 2
1
SFML projects / FlipGame[Updated 02.18 2009]
« on: February 13, 2009, 09:56:04 pm »
Hey guys!

I've made little puzzler and I'd like some feedback. :)

http://srejv.radhuset.org/flipgame/


So I rewrote the game, and improved on it. :) Changed a few of the levels too.
I'd still like some feedback! Good luck! :)

I'm using the animation framework in the wiki for animation. :]

2
Network / Unicode string
« on: January 26, 2008, 05:24:16 pm »
Is it possible to send unicode strings using the sf::Packet?

3
Feature requests / Joysticks auto recognition
« on: January 24, 2008, 09:08:52 pm »
Is it possible to make sfml recognize a joystick if you plug it in after the application has started?

4
Window / Joysticks
« on: January 18, 2008, 06:41:47 pm »
Why is axis the same as buttons?

Code: [Select]

sf::Event::JoyMove.Axis

is the same as
Code: [Select]

sf::Event::JoyButton.Button


What I mean is it gives the same ouput. Shouldn't JoyButton.Button give like -1 or something when just tilting an axis and JoyMove.Axis return -1 if I'm pressing a button?

5
Audio / get playing offset
« on: January 18, 2008, 03:40:20 pm »
How do I get the playing offset from sf::Music?

Code: [Select]
/usr/include/SFML/Audio/Sound.hpp: In member function 'float pbox::Jukebox::CheckOffset()':
/usr/include/SFML/Audio/Sound.hpp:211: error: 'float sf::Sound::GetPlayingOffset() const' is inaccessible
jukebox.cpp:152: error: within this context
jukebox.cpp:152: error: 'sf::Sound' is not an accessible base of 'sf::Music'


The error I got while trying. :<

6
Network / Port problems
« on: January 09, 2008, 11:31:52 pm »
Code: [Select]
server.cpp: In function 'int main()':
server.cpp:25: error: no matching function for call to 'sf::SocketUDP::Receive(char [128], unsigned int, size_t&, sf::IPAddress&, short unsigned int&)'
/usr/include/SFML/Network/SocketUDP.hpp:107: note: candidates are: sf::Socket::Status sf::SocketUDP::Receive(char*, size_t, size_t&, sf::IPAddress&)
/usr/include/SFML/Network/SocketUDP.hpp:131: note:                 sf::Socket::Status sf::SocketUDP::Receive(sf::Packet&, sf::IPAddress&)


And when I remove the port parameter it says "please specify port". I'm really confused.

7
Audio / No audiodevice found
« on: November 30, 2007, 05:23:44 pm »
Hey, I'm having some trouble distributing my programs with audio. The programs run fine, except for the fact that it gives the error "Audio device cannot be found." and no music starts playing.

I've added OpenAL32.dll to the exec dir.

Any ideas?

Edit: Add wrap_oal.dll to dir. Works.

Isn't there any way to do static linking? :<

8
Graphics / Scaling sprites
« on: November 29, 2007, 10:12:37 pm »
Is it possible to scale the sprites per frame based on the original size? Cause I need some kind of temp zooming function.  :roll:

9
General / Compiling the libs
« on: November 27, 2007, 06:27:49 pm »
I've been trying to compile the libaries using codeblocks (got the latest stuff from svn), but at first it depened on devIL, so I removed that, but now it only compiles the debug libs.  :(

What to do?

10
General discussions / OpenGL integration
« on: November 20, 2007, 11:08:28 pm »
While checking the roadmap I noticed this entry:
GRAPHICS   Improved the integration of OpenGL functions into SFML rendering   100 %

Which made me really curious... what are the improvements? :)

11
Feature requests / gluPerspective "replacement"
« on: November 12, 2007, 05:36:39 pm »
If you're only using glu.h for gluPerspective, you could use this snippet instead:

Code: [Select]
//additional includes
#include <math.h>

void
gluPerspective(GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar)
{
   GLdouble xmin, xmax, ymin, ymax;

   ymax = zNear * tan(fovy * M_PI / 360.0);
   ymin = -ymax;
   xmin = ymin * aspect;
   xmax = ymax * aspect;


   glFrustum(xmin, xmax, ymin, ymax, zNear, zFar);
}


Got it from this website: http://steinsoft.net/index.php?site=Programming/Code%20Snippets/OpenGL/gluperspective

12
Audio / Audiostreams tutorial error
« on: November 12, 2007, 03:37:06 pm »
(gosh I'm only having trouble.. that's not okay >_<)

Trying to run audiostream tutorial... thing... to help me understand how it works, but I get this error. It looks like it checks out since it returns what it's supposed to return, but eclipse thinks differently. I just updated from SVN (maybe I updated wrongly).

Code: [Select]

no match for 'operator=' in '((MyCustomStream*)this)->MyCustomStream::myBuffer = (&SoundData)->sf::SoundBuffer::GetSamples()' AudioStuff/src main.cpp line 46 1194877991497 1244



Also, is it -lsfml-audio which is used for all audio?

13
Audio / Cannot open file
« on: November 03, 2007, 02:24:28 pm »
I think there's something wrong with DevIL. I can't load audio:

Failed to read sound file "skeraeoo.ogg" (cannot open the file)
Failed to open "skeraeoo.ogg" for reading

:(
Can't load images either. :s (I have all the extlibs in the right folder)

14
General / Weird errors, glu.h
« on: October 31, 2007, 03:40:31 pm »
I keep getting these weird errors when I'm trying to use glu.h (I know this might not be the right place to ask):

**** Rebuild of configuration Release for project SFML Clockemp ****

**** Internal Builder is used for build               ****
g++ -O3 -Wall -c -fmessage-length=0 -o src\main.o ..\src\main.cpp
In file included from ..\src\main.cpp:3:
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:225: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:226: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:227: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:228: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:229: error: `GLAPI' does not name a type
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:230: error: `GLAPI' does not name a type
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:231: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:232: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:233: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:234: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:235: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:236: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:237: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:238: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:239: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:240: error: expected constructor, destructor, or type conversion before "const"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:241: error: expected constructor, destructor, or type conversion before "const"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:242: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:243: error: expected constructor, destructor, or type conversion before "const"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:244: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:245: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:246: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:247: error: `GLAPI' does not name a type
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:248: error: `GLAPI' does not name a type
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:249: error: `GLAPI' does not name a type
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:250: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:251: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:252: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:253: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:254: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:255: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:256: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:257: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:258: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:259: error: `GLAPI' does not name a type
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:260: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:261: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:262: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:263: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:264: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:265: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:266: error: `GLAPI' does not name a type
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:267: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:268: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:269: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:270: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:271: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:272: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:273: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:274: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:275: error: expected constructor, destructor, or type conversion before "void"
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:276: error: `GLAPI' does not name a type
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:277: error: `GLAPI' does not name a type
..\src\main.cpp: In function `int main()':
..\src\main.cpp:19: error: `gluBuild2DMipmaps' was not declared in this scope
..\src\main.cpp:19: warning: unused variable 'gluBuild2DMipmaps'
..\src\main.cpp:55: error: `gluPerspective' was not declared in this scope
..\src\main.cpp:55: warning: unused variable 'gluPerspective'
Build error occurred, build is stopped
Time consumed: 657  ms.

I just have no idea what to do. :(

15
Graphics / Opengl + text
« on: October 31, 2007, 12:20:47 am »
I was thinking of using SFML for help with text output when coding OpenGL programs,  but do I really have to initialize opengl at every frame if I want to use the sf::String and OpenGL? :S

I don't know how to explain my problem because it's just weird. Right now I'm initiating OpenGL and setting everything up outside the main loop inside "App.StartOpenGL()" and "App.EndOpenGL()" then I'm using the same for drawing geometry inside the main loop, but I don't get any output at all. :s

Pages: [1] 2
anything