SenOGL  0.2
Library aiming to ease the use of OpenGL
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
TesselationControlShader Class Reference

Tesselation Control Shader. More...

#include <TesselationControlShader.hpp>

Inheritance diagram for TesselationControlShader:
Shader OpenGLObject

Public Member Functions

 TesselationControlShader ()=default
 
- Public Member Functions inherited from Shader
 Shader ()=default
 Default constructor. More...
 
virtual ~Shader ()
 Destructor. More...
 
virtual void init () override
 Generates a OpenGL object name to manage. More...
 
virtual void cleanup () override
 Deletes the managed OpenGL object. More...
 
void loadFromFile (const std::string &path)
 Loads the source for this shader from the file at path. More...
 
void reload ()
 Reloads shader from file. More...
 
void compile ()
 Compiles this shader. More...
 
bool isValid () const override
 
- Public Member Functions inherited from OpenGLObject
 OpenGLObject ()
 
 OpenGLObject (GLuint handle)
 Constructs a instance managing an existing OpenGL Object. More...
 
 OpenGLObject (const OpenGLObject &)=default
 
 OpenGLObject (OpenGLObject &&)=default
 
OpenGLObjectoperator= (const OpenGLObject &)=default
 
OpenGLObjectoperator= (OpenGLObject &&)=default
 
virtual ~OpenGLObject ()
 
GLuint getName () const
 Returns OpenGL name of the object. More...
 
void setName (GLuint n)
 Sets the OpenGL name of the object managed by this instance /!\ Use with caution ! (assignment operator is probably what you're looking for) More...
 
 operator bool () const
 Syntactic sugar for isValid(). More...
 

Additional Inherited Members

- Protected Attributes inherited from Shader
std::string _srcPath = ""
 Path to the last file read by loadFromFile. More...
 
bool _compiled = false
 Says if the shader have already been successfully compiled. More...
 
- Protected Attributes inherited from OpenGLObject
GLuint _handle
 OpenGL name of the managed object. More...
 

Detailed Description

Tesselation Control Shader.

Constructor & Destructor Documentation

TesselationControlShader::TesselationControlShader ( )
default

The documentation for this class was generated from the following file: