MCPcopy Create free account
hub / github.com/Blakkis/PyGLMaze / drawLine

Method drawLine

pymaze/debug.py:40–56  ·  view source on GitHub ↗
(cls, _from, _to, grey = 1.0)

Source from the content-addressed store, hash-verified

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

Callers 2

debugDrawMethod · 0.80
debugDrawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected