[vox-tech] Success with fltk and SDL_image

Jan W vox-tech@lists.lugod.org
Tue, 11 May 2004 21:44:24 -0700 (PDT)


Thanks Mark and Bill:

For some reason, I thought I was at the end of my rope, and I thought I was
going to have to get out my linear algebra book (which might not be a bad
idea)...

I call those "Like, Duh!" moments.  I have this problem, and when the solution
presents itself, it's "like, DUH!"  They happen to me from time to time...

Thanks again for the good suggestions.  

--muchas gracias

jan

--- "Mark K. Kim" <lugod@cbreak.org> wrote:
> BTW, just found that SDL_gfx does what you need:
> 
>    http://www.libsdl.org/libraries.php?match_name=SDL_gfx
> 
> -Mark
> 
> 
> On Tue, 11 May 2004, Mark K. Kim wrote:
> 
> > Options:
> >
> >   1. Texture map the image onto a 3D surface parallel to the display, then
> >      tell the 3D graphics card to rotate and scale the surface!  =)
> >
> >   2. Get a library that does it for you from www.libsdl.org/libraries.php
> >
> >   3. Do it yourself.  There are lots of websites and books that talk about
> >      it.  You can probably figure it out yourself with some matrix
> >      operations, too.
> >
> > #2 is probably the most reasonable thing to do...
> >
> > -Mark
> >
> >
> > On Tue, 11 May 2004, Jan W wrote:
> >
> > > Hi all:
> > >
> > > Just a question:
> > >
> > > Has anyone used SDL_image to do scaling and rotation?  If so, is there
> anything
> > > that I could use to do basic image manipulations?  I am looking for code
> > > examples/basic theories so that I can start off down a (more or less)
> > > reasonable path...
> > >
> > > I had an application that used fltk_images and libtiff to open images. 
> It was
> > > large, unwieldy, and unfortunately, a bit slow.  SDL_image was a bit
> faster b/c
> > > (at least, this is what I _think_... I'm still such a noob) of the way
> that I
> > > allocated the buffer for the image:
> > > (img_w)*(img_h)*(sizeof(current_color_depth)).  So if you had a 24bit
> depth
> > > color display, and a B/W image, I allocate enough space for a 24bit
> color...
> > > not the right thing...  It would have been tough to recode (for some
> reason
> > > that I can't recall), so I decided to try something different...
> > >
> > > Now, SDL does the work for me, and just leaves me with a surface...
> awesome.
> > >
> > > So if anyone has any hints/tips/tricks/caveats on SDL surface
> manipulation, I
> > > would love any tidbits that might float my way...  and if anyone is
> interested
> > > in seeing my code (yea, I have the coding style of an 8 year old), just
> don't
> > > laugh when you do.... (write me off list and I'll send a copy)
> > >
> > > --thanks
> > >
> > > jan
> >
> > --
> > Mark K. Kim
> > AIM: markus kimius
> > Homepage: http://www.cbreak.org/
> > Xanga: http://www.xanga.com/vindaci
> > Friendster: http://www.friendster.com/user.jsp?id=13046
> > PGP key fingerprint: 7324 BACA 53AD E504 A76E  5167 6822 94F0 F298 5DCE
> > PGP key available on the homepage
> > _______________________________________________
> > vox-tech mailing list
> > vox-tech@lists.lugod.org
> > http://lists.lugod.org/mailman/listinfo/vox-tech
> >
> 
> -- 
> Mark K. Kim
> AIM: markus kimius
> Homepage: http://www.cbreak.org/
> Xanga: http://www.xanga.com/vindaci
> Friendster: http://www.friendster.com/user.jsp?id=13046
> PGP key fingerprint: 7324 BACA 53AD E504 A76E  5167 6822 94F0 F298 5DCE
> PGP key available on the homepage
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech


=====
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
EDUCATION, n. That which discloses to the wise and disguises from the
foolish their lack of understanding.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><


	
		
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861