-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUniformData.cpp
72 lines (63 loc) · 2.67 KB
/
UniformData.cpp
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//=================================================================================================================================
//
// Author: Maurice Ribble
// 3D Application Research Group
// ATI Research, Inc.
//
// Implementation for the UniformData class. This is a base class for the Uniform class. This holds all the data.
//
//=================================================================================================================================
// $Id: //depot/3darg/Tools/Handheld/esTestApps/common/UniformData.cpp#1 $
//
// Last check-in: $DateTime: 2008/01/23 11:45:40 $
// Last edited by: $Author: dginsbur $
//=================================================================================================================================
// (C) ATI Research, Inc. 2006 All rights reserved.
//=================================================================================================================================
#include "UniformData.h"
//=================================================================================================================================
//=================================================================================================================================
// Constructor(s) / Destructor(s) Block
//=================================================================================================================================
//=================================================================================================================================
//=================================================================================================================================
///
/// Constructor
///
/// \param none
///
/// \return null
//=================================================================================================================================
UniformData::UniformData() :
m_location(0),
m_name(NULL),
m_type(0),
m_textureHandle(0),
m_textureUnit(0),
m_depthTex(false),
m_width(0),
m_height(0),
m_fboHandle(0),
m_colorRbHandle(0),
m_vertShaderHandle(0),
m_fragShaderHandle(0),
m_progHandle(0),
m_attachedProgram(0)
{
}
//=================================================================================================================================
///
/// Destructor
///
/// \param none
///
/// \return null
//=================================================================================================================================
UniformData::~UniformData()
{
if ( m_name != NULL )
{
delete [] m_name;
m_name = NULL;
}
}