stw_pixelformat.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pixelformat_color_info
struct  pixelformat_alpha_info
struct  pixelformat_depth_info
struct  pixelformat_info

Defines

#define PF_FLAG_DOUBLEBUFFER   0x00000001
#define PF_FLAG_MULTISAMPLED   0x00000002

Functions

void pixelformat_init (void)
uint pixelformat_get_count (void)
uint pixelformat_get_extended_count (void)
struct pixelformat_infopixelformat_get_info (uint index)


Define Documentation

#define PF_FLAG_DOUBLEBUFFER   0x00000001

Definition at line 31 of file stw_pixelformat.h.

#define PF_FLAG_MULTISAMPLED   0x00000002

Definition at line 32 of file stw_pixelformat.h.


Function Documentation

uint pixelformat_get_count ( void   ) 

Definition at line 103 of file stw_pixelformat.c.

References pixelformat_count.

00104 {
00105    return pixelformat_count;
00106 }

uint pixelformat_get_extended_count ( void   ) 

Definition at line 109 of file stw_pixelformat.c.

References pixelformat_extended_count.

00110 {
00111    return pixelformat_extended_count;
00112 }

struct pixelformat_info* pixelformat_get_info ( uint  index  )  [read]

Definition at line 115 of file stw_pixelformat.c.

References assert, pixelformat_extended_count, and pixelformats.

00116 {
00117    assert( index < pixelformat_extended_count );
00118 
00119    return &pixelformats[index];
00120 }

void pixelformat_init ( void   ) 

Definition at line 89 of file stw_pixelformat.c.

References add_standard_pixelformats(), assert, MAX_PIXELFORMATS, PF_FLAG_MULTISAMPLED, pixelformat_count, pixelformat_extended_count, and pixelformats.

00090 {
00091    struct pixelformat_info *pf = pixelformats;
00092 
00093    add_standard_pixelformats( &pf, 0 );
00094    pixelformat_count = pf - pixelformats;
00095 
00096    add_standard_pixelformats( &pf, PF_FLAG_MULTISAMPLED );
00097    pixelformat_extended_count = pf - pixelformats;
00098 
00099    assert( pixelformat_extended_count <= MAX_PIXELFORMATS );
00100 }


Generated on Tue Sep 29 06:25:55 2009 for Gallium3D by  doxygen 1.5.4