Hello, Can you elaborate one do you need the full OpenGL support on the interpreter level, One always can create his /her own C++ class, create a ROOT/Cint dictionary and call from that class what ever one wants. This is the way ROOT does use 3D graphics. Valeri ----- Original Message ----- From: B.V.L.S.Prasad <shiva@mbu.iisc.ernet.in> To: Masaharu Goto <MXJ02154@nifty.ne.jp> Cc: <roottalk@pcroot.cern.ch> Sent: 30 апреля 2001 г. 15:02 Subject: [ROOT] RE:request for a help and advice... > Dear Masa, > thankyou for all the information. > > As you have suggested I will takeup ROOT, but > still I will be trying and waiting to have full OPENGL support > in PURE CINT. > > > I have a suggestion: > > I have searched for API which support C++ OPengl. > I got hold of 2 softwares, they are > > a) GLT > b) GLOW > > These 2 are Free Software Products, which have to > directly makecint to our customized INterpretor... > > Thats it , it will support the Opengl with good GUI classes. > > Iam trying it. > > Let you know , when I am successful. > > thankyou for all the help. > > sincerely, > prasad. > > > Happy Day, > Prasad, B.V.L.S., > Research Scholar. > ***************************************************************************** > AIM OF SCIENTIFIC ADVENTURE : NATURE CRYSTALLOGRAPHY > ***************************************************************************** > _________ __________ ________ ___________ ___________ ___________ > |Thought| | Fourier| | | |Different| | Fourier | |Structure| > | waves |-->|Analysis|-->|NATURE|-->|Forms of |-->|Synthesis|-->| of | > | | | | | | |Knowledge| | | | NATURE | > |_______| |________| |______| |_________| |_________| |_________| > > ***************************************************************************** > shiva@mbu.iisc.ernet.in PROTEIN CRYSTALLOGRAPHY ...Shiva > ***************************************************************************** > > On Mon, 30 Apr 2001, Masaharu Goto wrote: > > > Hello Prasad, > > > > Your requirement is understood. > > > > I do not have what you exactly want right now. But there > > are a couple of alternatives I can provide. > > > > 1) Cint + Tcl/Tk > > Cint and Tcl/Tk are integrated as WildC++ interpreter. > > This application is included in pure cint package in > > lib/WildCard directory. You can use Tk graphics library > > and tcshell through Cint. > > Right now, there is a minor problem in lib/WildCard/setup. > > But basically, you can build the wildc application by > > changing /usr/X11/xxx to /usr/X11R6/xxx in setup script. > > I'll fix this problem in next release (5.14.86) > > After building the wildc application, try > > $ wildc wildc.wc > > to find out its capability > > > > 2) Root > > Because of its powerful graphic capability, I recommend > > you to take ROOT as a candidate. Although ROOT has many > > things that you do not need, it can become a strong fundation > > for making your application. > > > > 3) Cint + xlib > > X11 library is integrated as xlib.dll. This package is > > not included in the cint distribution now. I'll add it > > to cint 5.14.86. Using Xlib, you need to write your own > > graphics classes to make your dream come true. > > > > 4) Cint + opengl > > A long time ago, I've had integrated part of opengl library > > as opengl.dll on Windows. I did not go very far into this > > direction. I need to dig my old hard disk for finding this > > old code. Anyway, it won't help you much. If you'd like to > > work on opengl, it will be better to build a new library. > > If you know anything about opengl support in RedHat6.2 Linux, > > please let me know. I can take a look at it. > > > > Thank you > > Masaharu Goto > > > > > > >Date: Fri, 27 Apr 2001 18:40:09 +0400 (RET) > > >From: "B.V.L.S.Prasad" <shiva@mbu.iisc.ernet.in> > > >To: Masaharu Goto <MXJ02154@nifty.ne.jp> > > >Subject: RE:request for a help and advice... > > > > > >Dear Masa, > > > thankyou very much. Let me put my dream clearly: > > >With CINT 85% of my dream is realized...only remaining is Graphics > > >Language Capability. > > > > > >I want to create class called Display; > > > > > >for example: > > >class Display > > >{ > > >public: > > > Display(x,y,z); > > > Display(Point&); > > > Display(Atom&); > > > Dispaly(Molecule&); > > > Display(Peptide&); > > > // etc...constructors... > > > saveAsPS(); > > > // etc...function... > > >}; > > > > > >These Display constructors should give me access to OpenGL/MesaGL > > >functions. This Display Class will be aggregated in other classes > > >as well, for different other object interactions. > > > > > > Thats what I exactly need. This has to be understood by > > >CINT(PURE). > > > I dont plan any user interface..(GUI)..so I dont want to touch > > >upon Motif/Xlib etc...subtle things...I just plan to create a scripting > > >language with OPENGL, as it is a graphics language. > > > > > > You expressed that you have tried makecinting Opengl. Instead of > > >troubling with my beginners questions...If I can get > > >hold of a small working source (opengl) code with makecint( a small > > >example), I will try to dig myself the remaining things..... > > > > > >I tried like this after going through doc/extlib.txt > > > > > > > > >makecint -mk MakeBio2 -o Bio -H HelperClass.h Data.h DataLinkDef.h > > >Statistics.h Sequence.h MultipleSequences.h ReadPDB.h Protein.h Point.h > > >Atom.h -C++ Point.C Atom.C -I/usr/include/GL/ -l/usr/X11R6/lib/libGLU.so > > >-l/usr/X11R6/lib/libGL.so -l/usr/X11R6/lib/libglut.a > > > > > >and then > > >make -f MakeBio2 > > > > > >with warnings (signed and unsigned) it compiled and created a customized > > >interpretor which works very well as desired, (not graphics). > > > > > >Then I wanted to test whether it understands the graphics commands which > > >I compiled with makecint.. > > > > > >I am attaching the smallest graphics program...hello.c which is a > > >CINT macro...now. > > > > > >when I feed this macro to Bio (my customized cint) its giving this error: > > >*************************************************************** > > >Error: No symbol GLUT_SINGLE in current scope FILE:hello.c LINE:2 > > >Error: No symbol GLUT_RGB in current scope FILE:hello.c LINE:2 > > >!!!Dictionary position rewinded... !!!Error recovered!!! > > >*************************************************************** > > > > > >How to over come this...?????? > > > > > >I have some questions also: > > > is it necessary for me to make cint understand the opengl > > >functions...Basically, the user wont be using the graphics functions > > >directly, but will be using them through my Display object and its > > >member functions....so how to go about ...it ... > > > > > >I would be really glad if you can provide a small graphics program > > >so that I can learn from that and build the others. > > > > > >I would be looking forward to get your advice and help.. > > > > > >thankyou very much for the help.. > > > > > >sincerely, > > >Prasad. > > > > > >PS: I too believe in Freedom ..and I too want to contribute to my Biology > > >collegues using such a nice interpretor and...with a language to them. > > >CINT is really nice. > > > > > > > > >On Thu, 26 Apr 2001, Masaharu Goto wrote: > > >> Dear Prasad, > > >> > > >> I once tried makecinting part of OpenGL and it wasn't too bad. > > >> However, in typical case, embedding an existing library is not > > >> a tribial work. Please refer to doc/extlib.txt. With some > > >> effort, you can embedded the library into cint. > > >> > > >> Now, my question is that do you want to use bare OPENGL/MESAGL > > >> from the interpreter? or do you want to establish a higher level > > >> API and wand to use it from the interpreter? In many case, latter > > >> is easier to use and useful, I guess. In that case, you might not > > >> need to embed base OPENGL/MESAGL into Cint. ROOT takes this approach. > > >> It uses Motif or Windows (and sometimes OpenGL I thought). But those > > >> code are encapsulated and do not show up at API level. > > >> What you can do is to let cint know only about upper level library. > > >> For example, > > >> > > >> // your header file > > >> class YOUR_GRAPHICS_CLASS { > > >> ... > > >> }; > > >> > > >> > > >> // your source file > > >> #include <header_from_the_OpenGL_or_MesaGL> > > >> ..... > > >> > > >> > > >> Beacuse OpenGL/MesaGL header file is only included in source file, > > >> Cint does not need to know those library. Only high level library > > >> you create will be registered into the interpreter. > > >> > > >> I hope this information helps. Please do not hesitate to ask more > > >> questions. > > >> > > >> > > >> Thank you > > >> Masaharu Goto > > >> > > >> > > >> >Date: Wed, 25 Apr 2001 11:20:29 +0400 (RET) > > >> >From: "B.V.L.S.Prasad" <shiva@mbu.iisc.ernet.in> > > >> >To: Masaharu Goto <MXJ02154@nifty.ne.jp> > > >> >Subject: request for a help and advice... > > >> > > > >> > > > >> >Dear Masa, > > >> > > > >> > I request your help; > > >> > > > >> >I plan to develop a small scripting language for Biology, > > >> >where I want to use PURE CINT only. > > >> > > > >> >It will be C++ classes and member functions as the root philosophy goes. > > >> > > > >> >similar to ROOTs OOF&D, I want to create something for Biology. > > >> > > > >> >Ofcourse its a long time work...but for me its a programmers satisfaction > > >> >which I am looking for. > > >> > > > >> >I want to Use OPENGL/MESAGL as the graphics Base. > > >> > > > >> >you have given at your site: CINT3D, but no link to that... > > >> > > > >> >and I tried to compile makecint with -lGL -lGLU -lglut -I/usr/include/GL > > >> >but it was giving errors.... > > >> > > > >> >what should I do so that all the MesaGL/OPengl/GLUT functions can also > > >> >be run similar to C++ scripts... > > >> > > > >> > > > >> >I need your help in this regard. > > >> > > > >> >My platform will be CINT(PURE)..hence this request... > > >> > > > >> > > > >> >please do the favour needed... > > >> >Once I get the initiation to graphics, after that I will be building > > >> >slowly and steadily... > > >> > > > >> >Hope you can spare the advice and help > > >> > > > >> >thanking you in advance and > > >> > > > >> >I take leave for now. > > >> > > > >> >waiting for your help/advice > > >> > > > >> >sincerely, > > >> >Prasad > > >> > > > >> > > > >> > > > >> > > > >> >Happy Day, > > >> >Prasad, B.V.L.S., > > >> >Research Scholar. > > >> > > >***************************************************************************** > > >> > AIM OF SCIENTIFIC ADVENTURE : NATURE CRYSTALLOGRAPHY > > >> > > >***************************************************************************** > > >> >_________ __________ ________ ___________ ___________ __________ > > _ > > >> >|Thought| | Fourier| | | |Different| | Fourier | |Structure| > > >> >| waves |-->|Analysis|-->|NATURE|-->|Forms of |-->|Synthesis|-->| of > > | > > >> >| | | | | | |Knowledge| | | | NATURE | > > >> >|_______| |________| |______| |_________| |_________| |_________ > > | > > >> > > > >> > > >***************************************************************************** > > >> >shiva@mbu.iisc.ernet.in PROTEIN CRYSTALLOGRAPHY > > >> ...Shiva > > >> > > >***************************************************************************** > > >> > > > >> > > > >> > > > > > > > > > > > > > > > >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:44 MET