summaryrefslogtreecommitdiff
path: root/common/pieceinf.cpp
diff options
context:
space:
mode:
authorLeo2009-02-24 05:54:16 +0000
committerLeo2009-02-24 05:54:16 +0000
commit6a0c59cd1ef3362a486e9261a000020ce8aacc9c (patch)
tree20b2b9d4019fed322ffaf9c8b9d4fde967f52916 /common/pieceinf.cpp
parent281dfd75faafc8a0806cb43649a07833d9209d07 (diff)
Removed display lists.
git-svn-id: http://svn.leocad.org/tags/leocad-0.75@743 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/pieceinf.cpp')
-rw-r--r--common/pieceinf.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/common/pieceinf.cpp b/common/pieceinf.cpp
index bb84695..39e5a9b 100644
--- a/common/pieceinf.cpp
+++ b/common/pieceinf.cpp
@@ -217,7 +217,6 @@ void PieceInfo::LoadIndex (File& file)
m_pGroups = NULL;
m_nTextureCount = 0;
m_pTextures = NULL;
- m_nBoxList = 0;
file.Read (m_strName, 8);
m_strName[8] = '\0';
@@ -267,14 +266,8 @@ void PieceInfo::DeRef()
FreeInformation();
}
-void PieceInfo::CreateBoxDisplayList()
+void PieceInfo::RenderBox()
{
- if (m_nBoxList)
- return;
-
- // Create a display for the bounding box.
- m_nBoxList = glGenLists(1);
- glNewList(m_nBoxList, GL_COMPILE);
glEnableClientState(GL_VERTEX_ARRAY);
float box[24][3] =
@@ -307,7 +300,6 @@ void PieceInfo::CreateBoxDisplayList()
glVertexPointer(3, GL_FLOAT, 0, box);
glDrawArrays(GL_QUADS, 0, 24);
- glEndList();
}
void PieceInfo::LoadInformation()
@@ -1503,10 +1495,6 @@ void PieceInfo::LoadInformation()
void PieceInfo::FreeInformation()
{
- if (m_nBoxList != 0)
- glDeleteLists(m_nBoxList, 1);
- m_nBoxList = 0;
-
if (m_fVertexArray != NULL)
{
free(m_fVertexArray);