History

Exposed DebugDraw interface to Java Script

Anthony J. Thibault committed 9 years ago

Commit 01abb4b1 parent 0d0c26e6 files · +80 −14Browse files

Showing the changes to libraries/shared/src/DebugDraw.cpp (1 of 6 files). Show all

Unified · Split

libraries/shared/src/DebugDraw.cpp+4−4
@@ -28,19 +28,19 @@ void DebugDraw::drawRay(const glm::vec3& start, const glm::vec3& end, const glm: · 27 unmodified lines
28 _rays.push_back(Ray(start, end, color));28 _rays.push_back(Ray(start, end, color));
29}29}
30 30
31void DebugDraw::addMarker(const std::string& key, const glm::quat& rotation, const glm::vec3& position, const glm::vec4& color) {31void DebugDraw::addMarker(const QString& key, const glm::quat& rotation, const glm::vec3& position, const glm::vec4& color) {
32 _markers[key] = MarkerInfo(rotation, position, color);32 _markers[key] = MarkerInfo(rotation, position, color);
33}33}
34 34
35void DebugDraw::removeMarker(const std::string& key) {35void DebugDraw::removeMarker(const QString& key) {
36 _markers.erase(key);36 _markers.erase(key);
37}37}
38 38
39void DebugDraw::addMyAvatarMarker(const std::string& key, const glm::quat& rotation, const glm::vec3& position, const glm::vec4& color) {39void DebugDraw::addMyAvatarMarker(const QString& key, const glm::quat& rotation, const glm::vec3& position, const glm::vec4& color) {
40 _myAvatarMarkers[key] = MarkerInfo(rotation, position, color);40 _myAvatarMarkers[key] = MarkerInfo(rotation, position, color);
41}41}
42 42
43void DebugDraw::removeMyAvatarMarker(const std::string& key) {43void DebugDraw::removeMyAvatarMarker(const QString& key) {
44 _myAvatarMarkers.erase(key);44 _myAvatarMarkers.erase(key);
45}45}
46 46

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t