More
See all Show me
27. ofxConsole: c++ Text Console for OpenFrameworks
4 months ago
23. GLSL Webcam Ripples
9 months ago
12. Processing - Grow Study
2 years ago
9. the nerd side of life
2 years ago
This is a first alpha version of ofxConsole, a quakestyle text console to bind functions and variables mainly for debugging. This tutorial was really helpful:
flipcode.com/archives/Creating_a_Scalable_Console_System_with_STL-Part_1.shtml

Most of the time went into the event/callback system which is based on boost::function boost::bind and also makes use of boost preprocessor to generate the functor templates. Generally this was my first time seriously working with strings and especially templates so this was a good exercise. In the future I plan to overwork the eventsystem with a scripting language (propably LUA lua.org), since that seems to be a better solution.

Right now when using boost you can register any void function/memberfunction with up to 9 arguments. if you don't have boost you can still run the example with a simple callback system similar to the one that comes with OF (doesn't use poco though).

get it here:
code.google.com/p/mokacode/downloads/list

Credits

16 Likes

Tags

  • Theo Watson plus 4 months ago
    that is totally insane!
    (in a good way)
  •  
  • Simon Geilfus 4 months ago
    Yes!
    Looks great!
    Where is the download link? ;)
  • moka 4 months ago
    i think it's a vimeo bug that it doesw not show the title and text, here is the link:
    code.google.com/p/mokacode/downloads/list
  • Simon Geilfus 4 months ago
    Great! Now I see it! Thanks! :)
  •  
  • thesystemis plus 4 months ago
    Wow !! that's amazing...
  •  
  • roxlu 4 months ago
    Exactly what I was looking for!! very cool! (why did you use boost instead of poco events?)
  • moka 4 months ago
    I don't know, just wanted to check out boost. I am actually not sure if you could have done the same thing with poco.-
  •  
  • Friedrich Kirschner plus 4 months ago
    amazing! I like that it gives you feedback as to what you typed wrong. Really nice!
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

Photos

Statistics

  •  
    plays
    likes
    comments
  • Total
    plays 326
    likes 16
    comments 8
  • Dec 4th
    plays 1
    likes 0
    comments 0
  • Dec 3rd
    plays 2
    likes 0
    comments 0
  • Dec 2nd
    plays 2
    likes 0
    comments 0
  • Dec 1st
    plays 1
    likes 0
    comments 0
  • Nov 30th
    plays 3
    likes 0
    comments 0
  • Nov 29th
    plays 3
    likes 0
    comments 0
  • Nov 28th
    plays 0
    likes 0
    comments 0
  • Nov 27th
    plays 4
    likes 0
    comments 0
Previous Week

Downloads

Please join Vimeo or log in to download the original file. It only takes a few seconds.