]> hackdaworld.org Git - my-code/ivac.git/commitdiff
first additions for webcam usage
authorhackbard <hackbard>
Sat, 8 Feb 2003 03:45:09 +0000 (03:45 +0000)
committerhackbard <hackbard>
Sat, 8 Feb 2003 03:45:09 +0000 (03:45 +0000)
dfb_api.c

index 06415344faa7d4d3afb9aece346ecea346f3fc4f..7435ad4dd02015d7fba6e076018879defd68a201 100644 (file)
--- a/dfb_api.c
+++ b/dfb_api.c
@@ -9,20 +9,27 @@
 /* dfb includes */
 #include <directfb.h>
 
+#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 */