glvtable.c File Reference

Allegro->OpenGL conversion vtable. More...

#include <string.h>
#include <allegro.h>
#include "alleggl.h"
#include "allglint.h"
#include "glvtable.h"
#include <allegro/internal/aintern.h>
#include <GL/glu.h>

Go to the source code of this file.

Defines

Functions

Variables


Detailed Description

Allegro->OpenGL conversion vtable.

Definition in file glvtable.c.


Define Documentation

#define DRAW_RLE_8888 ( bits   ) 

Value:

{                               \
        for (y = 0; y < sprite->h; y++) {           \
            signed long c = *s++;               \
            for (x = 0; x < sprite->w;) {           \
                if (c == src_mask)          \
                    break;              \
                if (c > 0) {                \
                    /* Run of solid pixels */   \
                    for (c--; c>=0; c--) {      \
                        unsigned long col = *s++;       \
                        if (bits == 32 && trans)        \
                            _putpixel32(temp, x++, y, makeacol32(getr32(col), getg32(col), getb32(col), geta32(col))); \
                        else            \
                            _putpixel32(temp, x++, y, makeacol32(getr##bits(col), getg##bits(col), getb##bits(col), 255)); \
                    }               \
                }                   \
                else {                  \
                    /* Run of transparent pixels */ \
                    hline(temp, x, y, x-c+1, 0);    \
                    x -= c;             \
                }                   \
                c = *s++;               \
            }                       \
        }                           \
    }


Generated on Sun Nov 11 15:52:55 2007 for AllegroGL by  doxygen 1.5.2