[일상의 한마디]

CG 강의 노트 예제 문제점 발견...

조나단봉 2007. 4. 7. 05:37

Can you see two points?


Oh my god...
The sample code wasn't executed in Visual Studio 2005...
The following (red-colored) statement should be added to your sample code...

  // this is identical to BMP header.
  // if you don’t know about it, just change biWidth and biHeight
  bmi.bmiHeader.biSize=sizeof(BITMAPINFO);
  bmi.bmiHeader.biWidth=200;   // bitmap width
  bmi.bmiHeader.biHeight=200;   // bitmap height
  bmi.bmiHeader.biPlanes=1;
  bmi.bmiHeader.biBitCount=32;   // bit count of a pixel
  bmi.bmiHeader.biCompression=BI_RGB;
  bmi.bmiHeader.biSizeImage=0;
  bmi.bmiHeader.biClrUsed=0;

에휴... 요즘 조교들 믿음이 안 간다... 낸 숙제도 체크 못하고...
실행환경 문제인가? 그건 아닌 것 같은데...