MCPcopy Index your code
hub / github.com/electronstudio/raylib-python-cffi / add

Method add

examples/shaders/light_system.py:25–29  ·  view source on GitHub ↗
(self, light)

Source from the content-addressed store, hash-verified

23 self.add(light)
24
25 def add(self, light):
26 light.configure(len(self.lights), self.shader)
27 self.lights.append(light)
28 if len(self.lights) > self.MAX_LIGHTS:
29 raise Exception("Too many lights")
30
31 def update(self, cameraPos):
32 rl.SetShaderValue(self.shader, self.shader.locs[rl.SHADER_LOC_VECTOR_VIEW], rl.ffi.new("struct Vector3 *",cameraPos), rl.SHADER_UNIFORM_VEC3)

Callers 8

__init__Method · 0.95
_displayItemFunction · 0.80
searchtools.jsFile · 0.80
jquery.jsFile · 0.80
EeFunction · 0.80
SeFunction · 0.80
LeFunction · 0.80
_highlightFunction · 0.80

Calls 1

configureMethod · 0.80

Tested by

no test coverage detected