| 143 | } |
| 144 | |
| 145 | void NotesObject::_render(ObjectRenderInst* ri, SceneRenderState* state, BaseMatInstance* overrideMat) |
| 146 | { |
| 147 | if (showArrow()) |
| 148 | { |
| 149 | GFXStateBlockDesc desc; |
| 150 | desc.setBlend(true); |
| 151 | desc.setZReadWrite(true, false); |
| 152 | |
| 153 | VectorF forwardVec = getTransform().getForwardVector(); |
| 154 | forwardVec.normalize(); |
| 155 | |
| 156 | Point3F startPos = forwardVec * -(mArrowLength * 0.5) + getPosition(); |
| 157 | Point3F endPos = forwardVec * (mArrowLength * 0.5) + getPosition(); |
| 158 | |
| 159 | ColorI arrowColor = mArrowColor.toColorI(); |
| 160 | arrowColor.alpha = 128; |
| 161 | |
| 162 | GFX->getDrawUtil()->drawArrow(desc, startPos, endPos, arrowColor, mArrowRadius); |
| 163 | } |
| 164 | } |
nothing calls this directly
no test coverage detected