本文整理汇总了C++中Engine::ChangeMap方法的典型用法代码示例。如果您正苦于以下问题:C++ Engine::ChangeMap方法的具体用法?C++ Engine::ChangeMap怎么用?C++ Engine::ChangeMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Engine
的用法示例。
在下文中一共展示了Engine::ChangeMap方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GpSetTrans
int GpSetTrans(const GpTransform *trans)
{
Engine *engine;
if (trans!=&gistT) gistT= *trans;
for (engine=GpNextActive(0) ; engine ; engine=GpNextActive(engine))
engine->ChangeMap(engine);
return 0;
}
示例2: GdBeginEl
int GdBeginEl(GpBox *box, int number)
{
Engine *eng;
int value= 0;
/* Loop on active engines to determine whether any require this
element to be drawn, and to set inhibit switches so that some
may draw it and others not. */
for (eng=GpNextActive(0) ; eng ; eng=GpNextActive(eng)) {
if (number>eng->lastDrawn) {
/* this engine hasn't seen this element before */
eng->inhibit= 0;
value= 1;
if (eng->damaged && gdMaxRendered<=eng->lastDrawn) {
/* If this is the first new element, the damage flag
must be reset, and ChangeMap must be called to set the
clip rectangle back to its undamaged boundary. */
eng->damaged= 0;
eng->ChangeMap(eng);
}
} else if (box && eng->damaged && GpIntersect(box, &eng->damage)) {
/* engine damage touches this element */
eng->inhibit= 0;
value= 1;
} else {
/* this element has been seen before and hasn't been damaged */
eng->inhibit= 1;
}
/* set number of element currently being drawn for GdEndDr */
gdNowRendering= number;
if (gdMaxRendered<gdNowRendering) gdMaxRendered= gdNowRendering;
}
return value;
}