Grafika - alegro - nacitanie zo suboru
Created: 2008-10-28 - 18:36
#include #include #include "upjsGl.h" #include using namespace std; struct BOD{ float x,y,z; }; struct STENA{ int v[3]; }; vector stena; vector bod; int n, m; //pocet vrcholov, stien int nacitaj(char* subor) { FILE *s; s = fopen(subor, "r"); if (s == 0) return 1; fscanf(s, "%d", &n); for (int i=0; i