Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* graphics
@ 1999-04-06  8:54 Marc Rouaix
  1999-04-07 12:30 ` graphics (color query code for truecolor displays) Jun P. Furuse
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Rouaix @ 1999-04-06  8:54 UTC (permalink / raw)
  To: caml-list

I was excited to hear that the 2.02 graphics library
had better support for 24 bit displays, but I can't
get it to work properly.  Ideally, I'd like something like

set_color (rgb x y z)

to just work right, no matter how many times I call it. 
The support in 2.02 looks like it only works for images
(?), and even that doesn't seem to work properly on my
machine; ocaml seems to think I have an eight bit
display.  I've looked at the graphics code a bit, but
I'm no X genius.

---
Marc



-----== Sent via Deja News, The Discussion Network ==-----
http://www.dejanews.com/  Easy access to 50,000+ discussion forums




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: graphics (color query code for truecolor displays)
  1999-04-06  8:54 graphics Marc Rouaix
@ 1999-04-07 12:30 ` Jun P. Furuse
  0 siblings, 0 replies; 2+ messages in thread
From: Jun P. Furuse @ 1999-04-07 12:30 UTC (permalink / raw)
  To: caml-list; +Cc: Marc Rouaix

Hi,

> I was excited to hear that the 2.02 graphics library
> had better support for 24 bit displays, but I can't
> get it to work properly.  Ideally, I'd like something like
> 
> set_color (rgb x y z)
> 
> to just work right, no matter how many times I call it. 
> The support in 2.02 looks like it only works for images
> (?), and even that doesn't seem to work properly on my
> machine; ocaml seems to think I have an eight bit
> display.  I've looked at the graphics code a bit, but
> I'm no X genius.

I am the one who added "fast colour look up code" in graph library.
Instead of the older version which communicates between X server 
for each colour query (and it is very inefficient), I intended to
compute its "colour index" in the client side. But this colour index
computation method is highly architecture dependent of X servers 
(bit order, colour model, bit depth, etc), and not well documented. 
We checked this modification work correctly for XFree86 servers with
16 bits depth and some DEC Alpha servers, but the code does not
support the all possibilities of architectures, I am afraid.

To do quick repair, use the patch following. This just disables
the new modification. Each color query creates communication between X
server and it REALLY slows the full color graphics programs, but at
least, it works correctly.

Regards,

-----------------------------------------------------------------------
Jun P. Furuse 					 Jun.Furuse@inria.fr
  INRIA
    Institut National de Recherche en Informatique et en Automatique




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-04-07 16:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-06  8:54 graphics Marc Rouaix
1999-04-07 12:30 ` graphics (color query code for truecolor displays) Jun P. Furuse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox