![]() |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The AllocVideoSurfacefunction creates a DDGPESurfobject in video memory, and optionally associates it with a DirectDraw surface.
You would use this function in your DirectDraw HAL implementation to create a surface in video memory and attach it to a DirectDraw surface for later use.
Keep in mind that this is not an implementation of the function, GPE::AllocSurface, that you are required to provide in your GPE-based class. It is also not an implementation of the optional DDGPE::AllocSurface. You must still define these functions in your own source code.
virtual SCODE AllocVideoSurface ( DDGPESurf** ppSurf , int width , int height , EGPEFormat format , EDDGPEPixelFormat pixelFormat , unsigned long * pOffsetInVideoMemory ); virtual SCODE AllocVideoSurface ( LPDDRAWI_DDRAWSURFACE_GBL lpDDSurface , int width , int height , EGPEFormat format , EDDGPEPixelFormat pixelFormat , unsigned long * pOffsetInVideoMemory ); virtual SCODE AllocVideoSurface ( DDGPESurf ** ppSurf , DDGPEAllocSurfaceData* pddgpeAllocSurfaceData , unsigned long * pOffsetInVideoMemory ); virtual SCODE AllocVideoSurface ( LPDDRAWI_DDRAWSURFACE_GBL lpDDSurface , DDGPEAllocSurfaceData* pddgpeAllocSurfaceData , unsigned long * pOffsetInVideoMemory );
Parameters
Return Values
The return value is S_OK if the function is successful. Otherwise an error code is returned.
Last updated on Tuesday, July 13, 2004