Boost logo

Boost Users :

Subject: Re: [Boost-users] gil and OpenGL
From: Christian Henning (chhenning_at_[hidden])
Date: 2010-01-10 13:36:04


Hi there, depending on the memory layout of you could just cast the
first channel of your first pixel into a byte pointer. BTW, what do
you mean by color information?

Regards,
Christian

On Sat, Jan 9, 2010 at 9:15 PM, <mailinglist_at_[hidden]> wrote:
> This is my first post in any mailinglist ever so i hope i am doing this
> right.
>
>
>
> I successfully integrated the boost::gil module into my code to load some
> images and process their content so that I can display it as a texture in
> OpenGL.
>
>
>
> My problem right now is the massive performance issue in retrieving the
> color information from the loaded image.
>
> I am looping through every row and column and retrieve the red, green, blue
> and alpha color with the get_color method and push those values to a char
> array.
>
>
>
> So I was wondering what the best approach would be to get the color
> information from the gil image into OpenGL or at least a char array.
>
>
>
> Thanks in advance.
>
> _______________________________________________
> 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