Horde3D http://www.horde3d.org/forums/ |
|
Pipeline config? http://www.horde3d.org/forums/viewtopic.php?f=2&t=654 |
Page 1 of 1 |
Author: | massikka [ 22.02.2009, 18:02 ] |
Post subject: | Pipeline config? |
Hello, Loading pipeline-config for Knight in OSX seems to fail- what might be the reason ? Loading other resources are working. |
Author: | Volker [ 22.02.2009, 21:34 ] |
Post subject: | Re: Pipeline config? |
Does the log file contain any errors? If yes, which one? |
Author: | massikka [ 23.02.2009, 08:04 ] |
Post subject: | Re: Pipeline config? |
The Log has no info whatsoever. bool Pipeline::loadConfig( const string &configData ) { // TODO: Load data from memory rather than file directly reset(); if( configData == "" ) return true; Modules::log().writeInfo( "Loading pipeline '" + configData + "'" ); // *** Load data *** ifstream inf( configData.c_str(), ios::binary ); The Upper Fails ...configdata seems to be right -BUT- is any conversion from obj-C string to C++ string needed? DEbugger shows that configData OK ? if( !inf ) { Modules::log().writeWarning( "Failed opening pipeline config file" ); return false; } |
Author: | massikka [ 23.02.2009, 08:11 ] |
Post subject: | Re: Pipeline config? |
To be more spesific I am caling Horde from obj-C class using objC++. The aim is to wrap entire(eventually) horde-interface inside obj-C classes. If I remember -swiftcoder has some cocoa bindings for OpenGL-interface ? |
Author: | swiftcoder [ 23.02.2009, 12:32 ] |
Post subject: | Re: Pipeline config? |
massikka wrote: If I remember -swiftcoder has some cocoa bindings for OpenGL-interface ? Not bindings per se - I merely used the existing Horde interface from inside Objective-C. Since Horde's interface is in C, you don't even need the Objective-C++ bridge.I can dig the project out and send it to you, if you want? |
Author: | massikka [ 23.02.2009, 16:09 ] |
Post subject: | Re: Pipeline config? |
I have also simple objc-class from where I call Horde ... I thought that namespace-directive is C++ and not in standard C ? Thus my class(controller) in *.mm . I would be pleased to get those sources- swiftcoder. |
Author: | swiftcoder [ 23.02.2009, 16:51 ] |
Post subject: | Re: Pipeline config? |
massikka wrote: I have also simple objc-class from where I call Horde ... I thought that namespace-directive is C++ and not in standard C ? Thus my class(controller) in *.mm . You need the C-only version of the header, I believe it is floating around somewhere from the linux experiments.Quote: I would be pleased to get those sources- swiftcoder. I can't find them on this machine, but I will check my backups this evening.
|
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |