mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-20 16:14:08 +00:00
fixed rogueviz/cvl
This commit is contained in:
parent
947ec6afe9
commit
f7e545d8de
@ -2,8 +2,11 @@
|
|||||||
// this is a plugin which generates branched tilings for newconformist
|
// this is a plugin which generates branched tilings for newconformist
|
||||||
// https://github.com/zenorogue/newconformist (see the option '-cvl')
|
// https://github.com/zenorogue/newconformist (see the option '-cvl')
|
||||||
|
|
||||||
|
#include "../hyper.h"
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
#if CAP_SHOT
|
#if CAP_SHOT
|
||||||
|
|
||||||
struct location {
|
struct location {
|
||||||
transmatrix lView;
|
transmatrix lView;
|
||||||
cell *lco;
|
cell *lco;
|
||||||
@ -32,7 +35,7 @@ void cvl_marker() {
|
|||||||
int id = 0;
|
int id = 0;
|
||||||
for(auto& loc: l.second.locs) {
|
for(auto& loc: l.second.locs) {
|
||||||
if(gmatrix.count(loc.lco)) {
|
if(gmatrix.count(loc.lco)) {
|
||||||
transmatrix T = gmatrix[loc.lco] * inverse(loc.lView);
|
shiftmatrix T = gmatrix[loc.lco] * inverse(loc.lView);
|
||||||
queuepoly(T, cgi.shAsymmetric, 0xFF00FFFF);
|
queuepoly(T, cgi.shAsymmetric, 0xFF00FFFF);
|
||||||
queuestr(T, 1.0, its(l.first)+"/"+its(id), 0xFFFFFF);
|
queuestr(T, 1.0, its(l.first)+"/"+its(id), 0xFFFFFF);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user