Tanoda
Leap.Unity.GraphicalRenderer.AtlasBuilder Class Reference

Classes

class  TextureReference
 

Public Member Functions

void UpdateTextureList (List< LeapTextureFeature > textureFeatures)
 Updates the internal list of textures given some texture features to build an atlas for. This method does not do any atlas work, but must be called before RebuildAtlas is called. Once this method is called, you can check the isDirty flag to see if a rebuild is needed. More...
 
void RebuildAtlas (ProgressBar progress, out Texture2D[] packedTextures, out AtlasUvs channelMapping)
 Actually perform the build for the atlas. This method outputs the atlas textures, and the atlas uvs that map textures into the atlas. This method takes in a progress bar so that the atlas process can be tracked visually, since it can take quite a bit of time when there are a lot of textures to pack. More...
 

Properties

bool isDirty [get]
 Returns whether or not the results built by this atlas have become invalid. More...
 

Detailed Description

Definition at line 87 of file AtlasBuilder.cs.

Member Function Documentation

◆ RebuildAtlas()

void Leap.Unity.GraphicalRenderer.AtlasBuilder.RebuildAtlas ( ProgressBar  progress,
out Texture2D[]  packedTextures,
out AtlasUvs  channelMapping 
)

Actually perform the build for the atlas. This method outputs the atlas textures, and the atlas uvs that map textures into the atlas. This method takes in a progress bar so that the atlas process can be tracked visually, since it can take quite a bit of time when there are a lot of textures to pack.

Definition at line 198 of file AtlasBuilder.cs.

◆ UpdateTextureList()

void Leap.Unity.GraphicalRenderer.AtlasBuilder.UpdateTextureList ( List< LeapTextureFeature textureFeatures)

Updates the internal list of textures given some texture features to build an atlas for. This method does not do any atlas work, but must be called before RebuildAtlas is called. Once this method is called, you can check the isDirty flag to see if a rebuild is needed.

Definition at line 149 of file AtlasBuilder.cs.

Property Documentation

◆ isDirty

bool Leap.Unity.GraphicalRenderer.AtlasBuilder.isDirty
get

Returns whether or not the results built by this atlas have become invalid.

Definition at line 124 of file AtlasBuilder.cs.


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