(cls, _from, _to, grey = 1.0)
| 38 | |
| 39 | @classmethod |
| 40 | def drawLine(cls, _from, _to, grey = 1.0): |
| 41 | if cls.__vao.count >= cls.MAX_LINES - 1: |
| 42 | return |
| 43 | |
| 44 | ofs = cls.__vao.count * 8 |
| 45 | cls.__data[ofs + 0] = _from.x |
| 46 | cls.__data[ofs + 1] = _from.y |
| 47 | cls.__data[ofs + 2] = _from.z |
| 48 | cls.__data[ofs + 3] = grey |
| 49 | |
| 50 | cls.__data[ofs + 4] = _to.x |
| 51 | cls.__data[ofs + 5] = _to.y |
| 52 | cls.__data[ofs + 6] = _to.z |
| 53 | cls.__data[ofs + 7] = grey |
| 54 | |
| 55 | # Update line count |
| 56 | cls.__vao.count += 1 |
| 57 | |
| 58 | |
| 59 | @classmethod |