void
FGMaterialSlot::render_fragments()
{
+ FG_LOG( FG_GENERAL, FG_ALERT,
+ "FGMaterialSlot::render_fragments() is depricated ... " <<
+ "we shouldn't be here!" );
+
int tris_rendered = current_view.get_tris_rendered();
// cout << "rendering " + texture_name + " = " << list_size << "\n";
// Woohoo!!! We finally get to draw something!
// printf(" display_list = %d\n", frag_ptr->display_list);
- xglCallList( frag_ptr->display_list );
+ // xglCallList( frag_ptr->display_list );
}
current_view.set_tris_rendered( tris_rendered );
mpath.append( "materials" );
fg_gzifstream in( mpath.str() );
- if ( ! in ) {
+ if ( ! in.is_open() ) {
FG_LOG( FG_GENERAL, FG_ALERT, "Cannot open file: " << mpath.str() );
exit(-1);
}
+#ifndef __MWERKS__
while ( ! in.eof() ) {
+#else
+ char c = '\0';
+ while ( in.get(c) && c != '\0' ) {
+ in.putback(c);
+#endif
// printf("%s", line);
// strip leading white space and comments