Revision e172985c
Added by Leszek Koltunski over 5 years ago
| src/main/java/org/distorted/library/mesh/MeshBase.java | ||
|---|---|---|
| 401 | 401 |
* Please note that calling this once with the complete list of Effects will be much faster than |
| 402 | 402 |
* calling it repeatedly with one Effect at a time, as we have to reallocate the array of vertices |
| 403 | 403 |
* each time. |
| 404 |
* |
|
| 405 |
* @param effects List of Matrix Effects to apply to the Mesh. |
|
| 404 | 406 |
*/ |
| 405 | 407 |
public void apply(MatrixEffect[] effects) |
| 406 | 408 |
{
|
| ... | ... | |
| 475 | 477 |
* maps[3] = the map for the 4th component |
| 476 | 478 |
* |
| 477 | 479 |
* A map's width and height have to be non-zero (but can be negative!) |
| 480 |
* |
|
| 481 |
* @param maps List of texture maps to apply to the texture's components. |
|
| 478 | 482 |
*/ |
| 479 | 483 |
public void setTextureMap(Static4D[] maps) |
| 480 | 484 |
{
|
| ... | ... | |
| 519 | 523 |
mVBO.invalidate(); |
| 520 | 524 |
} |
| 521 | 525 |
|
| 526 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
| 527 |
/** |
|
| 528 |
* Return the texture map of one of the components. |
|
| 529 |
* |
|
| 530 |
* @param component The component number whose texture map we want to retrieve. |
|
| 531 |
*/ |
|
| 532 |
public Static4D getTextureMap(int component) |
|
| 533 |
{
|
|
| 534 |
return (component>=0 && component<mComponent.size()) ? mComponent.get(component).mTextureMap : null; |
|
| 535 |
} |
|
| 536 |
|
|
| 522 | 537 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 523 | 538 |
/** |
| 524 | 539 |
* Each mesh has its 'bounding box' - return half of its X-length. |
Also available in: Unified diff
Progress implementing RubikCube.retObjectString()