![]() |
【转帖】rendering One Entity To A Target9device0
rendering one entity to a target(device)
rendering one entity to a target(device) as i understand the api, it is designed to render the whole drawing in one operation. if you have changed one object and only want to render that entity without rendering the whole drawing, what is the the proper way to do that? -rune jorgensen www.dds.no hi, the proper way to do that is to implement odgsmodel for the device you are using. it is not enough to repaint an entity being modified because of at least 2 reasons: it will send notification to other objects (reactors) so that may modify them too; and even though there were not such depended entities, the entity have a good chance to overlap or to be overlapped by other entities before or/and after it is modified so those entities must be repainted also. we are planning to implement odgsmodel for supported targets (gdi,opengl) in the future. now we just have code in odamfcapp example that draws dragged entities (see dwgviewer.cpp : void cdwgviewer::overlapdraw()). |
所有的时间均为北京时间。 现在的时间是 07:39 AM. |