java3d
  1. java3d
  2. JAVA3D-657

Text2D should allow for TextureUnitState

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: current
    • Component/s: j3d-core-utils
    • Labels:
      None

      Description

      Text2D should allow for using a TextureUnitState, instead of a plain texture. Fix is brief and does not affect existing code.

      public void setString(String text) {
      ...
      Texture tex = getAppearance().getTexture();

      // permit using a TextureUnitState
      if (tex == null)

      { tex = getAppearance().getTextureUnitState(0).getTexture(); }

      ...
      // ken
      if (getAppearance().getTexture() != null)

      { getAppearance().setTexture(newTex); }

      else

      { getAppearance().getTextureUnitState(0).setTexture(newTex); }

        Activity

        Hide
        mcneillk added a comment -

        Simple fix.

        Show
        mcneillk added a comment - Simple fix.

          People

          • Assignee:
            mcneillk
            Reporter:
            mcneillk
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 15 minutes
              15m
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 15 minutes
              15m