mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:27:46 +00:00
LibGL+LibSoftGPU: Implement rasterization position
Implements support for `glRasterPos` and updating the raster position's window coordinates through `glBitmap`. The input for `glRasterPos` is an object position that needs to go through the same vertex transformations as our regular triangles.
This commit is contained in:
parent
a4d98c4622
commit
ca78327a96
4 changed files with 80 additions and 23 deletions
|
@ -418,17 +418,6 @@ private:
|
|||
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;
|
||||
|
||||
float m_line_width { 1.0f };
|
||||
|
||||
// Lighting configuration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue