Changeset a23fc08 in opengl-game for utils.h


Ignore:
Timestamp:
May 24, 2019, 8:52:32 PM (6 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
6abfd07
Parents:
98f06d9
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (05/24/19 20:22:31)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (05/24/19 20:52:32)
Message:

Move several functions from new-game.cpp to utils.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils.h

    r98f06d9 ra23fc08  
     1#ifndef __UTILS_H__
     2#define __UTILS_H__
     3
     4#include <string>
     5
     6#include <glm/mat4x4.hpp>
     7
     8using namespace std;
     9using namespace glm;
     10
     11float getRandomNum(float low, float high);
     12
     13void printVec3(string label, const vec3& v);
     14void printVec4(string label, const vec4& v);
     15void printMat4(string label, const mat4& m);
     16
    117// Code for offset_of function from https://gist.github.com/graphitemaster/494f21190bb2c63c5516
    218
     
    1632   return offset_of_impl<T1, T2>::offset(member);
    1733}
     34
     35#endif
Note: See TracChangeset for help on using the changeset viewer.