示例#1
0
bool loadMedia()
{
	//Load texture
	if( !gOpenGLTexture.loadTextureFromFile32( "img/grass.png" ) )
	{
	    printf( "Unable to load texture!\n" );
		return false;
	}

    return true;
}
bool loadMedia()
{
    //Load texture
	if( !gTexture.loadTextureFromFile32( "26_the_stencil_buffer/opengl.png" ) )
	{
	    printf( "Unable to load texture!\n" );
		return false;
	}

    return true;
}