It very much depends on how you view
Renderer
. Is it a property of this object? Since you don't pass it in as a method parameter I would assume it is, in which case you do change the state of this object, meaning the function should not be const IMHO. However,t hat
IMHO part is a problem. It's an opinion-based question. That's reason to close this question. It is better to put this on a different Stack Exchange site like
Code Review or
Software Engineering —
Homer512 6 secs ago