VirtualBox

Ignore:
Timestamp:
May 29, 2009 11:21:57 AM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: some opengl 2.0 parts

Location:
trunk/src/VBox/HostServices/SharedOpenGL
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/Makefile.kmk

    r17254 r20147  
    126126        crserverlib/server_winpos.c \
    127127        crserverlib/server_writeback.c \
     128        crserverlib/server_getshaders.c \
    128129        $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c \
    129130        $(VBOX_PATH_CROGL_GENFILES)/server_retval.c \
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_dispatch.py

    r15532 r20147  
    2525
    2626
    27 def GetTestWrapper(func_name):
    28     """Return a C preprocessor token to test in order to wrap code.
    29     This handles extensions.
    30     Example: GetTestWrapper("glActiveTextureARB") = "CR_multitexture"
    31     Example: GetTestWrapper("glBegin") = ""
    32     """
    33     cat = apiutil.Category(func_name)
    34     if (cat == "1.0" or
    35         cat == "1.1" or
    36         cat == "1.2" or
    37         cat == "Chromium" or
    38         cat == "GL_chromium"):
    39         return ''
    40     elif cat[0] =='1':
    41         # i.e. OpenGL 1.3 or 1.4 or 1.5
    42         return "OPENGL_VERSION_" + string.replace(cat, ".", "_")
    43     else:
    44         assert cat != ''
    45         return string.replace(cat, "GL_", "")
    46 
    47 
    48 
    4927for func_name in apiutil.AllSpecials( sys.argv[1]+"/../state_tracker/state" ):
    5028    params = apiutil.Parameters(func_name)
     
    5331        continue
    5432
    55     wrap = GetTestWrapper(func_name)
     33    wrap = apiutil.GetCategoryWrapper(func_name)
    5634    if wrap:
    5735        print '#if defined(CR_%s)' % wrap
     
    140118        apiutil.FindSpecial( sys.argv[1]+"/../state_tracker/state", func_name )):
    141119
    142         wrap = GetTestWrapper(func_name)
     120        wrap = apiutil.GetCategoryWrapper(func_name)
    143121        if wrap:
    144122            print '#if defined(CR_%s)' % wrap
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_get.py

    r15532 r20147  
    7070    'GetQueryObjectivARB' : 1,
    7171    'GetQueryObjectuivARB' : 1,
    72     'GetQueryivARB' : 1
     72    'GetQueryivARB' : 1,
     73    'GetProgramiv' : 1,
     74    'GetShaderiv' : 1
    7375}
    7476
     
    8587    'GetProgramEnvParameterfvARB',
    8688    'GetProgramivARB',
    87     'AreProgramsResidentNV'
     89    'AreProgramsResidentNV',
     90    'GetProgramiv',
     91    'GetShaderiv'
    8892];
    8993
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_special

    r15532 r20147  
    181181WindowPos3sARB
    182182WindowPos3svARB
     183GetActiveAttrib
     184GetActiveUniform
     185GetAttachedShaders
     186GetShaderInfoLog
     187GetProgramInfoLog
     188GetShaderSource
     189GetUniformfv
     190GetUniformiv
Note: See TracChangeset for help on using the changeset viewer.

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