摘要:
lpddsprimary->Lock(NULL,&ddsd, DDLOCK_SURFACEMEMORYPTR | DDLOCK_WAIT,NULL);// get video pointer to primary surface// cast to VOID * since we don't know what we are// dealing with yetUCHAR *primary_buffer = (UCHAR *)ddsd.lpSurface; // what is the color depth?if (pixel_format == 32) { // dr 阅读全文