Skip to content

simulation-tree/texture-systems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Texture Systems

Implements the texture project.

Updating

For textures to be loaded from an address:

simulator.Add(new DataImportSystem(simulator, world));
simulator.Add(new TextureImportSystem(simulator, world));

//create the image and get it loaded
Texture texture = new(world, "C:/image.png");
simulator.Broadcast(new DataUpdate());

//do work with the loaded image
Assert.That(texture.IsLoaded, Is.True);
Assert.That(texture.Width, Is.GreaterThan(0));
Assert.That(texture.Height, Is.GreaterThan(0));
Span<Pixel> pixels = texture.Pixels;

simulator.Remove<TextureImportSystem>();
simulator.Remove<DataImportSystem>();

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages