Browse Source

engine: ref: remove direction vectors from Ref API, renderers calculate them from viewangles to local data anyway

pull/2/head
Alibek Omarov 2 years ago
parent
commit
d7af50ea6c
  1. 1
      engine/client/ref_common.c
  2. 1
      engine/ref_api.h

1
engine/client/ref_common.c

@ -55,7 +55,6 @@ void GL_RenderFrame( const ref_viewpass_t *rvp )
VectorCopy( rvp->vieworigin, refState.vieworg ); VectorCopy( rvp->vieworigin, refState.vieworg );
VectorCopy( rvp->viewangles, refState.viewangles ); VectorCopy( rvp->viewangles, refState.viewangles );
AngleVectors( refState.viewangles, refState.vforward, refState.vright, refState.vup );
ref.dllFuncs.GL_RenderFrame( rvp ); ref.dllFuncs.GL_RenderFrame( rvp );
} }

1
engine/ref_api.h

@ -102,7 +102,6 @@ typedef struct ref_globals_s
vec3_t vieworg; vec3_t vieworg;
vec3_t viewangles; vec3_t viewangles;
vec3_t vforward, vright, vup;
// todo: fill this without engine help // todo: fill this without engine help
// move to local // move to local

Loading…
Cancel
Save