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
QuadTextured.h
Go to the documentation of this file.
1
#ifndef __QUAD_TEXTURED_H__
2
#define __QUAD_TEXTURED_H__
3
4
#include <glew.h>
5
#include "
DrawableObject.h
"
6
#include "../visualisation/ShaderController.h"
7
#include "../visualisation/Texture.h"
8
9
#define QUAD_TEXTURED_VERTEX_COUNT 4
10
#define QUAD_TEXTURED_INDEX_COUNT 6
11
12
namespace
vis2
13
{
15
class
QuadTextured
:
public
DrawableObject
16
{
17
public
:
19
25
QuadTextured
(glm::mat4 _modelMatrix,
ShaderController
* _shader_ctrl,
bool
_b_fill_window);
26
28
29
virtual
~QuadTextured
();
30
32
virtual
void
update
(
double
_deltaT);
33
35
38
virtual
void
draw
(glm::mat4 & _projectionMatrix);
39
41
46
void
draw
(glm::mat4 & _projectionMatrix, glm::vec3 _edge_color);
47
48
private
:
49
ShaderController
*
shader_ctrl
;
50
bool
b_fill_window
;
51
52
GLuint
vao_handle
;
53
bool
vao_setup_done
;
54
55
GLuint
position_buffer_handle
;
56
GLuint
normal_buffer_handle
;
57
GLuint
uv_buffer_handle
;
58
GLuint
index_buffer_handle
;
59
60
static
const
float
generic_positions
[
QUAD_TEXTURED_VERTEX_COUNT
* 3];
61
static
const
float
generic_positions_full
[
QUAD_TEXTURED_VERTEX_COUNT
* 3];
62
static
const
float
generic_normlas
[
QUAD_TEXTURED_VERTEX_COUNT
* 3];
63
static
const
float
generic_uv
[
QUAD_TEXTURED_VERTEX_COUNT
* 2];
64
static
const
unsigned
int
generic_indices
[
QUAD_TEXTURED_INDEX_COUNT
];
65
67
QuadTextured
(
const
QuadTextured
&);
68
};
69
}
70
71
72
73
#endif
Generated on Tue Jun 11 2013 08:43:14 for Vis 2 Demo by
1.8.3.1