From: hackbard Date: Sat, 8 Feb 2003 03:45:09 +0000 (+0000) Subject: first additions for webcam usage X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=20861b5cbccdb9aa93b67cdf9f6222143d2df504;p=my-code%2Fivac.git first additions for webcam usage --- diff --git a/dfb_api.c b/dfb_api.c index 0641534..7435ad4 100644 --- a/dfb_api.c +++ b/dfb_api.c @@ -9,20 +9,27 @@ /* dfb includes */ #include +#define MY_FONT_HEIGHT 48 + /* global stuff */ /* well ... */ static IDirectFB *dfb = NULL; -/* surface */ static IDirectFBSurface *primary = NULL; static int screen_width = 0; static int screen_height = 0; + static IDirectFBSurface *logo = NULL; + +static IDirectFBFont *font = NULL; +static char *text_top="Internet Video / Audio Conferencing" + /* image to load */ char dfb_image[]="./images/ivac_logo.png"; int main (int argc, char **argv) { int i; + DFBFontDescription font_desc; DFBSurfaceDescription dsc; /* image provider */ IDirectFBImageProvider *provider; @@ -46,9 +53,14 @@ int main (int argc, char **argv) { dfb->CreateSurface(dfb,&dsc,&logo); /* render image */ provider->RenderTo(provider,logo,NULL); - provider->Release(provider); + /* create font */ + font_dsc.flags=DFDESC_HEIGHT; + font_dsc.height=MY_FONT_HEIGHT; + + + /* slide logo */ for(i = -dsc.width; i < screen_width; i++) { /* clear screen */