Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# material.c File Reference

`#include <lib3ds/material.h>`
`#include <lib3ds/chunk.h>`
`#include <lib3ds/io.h>`
`#include <stdlib.h>`
`#include <math.h>`
`#include <string.h>`

Include dependency graph for material.c:

## Defines
#define | LIB3DS_EXPORT
## Functions
void | initialize_texture_map (Lib3dsTextureMap *map)
Lib3dsMaterial * | lib3ds_material_new ()
void | lib3ds_material_free (Lib3dsMaterial *material)
Lib3dsBool | color_read (Lib3dsRgba rgb, Lib3dsIo *io)
Lib3dsBool | int_percentage_read (Lib3dsFloat *p, Lib3dsIo *io)
Lib3dsBool | texture_map_read (Lib3dsTextureMap *map, Lib3dsIo *io)
void | texture_dump (const char *maptype, Lib3dsTextureMap *texture)
void | lib3ds_material_dump (Lib3dsMaterial *material)
Lib3dsBool | lib3ds_material_read (Lib3dsMaterial *material, Lib3dsIo *io)
Lib3dsBool | color_write (Lib3dsRgba rgb, Lib3dsIo *io)
Lib3dsBool | int_percentage_write (Lib3dsFloat p, Lib3dsIo *io)
Lib3dsBool | texture_map_write (Lib3dsWord chunk, Lib3dsTextureMap *map, Lib3dsIo *io)
Lib3dsBool | lib3ds_material_write (Lib3dsMaterial *material, Lib3dsIo *io)

## Define Documentation

#define LIB3DS_EXPORT

## Function Documentation

Lib3dsBool color_read | ( | Lib3dsRgba | rgb,
|  | Lib3dsIo * | io
| ) | `[static]`

Lib3dsBool color_write | ( | Lib3dsRgba | rgb,
|  | Lib3dsIo * | io
| ) | `[static]`

void initialize_texture_map | ( | Lib3dsTextureMap * | map | ) | `[static]`

Lib3dsBool int_percentage_read | ( | Lib3dsFloat * | p,
|  | Lib3dsIo * | io
| ) | `[static]`

Lib3dsBool int_percentage_write | ( | Lib3dsFloat | p,
|  | Lib3dsIo * | io
| ) | `[static]`

Lib3dsBool texture_map_read | ( | Lib3dsTextureMap * | map,
|  | Lib3dsIo * | io
| ) | `[static]`

Lib3dsBool texture_map_write | ( | Lib3dsWord | chunk,
|  | Lib3dsTextureMap * | map,
|  | Lib3dsIo * | io
| ) | `[static]`