Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (26 sloc) 681 Bytes
// by dff180
#ifndef MYGLWINDOW_H__
#define MYGLWINDOW_H__
#include <string>
#include <sys/time.h>
#include "EGLWindow.h"
class MyGLWindow : public EGLWindow
public :
//MyGLWindow(EGLconfig *_config=0);
MyGLWindow(EGLconfig *_config, std::string fragmentShader, std::string textureName="");
virtual void paintGL();
protected :
virtual void initializeGL();
int init_resources();
float getDeltaTimeS();
std::string _fragmentShader;
std::string _textureName;
timeval _startTime;
GLuint _texture0;
GLuint _vbo_quad;
GLuint _program;
GLint _attribute_coord2d;
You can’t perform that action at this time.