Announcement

Collapse
No announcement yet.

NV_fill_rectangle Coming To Gallium3D/Nouveau

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    Originally posted by pal666 View Post
    in opengl primitive operation is filling a triangle
    Right. And filling a rectangle is filling two triangles.

    Comment


    • #12
      Originally posted by bug77 View Post
      Right. And filling a rectangle is filling two triangles.
      so it is not primitive and it is already available. you need to pass 4 points for it, for rectangle you need one point, width and height

      Comment


      • #13
        The extension was created by Nvidia but the implementation isn't exclusive to it, any other driver can implement this extension

        Comment


        • #14
          Originally posted by andrei_me View Post
          The extension was created by Nvidia but the implementation isn't exclusive to it, any other driver can implement this extension
          Ok, that makes a little more sense. It's still weird that it took a quarter of a century for someone to figure out they needed something for filling a rectangle, tho

          Comment


          • #15
            Originally posted by bug77 View Post

            Ok, that makes a little more sense. It's still weird that it took a quarter of a century for someone to figure out they needed something for filling a rectangle, tho
            because linux shells never thought of using opengl before for rendering.

            Comment


            • #16
              Originally posted by pal666 View Post
              so it is not primitive and it is already available. you need to pass 4 points for it, for rectangle you need one point, width and height
              This extension needs one whole triangle (3 points). It basically uses the bounding box of the triangle as visible on the screen to define the a 2D rectangle. So it turns a 3D triangle into a 2D rectangle.

              Comment


              • #17
                Originally posted by TheBlackCat View Post

                This extension needs one whole triangle (3 points). It basically uses the bounding box of the triangle as visible on the screen to define the a 2D rectangle. So it turns a 3D triangle into a 2D rectangle.
                It still allows the rectangle to live in 3d space that way.

                Comment

                Working...
                X