mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
replaced the cameraMatrixTime variable from the renderer's public interface by a function
This commit is contained in:
parent
70f301e4ff
commit
1d6663ebc1
4 changed files with 15 additions and 4 deletions
|
@ -244,7 +244,7 @@ static void SCR_DrawMouseInputLatencies()
|
||||||
y += 30;
|
y += 30;
|
||||||
SCR_DrawInputStats( cl.userCmdTime - cl.mouseTime, x, y, w, h, "netw" );
|
SCR_DrawInputStats( cl.userCmdTime - cl.mouseTime, x, y, w, h, "netw" );
|
||||||
y += 30;
|
y += 30;
|
||||||
SCR_DrawInputStats( re_cameraMatrixTime - cl.mouseTime, x, y, w, h, "draw" );
|
SCR_DrawInputStats( re.GetCameraMatrixTime() - cl.mouseTime, x, y, w, h, "draw" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -663,6 +663,12 @@ static void RE_EndRegistration()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static int RE_GetCameraMatrixTime()
|
||||||
|
{
|
||||||
|
return re_cameraMatrixTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const refexport_t* GetRefAPI( const refimport_t* rimp )
|
const refexport_t* GetRefAPI( const refimport_t* rimp )
|
||||||
{
|
{
|
||||||
static refexport_t re;
|
static refexport_t re;
|
||||||
|
@ -709,5 +715,7 @@ const refexport_t* GetRefAPI( const refimport_t* rimp )
|
||||||
|
|
||||||
re.TakeVideoFrame = RE_TakeVideoFrame;
|
re.TakeVideoFrame = RE_TakeVideoFrame;
|
||||||
|
|
||||||
|
re.GetCameraMatrixTime = RE_GetCameraMatrixTime;
|
||||||
|
|
||||||
return &re;
|
return &re;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1535,4 +1535,7 @@ extern void GL2_BeginFrame();
|
||||||
extern void GL2_EndFrame();
|
extern void GL2_EndFrame();
|
||||||
|
|
||||||
|
|
||||||
|
extern int re_cameraMatrixTime;
|
||||||
|
|
||||||
|
|
||||||
#endif //TR_LOCAL_H
|
#endif //TR_LOCAL_H
|
||||||
|
|
|
@ -158,6 +158,9 @@ typedef struct {
|
||||||
qbool (*inPVS)( const vec3_t p1, const vec3_t p2 );
|
qbool (*inPVS)( const vec3_t p1, const vec3_t p2 );
|
||||||
|
|
||||||
void (*TakeVideoFrame)( int h, int w, byte* captureBuffer, byte *encodeBuffer, qbool motionJpeg );
|
void (*TakeVideoFrame)( int h, int w, byte* captureBuffer, byte *encodeBuffer, qbool motionJpeg );
|
||||||
|
|
||||||
|
// when the final model-view matrix is computed, for cl_drawMouseLag
|
||||||
|
int (*GetCameraMatrixTime)();
|
||||||
} refexport_t;
|
} refexport_t;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -224,7 +227,4 @@ typedef struct {
|
||||||
const refexport_t* GetRefAPI( const refimport_t* rimp );
|
const refexport_t* GetRefAPI( const refimport_t* rimp );
|
||||||
|
|
||||||
|
|
||||||
extern int re_cameraMatrixTime; // when the final model-view matrix is computed, for cl_drawMouseLag
|
|
||||||
|
|
||||||
|
|
||||||
#endif // __TR_PUBLIC_H
|
#endif // __TR_PUBLIC_H
|
||||||
|
|
Loading…
Reference in a new issue