jameskilton / ogrerb

Ruby wrapper for the Ogre rendering engine and more using rb++

This URL has Read+Write access

ogrerb / wrappers / noise / code / custom_to_from_ruby.hpp
08fea46c » jameskilton 2008-07-06 Some good work on libnoise ... 1 #ifndef __CUSTOM_TO_RUBY_H__
2 #define __CUSTOM_TO_RUBY_H__
3
4 #include <rice/Object.hpp>
5 #include <rice/String.hpp>
6 #include <rice/to_from_ruby.hpp>
7 #include <string>
8
9 template<>
10 std::string* from_ruby<std::string*>(Rice::Object x);
11
1520958a » jameskilton 2008-07-07 sample 2 works, awesome 12 template<>
13 const std::string* from_ruby<const std::string*>(Rice::Object x);
14
08fea46c » jameskilton 2008-07-06 Some good work on libnoise ... 15 #endif