Changeset 4e0b82b in opengl-game for new-game.cpp
- Timestamp:
- May 3, 2018, 2:45:49 AM (7 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 54b6d6b
- Parents:
- 9f4986b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
new-game.cpp
r9f4986b r4e0b82b 2 2 3 3 #include "stb_image.h" 4 5 // I think this was for the OpenGL 4 book font file tutorial 6 //#define STB_IMAGE_WRITE_IMPLEMENTATION 7 //#include "stb_image_write.h" 4 8 5 9 #define _USE_MATH_DEFINES … … 105 109 obj = &*it; 106 110 107 for ( int p_idx = 0; p_idx < it->points.size(); p_idx += 9) {111 for (unsigned int p_idx = 0; p_idx < it->points.size(); p_idx += 9) { 108 112 if (faceClicked({ 109 113 vec3(it->points[p_idx], it->points[p_idx + 1], it->points[p_idx + 2]), … … 131 135 } 132 136 133 int main(int argc, char* argv[]) {137 int realmain(int argc, char* argv[]) { 134 138 cout << "New OpenGL Game" << endl; 135 139 … … 537 541 538 542 // group scene objects by shader 539 for ( int i=0; i < objects.size(); i++) {543 for (unsigned int i=0; i < objects.size(); i++) { 540 544 if (objects[i].shader_program == shader_program) { 541 545 program1_objects.push_back(i);
Note:
See TracChangeset
for help on using the changeset viewer.