Image1 goes from 0,0 - 49,49 Image2 goes from 0,50 - 49,99 Image3 goes from 0,100 - 49,149 Image4 goes from 0,150 - 49,199 |
IMAGE 1: 0,0 49,0 0,49 49,49 IMAGE 2: 0,50 49,50 0,99 49,99 IMAGE 3: 0,100 49,100 0,149 49,149 IMAGE 4: 0,150 49,150 0,199 49,199 |
[0] = (0, 0) [1] = (50, 0) [2] = (50, 50) [3] = (0, 50) [4] = (0, 50) [5] = (50, 50) [6] = (50, 100) [7] = (0, 100) [8] = (0, 100) [9] = (50, 100) [10] = (50, 150) [11] = (0, 150) [12] = (0, 150) [13] = (50, 150) [14] = (50, 200) [15] = (0, 200) [16] = (0, 200) [17] = (50, 200) [18] = (50, 250) [19] = (0, 250) [20] = (0, 250) [21] = (50, 250) [22] = (50, 300) [23] = (0, 300) [24] = (0, 300) [25] = (50, 300) [26] = (50, 350) [27] = (0, 350) ........................400 total vertices (for the 10x10 map on screen with Quad vertices (x4) = 400) |
|
|
... 0,0 1,0 2,0 ... 0,1 1,1 2,1 ... 0,2 1,2 2,2 |
[0] = (0, 150) [1] = (50, 150) [2] = (50, 200) [3] = (0, 200) [4] = (0, 150) [5] = (50, 150) [6] = (50, 200) [7] = (0, 200) [8] = (0, 150) [9] = (50, 150) [10] = (50, 200) [11] = (0, 200) [12] = (0, 150) [13] = (50, 150) [14] = (50, 200) [15] = (0, 200) [16] = (0, 150) [17] = (50, 150) [18] = (50, 200) [19] = (0, 200) [20] = (0, 150) [21] = (50, 150) [22] = (50, 200) [23] = (0, 200) [24] = (0, 150) [25] = (50, 150) [26] = (50, 200) [27] = (0, 200) [28] = (0, 150) [29] = (50, 150) [30] = (50, 200) [31] = (0, 200) [32] = (0, 150) [33] = (50, 150) [34] = (50, 200) [35] = (0, 200) [36] = (0, 150) [37] = (50, 150) [38] = (50, 200) [39] = (0, 200) [40] = (0, 150) [41] = (50, 150) [42] = (50, 200) [43] = (0, 200) [44] = (0, 0) [45] = (50, 0) [46] = (50, 50) [47] = (0, 50) [48] = (0, 0) [49] = (50, 0) [50] = (50, 50) [51] = (0, 50) [52] = (0, 0) [53] = (50, 0) [54] = (50, 50) [55] = (0, 50) [56] = (0, 0) [57] = (50, 0) [58] = (50, 50) [59] = (0, 50) [60] = (0, 0) [61] = (50, 0) [62] = (50, 50) [63] = (0, 50) |
I should be reviewing my first book from the beginning, but I just had to see some graphics and fun stuff after last looking at boring containers. |
Beginning C++ Game Programming |
The entry point for a WinAPI is WinMain, not main. |
Only if you're using gui windows. If you're not coding a gui interface then it's still main() |