Skip to content

[Note] Program 2.6 _Supplemental Notes

Juhwi Eden Kim edited this page Oct 20, 2019 · 1 revision
  • 네번째 parameter of glShaderSource() : 주어진 쉐이더 코드의 각각의 줄의 integer string length를 나타냄, null인 경우 string이 null-terminated(null로 끝나는 것을 말하는 듯?)되면 해당 배열 자동 빌드
  • c_str() 함수를 사용하여 glShaderSource()로 보내진 string이 null-terminated 되도록 했음
  • null을 보내지 않고 수동으로 이 배열들을 빌드하는 것은 흔하지 않음

Clone this wiki locally