CesiumGS / cesium-native

Apache License 2.0
391 stars 200 forks source link

Move stb resize function to `Cesium` namespace #871

Closed csciguy8 closed 2 months ago

csciguy8 commented 2 months ago

Certain STB functions (image processing) are implemented in cesium-native libs, but can also conflict with STB implementations in the native client.

This recently happened with cesium-unreal and Unreal Engine 5.4, but can happen with others as well.

One solution to this problem is to move any related functions into an isolated namespace. This is what I've done in this PR. Should have no effect on the functionality of cesium-native, just how it links with other libraries.