mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
LibGL: Implement glLightf{v}
and fix gl.h
prototype
This implements the `glLightf{v}` family of functions used to set lighting parameters per light in the GL. It also fixes an incorrect prototype for the user exposed version of `glLightf{v}` in which `params` was not marked as `const`.
This commit is contained in:
parent
192befa84b
commit
bf294612a7
8 changed files with 185 additions and 7 deletions
|
@ -121,6 +121,8 @@ public:
|
|||
virtual void gl_rect(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) = 0;
|
||||
virtual void gl_tex_gen(GLenum coord, GLenum pname, GLint param) = 0;
|
||||
virtual void gl_tex_gen_floatv(GLenum coord, GLenum pname, GLfloat const* params) = 0;
|
||||
virtual void gl_lightf(GLenum light, GLenum pname, GLfloat param) = 0;
|
||||
virtual void gl_lightfv(GLenum light, GLenum pname, GLfloat const* params) = 0;
|
||||
|
||||
virtual void present() = 0;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue