internal void LoadTextureToAtlas( TextureAtlas atlas ) { if( MainTexture != null && !loaded_texture ) { atlas.AddTexture( MainTexture, out TextureCoords, out TextureUVs ); loaded_texture = true; } }