Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

texture.h File Reference

Texture properties. More...

#include <lescegra/sg/group.h>
#include <lescegra/util/image.h>

Include dependency graph for texture.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  LsgTexture
 Texture properties. More...


Defines

#define LSG_TEXTURE_H   1
#define LsgTexture_clean(self)   LsgGroup_clean(&(self)->super);
#define LsgTexture_update(self, now)   LsgGroup_update(&(self)->super, now);
#define LsgTexture_collide(self, v, n)   LsgGroup_collide(&(self)->super, v, n);

Functions

LsgTextureLsgTexture_create (LsgImage *data, int type, unsigned int mode, unsigned int unit)
void LsgTexture_init (LsgTexture *self, LsgImage *data, int type, unsigned int mode, unsigned int unit)
void LsgTexture_display (LsgTexture *self, LsgFrustum *frustum)
void LsgTexture_destroy (LsgTexture *self)


Detailed Description

Texture properties.


Define Documentation

#define LsgTexture_clean self   )     LsgGroup_clean(&(self)->super);
 

Clean all children. Reuse parent implementation.

#define LsgTexture_update self,
now   )     LsgGroup_update(&(self)->super, now);
 

Update all children. Reuse parent implementation.

#define LsgTexture_collide self,
v,
 )     LsgGroup_collide(&(self)->super, v, n);
 

Check collision with all children. Reuse parent implementation.


Function Documentation

LsgTexture* LsgTexture_create LsgImage data,
int  type,
unsigned int  mode,
unsigned int  unit
 

Allocate and initialize a texture node.

Parameters:
data The texture color data
type The texture type
mode The texture environment mode
unit The texture unit (0 for no multitexturing)
Returns:
A new texture node

void LsgTexture_init LsgTexture self,
LsgImage data,
int  type,
unsigned int  mode,
unsigned int  unit
 

Constructor method for LsgTexture. Create a new texture object of a given type with the provided pixel data.

Parameters:
self The instance variable
data The texture color data
type The texture type
mode The texture environment mode
unit The texture unit (0 for no multitexturing)

void LsgTexture_display LsgTexture self,
LsgFrustum frustum
 

Bind the texture object to the current texture engine and display all children.

Parameters:
self The instance variable
frustum The view frustum

void LsgTexture_destroy LsgTexture self  ) 
 

Destructor method for LsgTexture. Delete the texture object and the list of child nodes.

Parameters:
self The instance variable


(c) 2003, by Enno Cramer
generated on 9 Jul 2003
lescegra - doxygen