mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 16:30:50 +00:00
LibGL: Implement glRasterPos2i
This commit is contained in:
parent
78d0674228
commit
4eb6295a57
Notes:
sideshowbarker
2024-07-17 22:51:50 +09:00
Author: https://github.com/gmta
Commit: 4eb6295a57
Pull-request: https://github.com/SerenityOS/serenity/pull/11154
Reviewed-by: https://github.com/sunverwerth ✅
6 changed files with 41 additions and 1 deletions
|
@ -105,6 +105,7 @@ public:
|
|||
virtual void gl_stencil_func_separate(GLenum face, GLenum func, GLint ref, GLuint mask) override;
|
||||
virtual void gl_stencil_op_separate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) override;
|
||||
virtual void gl_normal(GLfloat nx, GLfloat ny, GLfloat nz) override;
|
||||
virtual void gl_raster_pos(GLfloat x, GLfloat y, GLfloat z, GLfloat w) override;
|
||||
virtual void present() override;
|
||||
|
||||
private:
|
||||
|
@ -269,7 +270,8 @@ private:
|
|||
decltype(&SoftwareGLContext::gl_scissor),
|
||||
decltype(&SoftwareGLContext::gl_stencil_func_separate),
|
||||
decltype(&SoftwareGLContext::gl_stencil_op_separate),
|
||||
decltype(&SoftwareGLContext::gl_normal)>;
|
||||
decltype(&SoftwareGLContext::gl_normal),
|
||||
decltype(&SoftwareGLContext::gl_raster_pos)>;
|
||||
|
||||
using ExtraSavedArguments = Variant<
|
||||
FloatMatrix4x4>;
|
||||
|
@ -305,6 +307,17 @@ private:
|
|||
u8 m_pack_alignment { 4 };
|
||||
GLsizei m_unpack_row_length { 0 };
|
||||
u8 m_unpack_alignment { 4 };
|
||||
|
||||
struct RasterPosition {
|
||||
FloatVector3 window_coordinates { 0.0f, 0.0f, 0.0f };
|
||||
float clip_coordinate_value { 1.0f };
|
||||
float eye_coordinate_distance { 0.0f };
|
||||
bool valid { true };
|
||||
FloatVector4 color_rgba { 1.0f, 1.0f, 1.0f, 1.0f };
|
||||
float color_index { 1.0f };
|
||||
FloatVector4 texture_coordinates { 0.0f, 0.0f, 0.0f, 1.0f };
|
||||
};
|
||||
RasterPosition m_current_raster_position;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue