~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to include/GL/directfbgl.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
   (c) Copyright 2001  convergence integrated media GmbH.
3
 
   All rights reserved.
4
 
 
5
 
   Written by Denis Oliver Kropp <dok@convergence.de> and
6
 
              Andreas Hundt <andi@convergence.de>.
7
 
 
8
 
   This library is free software; you can redistribute it and/or
9
 
   modify it under the terms of the GNU Lesser General Public
10
 
   License as published by the Free Software Foundation; either
11
 
   version 2 of the License, or (at your option) any later version.
12
 
 
13
 
   This library is distributed in the hope that it will be useful,
14
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 
   Lesser General Public License for more details.
17
 
 
18
 
   You should have received a copy of the GNU Lesser General Public
19
 
   License along with this library; if not, write to the
20
 
   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21
 
   Boston, MA 02111-1307, USA.
22
 
*/
23
 
 
24
 
#ifndef __DIRECTFBGL_H__
25
 
#define __DIRECTFBGL_H__
26
 
 
27
 
#include <directfb.h>
28
 
 
29
 
#ifdef __cplusplus
30
 
extern "C"
31
 
{
32
 
#endif
33
 
 
34
 
 
35
 
typedef struct {
36
 
     int        buffer_size;
37
 
     int        depth_size;
38
 
     int        stencil_size;
39
 
     int        aux_buffers;
40
 
    
41
 
     int        red_size;
42
 
     int        green_size;
43
 
     int        blue_size;
44
 
     int        alpha_size;
45
 
 
46
 
     int        accum_red_size;
47
 
     int        accum_green_size;
48
 
     int        accum_blue_size;
49
 
     int        accum_alpha_size;
50
 
 
51
 
     DFBBoolean double_buffer;
52
 
     DFBBoolean stereo;
53
 
} DFBGLAttributes;
54
 
 
55
 
 
56
 
DEFINE_INTERFACE(   IDirectFBGL,
57
 
 
58
 
   /** Context handling **/
59
 
 
60
 
     /*
61
 
      * Acquire the hardware lock.
62
 
      */
63
 
     DFBResult (*Lock) (
64
 
          IDirectFBGL              *thiz
65
 
     );
66
 
 
67
 
     /*
68
 
      * Release the lock.
69
 
      */
70
 
     DFBResult (*Unlock) (
71
 
          IDirectFBGL              *thiz
72
 
     );
73
 
 
74
 
     /*
75
 
      * Query the OpenGL attributes.
76
 
      */
77
 
     DFBResult (*GetAttributes) (
78
 
          IDirectFBGL              *thiz,
79
 
          DFBGLAttributes          *attributes
80
 
     );
81
 
)
82
 
 
83
 
 
84
 
#ifdef __cplusplus
85
 
}
86
 
#endif
87
 
 
88
 
#endif
89