moGL  travis-test-3
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ core spec
object/transformfeedback.hpp
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 #ifndef MOGL_TRANSFORMFEEDBACK_INCLUDED
00012 #define MOGL_TRANSFORMFEEDBACK_INCLUDED
00013 
00014 #include <mogl/object/handle.hpp>
00015 
00016 namespace mogl
00017 {
00018     class TransformFeedback : public Handle<GLuint>
00019     {
00020     public:
00021         TransformFeedback();
00022         ~TransformFeedback();
00023 
00024         TransformFeedback(const TransformFeedback& other) = delete;
00025         TransformFeedback& operator=(const TransformFeedback& other) = delete;
00026 
00027         TransformFeedback(TransformFeedback&& other) = default;
00028 
00029     public:
00030         void    bind(GLenum target = GL_TRANSFORM_FEEDBACK);
00031         bool    isHandleValid() const override final;
00032 
00033     public:
00034         static void begin(GLenum primitiveMode);
00035         static void end();
00036         static void pause();
00037         static void resume();
00038     };
00039 }
00040 
00041 #include "transformfeedback.inl"
00042 
00043 #endif // MOGL_TRANSFORMFEEDBACK_INCLUDED
 All Classes Namespaces Files Functions Variables Defines