MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / Doom3Light_getBounds

Function Doom3Light_getBounds

radiantcore/entity/EntityModule.cpp:43–55  ·  view source on GitHub ↗

Function to return an AABB based on the current workzone AABB (retrieved from the currently selected brushes), or to use the default light radius if the workzone AABB is not valid or none is available.

Source from the content-addressed store, hash-verified

41// from the currently selected brushes), or to use the default light radius
42// if the workzone AABB is not valid or none is available.
43AABB Doom3Light_getBounds(AABB aabb)
44{
45 // If the extents are 0 or invalid (-1), replace with the default radius
46 for (int i = 0; i < 3; i++)
47 {
48 if (aabb.extents[i] <= 0)
49 {
50 aabb.extents[i] = DEFAULT_LIGHT_RADIUS;
51 }
52 }
53
54 return aabb;
55}
56
57IEntityNodePtr createNodeForEntity(const IEntityClassPtr& eclass)
58{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected