2005-10-25 03:43:07 +02:00
|
|
|
/**
|
|
|
|
* =========================================================================
|
|
|
|
* File : FixedFunctionModelRenderer.h
|
|
|
|
* Project : Pyrogenesis
|
2005-11-06 00:15:23 +01:00
|
|
|
* Description : ModelVertexRenderer that uses only fixed function pipeline
|
|
|
|
* : to render animated models.
|
2005-10-25 03:43:07 +02:00
|
|
|
*
|
|
|
|
* @author Nicolai Hähnle <nicolai@wildfiregames.com>
|
|
|
|
* =========================================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FIXEDFUNCTIONMODELRENDERER_H
|
|
|
|
#define FIXEDFUNCTIONMODELRENDERER_H
|
|
|
|
|
2005-11-06 00:15:23 +01:00
|
|
|
#include "renderer/ModelVertexRenderer.h"
|
2005-10-25 03:43:07 +02:00
|
|
|
|
|
|
|
struct FixedFunctionModelRendererInternals;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class FixedFunctionModelRenderer: Render animated models using only
|
|
|
|
* OpenGL fixed function.
|
|
|
|
*/
|
2005-11-06 00:15:23 +01:00
|
|
|
class FixedFunctionModelRenderer : public ModelVertexRenderer
|
2005-10-25 03:43:07 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
FixedFunctionModelRenderer();
|
|
|
|
~FixedFunctionModelRenderer();
|
2005-11-06 00:15:23 +01:00
|
|
|
|
2005-10-25 03:43:07 +02:00
|
|
|
// Implementations
|
|
|
|
void* CreateModelData(CModel* model);
|
|
|
|
void UpdateModelData(CModel* model, void* data, u32 updateflags);
|
|
|
|
void DestroyModelData(CModel* model, void* data);
|
|
|
|
|
2005-11-06 00:15:23 +01:00
|
|
|
void BeginPass(uint streamflags);
|
|
|
|
void EndPass(uint streamflags);
|
|
|
|
void PrepareModelDef(uint streamflags, CModelDefPtr def);
|
|
|
|
void RenderModel(uint streamflags, CModel* model, void* data);
|
2005-10-25 03:43:07 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
FixedFunctionModelRendererInternals* m;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // FIXEDFUNCTIONMODELRENDERER_H
|