summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/Tex/Sampler2D.h
AgeCommit message (Collapse)Author
2022-04-09LibGL: Add `border_color` to `Sampler2D`Jesse Buhagiar
We need this to plumb the per-sampler border color into the GPU's sampler border color
2021-12-24LibGL: Remove sampling code from Sampler2DStephan Unverwerth
Texture sampling now happens entirely in SoftGPU thus this class will now only be used to hold the sampler configuration.
2021-12-21LibGL: Make texture coordinates a `FloatVector4`Jelle Raaijmakers
In OpenGL, texture coordinates can have up to 4 values. This change will help with easy application of texture coordinate matrix transformations in the future. Additionally, correct the initial value for texture coordinates to `{ 0.f, 0.f, 0.f, 1.f}`.
2021-08-12LibGL: Turn Sampler2D into an actual classStephan Unverwerth
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.