Graphics Reference
In-Depth Information
7
Attributes and Behaviors of
Primitives
This chapter discusses the fundamentals of working with graphics primitives—
how to modify their appearances and how to abstract their behaviors. This chap-
ter:
• introduces the different types of primitives that are supported by graphics
APIs;
• describes how we can efficiently program with these primitives;
• explains some of the attributes that can affect the appearances of the primi-
tives;
• develops abstractions for simple physical behaviors of primitives.
After this chapter we should:
• understand the approaches to drawing different types of primitives with
graphics APIs;
• understand the advantages of designing a hierarchy for graphics primitives;
• understand how to work with simple physical behaviors of graphics primi-
tives (motion and collision).
157
Search WWH ::




Custom Search