Textures were suprisingly trivial with the plane intersection code hashed out

This commit is contained in:
MitchellHansen
2017-01-21 00:12:19 -08:00
parent ccdcb382fd
commit 1627fe4572
8 changed files with 84 additions and 32 deletions

View File

@@ -124,11 +124,18 @@ int main() {
// *links* the lights to the GPU
raycaster->assign_lights(&light_vec);
// Load in the spritesheet texture
sf::Texture spritesheet;
spritesheet.loadFromFile("../assets/textures/minecraft_tiles.png");
spritesheet.getNativeHandle();
raycaster->create_texture_atlas(&spritesheet, sf::Vector2i(16, 16));
// Checks to see if proper data was uploaded, then sets the kernel args
// ALL DATA LOADING MUST BE FINISHED
raycaster->validate();
// ========== DEBUG ==========
fps_counter fps;