Home » U++ Library support » Archive » AGG and Upp Draw integration...
AGG and Upp Draw integration... [message #2449] |
Thu, 13 April 2006 07:17  |
 |
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
quote from AGG...
and just some thoughts...
//The image buffers
// are not displayed directly, they should be copied to or
// combined somehow with the rbuf_window(). rbuf_window() is
// the only buffer that can be actually displayed.
rendering_buffer& rbuf_window() { return m_rbuf_window; }
rendering_buffer& rbuf_img(unsigned idx) { return m_rbuf_img[idx]; }
//=======
void copy_img_to_window(unsigned idx)
{
if(idx < max_images && rbuf_img(idx).buf())
{
rbuf_window().copy_from(rbuf_img(idx));
}
}
//--------------------------------------------------------------------
void copy_window_to_img(unsigned idx)
{
if(idx < max_images)
{
create_img(idx, rbuf_window().width(), rbuf_window().height());
rbuf_img(idx).copy_from(rbuf_window());
}
}
//--------------------------------------------------------------------
void copy_img_to_img(unsigned idx_to, unsigned idx_from)
{
if(idx_from < max_images &&
idx_to < max_images &&
rbuf_img(idx_from).buf())
{
create_img(idx_to,
rbuf_img(idx_from).width(),
rbuf_img(idx_from).height());
rbuf_img(idx_to).copy_from(rbuf_img(idx_from));
}
}
If I understand correctly, one simple approach could be:
1. to use some of agg image manipulation functions even outside Ultimate's Draw on one image as
2. agg's so called "rendering buffer" and simply ...draw that image! Just a question of pixel formats...
More difficult would be to bind graphic objects with events...
and 1/3 pixel precision...
[Updated on: Thu, 13 April 2006 07:18] Report message to a moderator
|
|
|
 |
|
AGG and Upp Draw integration...
By: fudadmin on Thu, 13 April 2006 07:17
|
 |
|
Re: AGG and Upp Draw integration...
By: mirek on Thu, 13 April 2006 14:19
|
 |
|
Re: AGG and Upp Draw integration...
By: mirek on Thu, 13 April 2006 14:21
|
 |
|
Re: AGG and Upp Draw integration...
By: mirek on Mon, 15 May 2006 22:33
|
 |
|
Re: AGG and Upp Draw integration...
|
 |
|
Re: AGG and Upp Draw integration...
By: mirek on Wed, 07 June 2006 13:17
|
 |
|
Re: AGG and Upp Draw integration...
|
 |
|
Re: AGG and Upp Draw integration...
By: forlano on Wed, 07 June 2006 19:28
|
 |
|
Re: AGG and Upp Draw integration...
|
 |
|
Re: AGG and Upp Draw integration...
By: forlano on Sun, 18 June 2006 14:03
|
 |
|
Re: AGG and Upp Draw integration...
By: mirek on Mon, 16 October 2006 17:54
|
 |
|
Re: AGG and Upp Draw integration...
By: Novo on Thu, 04 January 2007 05:33
|
 |
|
Re: AGG and Upp Draw integration...
By: mirek on Thu, 04 January 2007 15:24
|
 |
|
Re: AGG and Upp Draw integration...
By: Novo on Thu, 04 January 2007 16:28
|
 |
|
Re: AGG and Upp Draw integration...
|
 |
|
Re: AGG and Upp Draw integration...
By: mirek on Sun, 11 June 2006 21:26
|
 |
|
Re: AGG and Upp Draw integration...
|
 |
|
Re: AGG and Upp Draw integration...
By: mirek on Mon, 12 June 2006 02:01
|
 |
|
Re: AGG and Upp Draw integration...
|
 |
|
Re: AGG and Upp Draw integration...
|
 |
|
Re: AGG and Upp Draw integration...
|
 |
|
Re: AGG and Upp Draw integration...
By: mirek on Mon, 12 June 2006 07:47
|
 |
|
Re: AGG and Upp Draw integration...
|
 |
|
Re: AGG and Upp Draw integration...
By: mirek on Wed, 14 June 2006 20:52
|
Goto Forum:
Current Time: Mon Apr 28 06:31:32 CEST 2025
Total time taken to generate the page: 0.00710 seconds
|