[SDL] Displaying data array
Ed Keith
e_d_k at yahoo.com
Sun Mar 23 05:23:31 PDT 2008
I'll try this.
Thanks,
-EdK
--- Brian <brian.ripoff at gmail.com> wrote:
> How about SDL_CreateRGBSurfaceFrom?
>
http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fCreateRGBSurfaceFrom
>
> On Fri, Mar 21, 2008 at 4:25 PM, Ed Keith
> <e_d_k at yahoo.com> wrote:
> > I have an array of data in memory that I want to
> > display as an image. I can think of two ways of
> doing
> > this, but do not like either one.
> >
> > I could write the array to the screen pixel by
> pixel.
> > I suspect this will be very slow.
> >
> > I could write the data to a bit map file and read
> the
> > file into the display. I do not like all this
> > unnecessary disk access.
> >
> > Can anyone suggest a better way?
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
Ed Keith
e_d_k at yahoo.com
Blog: edkeith.blogspot.com
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the SDL
mailing list