MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / RenderObject_SetStatic

Function RenderObject_SetStatic

Descent3/renderobject.cpp:1456–1462  ·  view source on GitHub ↗

Sets the polygon render object type to static (one lightval for whole object)

Source from the content-addressed store, hash-verified

1454}
1455// Sets the polygon render object type to static (one lightval for whole object)
1456void RenderObject_SetStatic(float r, float g, float b) {
1457 RenderObjectType = RO_STATIC;
1458 RenderObjectStaticRedValue = r;
1459 RenderObjectStaticGreenValue = g;
1460 RenderObjectStaticBlueValue = b;
1461 RenderObjectStaticScalar = 1.0;
1462}
1463// Sets the polygon render object type to gouraud (one lightval for each vertex)
1464void RenderObject_SetGouraud(vector *dir, float r, float g, float b, float scalar) {
1465 RenderObject_LightDirection = *dir;

Callers 2

SetupTerrainObjectFunction · 0.85
SetupMineObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected