Catlike Coding
Unity Code Documentation
Public Member Functions | Public Attributes | Properties | List of all members
CatlikeCoding.NumberFlow.DiagramMaterialLink Class Reference

Link between a NumberFlow diagram and materials. More...

Public Member Functions

void AllocateTextures ()
 Create the texture objects but do not fill them yet. More...
 
void ApplyTextures (Color[][] buffers)
 Apply the pixel buffers to all textures. More...
 
void AssignCubemapFaces (Color[][] buffers)
 Assigns color buffer data to cubemap faces. More...
 
void AssignTexturesToMaterials ()
 Assign all textures to all materials. More...
 
bool FillRows (Color[][] buffers, ref int rowIndex, int rowCount)
 Fill the specified rows of all textures. Return whether the last row was filled. More...
 
void InitBuffers (ref Color[][] buffers)
 Initialize the buffers. More...
 
void OnDestroy ()
 Clean up textures. More...
 
void PostProcess (Color[][] buffers)
 Post process the buffers for all textures. More...
 
void Process (ref Color[][] buffers)
 Initialize the buffers, fill and postprocess the textures. More...
 

Public Attributes

CubemapFace currentDirection
 Current cubemap direction. More...
 
Diagram diagram
 NumberFlow diagram. More...
 
Material[] materials
 Materials whose textures should be generated by the diagram. More...
 
Texture[] textures
 Generated textures. More...
 
DiagramTextureSettings textureSettings
 Settings for the generated textures. More...
 

Properties

bool HasAssignedTextures [get]
 Get whether the link currently has generated textures assigned to its materials. More...
 

Detailed Description

Link between a NumberFlow diagram and materials.

Member Function Documentation

void CatlikeCoding.NumberFlow.DiagramMaterialLink.AllocateTextures ( )

Create the texture objects but do not fill them yet.

void CatlikeCoding.NumberFlow.DiagramMaterialLink.ApplyTextures ( Color  buffers[][])

Apply the pixel buffers to all textures.

Parameters
buffersPixel buffers.
void CatlikeCoding.NumberFlow.DiagramMaterialLink.AssignCubemapFaces ( Color  buffers[][])

Assigns color buffer data to cubemap faces.

Parameters
buffersPixel buffers.
void CatlikeCoding.NumberFlow.DiagramMaterialLink.AssignTexturesToMaterials ( )

Assign all textures to all materials.

bool CatlikeCoding.NumberFlow.DiagramMaterialLink.FillRows ( Color  buffers[][],
ref int  rowIndex,
int  rowCount 
)

Fill the specified rows of all textures. Return whether the last row was filled.

Returns
Whether filling is done.
Parameters
buffersPixel buffers.
rowIndexRow index to start from.
rowCountHow many rows to fill.
void CatlikeCoding.NumberFlow.DiagramMaterialLink.InitBuffers ( ref Color  buffers[][])

Initialize the buffers.

Parameters
buffersPixel buffers.
void CatlikeCoding.NumberFlow.DiagramMaterialLink.OnDestroy ( )

Clean up textures.

void CatlikeCoding.NumberFlow.DiagramMaterialLink.PostProcess ( Color  buffers[][])

Post process the buffers for all textures.

Parameters
buffersPixel buffers.
void CatlikeCoding.NumberFlow.DiagramMaterialLink.Process ( ref Color  buffers[][])

Initialize the buffers, fill and postprocess the textures.

Parameters
buffersPixel buffers.

Member Data Documentation

CubemapFace CatlikeCoding.NumberFlow.DiagramMaterialLink.currentDirection

Current cubemap direction.

Diagram CatlikeCoding.NumberFlow.DiagramMaterialLink.diagram

NumberFlow diagram.

Material [] CatlikeCoding.NumberFlow.DiagramMaterialLink.materials

Materials whose textures should be generated by the diagram.

Texture [] CatlikeCoding.NumberFlow.DiagramMaterialLink.textures

Generated textures.

DiagramTextureSettings CatlikeCoding.NumberFlow.DiagramMaterialLink.textureSettings

Settings for the generated textures.

Property Documentation

bool CatlikeCoding.NumberFlow.DiagramMaterialLink.HasAssignedTextures
get

Get whether the link currently has generated textures assigned to its materials.