Results 1 to 3 of 3

Thread: How to clearImage(TRANSPARENT) ?

                  
   
  1. #1

    Default How to clearImage(TRANSPARENT) ?

    Hi guys,

    how can i clear an Image with full transparency pixels?

    The function is:

    void clearImage(Color color, Image* image)
    {
    int i;
    int size = image->textureWidth * image->textureHeight;
    Color* data = image->data;
    for (i = 0; i < size; i++, data++) *data = color;

    }


    i also try to use this -> 0xff000000 as a 1st parameter (color). But no luck at all. Just a full black "layer".

    Any suggestion?

  2. #2
    DCEmu Regular Mr.Denny's Avatar
    Join Date
    Apr 2006
    Location
    Ireland
    Age
    39
    Posts
    410
    Rep Power
    71

    Default

    This shouldn`t be in the news forum im afraid.

    Try here.....

    http://www.dcemu.co.uk/vbulletin/forumdisplay.php?f=80


  3. #3
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    Are you rendering the models in the correct order? (Reverse painters algorithm). Are the blending modes on?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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
  •