Start of some refactoring work...
This commit is contained in:
29
include/SurfacePatchRenderable.h
Normal file
29
include/SurfacePatchRenderable.h
Normal file
@ -0,0 +1,29 @@
|
||||
#ifndef __SurfacePatchRenderable_H__
|
||||
#define __SurfacePatchRenderable_H__
|
||||
|
||||
#include "Ogre.h"
|
||||
#include <vector>
|
||||
|
||||
#include "SurfaceTriangle.h"
|
||||
#include "SurfaceVertex.h"
|
||||
|
||||
namespace Ogre
|
||||
{
|
||||
class SurfacePatchRenderable : public SimpleRenderable
|
||||
{
|
||||
public:
|
||||
SurfacePatchRenderable(const String& material = "BaseWhiteNoLighting");
|
||||
~SurfacePatchRenderable(void);
|
||||
|
||||
void setGeometry(std::vector<SurfaceVertex> verticesToSet, std::vector<SurfaceTriangle> indicesToSet);
|
||||
|
||||
Real getSquaredViewDepth(const Camera *cam) const;
|
||||
Real getBoundingRadius(void) const;
|
||||
protected:
|
||||
//void getWorldTransforms(Matrix4 *xform) const;
|
||||
const Quaternion &getWorldOrientation(void) const;
|
||||
const Vector3 &getWorldPosition(void) const;
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* __SurfacePatchRenderable_H__ */
|
Reference in New Issue
Block a user