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
- Host: GitHub
- URL: https://github.com/simulation-tree/texture-systems
- Owner: simulation-tree
- Created: 2024-07-05T01:45:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-22T03:07:57.000Z (9 months ago)
- Last Synced: 2025-09-22T05:28:41.575Z (9 months ago)
- Topics: csharp, dotnet, images, textures
- Language: C#
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
```