Return to previous page | Return to menu | Go to next page


Macro

TEXDEF

Texture registration table

Structure

#define   TEXDEF(h , v , presize)   
                (h, v, (((cgaddress + (presize)) * 4) >> pal) / 8,
                                (((h) & 0x1f8) << 5 | (v))}
          Uint16 h ;
          Uint16 v ;
          Uint32 presize ;

Member

h Vertical size of the texture
v Horizontal size of texture
presize Size of previously registered texture (vertical x horizontal)

Description

Create a table to extract texture information.

Remarks

Reference macro:
#define   cgaddress   0x10000
#define   pal   COL_32K

Reference: Chapter 7 Polygon surface attributes

TEXDEF


Return to previous page | Return to menu | Go to next page