Preface
Maspack Reference Manual
John Lloyd
Last update: September, 2021
Contents
Preface
1
Properties
1.1
Accessing Properties
1.1.1
Why Property Handles?
1.2
Property Ranges
1.3
Obtaining Property Information
1.4
Exporting Properties from a Class
1.4.1
Read-only properties
1.4.2
Inheriting Properties from a superclass
1.5
Composite Properties
1.6
Reading and Writing to Persistent Storage
1.7
Inheritable Properties
1.8
Exporting Inheritable Properties
1.9
Inheritable and Composite Properties
2
Rendering
2.1
Overview
2.1.1
Renderables and Viewers
2.1.2
A Complete Example
2.2
Viewers
2.2.1
Render lists
2.2.2
Prerendering and Rendering
2.2.3
Viewer renderables and external render lists
2.2.4
Coordinate frames and view point control
2.2.5
Lights
2.3
The Renderer Interface
2.3.1
Drawing single points and lines
2.3.2
Drawing single triangles
2.3.3
Colors and associated attributes
2.3.3.1
Highlighting
2.3.4
Drawing using draw mode
2.3.5
Drawing solid shapes
2.3.6
Shading and color mixing
2.3.7
Vertex coloring, and color mixing and interpolation
2.3.8
Changing the model matrix
2.3.9
Render properties and RenderProps
2.3.9.1
Drawing points and lines as 3D solid objects
2.3.9.2
RenderProps taxonomy
2.3.9.3
Renderer methods that use RenderProps
2.3.10
Screen information and 2D rendering
2.3.11
Depth offsets
2.3.12
Maintaining the graphics state
2.3.13
Text rendering
2.4
Render Objects
2.4.1
Building a render object
2.4.2
“Current” attributes
2.4.3
Maintaining consistent attributes
2.4.4
Adding primitives in “build” mode
2.4.5
Modifying render objects
2.4.6
Drawing
RenderObject
s
2.4.7
Multiple primitive groups
2.4.8
Drawing primitive subsets
2.5
Texture mapping
2.5.1
Texture mapping properties
2.5.2
Texturing example using draw mode
2.5.3
Texturing example using a render object
2.6
Mesh Renderers
2.7
Object Selection
2.7.1
Implementing custom selection
2.7.2
Selection Events