An open API service indexing awesome lists of open source software.

https://github.com/simulation-tree/texture-systems


https://github.com/simulation-tree/texture-systems

csharp dotnet images textures

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# Texture Systems

Implements the `texture` project.

### Updating

For textures to be loaded from an address:
```cs
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 pixels = texture.Pixels;

simulator.Remove();
simulator.Remove();
```