MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / lightSources

Method lightSources

source/game/StarParticleManager.cpp:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106List<pair<Vec2F, Vec3F>> ParticleManager::lightSources() const {
107 List<pair<Vec2F, Vec3F>> lsources;
108 for (auto const& particle : m_particles) {
109 if (particle.light != Color::Clear)
110 lsources.append({particle.position, particle.light.toRgbF()});
111 }
112 return lsources;
113}
114
115}

Callers

nothing calls this directly

Calls 2

toRgbFMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected