Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Scene::DrawDebugLine(float x, float y, float x2, float y2, int a_Colour)
- {
- /*
- -5 to 5
- 0 to SCRWIDTH*0.5f
- (SCRWIDTH*0.5f/10)*(x+5) - SCRWIDTH*0.5f;
- (SCRHEIGHT*0.5f/10)*(y+5) - SCRHEIGHT*0.5f;
- */
- m_DebugSurface->Line(
- ((SCRWIDTH*0.5f/20)*(x+10)), SCRHEIGHT-((SCRHEIGHT/20)*(y+10)),
- ((SCRWIDTH*0.5f/20)*(x2+10)), SCRHEIGHT-((SCRHEIGHT/20)*(y2+10)), a_Colour);
- }
- void Scene::DrawDebugDot(float x, float y, int a_Colour)
- {
- /*
- -10 to 10
- 0 to SCRWIDTH*0.5f
- (SCRWIDTH*0.5f/10)*(x+5) - SCRWIDTH*0.5f;
- (SCRHEIGHT*0.5f/10)*(y+5) - SCRHEIGHT*0.5f;
- */
- //if(!m_DebugSurface->GetBuffer()[int((SCRWIDTH*0.5f/20)*(x+10))+(int)(SCRHEIGHT-((SCRHEIGHT/20)*(y+10)))*m_DebugSurface->GetWidth()])
- m_DebugSurface->Plot((int)((SCRWIDTH*0.5f/20)*(x+10)), (int)(SCRHEIGHT-((SCRHEIGHT/20)*(y+10))), a_Colour);
- }
Advertisement
Add Comment
Please, Sign In to add comment