VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/cr_gl.py@ 19420

Last change on this file since 19420 was 17472, checked in by vboxsync, 16 years ago

crOpenGL: more dri related drafts

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1print """
2/** @file
3 * VBox OpenGL chromium functions header
4 */
5
6/*
7 * Copyright (C) 2008 Sun Microsystems, Inc.
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21"""
22# Copyright (c) 2001, Stanford University
23# All rights reserved.
24#
25# See the file LICENSE.txt for information on redistributing this software.
26
27import sys
28
29import apiutil
30
31apiutil.CopyrightC()
32
33print """
34/* DO NOT EDIT - THIS FILE GENERATED BY THE cr_gl.py SCRIPT */
35#ifndef __CR_GL_H__
36#define __CR_GL_H__
37
38#include "chromium.h"
39#include "cr_string.h"
40#include "cr_version.h"
41#include "stub.h"
42
43#ifdef WINDOWS
44#pragma warning( disable: 4055 )
45#endif
46
47"""
48
49
50# Extern-like declarations
51keys = apiutil.GetAllFunctions(sys.argv[1]+"/APIspec.txt")
52for func_name in keys:
53 if "Chromium" == apiutil.Category(func_name):
54 continue
55 if func_name == "BoundsInfoCR":
56 continue
57 if "GL_chromium" == apiutil.Category(func_name):
58 pass #continue
59
60 return_type = apiutil.ReturnType(func_name)
61 params = apiutil.Parameters(func_name)
62
63 print "extern %s cr_gl%s( %s );" % (return_type, func_name,
64 apiutil.MakeDeclarationString( params ))
65
66print "#endif /* __CR_GL_H__ */"
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette