mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:18:24 +02:00
drawing lines relative to position
This commit is contained in:
parent
533148f26d
commit
3627f03c0d
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ void RenderableLineEntityItem::render(RenderArgs* args) {
|
||||||
if(_lineVerticesID == GeometryCache::UNKNOWN_ID){
|
if(_lineVerticesID == GeometryCache::UNKNOWN_ID){
|
||||||
_lineVerticesID = geometryCache ->allocateID();
|
_lineVerticesID = geometryCache ->allocateID();
|
||||||
}
|
}
|
||||||
// glTranslatef(position.x, position.y, position.z);
|
glTranslatef(position.x, position.y, position.z);
|
||||||
glm::vec3 axis = glm::axis(rotation);
|
glm::vec3 axis = glm::axis(rotation);
|
||||||
glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z);
|
glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z);
|
||||||
geometryCache->updateVertices(_lineVerticesID, getLinePoints(), lineColor);
|
geometryCache->updateVertices(_lineVerticesID, getLinePoints(), lineColor);
|
||||||
|
|
Loading…
Reference in a new issue