0ad/source/renderer/VertexProgram.h
Calefaction 7947293015 Initial programmable pipeline push
This was SVN commit r1272.
2004-10-23 18:13:54 +00:00

34 lines
No EOL
536 B
C++
Executable file

#ifndef __H_VERTEXPROGRAM_H__
#define __H_VERTEXPROGRAM_H__
#ifdef BUILD_CG
#pragma comment(lib, "cg.lib")
#pragma comment(lib, "cgGL.lib")
#include "ogl.h"
#include "Cg/Cg.h"
#include "Cg/cgGL.h"
#endif
class CProgramManager;
class CVertexProgram
{
friend class CProgramManager;
public:
CVertexProgram(const char *file);
~CVertexProgram();
bool IsValid();
private:
void Bind();
void Load(const char *file);
#ifdef BUILD_CG
void PushParameter(CGparameter param);
CGprogram m_Program;
#endif
};
#endif