X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Main%2Fviews.c;h=91ec516854b583bf5c1886718418ebe9ac7bcd5a;hb=28fad1d2964d4f7122fff0a3d479e15fdb2e8be8;hp=154051eaed522c9eafd4a09ef46e307588a69d51;hpb=871ee408fa93b6ef926de706fc119fdbca0025e7;p=flightgear.git diff --git a/Main/views.c b/Main/views.c index 154051eae..91ec51685 100644 --- a/Main/views.c +++ b/Main/views.c @@ -34,15 +34,19 @@ #include "../Scenery/scenery.h" +/* This is a record containing current view parameters */ +struct fgVIEW current_view; + + /* Initialize a view structure */ -void fgViewInit(struct VIEW *v) { +void fgViewInit(struct fgVIEW *v) { v->view_offset = 0.0; v->goal_view_offset = 0.0; } /* Update the view parameters */ -void fgViewUpdate(struct FLIGHT *f, struct VIEW *v) { +void fgViewUpdate(struct fgFLIGHT *f, struct fgVIEW *v) { MAT3vec vec, forward; MAT3mat R, TMP, UP, LOCAL, VIEW; @@ -129,7 +133,11 @@ void fgViewUpdate(struct FLIGHT *f, struct VIEW *v) { /* $Log$ -/* Revision 1.1 1997/08/27 21:31:17 curt -/* Initial revision. +/* Revision 1.2 1997/12/10 22:37:48 curt +/* Prepended "fg" on the name of all global structures that didn't have it yet. +/* i.e. "struct WEATHER {}" became "struct fgWEATHER {}" /* + * Revision 1.1 1997/08/27 21:31:17 curt + * Initial revision. + * */