MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / SetLightSource

Method SetLightSource

extensions/olcPGEX_Graphics3D.h:1013–1023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1011 }*/
1012
1013 void GFX3D::PipeLine::SetLightSource(uint32_t nSlot, uint32_t nType, olc::Pixel col, olc::GFX3D::vec3d pos, olc::GFX3D::vec3d dir, float fParam)
1014 {
1015 if (nSlot < 4)
1016 {
1017 lights[nSlot].type = nType;
1018 lights[nSlot].pos = pos;
1019 lights[nSlot].dir = dir;
1020 lights[nSlot].col = col;
1021 lights[nSlot].param = fParam;
1022 }
1023 }
1024
1025 uint32_t GFX3D::PipeLine::Render(std::vector<olc::GFX3D::triangle> &triangles, uint32_t flags)
1026 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected