Skip to content
Snippets Groups Projects
Commit 2b8df3a4 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

To build Open Inventor interface, instead of plain OpenGL interface, you need

to install OpenInventor (see http://oss.sgi.com/projects/inventor). The
build of this interface is triggered by the environment variable IVROOT
being set (see Open Inventor installation doc).


git-svn-id: http://root.cern.ch/svn/root/trunk@2098 27541ba8-7e3a-0410-8455-c3a389f83636
parent 3d42113d
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,12 @@ ifeq ($(ARCH),win32)
GLS += TWin32GLKernel.cxx TWin32GLViewerImp.cxx
else
GLS += TRootGLKernel.cxx TRootGLViewer.cxx
ifneq ($(IVROOT),)
GLS += TRootOIViewer.cxx
IVLIBDIR := -L$(IVROOT)/usr/lib
IVLIB := -lInventor -lInventorXt -lXm -lXt -lXext -lX11
IVINCDIR := $(IVROOT)/usr/include
endif
endif
GLS := $(patsubst %,$(MODDIRS)/%,$(GLS))
......@@ -38,9 +44,16 @@ INCLUDEFILES += $(GLDEP)
include/%.h: $(GLDIRI)/%.h
cp $< $@
ifneq ($(IVROOT),)
$(GLLIB): $(GLO) $(MAINLIBS) $(GLLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libRGL.$(SOEXT) $@ "$(GLO)" \
"$(GLLIBEXTRA) $(IVLIBDIR) $(IVLIB)"
else
$(GLLIB): $(GLO) $(MAINLIBS) $(GLLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libRGL.$(SOEXT) $@ "$(GLO)" "$(GLLIBEXTRA)"
endif
all-gl: $(GLLIB)
......@@ -55,5 +68,12 @@ distclean-gl: clean-gl
distclean:: distclean-gl
##### extra rules ######
ifneq ($(IVROOT),)
$(GLO): %.o: %.cxx
$(CXX) $(OPT) -DR__OPENINVENTOR $(CXXFLAGS) -I$(OPENGLINCDIR) \
-I$(IVINCDIR) -o $@ -c $<
else
$(GLO): %.o: %.cxx
$(CXX) $(OPT) $(CXXFLAGS) -I$(OPENGLINCDIR) -o $@ -c $<
endif
// @(#)root/gl:$Name$:$Id$
// @(#)root/gl:$Name: $:$Id: TRootGLKernel.cxx,v 1.1.1.1 2000/05/16 17:00:47 rdm Exp $
// Author: Fons Rademakers 04/03/98
/*************************************************************************
......@@ -19,7 +19,11 @@
//////////////////////////////////////////////////////////////////////////
#include "TRootGLKernel.h"
#ifndef R__OPENINVENTOR
#include "TRootGLViewer.h"
#else
#include "TRootOIViewer.h"
#endif
// Force creation of TRootGLKernel when shared library will be loaded.
......@@ -30,5 +34,9 @@ static TRootGLKernel gGLKernelCreator;
TGLViewerImp *TRootGLKernel::CreateGLViewerImp(TPadOpenGLView *p, const char *title,
UInt_t width, UInt_t height)
{
#ifndef R__OPENINVENTOR
return new TRootGLViewer(p, title, width, height);
#else
return new TRootOIViewer(p, title, width, height);
#endif
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment