SDI Technologies iH30 Especificações Página 22

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 147
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 21
Data Transfer
Quadro SDI Output PG-03776-001_v06 | 17
Code Listing 12: Choosing a 16-bit Floating Point Pixel Format
int format = 0;
int nformats = 0;
int attribList = {
WGL_RED_BITS_ARB, 16,
WGL_GREEN_BITS_ARB, 16,
WGL_BLUE_BITS_ARB, 16,
WGL_ALPHA_BITS_ARB, 16,
WGL_STENCIL_BITS_ARB, 8,
WGL_DEPTH_BITS_ARB, 24,
WGL_DRAW_TO_PBUFFER_ARB, true,
WGL_BIND_TO_VIDEO_RGBA_NV, true,
WGL_FLOAT_COMPONENTS_NV, true,
0}
wglChoosePixelFormat(hDC, attribList, 1, &format, &nformats);
Once an available pixel format that meets the requirements has been specified, a pbuffer
can be created using the
wglCreatePbufferARB() function. For video output, the
attribute list specified as the final argument must contain one of
WGL_BIND_TO_VIDEO_RGB_NV, WGL_BIND_TO_VIDEO_RGBA_NV
, or
WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV. Code Listing 13 demonstrates pbuffer
creation.
Code Listing 13: Creating a Pbuffer
attribList[0] = WGL_BIND_TO_VIDEO_RGBA_NV;
attribList[1] = true;
attribList[2] = 0;
hPbuf = wglCreatePbufferARB(hDC, format, width, height,
attribList);
Once one or more pbuffers has been created using the above procedure, each of these
pbuffers must be bound to the video device so that subsequent OpenGL rendering is
sent to the video output device. Prior to binding however, it is necessary to identify the
video devices available using the
wglGetVideoDeviceNV() function from the
WGL_NV_video_out extension.
Vista de página 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 146 147

Comentários a estes Manuais

Sem comentários