Andreas Kling
6ad427993a
Everywhere: Behaviour => Behavior
2021-09-07 13:53:14 +02:00
Stephan Unverwerth
39ff1459f8
LibGL: Improve texture sampling performance
...
GL_NEAREST: Remove unnecessary modulo. UV is always in range due to
wrapping.
GL_LINEAR: Rewrite filter equation to save a few math operations.
2021-08-18 20:30:58 +02:00
Stephan Unverwerth
59998ff0b2
LibGL: Return white texel when sampling uninitialized texture
2021-08-18 20:30:58 +02:00
Stephan Unverwerth
00d527bc25
LibGL: Implement GL_LINEAR texture filter
2021-08-12 20:57:19 +02:00
Stephan Unverwerth
e0fef60241
LibGL: Implement "mirrored repeat" wrap mode
2021-08-12 18:58:41 +02:00
Stephan Unverwerth
8902efa52d
LibGL: Implement "clamp" wrap mode
2021-08-12 18:58:41 +02:00
Stephan Unverwerth
12785849aa
LibGL: Turn Sampler2D into an actual class
...
This extracts the sampler functionality into its own class.
Beginning with OpenGL 3 samplers are actual objects, separate
from textures. It makes sense to do this already as it also
cleans up code organization quite a bit.
2021-08-12 18:58:41 +02:00