Waitrud Weber’s blog

things and reminders for memories

3d: WindowsAPI: Windows-make: How do we face memories problem: ScreenController does well and displayed at 20190627.

 

---

.\wButtonController.cpp  Fri Jun 05 13:18:24 2020

134 :
135 :// it doesn't work and throuh here: 20191112
136 ://
137 ://
138 :void wButtonController::initialize( int m ) {
139 :
140 :	printf("initialize %d\r\n", this->CursolNumber);
141 :	//exit(-2); // it does work: 20191112 at 8.
142 :
143 :	switch( this->CursolNumber ) {
144 :	case 0:
145 :		// list_directory ();
146 :		break;
147 :	case 2:
148 :		//something_word_initialize ();
149 :		display_threeD_screen_initialize_002 ();
150 :		//printf( "display_threeD_screen_initialize_002 ():" );
151 :		//exit(-1);
152 :		break;
153 :	case 3:
154 :		printf( "display_threeD_screen_initialize_003 ():" );
155 :		exit(-1);
156 :		break;
157 :	case 8:
158 :		display_threeD_screen_initialize ();
159 :		break;
160 :	default:
161 :		break;
162 :	}
163 :
164 :	printf("initialize %d ends.\r\n", this->CursolNumber);
165 :	//exit(-2); // it does work: 20191112 at 8.
166 :}
167 :
193 :// All qualified at 20190627:
194 ://
195 ://
196 ://
197 ://
198 :int display_threeD_screen_initialize () {
199 :	vPoint* eye = nullptr;
200 :
201 :	if ( call_once_display_threeD_initialize == 0 ) {
202 :		call_once_display_threeD_initialize = 1;
203 :	} else {
204 :		exit(-1);
205 :	}
206 :
207 :	eye = new vPoint();
208 :	eye->setPoint( 500.0f, 500.0f, 500.0f);
209 :	screen = new vScreen ();
210 :	vPoint* U= new vPoint ( 160.0f, 0.0f, 0.0f );
211 :	vPoint* V= new vPoint ( 0, 90.0f, 0 );
212 :	screen->put_U ( *U );
213 :	screen->put_V ( *V );
214 :
215 :	screen->put_Up ( *( new vPoint(0.0f, 1.0f, 0.0f) ) );
216 :	screen->put_C ( *( new vPoint( 0.0f, 0.0f, -50.0f) ));
217 :	screen->setWidth ( 640 );
218 :	screen->setHeight ( 480 );
219 :	screen->setEye ( *eye );
220 :	screen->LookAt ( *(new vPoint( -250.0f, 0.0f, 350.0f )) );
221 :	screen->HowFarFromEye = 320.0f;
222 :
223 :	screen->calculation_up_UV();
224 :	screen->OntheScreen( &g_x, &g_y );
225 :
226 :	if ( memorized_CurveLines == 0 )
227 :		curve_initialization();
228 :
229 :	memorized_CurveLines = 1;
230 :	level_error_msg = 4; //ADD: 20191228
231 :	printf("display_threeD_screen_initialize:memorized_CurveLines=%d\r\n", memorized_CurveLines );
232 :}
233 :