MCPcopy Create free account
hub / github.com/ZDoom/Raze / loadIdentity

Method loadIdentity

source/common/utility/matrix.cpp:44–54  ·  view source on GitHub ↗

gl LoadIdentity implementation

Source from the content-addressed store, hash-verified

42
43// gl LoadIdentity implementation
44void
45VSMatrix::loadIdentity()
46{
47 // fill matrix with 0s
48 for (int i = 0; i < 16; ++i)
49 mMatrix[i] = 0.0f;
50
51 // fill diagonal with 1s
52 for (int i = 0; i < 4; ++i)
53 mMatrix[i + i * 4] = 1.0f;
54}
55
56
57// gl MultMatrix implementation

Callers 12

StartSceneMethod · 0.80
SetViewMatrixMethod · 0.80
DrawContentsMethod · 0.80
ProcessVoxelMethod · 0.80
LoadMethod · 0.80
CalculateBonesIQMMethod · 0.80
Draw2DFunction · 0.80
Set2DMethod · 0.80
SetupMatricesMethod · 0.80
RenderBoxMethod · 0.80
ResetMethod · 0.80
VkMatrixBufferWriterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected