diobat / FluxLumina

FluxLumina is an openGL based rendering engine
MIT License
9 stars 0 forks source link

Improve texture imports #1

Open diobat opened 1 year ago

diobat commented 1 year ago

During texture import data is moved around too much. ideally the stbi_load() function called in SceneObjectFactory should already place the data on its intended final destination.

diobat commented 1 year ago

This is potentially useful https://learnopengl.com/Advanced-OpenGL/Advanced-Data

diobat commented 11 months ago

Aditionally, stbi_image_free(data) should be called after generating the texture on openGL but that is not being done