C++ Allegro - Bitmap turns up black?
<p>Hey guys im making a c++ game and im trying to load a bitmap onto my game screen but when I do the image doesn't come up, only a black sqaure as showen below:</p>

<p><img src="http://i.stack.imgur.com/73fLO.png" alt="enter image description here"></p>

<p>Im am currently using the following code:</p>

<pre><code>BITMAP *buffer = create_bitmap( 640, 480 );

BITMAP *player = NULL;
player  = load_bitmap("player.bmp", NULL);
</code></pre>

<p>Then inside my game loop:</p>

<pre><code>    rectfill(buffer, 0, 0,
              640, 480,
                   makecol( 255, 0, 0 )
                    );

    masked_blit(player, buffer, 0, 0, 100, 100, 32, 32);
    blit(buffer, screen, 0, 0, 0, 0, 640, 480 );
    clear_bitmap( player );
    clear_bitmap( buffer );   
</code></pre>

<p>I thought I was doing everything right but maybe not.</p>

<p>Any help is appreciated. Also if you need any more info just ask.</p>
