norman784 / gaiku

3d agnostic framework (game engine) terrain engine
40 stars 1 forks source link

Make atlas index always map to tile index #26

Closed QuantumEntangledAndy closed 3 years ago

QuantumEntangledAndy commented 3 years ago

This is the atlas changes mentioned in #21. It makes the index in the atlas always mean the tile index and not the index into the bytes of the texture. This should make it easy to blit a set of pixels to a specific tile without having to worry about where it is on the texture.

It also adds a 2 more tests 1. involving the size of the texture created by the atlas and 2. testing the set pixels by tile index method

norman784 commented 3 years ago

Cool, thanks!