Monday, October 31, 2022
HomeGame DevelopmentCalling setScale() on sprite loses decision - C++

Calling setScale() on sprite loses decision – C++


Hello, I’ve some pictures (helmets and different pictures) that I place in numerous areas, and I steadily have to scale them down. Nevertheless, once I accomplish that, they don’t look practically as good. I don’t know if it’s antialiasing or one thing else.

Is setScale(x) (the place x < 1) the perfect strategy for making it smaller or is there one thing higher for retaining high quality?

thanks!


What occur when you simply scale it in Paint Program. then use it with out scaling.

You may also have a look at the settings of the AppDelegate.cpp
see if that types it out have a look at the stencil & multisamplesCount

// set OpenGL context attributes: purple,inexperienced,blue,alpha,depth,stencil,multisamplesCount
GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8, 0};

Thanks, I’ll look into that. Thanks very a lot!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments