mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-16 14:28:43 +00:00
60 lines
1.6 KiB
C++
60 lines
1.6 KiB
C++
|
/** \file geometry_program.cpp
|
||
|
* Geometry program definition
|
||
|
*/
|
||
|
|
||
|
/* Copyright, 2000, 2001 Nevrax Ltd.
|
||
|
*
|
||
|
* This file is part of NEVRAX NEL.
|
||
|
* NEVRAX NEL is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation; either version 2, or (at your option)
|
||
|
* any later version.
|
||
|
|
||
|
* NEVRAX NEL is distributed in the hope that it will be useful, but
|
||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* General Public License for more details.
|
||
|
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with NEVRAX NEL; see the file COPYING. If not, write to the
|
||
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||
|
* MA 02111-1307, USA.
|
||
|
*/
|
||
|
|
||
|
#include "std3d.h"
|
||
|
|
||
|
#include <nel/3d/geometry_program.h>
|
||
|
|
||
|
#include <nel/3d/driver.h>
|
||
|
|
||
|
namespace NL3D
|
||
|
{
|
||
|
|
||
|
// ***************************************************************************
|
||
|
|
||
|
CGeometryProgram::CGeometryProgram(CGPUProgramSourceCont *programSource) : _Info(NULL), IGPUProgram(programSource)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
// ***************************************************************************
|
||
|
|
||
|
CGeometryProgram::~CGeometryProgram ()
|
||
|
{
|
||
|
delete _Info;
|
||
|
_Info = NULL;
|
||
|
}
|
||
|
|
||
|
// ***************************************************************************
|
||
|
|
||
|
void CGeometryProgram::buildInfo(const char *displayName, uint features)
|
||
|
{
|
||
|
nlassert(_Info == NULL);
|
||
|
_Info = new CGeometryProgramInfo();
|
||
|
CGeometryProgramInfo *info = _Info;
|
||
|
info->DisplayName = displayName;
|
||
|
info->Features = features;
|
||
|
}
|
||
|
|
||
|
} // NL3D
|