Closed DarkSoulEater closed 10 months ago
We have constant methods (like getPixel) that may require internal conversion from texture to image, which is not a constant method. How do we solve this problem?
We can use const_cast<Canvas*>(this) or declare render texture field mutable
const_cast<Canvas*>(this)
mutable
We have constant methods (like getPixel) that may require internal conversion from texture to image, which is not a constant method. How do we solve this problem?