Example #1
0
int video_card_memory_size()
{
  AGLRendererInfo info;
  info = aglQueryRendererInfoForCGDirectDisplayIDs(NULL, 0);
  if (!info) 
    return 0;

  GLint mem;
  aglDescribeRenderer(info, AGL_VIDEO_MEMORY, &mem);
  aglDestroyRendererInfo(info);

  return mem/1024/1024;
}
Example #2
0
static void CheckGetRendererInfo(GDHandle device)
{
	AGLRendererInfo info, head_info;
	GLint inum;

	head_info =  aglQueryRendererInfo(&device, 1);
	if(!head_info)
	{
		DPRINTF(3,(fp,"aglQueryRendererInfo : Info Error\n"));
		return;
	}
	
	info = head_info;
	inum = 0;
	while(info)
	{
		DPRINTF(3,(fp,"\n    Renderer : %d\n", inum));
		PrintInfoStats(info);
		info = aglNextRendererInfo(info);
		inum++;
	}
	
	aglDestroyRendererInfo(head_info);
}