Home > Archive > Unix Programming > August 2005 > smartest way to...
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
smartest way to...
|
|
| Thomas J. 2005-08-20, 7:57 am |
| Hello,
which is the smartest way to build a programm under X to use OpenGL or
a programm with widgets.
I don't wanna install a library like FOX and build the programm with it,
but working with the x-api is very hard.
Which way do you use?
-- thomas
| |
| Ulrich Hobelmann 2005-08-20, 7:57 am |
| Thomas J. wrote:
> Hello,
>
> which is the smartest way to build a programm under X to use OpenGL or
> a programm with widgets.
Which one? There are lots of widget toolkits, and for GL there's Mesa
and probably other libraries with hardware acceleration.
> I don't wanna install a library like FOX and build the programm with it,
> but working with the x-api is very hard.
I never tried Fox, but I guess it should be one of the easier ones. The
most popular X toolkits are GTk and Qt, so might try those. But I don't
think they're much easier than Fox.
> Which way do you use?
I don't do X, since I have a Mac...
I guess I'd use Gtk or some Enlightenment stuff.
--
I believe in Karma. That means I can do bad things to people
all day long and I assume they deserve it.
Dogbert
| |
| Thomas J. 2005-08-20, 6:59 pm |
| Ulrich Hobelmann wrote:
> Thomas J. wrote:
>
>
>
> Which one? There are lots of widget toolkits, and for GL there's Mesa
> and probably other libraries with hardware acceleration.
>
>
>
> I never tried Fox, but I guess it should be one of the easier ones. The
> most popular X toolkits are GTk and Qt, so might try those. But I don't
> think they're much easier than Fox.
>
>
>
> I don't do X, since I have a Mac...
> I guess I'd use Gtk or some Enlightenment stuff.
>
I mean the stuff to create a simple x-window and draw in it or place a
button - this all in c/c++.
Do this without a framework like tk,fox,gtk,...
Is there a further abstraction for the x-api?
-- thomas
| |
| Ulrich Hobelmann 2005-08-20, 6:59 pm |
| Thomas J. wrote:
> I mean the stuff to create a simple x-window and draw in it or place a
> button - this all in c/c++.
> Do this without a framework like tk,fox,gtk,...
>
> Is there a further abstraction for the x-api?
Xlib is the API for the X protocol, very close to the metal. It doesn't
even have buttons, you can only create windows, draw areas (rectangles,
pixels ...) and listen for events (mouse, window-close). Trust me, you
don't want this.
Then there's Xt the X toolkit, which provides a weird OO framework
that's for instance used by the ugly Motif toolkit. You probably don't
want this either.
Gtk and Qt are widely used, reasonably efficient, and look and feel ok.
For a GUI you want to use these, unless you have a very good reason to
go down to the metal and reimplement all that functionality.
What are you trying to program?
--
I believe in Karma. That means I can do bad things to people
all day long and I assume they deserve it.
Dogbert
| |
| Thomas J. 2005-08-20, 6:59 pm |
| Ulrich Hobelmann wrote:
> Thomas J. wrote:
>
>
>
> Xlib is the API for the X protocol, very close to the metal. It doesn't
> even have buttons, you can only create windows, draw areas (rectangles,
> pixels ...) and listen for events (mouse, window-close). Trust me, you
> don't want this.
>
> Then there's Xt the X toolkit, which provides a weird OO framework
> that's for instance used by the ugly Motif toolkit. You probably don't
> want this either.
>
> Gtk and Qt are widely used, reasonably efficient, and look and feel ok.
> For a GUI you want to use these, unless you have a very good reason to
> go down to the metal and reimplement all that functionality.
>
> What are you trying to program?
>
On unix like systems I've only developed console-apps and applications
with fox.
I know many tools work with gtk, mozilla works with xpcom and so on.
But some tools like applets (wmcpuload,...) seems to work with the basic
x-library.
I only wanna get information if there's a way to programm without using
a framework (like gtk).
I will have a look to gtk...
thanks for you posts
-- thomas
| |
| Ulrich Hobelmann 2005-08-20, 6:59 pm |
| Thomas J. wrote:
> I know many tools work with gtk, mozilla works with xpcom and so on.
> But some tools like applets (wmcpuload,...) seems to work with the basic
> x-library.
I tried to send you some Xlib files I wrote when I tried to learn Xlib
that do quite basic things, but your email is broken (even if I remove
the ...).
--
I believe in Karma. That means I can do bad things to people
all day long and I assume they deserve it.
Dogbert
| |
| Thomas J. 2005-08-20, 9:56 pm |
| Ulrich Hobelmann wrote:
> Thomas J. wrote:
>
>
>
> I tried to send you some Xlib files I wrote when I tried to learn Xlib
> that do quite basic things, but your email is broken (even if I remove
> the ...).
>
just sorry - please try it again without the leading '...'.
--
If you wanna send me a email remove the leading '...' from my eamil addr.
| |
| Ulrich Hobelmann 2005-08-20, 9:56 pm |
| Thomas J. wrote:
> just sorry - please try it again without the leading '...'.
No.
The following address(es) failed:
thomaja@ano.at
SMTP error from remote mailer after RCPT TO:<thomaja@ano.at>:
host mail.ano.at [62.99.242.131]: 550 <thomaja@ano.at>:
Recipient address rejected: User unknown in virtual mailbox table
--
I believe in Karma. That means I can do bad things to people
all day long and I assume they deserve it.
Dogbert
| |
| Thomas J. 2005-08-21, 6:57 pm |
| Ulrich Hobelmann wrote:
> Thomas J. wrote:
>
>
>
> No.
>
> The following address(es) failed:
>
> thomaja@ano.at
> SMTP error from remote mailer after RCPT TO:<thomaja@ano.at>:
> host mail.ano.at [62.99.242.131]: 550 <thomaja@ano.at>:
> Recipient address rejected: User unknown in virtual mailbox table
>
Oops, damn - it was a mistake in the hostname.
Now it should be okay
sorry again, thomas
--
If you wanna send me a email remove the leading '...' from my eamil addr.
| |
| Chuck Dillon 2005-08-22, 7:02 pm |
| Thomas J. wrote:
>
>
> I mean the stuff to create a simple x-window and draw in it or place a
> button - this all in c/c++.
> Do this without a framework like tk,fox,gtk,...
>
> Is there a further abstraction for the x-api?
Another option to consider would be Java and one of the OpenGL bindings
thereto.
-- ced
--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.
|
|
|
|
|