Simplify CPixelProgram

This commit is contained in:
kaetemi 2013-06-19 01:19:45 +02:00
parent fd42d61af9
commit b5dfdbdd55
2 changed files with 9 additions and 16 deletions

View file

@ -26,15 +26,11 @@
#ifndef NL_PIXEL_PROGRAM_H
#define NL_PIXEL_PROGRAM_H
#include "program.h"
#include "nel/misc/types_nl.h"
#include "nel/misc/smart_ptr.h"
#include <nel/misc/types_nl.h>
#include <nel/misc/smart_ptr.h>
#include <list>
#define PIXEL_SHADER_PROFILE "ps_2_0"
namespace NL3D {
// List typedef.
@ -59,22 +55,18 @@ public:
//-------------------------------------------------------------------------------
class CPixelProgram : public IProgram
class CPixelProgram : public NLMISC::CRefCount
{
public:
/// Constructor
CPixelProgram (const char* program, bool isEffectPrg=false);
CPixelProgram (const char* program);
/// Destructor
virtual ~CPixelProgram ();
/// The driver informations. For the driver implementation only.
NLMISC::CRefPtr<IPixelProgramDrvInfos> _DrvInfo;
const char * getASMProfile() { return PIXEL_SHADER_PROFILE; } ;
static const char * getPixelASMProfile() { return PIXEL_SHADER_PROFILE; } ;
};

View file

@ -25,9 +25,9 @@
#include "std3d.h"
#include "pixel_program.h"
#include <nel/3d/pixel_program.h>
#include "driver.h"
#include <nel/3d/driver.h>
namespace NL3D
{
@ -48,15 +48,16 @@ IPixelProgramDrvInfos::~IPixelProgramDrvInfos ()
// ***************************************************************************
CPixelProgram::CPixelProgram(const char* program, bool isEffectPrg)
:IProgram(program, isEffectPrg)
CPixelProgram::CPixelProgram(const char* program)
{
}
// ***************************************************************************
CPixelProgram::~CPixelProgram()
{
}
} // NL3D