Class BlendModeComponent

java.lang.Object
technology.sola.engine.graphics.components.BlendModeComponent
All Implemented Interfaces:
technology.sola.ecs.Component

@NullMarked public class BlendModeComponent extends Object implements technology.sola.ecs.Component
BlendModeComponent is a Component that modifies the BlendFunction used when rendering this Entity
  • Constructor Details

    • BlendModeComponent

      public BlendModeComponent(BlendFunction blendFunction)
      Creates a new instance initialized to a BlendFunction.
      Parameters:
      blendFunction - the initial BlendFunction
  • Method Details

    • getBlendFunction

      public BlendFunction getBlendFunction()
      Returns:
      the current BlendMode
    • setBlendFunction

      public void setBlendFunction(BlendFunction blendFunction)
      Sets the BlendFunction to be used.
      Parameters:
      blendFunction - the new BlendFunction