TextRenderer class for rendering text with OpenGL
Most include files are written so that they are safe to be included multiple times. So, if your TextRenderer.h needs types from glew.h, you include it. Writing your own include files so that they include everything needed to use them (types, enums, ...) is usually a good thing.

You might write your TextRenderer.hpp something like this:

#ifndef TEXTRENDERER_HPP
#define TEXTRENDERER_HPP

#include &lt;GL/glew.h&gt; // For GLuint

class TextRenderer
{
    ...
}
#endif


The define TEXTRENDERER_HPP is there to make the header safe to be included multiple times. You may choose any unique identifier you like, but usually people use file names with some amounts of underscores at start and end.