Package WildMagic.LibGraphics.Rendering
Class ResourceIdentifier
- java.lang.Object
-
- WildMagic.LibGraphics.Rendering.ResourceIdentifier
-
- Direct Known Subclasses:
ProgramID
,TextureID
,VAOBufferID
public abstract class ResourceIdentifier extends java.lang.Object
Abstract base class. The destructor is *NOT* virtual so that the derived-class destructors hide it. This is intentional to avoid a virtual function table pointer, a safe thing here because the base class has no data. This allows the derived classes that represent vertex buffer information to store the input attributes first, and allow typecasting of the following form. class VBufferIdentifier : public ResourceIdentifier { public: Attributes IAttr; } VBufferIdentifier* pkID =; Attributes& rkIAttr = *(Attributes*)pkID;
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResourceIdentifier()
Abstract base class.
-