SG_Texture * SG_TextureNew (SG_Node *parent, const char *name)
SG_TextureSurface * SG_TextureAddSurface (SG_Texture *tex, const AG_Surface *s)
SG_TextureSurface * SG_TextureAddSurfaceNODUP (SG_Texture *tex, AG_Surface *s)
void SG_TextureDelSurface (SG_Texture *tex, SG_TextureSurface *ts)
SG_TextureProgram * SG_TextureAddProgram (SG_Texture *tex, SG_Program *prog)
void SG_TextureDelProgram (SG_Texture *tex, SG_TextureProgram *tp)
int SG_TextureCompile (SG_Texture *tex)
|
The
SG_TextureNew() function allocates, initializes, and attaches a
SG_Texture object.
The
SG_TextureAddSurface() function inserts a copy of the given
AG_Surface(3). The
SG_TextureAddSurfaceNODUP() variant inserts a pointer to a surface which must remain valid as long as the
SG_Texture exists.
SG_TextureDelSurface() deletes the specified surface.
SG_TextureAddProgram() inserts the specified fragment program (see
SG_Program(3)), which will be used when rendering the texture.
SG_TextureDelProgram() removes the specified fragment program.
The
SG_TextureCompile() function blends the input surfaces and generates the
final texture surface.
|