Here you have a simple Example.
#include "DarkGDK.h"
#include "Darktool.h"
#include <stdio.h>
#include <string.h>
void DarkGDK ( void )
{
char temp[100];
int i;
int Speed=100;
dbSetDisplayModeAntialias(1920, 1080, 32, 0, 16, 1);
dbSetWindowLayout (0,0,0);
dbSetWindowPosition (0,0);
dbSetWindowSize ( 3840, 1080 );
dbSetWindowTitle("Test");
InitDarkTool();
dtCreateFont(1,"Arial",30,0,0);
dtSetTextFont(1);
dbInk(dbRGB(255,255,255),dbRGB(0,0,0));
dbLoadAnimation("Video.wmv",1);
dbCreateBitmap(1,1920,1080);
dbSetCurrentBitmap(1);
while ( LoopGDK ( ) )
{
dbCopyBitmap(1,0,0,1920,1080,0,1920,0,3840,1080);
dtTextf(1,1,"%i,%i",Speed,dbAnimationSpeed(1));
dbCopyBitmap(1,0);
dbSync ( );
sprintf(temp,"%s",dbGetEntry());
dbClearEntryBuffer();
if(strcmp(temp,"(null)")==0)
temp[0]=0;
for(i=0;i<lstrlen(temp);i++)
{
if(temp[i]=='s')
{
if(dbAnimationPlaying(1))
dbStopAnimation(1);
else
{
dbPlayAnimation(1);
dbPlaceAnimation(1,0,0,1920,1080);
}
}
else if(temp[i]=='+')
{
Speed+=10;
dbSetAnimationSpeed(1,Speed);
}
else if(temp[i]=='-')
{
Speed-=10;
dbSetAnimationSpeed(1,Speed);
}
}
}
}