csLockedMaterialMap Struct Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Attributes
csLockedMaterialMap Struct Reference

Locked material data. More...

`#include <imesh/terrain2.h>`

List of all members.

## Public Attributes
unsigned char * | data
| material index data array
size_t | pitch
| array pitch

## Detailed Description

Locked material data.

This class holds an information needed to fill/interpret material map data. The elements are indices of materials in material palette.

Two-dimensional material index array is linearized, so additional math is needed to get access to desired values: Instead of data[y][x], use data[y * pitch + x]

Definition at line 67 of file terrain2.h.

## Member Data Documentation

unsigned char* csLockedMaterialMap::data

material index data array

Definition at line 70 of file terrain2.h.

size_t csLockedMaterialMap::pitch

array pitch

Definition at line 73 of file terrain2.h.

The documentation for this struct was generated from the following file:

- imesh/terrain2.h