@@ -370,11 +370,11 @@ <h4>Rectangular Parameters</h4>
370
370
371
371
< pre > < code > my $rect = [20, 20, 40, 40];</ code > </ pre >
372
372
373
- < p > < a name =" Draw " > < /p >
373
+ < p > </ p >
374
374
375
375
< h4 > Color</ h4 >
376
376
377
- < p > < a name =" Draw " > < /p >
377
+ < p > </ p >
378
378
379
379
< p > Need to document what the magnitude of the color and transparency values
380
380
mean.</ p >
@@ -418,6 +418,8 @@ <h4>Color</h4>
418
418
419
419
< h5 > NOTE: Depth of Surface</ h5 >
420
420
421
+ < p > </ p >
422
+
421
423
< p > The color depth of the surface--how many bits are available to describe
422
424
colors--is a property of the relevant < code > SDLx::Surface</ code > or
423
425
< code > SDLx::App</ code > . Set it in its constructor:</ p >
@@ -431,6 +433,8 @@ <h5>NOTE: Depth of Surface</h5>
431
433
432
434
< h3 > Pixels</ h3 >
433
435
436
+ < p > </ p >
437
+
434
438
< p > All < code > SDLx::Surface</ code > s are collections of pixels. You can read
435
439
from and write to these pixels by treating the surface as an array
436
440
reference:</ p >
@@ -454,6 +458,8 @@ <h3>Primitives</h3>
454
458
455
459
< h4 > Lines</ h4 >
456
460
461
+ < p > </ p >
462
+
457
463
< p > A line is a series of contiguous pixels between two points. The
458
464
< code > draw_line</ code > method causes SDL to draw a line to a surface:</ p >
459
465
@@ -509,6 +515,8 @@ <h4>Circles</h4>
509
515
510
516
< h3 > Drawing with Primitives</ h3 >
511
517
518
+ < p > </ p >
519
+
512
520
< p > It's easy to combine several primitives to draw an interesting
513
521
images.</ p >
514
522
@@ -557,12 +565,16 @@ <h3>Drawing with Primitives</h3>
557
565
558
566
< h2 > Drawing on Multiple Surfaces</ h2 >
559
567
568
+ < p > </ p >
569
+
560
570
< p > The examples so far have drawn on only a single surface, the display.
561
571
SDL makes it possible to write on multiple surfaces. These other surfaces
562
572
exist only in memory until you draw them to the display.</ p >
563
573
564
574
< h3 > Creating Surfaces</ h3 >
565
575
576
+ < p > </ p >
577
+
566
578
< p > There are several ways to create an < code > SDLx::Surface</ code > for use.
567
579
The most common is to create one manually with a constructor call:</ p >
568
580
@@ -576,6 +588,8 @@ <h3>Creating Surfaces</h3>
576
588
577
589
< pre > < code > $surface = SDL::Image::load( 'picture.png' );</ code > </ pre >
578
590
591
+ < p > </ p >
592
+
579
593
< p > In the event that the desired < code > SDL_image</ code > library is
580
594
unavailable, you can fallback to the built-in support for the
581
595
< code > .bmp</ code > format.</ p >
@@ -595,6 +609,8 @@ <h2>Lots of Flowers but One Seed</h2>
595
609
useful for moving images. Here's a revised example using
596
610
< code > SDLx::Sprite</ code > for flowers:</ p >
597
611
612
+ < p > </ p >
613
+
598
614
< pre > < code > use strict;
599
615
use warnings;
600
616
use SDL;
0 commit comments