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

Pages: [1]
Greetins y'all !  :D

Well; I'm actually reading SFML Game Development and in the chapter 4, sub-chapter "Handling Player Input" there's something I don't understand.

Here's the code (I explain what I don't understand below):

(click to show/hide)

Where the class Aircraft is (basically) a scene node handling its sf::Sprite, its type, etc...

So, what I don't get here is, if derivedAction() expects two parameters (SceneNode& and sf::Time), why in this snippet it just receives one argument (of type SceneNode&, I assume, since the code changes further in the chapter I can't really be sure it is one or just some "basic key word so it's simpler and lighter").

So yes, I know, as I just said, the code changes so it may just be an example but could somebody explain me if this code would work and (most of all) why?
I have read the documentation about std::function on cppreference and as I understood, this code is not legal.

Maybe I'm just taking a simple example too seriously, if so; I'm sorry to have bothered you. :D

Thank you !

Hi guys!

So, I try to using CEGUI in SFML like in this tutorial, but with the SFML 2.0 (that I had on the SFGUI repositories ^^') and with the latest release of CEGUI (0.7.7).

But when I try to compile, my compiler (GCC 4.6.3 on Ubuntu 12.04) return me this:

terminate called after throwing an instance of 'char const*'
Abandon (core dumped)

I make some test, apparently I haven't any problems with SFML. Here's the minimal code for the error:

#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include <CEGUI/CEGUI.h>
#include <CEGUI/RendererModules/OpenGL/CEGUIOpenGLRenderer.h>

int main(int argc, char* argv[])

  sf::RenderWindow win(sf::VideoMode(800, 600, 32), "ExceptionTest");
  //create an OpenGL renderer and initialize a CEGUI::System object
  CEGUI::OpenGLRenderer& myRenderer = CEGUI::OpenGLRenderer::bootstrapSystem();

      sf::Event evt;
            case sf::Event::Closed:

  return EXIT_SUCCESS;

Soo.. hum.. I don't really understand what's happening... hope you can help me!

Thank you! :)

Window / ERROR - [Keyboard.hpp] - Coincidence problem Class ~ Wiki
« on: July 23, 2012, 05:40:57 am »

I was in trouble all the week with an error (I use SFML 2.0):

Back is not a member of sf::Keyboard

(Well, not really a week...)

So I read again and again the Wiki & the Doc' about the sf::Keyboard class and I read that:

In the documentation:
enum Key{
//Some enums
Back, /* Here */
//Some enums

So after a while I read the file Keyboard.hpp and found something else:

In Keyboard.hpp (SFML/Window/):
enum Key{
//Some enums yeah
BackSpace, /* Different enum here! */
//enums, enums, enums

Sorry for the long topic but I just wan't to be clear about the what and where is error. ^^'

Thank you and hope I help! :)

Pages: [1]