« Return to Thread: API Questions

API Questions

by Burkhard Plaum :: Rate this Message:

Reply to Author | View in Thread

Hi,

I took a look at libvisual CVS (mostly because I want to get rid of
that xmms-1.x dependency). I'm planning to port both gmerlin_visualizer
and lemuria to libvisual. This means, I'll need libvisual on both the
application level as at plugin level.

Some questions (Copy & Paste from ViewCVS):

/libvisual-display/lvdisplay/lv_display.h:

   94 LvdFPSControl *sleep26_fps_control_init();
   95 LvdFPSControl *null_fps_control_init();
   96 LvdFPSControl *tod_fps_control_init();

Shouldn't this be just one function, which tests for supported
sleep/timing modes at runtime?

/libvisual-display/drivers/glx/glx.c:

  249 attr[i++] = GLX_RED_SIZE; attr[i++] = 5;
  250 attr[i++] = GLX_GREEN_SIZE; attr[i++] = 5;
  251 attr[i++] = GLX_BLUE_SIZE; attr[i++] = 5;
  252 attr[i++] = GLX_DOUBLEBUFFER; attr[i++] = True;
  253 attr[i++] = GLX_DRAWABLE_TYPE; attr[i++] = GLX_WINDOW_BIT;

This is, what lemuria needs:

  int attr_list[] = {
    GLX_RGBA,
    GLX_DEPTH_SIZE, 16,
    GLX_ALPHA_SIZE, 8,
    GLX_DOUBLEBUFFER,
    None
  };

Would it be possible for plugins to request their own GLX Attributes?

Cheers

Burkhard


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libvisual-devel mailing list
Libvisual-devel@...
https://lists.sourceforge.net/lists/listinfo/libvisual-devel

 « Return to Thread: API Questions

LightInTheBox - Buy quality products at wholesale price!