Example #1
0
int                /* O - Exit status */
main(int  argc,    /* I - Number of command-line arguments */
     char *argv[]) /* I - Command-line arguments */
    {
    int i;         /* Looping var */

    glutInit(&argc, argv);
    glutInitDisplayMode(GLUT_RGB);
    glutInitWindowSize(792, 573);
    glutCreateWindow("Galaxy");
    glutReshapeFunc(Resize);
    glutDisplayFunc(Redraw);

    for (i = 0; i < NUM_FILES; i ++)
        BitmapBits[i] = LoadRGBA(Filenames[i], &(BitmapInfo[i]));

    glutMainLoop();
    return (0);
    }
Example #2
0
void DIBitmap::loadBitmapA(const char *fileName)
{
	if(_bitmap) free(_bitmap);
	if(_bitMapInfo) free(_bitMapInfo);
	_bitmap = LoadRGBA(fileName,&_bitMapInfo);
}