2008-05-22 04:51:37 -07:00
|
|
|
// Copyright (C) 2002-2008 Nikolaus Gebhardt
|
2007-05-20 11:03:49 -07:00
|
|
|
// This file is part of the "Irrlicht Engine".
|
|
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
|
|
|
|
#ifndef __I_Q3_LEVEL_MESH_H_INCLUDED__
|
|
|
|
#define __I_Q3_LEVEL_MESH_H_INCLUDED__
|
|
|
|
|
|
|
|
#include "IAnimatedMesh.h"
|
|
|
|
#include "IQ3Shader.h"
|
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
namespace scene
|
|
|
|
{
|
2007-07-25 22:30:19 -07:00
|
|
|
//! Interface for a Mesh which can be loaded directly from a Quake3 .bsp-file.
|
2008-05-22 04:51:37 -07:00
|
|
|
/** The Mesh tries to load all textures of the map. There are currently
|
2007-05-20 11:03:49 -07:00
|
|
|
no additional methods in this class, but maybe there will be some in later
|
|
|
|
releases if there are feature requests. */
|
|
|
|
class IQ3LevelMesh : public IAnimatedMesh
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
//! releases a Mesh from the Q3 Loader
|
2008-08-20 01:51:31 -07:00
|
|
|
virtual void releaseMesh(s32 index) = 0;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
2008-08-20 01:51:31 -07:00
|
|
|
//! loads the shader definition from file
|
|
|
|
/** \param filename Name of the shaderfile, defaults to /scripts if fileNameIsValid is false.
|
|
|
|
\param fileNameIsValid Specifies whether the filename is valid in the current situation. */
|
|
|
|
virtual const quake3::SShader* getShader( const c8* filename, bool fileNameIsValid=true ) = 0;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
//! returns a already loaded Shader
|
2008-08-20 01:51:31 -07:00
|
|
|
virtual const quake3::SShader* getShader(u32 index) const = 0;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
//! get's an interface to the entities
|
2008-08-20 01:51:31 -07:00
|
|
|
virtual const quake3::tQ3EntityList& getEntityList() = 0;
|
2007-05-20 11:03:49 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace scene
|
|
|
|
} // end namespace irr
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|