1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:38:13 +00:00
serenity/Userland/Libraries/LibGL
Jelle Raaijmakers b1ac181537 LibGL: Centralize all context parameters
The `glGet*` family of functions requires that all parameters of
different types are transparently converted into each other. For
example, you can request a boolean parameter as a float or a list of
double values as an integer. It might be considered bad practice to
request parameters through the wrongly-typed function, but to be spec-
compliant we need to implement this.

Introduce a new `::get_context_parameter()` to obtain a parameter
value, which is then converted to the right type by the respective
`::gl_get_*()` functions.
2021-12-12 21:51:08 +01:00
..
GL LibGL: Centralize all context parameters 2021-12-12 21:51:08 +01:00
Tex LibGL: Improve mipmap lookup in Texture2D 2021-12-11 23:15:24 +01:00
Clipper.cpp Libraries: Fix typos 2021-10-01 01:06:40 +01:00
Clipper.h LibGL: Fix clipping and interpolate vertex attributes 2021-08-18 20:30:58 +02:00
CMakeLists.txt LibGL: Implement glRasterPos2i 2021-12-12 21:51:08 +01:00
DepthBuffer.cpp LibGL: Implement glScissor() 2021-11-28 09:20:58 -08:00
DepthBuffer.h LibGL: Implement glScissor() 2021-11-28 09:20:58 -08:00
GLBlend.cpp Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00
GLColor.cpp LibGL: Implement glColor3ub 2021-12-12 21:51:08 +01:00
GLContext.cpp LibGL: Add GL::present_context() 2021-12-01 12:35:08 +01:00
GLContext.h LibGL: Add stub for glCopyTexImage2D 2021-12-12 21:51:08 +01:00
GLDraw.cpp LibGL: Implement glDrawPixels and add stub for glBitmap 2021-12-12 21:51:08 +01:00
GLFog.cpp LibGL: Implement glFogi 2021-08-25 23:50:54 +04:30
GLLights.cpp LibGL: Implement glLightModelf and glLightModelfv 2021-12-12 21:51:08 +01:00
GLLists.cpp LibGL: Implement glIsList 2021-12-12 21:51:08 +01:00
GLMat.cpp LibGL: Implement glLoadMatrixd 2021-12-12 21:51:08 +01:00
GLStencil.cpp LibGL: Implement glClearStencil 2021-12-12 21:51:08 +01:00
GLStruct.h LibGL: Implement glNormal3f and glNormal3fv 2021-12-12 21:51:08 +01:00
GLTexture.cpp LibGL: Add stub for glCopyTexImage2D 2021-12-12 21:51:08 +01:00
GLUtils.cpp LibGL: Add stubs for glPushAttrib and glPopAttrib 2021-12-12 21:51:08 +01:00
GLVert.cpp LibGL: Implement glScaled 2021-12-12 21:51:08 +01:00
GLVertexArrays.cpp LibGL: Implement glDrawElements 2021-08-14 12:49:29 +02:00
SoftwareGLContext.cpp LibGL: Centralize all context parameters 2021-12-12 21:51:08 +01:00
SoftwareGLContext.h LibGL: Centralize all context parameters 2021-12-12 21:51:08 +01:00
SoftwareRasterizer.cpp LibGL: Implement glDrawPixels and add stub for glBitmap 2021-12-12 21:51:08 +01:00
SoftwareRasterizer.h LibGL: Implement glDrawPixels and add stub for glBitmap 2021-12-12 21:51:08 +01:00