Sam Atkins
c0ca6e470f
AK+Userland: Rename Array::front/back to first/last
...
This is the name that is used for every other collection type so let's
be consistent.
2022-04-06 14:31:52 +02:00
Jelle Raaijmakers
5d21d1d105
LibGL: Remove duplicate public:
from Texture2D.h
2022-03-08 15:32:35 +01:00
Jelle Raaijmakers
3832656464
LibGL: East-const two methods in Texture2D
...
No functional changes.
2022-02-22 23:48:59 +00:00
Jelle Raaijmakers
7833f25f8f
LibGL: Remove stubbed border from glTexImage2D
...
Providing anything else than `border == 0` is deprecated and should
result in an invalid value error.
2021-12-27 11:58:43 +01:00
Stephan Unverwerth
5e9d99474d
LibGL: Remove image storage from MipMap
...
Images are stored on the device side. Texture2D and MipMap are now only
used to store imformation about the texture and reference to the device
image.
2021-12-24 05:10:28 -08:00
Stephan Unverwerth
4c944eaa41
LibGL: Remove sampling code from Sampler2D
...
Texture sampling now happens entirely in SoftGPU thus this class will
now only be used to hold the sampler configuration.
2021-12-24 05:10:28 -08:00
Jelle Raaijmakers
bccfa205d3
LibGL: Improve mipmap lookup in Texture2D
...
We can get rid of a `VERIFY` since we already do this in `Array::at()`.
Also move `::mipmap()` to the header file so it is inlined in
`Sampler2D`.
2021-12-11 23:15:24 +01:00
Jelle Raaijmakers
5e370e6f96
LibGL: Implement GL_(UN)PACK_ALIGNMENT
...
These enums are used to indicate byte-alignment when reading from and
to textures. The `GL_UNPACK_ROW_LENGTH` value was reimplemented to
support overriding the source data row width.
2021-12-11 23:15:24 +01:00
Stephan Unverwerth
e7d3483618
LibGL: Implement glTexSubImage2D
2021-09-02 21:00:24 +04:30
Stephan Unverwerth
19a08ff187
LibGL: Implement glPixelStorei
...
This sets the length of a row for the image to be transferred. This
value is measured in pixels. When a rectangle with a width less than
this value is transferred the remaining pixels of this row are skipped.
2021-08-26 19:53:57 +02:00
Stephan Unverwerth
b9523e15df
LibGL: Implement glTexParameter{i,f}
...
This currently only implements a subset of this function.
Namely setting wrap, mag and min modes for the GL_TETXURE_2D target.
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
Stephan Unverwerth
fde0045ebe
LibGL: Introduce Texture base class for all texture types
2021-05-30 00:32:37 +01:00