… | |
… | |
1995 | |
1995 | |
1996 | sub cf::client::send_drawinfo { |
1996 | sub cf::client::send_drawinfo { |
1997 | my ($self, $text, $flags) = @_; |
1997 | my ($self, $text, $flags) = @_; |
1998 | |
1998 | |
1999 | utf8::encode $text; |
1999 | utf8::encode $text; |
2000 | $self->send_packet (sprintf "drawinfo %d %s", $flags, $text); |
2000 | $self->send_packet (sprintf "drawinfo %d %s", $flags || cf::NDI_BLACK, $text); |
2001 | } |
2001 | } |
2002 | |
2002 | |
2003 | |
2003 | |
2004 | =item $success = $client->query ($flags, "text", \&cb) |
2004 | =item $success = $client->query ($flags, "text", \&cb) |
2005 | |
2005 | |
… | |
… | |
2286 | |
2286 | |
2287 | while (my ($face, $info) = each %$faces) { |
2287 | while (my ($face, $info) = each %$faces) { |
2288 | my $idx = (cf::face::find $face) || cf::face::alloc $face; |
2288 | my $idx = (cf::face::find $face) || cf::face::alloc $face; |
2289 | cf::face::set $idx, $info->{visibility}, $info->{magicmap}; |
2289 | cf::face::set $idx, $info->{visibility}, $info->{magicmap}; |
2290 | cf::face::set_data $idx, 0, $info->{data32}, $info->{chksum32}; |
2290 | cf::face::set_data $idx, 0, $info->{data32}, $info->{chksum32}; |
|
|
2291 | Coro::cede; |
|
|
2292 | } |
|
|
2293 | |
|
|
2294 | while (my ($face, $info) = each %$faces) { |
|
|
2295 | next unless $info->{smooth}; |
|
|
2296 | my $idx = cf::face::find $face |
|
|
2297 | or next; |
|
|
2298 | if (my $smooth = cf::face::find $info->{smooth}) { |
|
|
2299 | cf::face::set_smooth $idx, $smooth; |
|
|
2300 | warn "smooth $idx,$smooth ($face,$info->{smooth})\n";#d# |
|
|
2301 | } else { |
|
|
2302 | warn "smooth face '$info->{smooth}' not found for face '$face'"; |
|
|
2303 | } |
2291 | Coro::cede; |
2304 | Coro::cede; |
2292 | } |
2305 | } |
2293 | |
2306 | |
2294 | 1 |
2307 | 1 |
2295 | } |
2308 | } |