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

Method initDebugger

pymaze/debug.py:19–36  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

17
18 @classmethod
19 def initDebugger(cls):
20 cls.__stride = (cls.d_fsize * 4) * 2
21 cls.__data = np.array([0] * 8 * cls.MAX_LINES, dtype='float32')
22
23 # --------
24
25 cls.__vao = PWVaoData()
26 cls.__vao.count = 1
27
28 cls.__vao.vao = glGenVertexArrays(1)
29 glBindVertexArray(cls.__vao.vao)
30
31 cls.__vao.data = glGenBuffers(1)
32 glBindBuffer(GL_ARRAY_BUFFER, cls.__vao.data)
33 glBufferData(GL_ARRAY_BUFFER, cls.__data, GL_STREAM_DRAW)
34
35 glEnableVertexAttribArray(0)
36 glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, cls.d_fsize * 4, None)
37
38
39 @classmethod

Callers 1

__init__Method · 0.80

Calls 1

PWVaoDataClass · 0.85

Tested by

no test coverage detected