mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 13:12:39 +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){
|
||||
_lineVerticesID = geometryCache ->allocateID();
|
||||
}
|
||||
// glTranslatef(position.x, position.y, position.z);
|
||||
glTranslatef(position.x, position.y, position.z);
|
||||
glm::vec3 axis = glm::axis(rotation);
|
||||
glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z);
|
||||
geometryCache->updateVertices(_lineVerticesID, getLinePoints(), lineColor);
|
||||
|
|
Loading…
Reference in a new issue