Simplify CPixelProgram
This commit is contained in:
parent
fd42d61af9
commit
b5dfdbdd55
2 changed files with 9 additions and 16 deletions
|
@ -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; } ;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue