[lazarus] New gtkglarea demo

Shane Miller SMiller1 at stvgb.org
Thu Oct 18 15:14:44 EDT 2001


OK, then where do I get that?  I don't have that on my system.  I went to http://dri.sourceforge.net/ but it appears they only have it for 2.4.5 kernel (http://www.xfree86.org/~alanh/)

Shane


>>> kirby-2 at web.de 10/18/01 12:51PM >>>
Am Donnerstag, 18. Oktober 2001 20:02 schrieb Shane Miller:
> Right, but is there a .so file or something I can look for to determine
> where glx is installed to set to my modulespath in the x congif file?
Ah :)
Yeah, I just looked in my /usr/X11/lib/modules directory. There's a 
"/usr/X11/lib/modules/extensions/libglx.a" there. So you should look for a 
"libglx.a" :)

Mata ne,
Magus

> Right, but is there a .so file or something I can look for to determine
> where glx is installed to set to my modulespath in the x congif file?
>
> I need to see that to verify that I actually have glx installed.
> SHane
>
> >>> kirby-2 at web.de 10/18/01 11:32AM >>>
>
> The OpenGL module's name is "glx".
> For Direct Rendering you also need "dri" and "drm" (maybe one of these
> starts the other one automatically... maybe...).
>
> Mata ne,
> Magus
>
> > What is the module's actual name?  Where should it be located.  I didn't
> > have a MODULE section so I created one but now it says it can't find that
> > module.  Is the file the libGL.so or is it something else?
> >
> > Shane
> >
> > >>> kirby-2 at web.de 10/18/01 06:29AM >>>
> > >
> > > How do I determine my Kernel version.
> >
> > Try "uname -r".
> > For example:
> > mulk at mulkomp:~ > uname -r
> > 2.4.11-pre5
> > mulk at mulkomp:~ >
> >
> > > Do I really need to compile something into the kernel
> > > to get this to work?  Is loading modules enough?
> >
> > Usually you just have to load the module. But I prefer compiling all my
> > stuff into the kernel :)
> > Besides, you only need to do something about the kernel (be it loading
> > modules or recompiling) if you want to use hardware acceleration.
> >
> > Just do what Mattias told you.
> > You may want to redirect startx's output to some logfile and read it
> > afterwards, i.e.: startx >x.log 2>x.err
> > One of the two files (x.log or x.err) will be empty because X writes
> > everything to stderr (or stdout, respectively), but I can't recall which
> > one
> >
> > :-)
> >
> > Just look for something like "Direct Rendering" or "GLX".
> > If you read "Direct rendering enabled" somewhere, hardware acceleration
> > works; if not, then not. At least that's the case for me (XFree86 4.1.0).
> >
> > Maybe it's not important (probably it is for hardware acceleration), but
> > I also have the lines:
> >         Load            "dri"
> >         Load            "drm"
> > in the modules section of my XF86Config file (besides 'Load "glx"').
> >
> > Also, if you want to use hardware accelerated OpenGL as a normal user
> > (which is likely, isn't it?), you have to put this in the XF86Config file
> > too:
> >
> > Section "DRI"
> >         Group           "video"
> >         Mode            0666
> > EndSection
> >
> > This allows all users in group "video" to use OpenGL hardware
> > acceleration. Or so I think ;)
> > You might want to create the group "video" and put yourself in it, or
> > change "video" to "users" or something.
> > I don't know if you need all this if you want to use software rendering,
> > though...
> >
> > In X, you can check if OpenGL is enabled quite easily: open a terminal
> > window and type "glxinfo".
> >
> > Mata ne,
> > Magus
> >
> > Am Mittwoch, 17. Oktober 2001 21:58 schrieb Shane Miller:
> > > No I didn't.  I'm not sure how to do that.  :-)  I looked at that site
> > > dri.sourceforge.net and it said I needed kernel 2.4.5. How do I
> > > determine my Kernel version.  Do I really need to compile something
> > > into the kernel to get this to work?  Is loading modules enough?  ..too
> > > many questions.
> > >
> > > :-) SHane
> > > :
> > > >>> kirby-2 at web.de 10/17/01 08:21AM >>>
> > >
> > > Hi.
> > >
> > > Have you enabled DRI/GLX in your XF86Config file and compiled DRI/DRM
> > > support into your kernel (or installed the appropriate module)?
> > > It took me a while to set up OpenGL support, but it works for my ATI
> > > Rage 128 card.
> > > If your card isn't supported by X or the Linux kernel, you will have to
> > > use software rendering (which is slooooooooooow).
> > >
> > > For more information see http://dri.sourceforge.net/.
> > >
> > > Mata ne,
> > > Magus
> > >
> > >
> > > Am Mittwoch, 17. Oktober 2001 14:57 schrieb Shane Miller:
> > >
> > > -- > After linking libGL.so.1 to libGL.so and installing gtkgl RPM I
> > > get
> > >
> > > > XLIb: extension "GLX" missing on display ":0.0".
> > > >
> > > > when I run it.  THen it quits.  Could it be my video card doesn't
> > > > support GL?
> > > >
> > > > Shane
> > > >
> > > > >>> nc-gaertnma at netcologne.de 10/16/01 09:19AM >>>
> > > >
> > > > Hi all,
> > > >
> > > > Thx to satan, there is a new gtkglarea demo which demonstrates
> > > > lighting, blending and animation. Simply compile and start it:
> > > >
> > > > cd <lazarusdir>/components/gtk/gtkglarea
> > > > make
> > > > ./gtkglarea_demo
> > > >
> > > > It's amazing!
> > > >
> > > > There is also an improved opengl unit with a lot of nvidia extensions
> > > > (nvgl.pp).
> > > >
> > > >
> > > > Normal bugfixes:
> > > >   - Buttons now react to Return key.
> > > >   - MessageDialogs have now a default Button.
> > > >   - Splashform is more visible.
> > > >   - reduced lcl output
> > > >
> > > > Mattias
>
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>     archives at http://www.miraclec.com/list_archives/lazarus 
>
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>     archives at http://www.miraclec.com/list_archives/lazarus 

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus






More information about the Lazarus mailing list