Crystal Space
Welcome, Guest. Please login or register.
September 23, 2017, 06:33:13 am

Login with username, password and session length
Search:     Advanced search
9054 Posts in 2047 Topics by 74220 Members
Latest Member: Igboisaac278
* Home Help Search Login Register
  Show Posts
Pages: [1]
1  Crystal Space Development / Support / Re: vfs question on: August 27, 2006, 01:14:44 am
Yup, that's a bug. Thanks for pointing it out.

I solved the original problem. I needed to end both the vfs path and the real path
with a file path separator, and the directory that wxFileDialog returns does not end with
a file path separator.
2  Crystal Space Development / Support / vfs question on: August 26, 2006, 07:00:56 pm
I'm trying to load an image using the real path and filename of the file.
I'm using wxFileDialog to get the filename and path, I'm using
iLoader::LoadImage to load the image. The error I'm getting is
the file does not exist on VFS. I looked at viewmesh's source code
to get the basic outline of code.

Here's is the code I'm using:

wxFileDialog dialog(this, caption, default_dir, default_filename, wildcard, wxOPEN | wxFILE_MUST_EXIST);
if(dialog.ShowModal() == wxID_OK)
vfs->Mount("/tmp/avocado", dialog.GetDirectory().c_str());

csRef<iImage> hm_img = loader->LoadImage(dialog.GetFilename().c_str(), CS_IMGFMT_TRUECOLOR);
if(hm_img == 0)
// error handling

// do stuff with image

hm_img = 0;


CS version: svn as of aug 25, 2006
OS: linux

Thanks for any help,
3  Crystal Space Project Development / Development Discussion / swig files location on: January 03, 2006, 10:42:59 pm
Where are the swig interface files for the cspace module? I haven't been able to find any in the current cvs version. I'd like to try to correct the swig interface files regarding the event system so that cspace will run correctly.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 3.291 seconds with 17 queries.