-
Notifications
You must be signed in to change notification settings - Fork 1
/
Drawable.h
33 lines (30 loc) · 1.1 KB
/
Drawable.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/***************************************************************************//**
* @file File containing the declaration for the Drawable class.
*
* @brief Contains the declaration for the Drawable class.
*******************************************************************************/
#ifndef _DRAWABLE_H_
#define _DRAWABLE_H_
/*******************************************************************************
* DECLARATIONS, INCLUDES, AND NAMESPACES
*******************************************************************************/
#include <GL/freeglut.h>
/*******************************************************************************
* CLASS INTERFACE
******************************************************************************/
/*!
* @brief Interface for the Drawable class. Declares single virtual function
* draw().
*
* @details Declares a single virtual function draw() that defines how an object
* is drawn using GLUT.
*/
class Drawable
{
public:
/*!
* @brief Function defining how the object is drawn.
*/
virtual void draw() = 0;
};
#endif