Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Offset and the clipping stack. How to use?
Re: Offset and the clipping stack. How to use? [message #10003 is a reply to message #9986] Wed, 13 June 2007 12:32 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Okay, I see how I can use GetClloffCount to record the stack depth and then trim it to the same level when I'm done, but I'm not sure why all this stack manipulation should be necessary for something so simple. What I realy want is something like the ModelView matrix stack in in OpenGL.

The following methods would do exactly what I want:
Win32:
void Draw::AddOffsetOp(Point p)
{
	DrawLock __;
	actual_offset += p;
	LTIMING("Offset");
	SetOrg();
}

X11 (not tested):
void Draw::AddOffsetOp(Point p)
{
	Cloff &f = cloff.Top();
	actual_offset += p;
	offset[f.offseti] = actual_offset;
}

Or does this break something else (Drawing)?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: AGG again
Next Topic: BSD problems with Draw
Goto Forum:
  


Current Time: Sat Apr 20 02:17:44 CEST 2024

Total time taken to generate the page: 0.05266 seconds