gecko0307 / dagon

3D game engine for D
https://gecko0307.github.io/dagon
Other
332 stars 30 forks source link

Loading texture images from embedded sources such as base64 string or/and raw data pointer with dimensions #48

Closed aferust closed 5 years ago

aferust commented 5 years ago

Benefits: -This would allow developer to manipulate textures dynamically using image processing libraries such as opencv, dcv.

This can be done with some function like addTextureAssetFromBase64.

aferust commented 5 years ago

I have realized that dlib has an image module already. So, it must be easy to implement.

Timu5 commented 5 years ago

You can already construct a texture from dlib Image, so just construct one, fill pixels with setPixel and pass Image object to texture constructor.