diff options
author | Sergiusz Bazanski <q3k@q3k.org> | 2018-07-12 21:30:36 +0100 |
---|---|---|
committer | Sergiusz Bazanski <q3k@q3k.org> | 2018-07-12 21:30:36 +0100 |
commit | 499951cb65ff31fe15aa360a6b44371b13815d66 (patch) | |
tree | 8a13613876b17e61b1717288d3cf97a862e270eb /common | |
parent | b8a42ff53b1fbb6e03d169d14e58180a750f4cad (diff) | |
download | nextpnr-499951cb65ff31fe15aa360a6b44371b13815d66.tar.gz nextpnr-499951cb65ff31fe15aa360a6b44371b13815d66.tar.bz2 nextpnr-499951cb65ff31fe15aa360a6b44371b13815d66.zip |
Remove legacy graphics API
For now we do not optimize the OpenGL renderer against the new decal
API, but this can be done in the future.
Diffstat (limited to 'common')
-rw-r--r-- | common/nextpnr.h | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h index 5e8c2362..50465869 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -312,78 +312,6 @@ struct Context : Arch // -------------------------------------------------------------- - NPNR_DEPRECATED std::vector<GraphicElement> getFrameGraphics() const - { - std::vector<GraphicElement> ret; - DecalXY decalxy = getFrameDecal(); - ret = getDecalGraphics(decalxy.decal); - for (auto &it : ret) { - it.x1 += decalxy.x; - it.x2 += decalxy.x; - it.y1 += decalxy.y; - it.y2 += decalxy.y; - } - return ret; - } - - NPNR_DEPRECATED std::vector<GraphicElement> getBelGraphics(BelId bel) const - { - std::vector<GraphicElement> ret; - DecalXY decalxy = getBelDecal(bel); - ret = getDecalGraphics(decalxy.decal); - for (auto &it : ret) { - it.x1 += decalxy.x; - it.x2 += decalxy.x; - it.y1 += decalxy.y; - it.y2 += decalxy.y; - } - return ret; - } - - NPNR_DEPRECATED std::vector<GraphicElement> getWireGraphics(WireId wire) const - { - std::vector<GraphicElement> ret; - DecalXY decalxy = getWireDecal(wire); - ret = getDecalGraphics(decalxy.decal); - for (auto &it : ret) { - it.x1 += decalxy.x; - it.x2 += decalxy.x; - it.y1 += decalxy.y; - it.y2 += decalxy.y; - } - return ret; - } - - NPNR_DEPRECATED std::vector<GraphicElement> getPipGraphics(PipId pip) const - { - std::vector<GraphicElement> ret; - DecalXY decalxy = getPipDecal(pip); - ret = getDecalGraphics(decalxy.decal); - for (auto &it : ret) { - it.x1 += decalxy.x; - it.x2 += decalxy.x; - it.y1 += decalxy.y; - it.y2 += decalxy.y; - } - return ret; - } - - NPNR_DEPRECATED std::vector<GraphicElement> getGroupGraphics(GroupId group) const - { - std::vector<GraphicElement> ret; - DecalXY decalxy = getGroupDecal(group); - ret = getDecalGraphics(decalxy.decal); - for (auto &it : ret) { - it.x1 += decalxy.x; - it.x2 += decalxy.x; - it.y1 += decalxy.y; - it.y2 += decalxy.y; - } - return ret; - } - - // -------------------------------------------------------------- - // provided by router1.cc bool getActualRouteDelay(WireId src_wire, WireId dst_wire, delay_t &delay); |