Now you can set a camera to an image and use dbSetCurrentBitmap(-Camera Number) to render directly to the camera surface. You will need to download the
Unofficial Update.
// Dark GDK - The Game Creators - www.thegamecreators.com
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK()
{
// create a camera image render target surface
dbMakeCamera(1);
dbSetCameraToImage(1, 1, 128, 480);
// draw directly to the camera surface
dbSetCurrentBitmap(-1);
dbCLS(dbRGB(64, 64, 64));
dbCenterText(64, 0, "MENU");
dbCenterText(64, 0, "____");
dbSetCurrentBitmap(0);
dbDeleteCamera(1);
dbPasteImage(1, 0, 0);
dbWaitKey();
// return back to windows
return;
}