From a5d64e5a77aae1c7220019e99e4145460bda07b9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 9 Aug 2005 10:48:26 +0000 Subject: [PATCH] Added getDisplayList access method --- include/osg/Drawable | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/osg/Drawable b/include/osg/Drawable index bb778519b..9de19b61b 100644 --- a/include/osg/Drawable +++ b/include/osg/Drawable @@ -241,6 +241,9 @@ class OSG_EXPORT Drawable : public Object /** Return whether OpenGL display lists are being used for rendering.*/ inline bool getUseDisplayList() const { return _useDisplayList; } + /** Return OpenGL display list for specified contextID. */ + inline GLuint& getDisplayList(unsigned int contextID) const { return _globjList[contextID]; } + /** When set to true, ignore the setUseDisplayList() settings, and hints to the drawImplementation method to use OpenGL vertex buffer objects for rendering.*/ void setUseVertexBufferObjects(bool flag);