Index: [thread] [date] [subject] [author]
  From: mongoose@ms241739.users.mindspring.com
  To  : ggi-develop@eskimo.com
  Date: Sat, 24 Jul 1999 23:36:18 -0400 (EDT)

translucent drawing

Hey it's the other Mongoose agian.  =)

I've tried the code ( Andrew | Andy? ) gave me for alpha blitting, but I'm
still staring at the (german?) comments.  ( BTW, the compiler barfed on
those unicode source files, lol. ) 

I'm currently wrapping ggi in an object that supplies drawing, copying,
and pasting from/to the visual.  I want to be able to get down to the
ggi_pixels and change/shift the rbg values to speed up my translucent pen.

I'm currently taking a pixel's rbg and adding the pen's rbg then shifting
the sum to get 1/2, 1/4, or 1/8 the color.  ( I guess this is how you're
supposed to do it. )  It works great, as all my Wrapper->BoxDraw() and
Image->draw() methods have the correct colors no matter how many layers of
polygons.  I like to mix boxes to see green and red make orange.  =)

Is there a way to just get the pixel's out of the visual?I've been told that 
bpp < 32 are packed, and no I can't get the buffer to move the correct
byte value when the depth changes.  Is it not a uint32 that has mapped
bits?  Like => [rrrr][bbbb][gggg]?

I guess I want to know how the buffers are stored, and I've not been doing
gfx/gfx memory management code enough to figure it out the standards and
terms.  Now I'm working on the 3d engine part with I'll have to figure out
how to get more speed, so you can see through a ghost made of translucent
polygons.  So much to learn to draw a simple 3d model.  =/


Well night all.


cheers,
Terry


 ---------------------------------------------------
| BotShop     http://www.planetquake.com/botshop    |
| Personal    http://www.westga.edu.com/~stu7440    |
|                                                   |
|         Alita is running linux 2.2.10             |

Index: [thread] [date] [subject] [author]