lcjava / angel-engine

Automatically exported from code.google.com/p/angel-engine
0 stars 0 forks source link

It's ugly when texture is small and render in a large size. #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
My resources are very small, many of them are just 16x16 pixel.
I want to draw them about twice size, how can i do that?
Make images larger will work, but that waste too much.

Original issue reported on code.google.com by sinclo...@gmail.com on 20 Apr 2012 at 3:43

GoogleCodeExporter commented 8 years ago
If you want a larger drawn texture, there's really no way Angel can extrapolate 
those details to a higher resolution. 

If you want to retain the blocky look at larger sizes, you'll want to 
investigate the various parameters that you can pass to the texture loading 
functions. 

http://docs.angel2d.com/class_actor.html#a30cb54f99f4959b67ebb92ec67d66b92

My guess would be that you want to set your filterMode to GL_NEAREST, instead 
of GL_LINEAR, which is the default. 

Original comment by lieseg...@gmail.com on 20 Apr 2012 at 12:40