Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-18692 Item3D Scenegraph Management
  3. QTBUG-20074

Split QDeclarativeItem3D::draw() functionality to facilitate subclassing

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Not Evaluated
    • Qt3D TP2
    • Qt3D
    • None
    • 9201990c545d5937baf1f2a49db5cda041787b0f

    Description

      The draw function has several logical steps:
      1) setup/earlyDraw, where lights, pickId, culling and blending are turned on and the effect is applied
      2) actual drawing - drawItem()
      3) Child drawing(), where children are sorted and iterated over
      4) cleanup, where the painter state is cleaned up (the settings from step 1 are restored to defaults, and the modelview matrix on the painter is popped).

      Currently, only step 2 is separated out from the rest of the process, limiting a developer's control over the drawing process. The 4 steps should each be virtual functions that a developer can override in a subclass, with the existing code as the default behavior.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              dpope Daniel Pope (closed Nokia identity) (Inactive)
              debhal Julian de Bhal (closed Nokia identity) (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 3 days
                  3d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                  Gerrit Reviews

                    There are no open Gerrit changes