Changeset db2d995 in opengl-game
- Timestamp:
- Apr 7, 2021, 2:51:53 PM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 5049354
- Parents:
- 5081b9a
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
utils.cpp
r5081b9a rdb2d995 26 26 } 27 27 28 void printVec3(string label, const vec3& v) { 28 void printVec(string label, const vec2& v) { 29 cout << label << " -> (" << v.x << "," << v.y << ")" << endl; 30 } 31 32 void printVec(string label, const vec3& v) { 29 33 cout << label << " -> (" << v.x << "," << v.y << "," << v.z << ")" << endl; 30 34 } 31 35 32 void printVec 4(string label, const vec4& v) {36 void printVec(string label, const vec4& v) { 33 37 cout << label << " -> (" << v.x << "," << v.y << "," << v.z << "," << v.w << ")" << endl; 34 38 } 35 39 36 void printMat 4(string label, const mat4& m) {40 void printMat(string label, const mat4& m) { 37 41 cout << label << ": " << endl; 38 42 cout << "[ " << m[0][0] << " " << m[1][0] << " " << m[2][0] << " " << m[3][0] << " ]" << endl; -
utils.hpp
r5081b9a rdb2d995 13 13 float getRandomNum(float low, float high); 14 14 15 void printVec3(string label, const vec3& v); 16 void printVec4(string label, const vec4& v); 17 void printMat4(string label, const mat4& m); 15 void printVec(string label, const vec2& v); 16 void printVec(string label, const vec3& v); 17 void printVec(string label, const vec4& v); 18 void printMat(string label, const mat4& m); 18 19 19 20 // Code for offset_of function from https://gist.github.com/graphitemaster/494f21190bb2c63c5516
Note:
See TracChangeset
for help on using the changeset viewer.