[GRASS5] Embedding GRASS display in my application

Sajith VK sajithvk at hotpop.com
Sat Apr 24 10:59:33 EDT 2004


On Sat, 2004-04-24 at 18:05, Glynn Clements wrote:
> > Currenlty I use PNG driver, create an Image and load that
> > image into my application, but it is not a good way.
> 
> Why not?
	I guess it is less efficient. It need some hardisk access
etc, which can be avoided if we can directly render it. Creating
and loading a new PNG image for each operation (say paning, or
displaying a new layer etc) will impact perfomance.. Correct
me if I am wrong

> 
> Under X, you can set the environment variable XDRIVER_WINDOW to the
> XID of an existing X window, and XDRIVER will use that window instead
> of creating its own. That won't work on Windows, though.
Thanks! it is enough, I dont plan to use my application is windows. 
But will it render on my canvas, or in the entire window?
The driver knows only XID of my window, how can it render
on my canvas, which is one amoung several widgets in my window?
My window has menus, toobar etc and a canvas widget on which
I want to render the GRASS display...
(Sorry that I am not familiar with XID etc..., I have started
learning them.....)

Waiting for your comments....
-- 
"Freedom Matters"
Sajith VK




More information about the grass-dev mailing list