PrimaryFeather / Sparrow-Framework

The Open Source Game Engine for iOS
http://www.sparrow-framework.org
Other
538 stars 173 forks source link

Offer a way to choose GL_LINEAR vs. GL_NEAREST #1020

Closed PrimaryFeather closed 13 years ago

PrimaryFeather commented 13 years ago

It would be great if one could decide if a texture should be filtered or not.

PrimaryFeather commented 13 years ago

You can choose between 3 filter modes:

texture.filter = SPTextureFilterNearestNeighbor;
texture.filter = SPTextureFilterBilinear;
texture.filter = SPTextureFilterTrilinear;

Bilinear mode is the default, and it's the same mode that is used presently. Trilinear filtering looks even better - especially when animating the size of an object - but is noticeably slower.