diff --git a/Application.cpp b/Application.cpp index 1e09ce1..5e12d2a 100644 --- a/Application.cpp +++ b/Application.cpp @@ -674,7 +674,9 @@ void Application::onGraphics(RenderDevice* rd) { renderDevice->setLight(0, GLight::directional(lighting.lightDirection, lighting.lightColor)); renderDevice->setAmbientLightColor(lighting.ambient); - + //renderDevice->setBlendFunc(RenderDevice::BLEND_ONE, RenderDevice::BLEND_ONE); + + rd->beforePrimitive(); CoordinateFrame forDraw = rd->getObjectToWorldMatrix(); glEnableClientState(GL_VERTEX_ARRAY); @@ -689,6 +691,9 @@ void Application::onGraphics(RenderDevice* rd) { glDisableClientState(GL_NORMAL_ARRAY); rd->setObjectToWorldMatrix(forDraw); rd->afterPrimitive(); + + + Draw::sphere(G3D::Sphere(mouse.getPosition(), 1), rd, Color3::cyan(), Color4::clear()); if(g_selectedInstances.size() > 0) diff --git a/ArrowTool.cpp b/ArrowTool.cpp index 596ea8a..ad58279 100644 --- a/ArrowTool.cpp +++ b/ArrowTool.cpp @@ -15,6 +15,8 @@ ArrowTool::~ArrowTool(void) void ArrowTool::onButton1MouseDown(Mouse mouse) { + mouseDownStartx = mouse.x; + mouseDownStarty = mouse.y; mouseDown = true; if(!lctrlDown && !rctrlDown) g_selectedInstances.clear();