MCPcopy Create free account
hub / github.com/assaultcube/AC / transplayer

Function transplayer

source/src/rendergl.cpp:595–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595void transplayer()
596{
597 glLoadIdentity();
598
599 glRotatef(camera1->roll, 0, 0, 1);
600 glRotatef(camera1->pitch, -1, 0, 0);
601 glRotatef(camera1->yaw, 0, 1, 0);
602
603 // move from RH to Z-up LH quake style worldspace
604 glRotatef(-90, 1, 0, 0);
605 glScalef(1, -1, 1);
606
607 glTranslatef(-camera1->o.x, -camera1->o.y, -camera1->o.z);
608}
609
610glmatrixf clipmatrix;
611

Callers 2

drawminimapFunction · 0.85
gl_drawframeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected