Starting with the Resource Class

The Resource class is relatively small, and is the base class for all resources in Direct3D, so it may be a good idea to start this section with a list of each method, and what it's intended to be used for. You will never actually create or use the Resource class itself, since it is an abstract class, but you may find yourself using these methods on your other resource classes. See Table 8.1 for the methods on the resource class:

Table 8.1. Resource Class Methods and Properties
PROPERTY OR METHODDESCRIPTION
DeviceRead-only property that will return the device this resource was created with.
TypeRead-only property that returns the type of resource this is. Valid return values for this property are in the ResourceType ...

Get Managed DirectX® 9 Kick Start: Graphics and Game Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.