[問題] 宣告動態全域變數
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
OpenGL
問題(Question):
宣告動態全域變數有error
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
http://i.imgur.com/9eNlxGN.jpg

補充說明(Supplement):
小弟是c++新手,我想做的是創造兩個array,然後把obj 的vertex以及color排好丟進arr
ay,最後在ondisplay的時候把再把這2個array丟給glvertexattribpointer畫圖,所以想
設為全域。
如圖在設array的時候出了點問題,有辦法能解決嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.248.110.36
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1459775916.A.1D3.html
→
04/04 22:14, , 1F
04/04 22:14, 1F
→
04/04 22:15, , 2F
04/04 22:15, 2F
→
04/04 22:32, , 3F
04/04 22:32, 3F
→
04/04 22:33, , 4F
04/04 22:33, 4F
→
04/04 22:36, , 5F
04/04 22:36, 5F
→
04/04 22:37, , 6F
04/04 22:37, 6F
推
04/04 23:57, , 7F
04/04 23:57, 7F
→
04/05 01:18, , 8F
04/05 01:18, 8F
推
04/05 06:20, , 9F
04/05 06:20, 9F
→
04/05 06:21, , 10F
04/05 06:21, 10F