~thumper/nux/next-changes

« back to all changes in this revision

Viewing changes to NuxGraphics/GLShaderParameter.cpp

  • Committer: Neil Jagdish Patel
  • Date: 2010-09-01 21:15:42 UTC
  • Revision ID: neil.patel@canonical.com-20100901211542-cw2ce3ak28unouwb
Add NuxGraphics with licensing

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2010 Inalogic Inc.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it 
 
5
 * under the terms of the GNU Lesser General Public License version 3, as
 
6
 * published by the  Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but 
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranties of 
 
10
 * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR 
 
11
 * PURPOSE.  See the applicable version of the GNU Lesser General Public 
 
12
 * License for more details.
 
13
 * 
 
14
 * You should have received a copy of both the GNU Lesser General Public 
 
15
 * License version 3 along with this program.  If not, see 
 
16
 * <http://www.gnu.org/licenses/>
 
17
 *
 
18
 * Authored by: Jay Taoko <jay.taoko_AT_gmail_DOT_com>
 
19
 *
 
20
 */
 
21
 
 
22
 
 
23
#include "NuxCore/NKernel.h"
 
24
#include "GLShader.h"
 
25
#include "GLDeviceObjects.h"
 
26
#include "GLShaderParameter.h"
 
27
 
 
28
NAMESPACE_BEGIN_OGL
 
29
 
 
30
GLShaderParameter::GLShaderParameter(GLProgramObject* Shader,
 
31
                  const TCHAR* ParamName,
 
32
                  eShaderParameterType ParamType,
 
33
                  UBOOL IsOptional,
 
34
                  UBOOL IsStatic)
 
35
:   m_NextParameter(0)
 
36
,   m_ShaderProgram(Shader)
 
37
,   m_ShaderProgram2(0)
 
38
,   m_Name(ParamName)
 
39
,   m_ShaderParameterType(ParamType)
 
40
,   m_bIsOptional(IsOptional)
 
41
,   m_bIsStatic(IsStatic)
 
42
{
 
43
//    m_NextParameter = Shader->FirstParameter;
 
44
//    Shader->FirstParameter = this;
 
45
}
 
46
 
 
47
NAMESPACE_END_OGL