| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
#if !defined( AFX_VISDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_ ) |
| 25 |
#define AFX_VISDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_ |
| 26 |
|
| 27 |
#if _MSC_VER > 1000 |
| 28 |
|
| 29 |
#pragma once |
| 30 |
#endif |
| 31 |
|
| 32 |
#include <list> |
| 33 |
#include "renderable.h" |
| 34 |
#include "irender.h" |
| 35 |
|
| 36 |
#include "DWinding.h" |
| 37 |
|
| 38 |
class DVisDrawer : public Renderable, public OpenGLRenderable |
| 39 |
{ |
| 40 |
Shader* m_shader_solid; |
| 41 |
Shader* m_shader_wireframe; |
| 42 |
public: |
| 43 |
DVisDrawer(); |
| 44 |
virtual ~DVisDrawer(); |
| 45 |
|
| 46 |
protected: |
| 47 |
std::list<DWinding*>* m_list; |
| 48 |
int refCount; |
| 49 |
public: |
| 50 |
void ClearPoints(); |
| 51 |
void SetList( std::list<DWinding*>* pointList ); |
| 52 |
|
| 53 |
void render( RenderStateFlags state ) const; |
| 54 |
void renderSolid( Renderer& renderer, const VolumeTest& volume ) const; |
| 55 |
void renderWireframe( Renderer& renderer, const VolumeTest& volume ) const; |
| 56 |
|
| 57 |
void constructShaders(); |
| 58 |
void destroyShaders(); |
| 59 |
|
| 60 |
}; |
| 61 |
|
| 62 |
#endif |