Re: [Rhythmbox-devel] Plugin writing in C
- From: "Bartosz Wiklak" <bwiklak gmail com>
- To: "Mirco Müller" <macslow bangang de>
- Cc: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] Plugin writing in C
- Date: Sat, 16 Feb 2008 00:09:30 +0100
I finally managed to break into visualization plugin and to draw
widget inside RB :)
I'm getting a strange problem.
Widget that I'm drawing is for sure gl widget (OpenGl program are
running little frickish in compiz).
I can also draw green background setting glClearColor( 0.0f, 1.0f,
0.0f, 0.0f ); and glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT
But I cant draw any object. None poligon I'm creating is visible.
glGetError() == 0 all time.
Maybe someone has some ideas?
The same code in simple gtk window works good, perespective and other
things are set correct.
On Fri, Feb 15, 2008 at 11:06 AM, Bartosz Wiklak <bwiklak gmail com> wrote:
> Mirco, thank ou very much, but now I also found some examples and
> manages to write gtk app with opengl widget.
> Screenshot at ubuntuforums shows GTK not SDL app.
> I understand gtk more and more and found many examples to read.
> My problem is that only C plugin for RB I found is visualization plugin.
> This plugin-related code is not very hard but there is lots of
> Gstreamer related things I don't undestand (and I don't want at the
> I think it's a little step to get rid of visualization and show
> drawing area with gl capacity.
> I'm just not able to do this step and I'm also a little rush-headed
> person (I you probably found out) so after work I'm sitting in front
> of computer and freaking-out.
> I should finish my masters thesis :) but I'm not doing this because I
> feel like I'm loosing my war with GTK :):).
> It's just another opportunity to lean patience and humbleness so
> please don't take my posts so seriously.
> Thank you very much,
> On Fri, Feb 15, 2008 at 10:49 AM, Mirco Müller <macslow bangang de> wrote:
> > Am Freitag, den 15.02.2008, 10:11 +0100 schrieb Bartosz Wiklak:
> > > I also would be happy to spend some of my free time to develop
> > > something for other. But for now I'm spending almost all my free time
> > > trying to get some info that is just not available.
> > > It is a little annoying for me and also for other people who would
> > > like to do something with me and they cant because I'm sitting in
> > > front of my computer all week.
> > This feeling I also know very well. It can happen depending on what
> > area of Linux desktop-development you tap into. With time you get a
> > better understanding how to cope with such situations.
> > Also don't forget that until not too long ago the only real solid
> > OpenGL-solution on the Linux-desktop was the combination of
> > nvidia-hardware and their proprietary driver. Setups like those had to
> > be regarded as a small section of the whole Linux-desktop user-base. Lot
> > and lots of people want or need to stick to pure OpenSource solutions.
> > In this area solid OpenGL was not a commodity. Thankfully this changed
> > and its getting better.
> > That's a reason "graphics/OpenGL-related" development information for
> > GNOME isn't as wide-spread as one would like. Usually you only find pure
> > OpenGL-documentation or small bits on GLX. Both of which are not really
> > useful for people who want to do clean and native gtk+/GNOME-based
> > development incorporating OpenGL.
> > But these days things are changing rapidly and a nice example of a good
> > documentation effort is here...
> > http://www.openismus.com/misc/clutter_tutorial/docs/tutorial/html/index.html
> > A pure gtk+-introduction you are able to find here...
> > http://www.gtk.org/documentation.html
> > If you have an nvidia-based graphics-card and use their binary driver
> > you might also enjoy messing around with this here...
> > http://macslow.thepimp.net/?p=153
> > Best regards...
> > Mirco "MacSlow" Müller
] [Thread Prev