Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: rbSFML  (Read 159718 times)

0 Members and 5 Guests are viewing this topic.

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
rbSFML
« Reply #105 on: April 07, 2011, 09:10:08 am »
Quote from: "Laurent"
The latest modifications didn't add anything, they removed RenderImage::IsAvailable.

There are default values that changed in sf::ContextSettings and sf::Image, I don't know if it makes a difference for you.


If it's default arguments then there's some stuff that I have to change. If it is default values set inside the constructor then I don't need to change anything.

I'll look at the changes in the commit list to be extra sure.

Quote from: "TricksterGuy"

I'll wait until someome complains.

I also have little time for the next couple of weeks due to graduate school...

However the good news is I have purchased a new laptop with a better graphics card than my old laptop and its a 64 bit system. So I'll play around it with it with this when I am able.

No worries, know you don't have much time. Also congrats to the new laptop. Though the ATI/Intel bug has been fixed in SFML2 now ^^

You are aware that the entire SFML project has moved to Github? I have created a Github repo for rbSFML, if you create an account I can set you as a developer for it.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
rbSFML
« Reply #106 on: April 07, 2011, 09:12:08 am »
Quote
If it's default arguments then there's some stuff that I have to change.

In sf::ContextSettings it's the default arguments of the default constructor. In sf::Image it's only a default value.
Laurent Gomila - SFML developer

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
rbSFML
« Reply #107 on: April 07, 2011, 09:18:45 am »
Quote from: "Laurent"
Quote
If it's default arguments then there's some stuff that I have to change.

In sf::ContextSettings it's the default arguments of the default constructor. In sf::Image it's only a default value.

I just noticed that I might not even have to do that, some really stupid code replication actually saved my ass here.

I already found the new stuff, Github's commit shower is sweet :P
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

TricksterGuy

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
rbSFML
« Reply #108 on: June 04, 2011, 10:45:21 pm »
Alright I am back for the most part.

I have set up a github account username is the same as my username here.

and I come with gifts too

http://trickster.wg2140.com/Games/samegamerbsfml.zip (depends on Narray)

^ ported this code I wrote with Rubygame to rbSfml last night  :D

Also my new laptop is awesome.

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
rbSFML
« Reply #109 on: June 04, 2011, 10:55:17 pm »
Nice to see you again!

Also sweet but I can't run it, I don't have narray and is having trouble with installing it(same thing when trying to install ruby-opengl I think).

Anyway I added you as a collaborator to the project.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

TricksterGuy

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
rbSFML
« Reply #110 on: June 05, 2011, 12:34:26 am »
Alright.

Odd that you can't get it working.

Also it seems like rake rdoc generates unreadable documentation or at least the documentation doesn't look great.  I'll be having a look at this

And I just provided an overload for Image#new pass in a width, height, and a color object it will call Create (the one thing that annoyed me when porting my code over)'

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
rbSFML
« Reply #111 on: June 05, 2011, 01:34:34 am »
Ah didn't mean like that, I think you miss understood what I meant. I don't have the gem narray and my gem on Windows are messing with me so I can't install anything!

Also commented on your commit on Github, love that feature by the way, on something stupid on my side that I just realized.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
rbSFML
« Reply #112 on: July 06, 2011, 04:32:41 am »
Allright rbSFML now also support the three new input classes and SFML::Input was removed.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

kurayama

  • Newbie
  • *
  • Posts: 6
    • View Profile
rbSFML
« Reply #113 on: August 07, 2011, 01:53:18 am »
Can't seem to get it working on osx with rvm.
Always get ''require' no such file to load...' on sfml includes

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
rbSFML
« Reply #114 on: August 16, 2011, 10:50:00 am »
Sorry, I have been trying to aquire access to a OS X machine but could not. Maybe you can describe the problem a little more? Did you follow the instructions? Did it compile and install successfully?

Any information will be help full.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
rbSFML
« Reply #115 on: August 20, 2011, 02:19:09 pm »
An update to what's going on with rbSFML so you guys don't think I've forgotten. Whoever you few guys are that uses it. Anyway keep sending me messages about it is incompatible with the latest version of SFML2 or just say: "Hi, I use rbSFML!"
It's nice to see that there actually is developers that are using my library :)

Anyway I am currently working on getting the library up to date to the Texture changes of SFML2 so it compiles.

After that I will have to implement the InputStream functionality somehow. Either I will just simply use the IO base class in Ruby or I'll provide a whole new class for that. Suggestion from anyone here is appreciated, even though if you have no idea of how Ruby works or looks like you can still come with valid design suggestions and so on.

And last thing I'll do is a complete overhaul of rbSFML going trough each file and function to see if I've missed something and also update the documentation. This will take it's sweet time as well because I am doing most of my work from my android phone so it's going pretty slow though I find it quite cool.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
rbSFML
« Reply #116 on: August 21, 2011, 07:26:39 pm »
Alright! rbSFML is now up to date!

If anything seems weird or you get crashes, undefined behaviour let me know and I'll fix it. The changes were pretty major so I might have missed something somewhere.

If Laurent doesn't decide to change anything else in the near future I will start and try develop BigTexture and BigSprite classes to rbSFML and post it on the wiki for people who want to draw sprites larger than what their graphics card allow.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Zerralin

  • Newbie
  • *
  • Posts: 5
    • View Profile
rbSFML
« Reply #117 on: September 19, 2011, 08:47:34 am »
Hello, I'm trying to use SFML2 with this binding but i get a error during compiling..
Code: [Select]


C:\Users\creep\Downloads\Groogy-rbSFML-fd916bf\Groogy-rbSFML-fd916bf>rake
(in C:/Users/creep/Downloads/Groogy-rbSFML-fd916bf/Groogy-rbSFML-fd916bf)
mkdir -p obj
mkdir -p obj/shared
Compiling shared/global.cpp
Compiling shared/NonCopyable.cpp
Compiling shared/Vector2.cpp
Compiling shared/Vector3.cpp
mkdir -p obj/audio
Compiling audio/Listener.cpp
Compiling audio/main.cpp
Compiling audio/Music.cpp
Compiling audio/Sound.cpp
Compiling audio/SoundBuffer.cpp
Compiling audio/SoundBufferRecorder.cpp
Compiling audio/SoundRecorder.cpp
Compiling audio/SoundSource.cpp
Compiling audio/SoundStream.cpp
mkdir -p obj/graphics
Compiling graphics/Color.cpp
Compiling graphics/Drawable.cpp
Compiling graphics/Font.cpp
Compiling graphics/Glyph.cpp
Compiling graphics/Image.cpp
Compiling graphics/main.cpp
Compiling graphics/Rect.cpp
Compiling graphics/Renderer.cpp
Compiling graphics/RenderTarget.cpp
Compiling graphics/RenderTexture.cpp
Compiling graphics/RenderWindow.cpp
Compiling graphics/Shader.cpp
Compiling graphics/Shape.cpp
Compiling graphics/Sprite.cpp
Compiling graphics/Text.cpp
Compiling graphics/Texture.cpp
Compiling graphics/View.cpp
mkdir -p obj/window
Compiling window/Context.cpp
Compiling window/ContextSettings.cpp
Compiling window/Event.cpp
Compiling window/Joystick.cpp
Compiling window/Keyboard.cpp
Compiling window/main.cpp
Compiling window/Mouse.cpp
Compiling window/VideoMode.cpp
Compiling window/Window.cpp
mkdir -p obj/system
Compiling system/Clock.cpp
Compiling system/InputStream.cpp
Compiling system/main.cpp
Creating system.so
obj/system/InputStream.o: In function `~InputStream':
c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../include/SFML/System/Inp
utStream.hpp:48: undefined reference to `_imp___ZTVN2sf11InputStreamE'
c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../include/SFML/System/Inp
utStream.hpp:48: undefined reference to `_imp___ZTVN2sf11InputStreamE'
c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../include/SFML/System/Inp
utStream.hpp:48: undefined reference to `_imp___ZTVN2sf11InputStreamE'
c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../include/SFML/System/Inp
utStream.hpp:48: undefined reference to `_imp___ZTVN2sf11InputStreamE'
c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../include/SFML/System/Inp
utStream.hpp:48: undefined reference to `_imp___ZTVN2sf11InputStreamE'
collect2: ld returned 1 exit status
mkdir -p obj/all
Compiling all/main.cpp

C:\Users\creep\Downloads\Groogy-rbSFML-fd916bf\Groogy-rbSFML-fd916bf>

OS: Windows 7
Ruby(rubyinstaller): ruby 1.9.2p290(2011-07-09) [1386-mingw32]

Can you help me ? thanks.

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
rbSFML
« Reply #118 on: September 19, 2011, 06:23:34 pm »
I'm at my university computer right now but can you check so that the library files you are linking against are the latest? Remove any SFML2 installation you have and recompile it from scratch.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
rbSFML
« Reply #119 on: September 20, 2011, 07:45:29 pm »
Verified that this is a sfml error and not a problem in rbSFML in itself. Laurent said he would fix it today so when thats done it should work.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

 

anything