ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC.pm (file contents):
Revision 1.52 by root, Wed May 17 15:18:57 2006 UTC vs.
Revision 1.54 by root, Fri May 19 03:49:47 2006 UTC

153sub view_item { 153sub view_item {
154 ("\t" x ($indent / 4)) 154 ("\t" x ($indent / 4))
155 . $_[1]->title->present ($_[0]) 155 . $_[1]->title->present ($_[0])
156 . "\n" 156 . "\n"
157 . $_[1]->content->present ($_[0]) 157 . $_[1]->content->present ($_[0])
158}
159
160sub view_verbatim {
161 (join "",
162 map +("\t" x ($indent / 2)) . "$_\n",
163 split /\n/, CFClient::UI::Label::escape ($_[1]))
164 . "\n"
158} 165}
159 166
160sub view_textblock { 167sub view_textblock {
161 ("\t" x ($indent / 2)) . "$_[1]\n\n" 168 ("\t" x ($indent / 2)) . "$_[1]\n\n"
162} 169}
348 glGetError; 355 glGetError;
349 356
350 if (defined $data) { 357 if (defined $data) {
351 glTexImage2D GL_TEXTURE_2D, 0, 358 glTexImage2D GL_TEXTURE_2D, 0,
352 $self->{internalformat}, 359 $self->{internalformat},
353 $tw, $th, # need to pad texture first 360 $tw, $th,
354 0, 361 0,
355 $self->{format}, 362 $self->{format},
356 $self->{type}, 363 $self->{type},
357 $data; 364 $data;
358 CFClient::gl_check "uploading texture %dx%d if=%x f=%x t=%x", 365 CFClient::gl_check "uploading texture %dx%d if=%x f=%x t=%x",
375 382
376 glDeleteTexture delete $self->{name} 383 glDeleteTexture delete $self->{name}
377 if $self->{name}; 384 if $self->{name};
378} 385}
379 386
380sub restore_state{ 387sub restore_state {
381 $_->upload 388 $_->upload
382 for values %TEXTURES; 389 for values %TEXTURES;
383}; 390}
384 391
3851; 3921;
386 393
387=back 394=back
388 395

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines