quyse / inanity

Cross-platform C++ game engine.
MIT License
30 stars 5 forks source link

Default sampler states for textures #18

Closed quyse closed 10 years ago

quyse commented 10 years ago

Add possibility of setting default sampler state to texture. This feature could be easy emulated on DX11, and is natively supported on OpenGL. Moreover, this allows to set correct sampling for textures even when OpenGL doesn't have ARB_sampler_objects extension (< 3.3), for example, in WebGL.

quyse commented 10 years ago

Done in 4deb7e4124ef25e5cc9eea53abe75319da4e84d7.