Vis 2 Demo
1.0
Technical illustration type real-time rendering of geometry
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
src
geometry
GeometricObject.h
Go to the documentation of this file.
1
#ifndef __GEOMETRIC_OBJECT_H__
2
#define __GEOMETRIC_OBJECT_H__
3
4
#include <glew.h>
5
#include "
DrawableObject.h
"
6
#include "../visualisation/Shader.h"
7
8
namespace
vis2
9
{
11
14
class
GeometricObject
:
public
DrawableObject
15
{
16
public
:
18
29
GeometricObject
( glm::mat4 _modelMatrix,
30
Shader
* _shader,
31
const
float
* _positions_Ptr,
32
const
unsigned
int
_pos_size,
33
const
float
* _normals_Ptr,
34
const
unsigned
int
_norm_size,
35
const
unsigned
int
* _index_Ptr,
36
const
unsigned
int
_ind_size);
37
39
40
virtual
~GeometricObject
();
41
43
virtual
void
update
(
double
_deltaT) = 0;
44
46
51
virtual
void
draw
(glm::mat4 & _projectionMatrix);
52
53
protected
:
54
unsigned
int
index_count
;
55
GLuint
vao_handle
;
56
GLuint
position_buffer_handle
;
57
GLuint
normal_buffer_handle
;
58
GLuint
index_buffer_handle
;
59
60
Shader
*
shader_Ptr
;
61
62
private
:
64
GeometricObject
(
const
GeometricObject
&);
65
};
66
}
67
68
69
#endif
Generated on Tue Jun 11 2013 08:43:14 for Vis 2 Demo by
1.8.3.1