Results 1 to 6 of 6

Thread: drawStretchAlpha?

  1. #1

    drawStretchAlpha?

    HI Andreaz,

    I've been checking out your library and I must say I like it a lot! I've been using my own opengl codebase for a while now, but its not near a complete as Phoenix is.

    I was wondering, I've been trying to get a stretched but faded image on to the screen. I noticed there is a stretchDraw function as well as a drawAlpha, but nothing that combines both functions. That is unless I'm missing something.

    Am I? And if not, would it be possible to add it for a next release? It's not a really big deal, but might be useful to others as well.

    Cheers, and :thumbup: again for a great lib!

  2. #2

    Re: drawStretchAlpha?

    Quote Originally Posted by Traveler
    HI Andreaz,

    I've been checking out your library and I must say I like it a lot! I've been using my own opengl codebase for a while now, but its not near a complete as Phoenix is.

    I was wondering, I've been trying to get a stretched but faded image on to the screen. I noticed there is a stretchDraw function as well as a drawAlpha, but nothing that combines both functions. That is unless I'm missing something.

    Am I? And if not, would it be possible to add it for a next release? It's not a really big deal, but might be useful to others as well.

    Cheers, and :thumbup: again for a great lib!
    You could always do like this (this is exactly what the drawAlpha is doing.

    Code:
      glColor4f(1,1,1, Alpha);
      Images[5].StreachDraw(...)
    The alpha blending is enabled by default so its just a matter of defining the color
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  3. #3

    drawStretchAlpha?

    Ahh sweet, thanks for the quick reply!

  4. #4

    drawStretchAlpha?

    No problems, have you crawled out of the wow swamp yet ?
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  5. #5

    drawStretchAlpha?

    Hehe, I'm currently stuck up to my waist.

    There's hope though. Up to a couple weeks ago, it was far worse than that

    Not sure if I'll ever get completely out though...

  6. #6

    drawStretchAlpha?

    Hehe, know the feeling I've managed to get myself more or less unstuck, good for the coding part
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •