Sunday, October 30, 2022
HomeGame DevelopmentCalling setScale() on sprite loses decision - C++

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


Hello, I’ve some photographs (helmets and different photographs) that I place in several areas, and I steadily have to scale them down. Nonetheless, after 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 very best strategy for making it smaller or is there one thing higher for retaining high quality?

thanks!


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

You may as well take a look at the settings of the AppDelegate.cpp
see if that kinds it out take a look at the stencil & multisamplesCount

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

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments