KINECT STATS GENERATOR FOR SPORTS VISUALISATION  1.0
ScreenQuad.h
Go to the documentation of this file.
00001 #ifndef SCREEN_QUAD_H__
00002 #define SCREEN_QUAD_H__
00003 #include <ngl/Vec2.h>
00004 #include <ngl/Vec3.h>
00005 #include "opencv2/opencv.hpp"
00006 
00007 
00017 
00018 class ScreenQuad
00019 {
00020   public :
00023     ScreenQuad(
00024                int _textureWidth,
00025                int _textureHeight,
00026                const std::string &_shader
00027                 );
00028     ~ScreenQuad();
00029     void draw(cv::Mat *_data);
00030 
00031     inline void setTextureMode(GLenum _mode){m_textureMode=_mode;}
00032 
00033   private :
00034     GLuint m_vao;
00035     GLuint m_texture;
00036     std::string m_shader;
00037     int m_textureWidth;
00038     int m_textureHeight;
00039     GLenum m_textureMode;
00040 
00041 };
00042 
00043 
00044 
00045 
00046 #endif
 All Classes Files Functions Variables Enumerations Enumerator