Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-users][GIL] Colors broken after moving to New IO
From: Christian Henning (chhenning_at_[hidden])
Date: 2011-03-07 10:38:47


Hi,

>
> this is a snippet from implementation of 2D OpenGL texture. setData()
> is overloaded for various image formats so that valid constant is
> passed to GL Api (rgb8_image_t image overload passes GL_RGB8 etc). I
> didn't do anything but changing png_read_image() to read_image() and
> after running app all images on screen were broken - most of images is
> white.

could you try to load images without using any_image<...>. Also can
you try to load one of the png files from the test_images folder?

What system to you work on? What's the compiler?

>
> On a side note: maybe new io could use boost::exception? Would be
> great if read_image() used boost::errinfo_file_name() when file cannot
> be opened as now it is not better than just returning error code.

It's a good idea. I'll put it on my todo list. For backward
compatibility I might have a compiler symbol though the user can still
have std::ios_base::failure.

> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net