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

LsgTexture Struct Reference
[Scene Representation]

Texture properties. More...

#include <texture.h>

Collaboration diagram for LsgTexture:

Collaboration graph
[legend]

Data Fields

LsgGroup super
unsigned int id
unsigned int mode
unsigned int unit

Related Functions

(Note that these are not member 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.

Apply a texture properties to all children.


Friends And Related Function Documentation

LsgTexture * LsgTexture_create LsgImage data,
int  type,
unsigned int  mode,
unsigned int  unit
[related]
 

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
[related]
 

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
[related]
 

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  )  [related]
 

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

Parameters:
self The instance variable


The documentation for this struct was generated from the following file:
(c) 2003, by Enno Cramer
generated on 13 Jul 2003
lescegra - doxygen