ported the University CGI demo from WINDOWS + GLUT + GLEW + GLU + OpenGL 4 to LINUX WAYLAND + EGL + GLES 2 with minimal cuts
This commit is contained in:
12
GL_STUFF/HEADERS/UTILS/ClockIterator.hpp
Executable file
12
GL_STUFF/HEADERS/UTILS/ClockIterator.hpp
Executable file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
class ClockIterator {
|
||||
private:
|
||||
unsigned int max;
|
||||
unsigned int counter;
|
||||
public:
|
||||
ClockIterator(unsigned int loopMillis);
|
||||
unsigned int step(unsigned int millis);
|
||||
float getPercentage();
|
||||
unsigned int getPosition();
|
||||
void reset();
|
||||
};
|
||||
Reference in New Issue
Block a user