Certain DirectX structs have a dwSize member. When creating such a struct, you are supposed to assign dwSize to sizeof(ThatStruct).
Trespasser has three wrappers to automate this: CDDSize, CDSSize (a copypaste of CDDSize) and InitDXStruct. They all do the same thing: memset the struct to 0 and then assign dwSize.
CDDSize is extracted into its own header file and augmented with a few compile-time safety checks. All usages of CDSSize and InitDXStruct are replaced with CDDSize. Furthermore, CDDSize is now used wherever applicable.
Certain DirectX structs have a
dwSize
member. When creating such a struct, you are supposed to assigndwSize
tosizeof(ThatStruct)
. Trespasser has three wrappers to automate this:CDDSize
,CDSSize
(a copypaste ofCDDSize
) andInitDXStruct
. They all do the same thing:memset
the struct to 0 and then assigndwSize
.CDDSize
is extracted into its own header file and augmented with a few compile-time safety checks. All usages ofCDSSize
andInitDXStruct
are replaced withCDDSize
. Furthermore,CDDSize
is now used wherever applicable.