2 #ifndef GlobeEngine_DebugMapProvider_h
3 #define GlobeEngine_DebugMapProvider_h
17 debugmap_orbitColor.
clear();
19 debugmap_orbitDepth.
clear();
20 debugmap_orbitIDs.
clear();
21 debugmap_bodiesColor.
clear();
22 debugmap_bodiesDepth.
clear();
23 debugmap_bodiesIDs.
clear();
24 debugmap_bodiesNormals.
clear();
27 void setUpMaps(std::string shaderPath, std::shared_ptr<ge::ArcBallCamera> camera){
28 std::shared_ptr<ge::Shader> programForDebug = std::make_shared<ge::Shader>();
31 bool vis = debugmap_orbitColor.
isVisible();
38 vmml::Vector2d map_size = vmml::Vector2d((camera->getViewport().x() / 2.0) - (1.0 / 2.0)*margin, (
int)(camera->getViewport().y() / 2.0) - (1.0 / 2.0)*margin);
53 debugmap_orbitIDs.
create(programForDebug, vmml::Vector2f(0.0f, 0.0f));
54 debugmap_orbitIDs.
setProjectionMatrix(camera->createOrthoProjectionMatrix(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0));
59 debugmap_bodiesColor.
create(programForDebug, vmml::Vector2f(0.0f, camera->getViewport().y() / 2.0 + margin));
60 debugmap_bodiesColor.
setProjectionMatrix(camera->createOrthoProjectionMatrix(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0));
71 debugmap_bodiesIDs.
create(programForDebug, vmml::Vector2f((camera->getViewport().x() / 2.0) + margin, camera->getViewport().y() / 2.0 + margin));
72 debugmap_bodiesIDs.
setProjectionMatrix(camera->createOrthoProjectionMatrix(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0));
77 debugmap_bodiesNormals.
create(programForDebug, vmml::Vector2f((camera->getViewport().x() / 2.0) + margin, 0.0f));
78 debugmap_bodiesNormals.
setProjectionMatrix(camera->createOrthoProjectionMatrix(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0));
void create()
Definition: DebugMap.h:22
bool isVisible() const
Definition: DrawableComponent.cpp:143
void setUpMaps(std::string shaderPath, std::shared_ptr< ge::ArcBallCamera > camera)
Definition: DebugMapProvider.h:27
typedef int(CALL_CONVENTION *func_type_com_asprise_ocr_setup)(bool)
void setProjectionMatrix(vmml::Matrix4d _mat)
Definition: DebugMap.cpp:98
Definition: DebugMap.h:18
DebugMapProvider()
Definition: DebugMapProvider.h:14
Definition: FrameBufferObject.h:20
void clear()
Definition: DebugMapProvider.h:16
void toggleVisibility()
Definition: DebugMapProvider.h:107
void draw(std::shared_ptr< ge::Camera > _cam, GLint _unit)
Definition: DebugMap.cpp:56
const std::shared_ptr< TextureHandle > getColorTexture(GLint _index) const
Definition: FrameBufferObject.cpp:205
void draw(std::shared_ptr< ge::ArcBallCamera > camera, ge::FrameBufferObject *fbo1, ge::FrameBufferObject *fbo2, ge::FrameBufferObject *fbo3)
Definition: DebugMapProvider.h:95
void setViewport(vmml::Vector2d _viewport)
Definition: DebugMap.cpp:103
Definition: DebugLogger.h:14
Definition: DebugMapProvider.h:11
void clear()
Definition: DebugMap.cpp:4