VirtualBox

Changeset 99941 in vbox for trunk


Ignore:
Timestamp:
May 23, 2023 5:06:41 PM (16 months ago)
Author:
vboxsync
Message:

Main, FE/Qt: Wiping out old OpenGLTest code used widely across the project.

Location:
trunk
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Makefile.kmk

    r99040 r99941  
    121121        VBox/HostServices/glxext.h \
    122122        VBox/HostServices/wglext.h \
    123         VBox/VBoxGL2D.h \
    124123        $(if-expr "$(KBUILD_TARGET)" != "linux", \
    125124                VBox/GuestHost/SharedClipboard-x11.h \
  • trunk/include/VBox/VBoxOGL.h

    r98103 r99941  
    4040#endif
    4141
    42 #include <iprt/cdefs.h>
    43 #include <iprt/types.h>
    44 
    45 RT_C_DECLS_BEGIN
    46 
    4742/* GUI and VBox OpenGL code require scaling factor value to be stored in container
    4843 * of type of 'double'. Communication between them is done via Main. In the same time,
     
    5550 * This constant can be increased (multiplied by 10^n) in order to get better precision
    5651 * for scaling factor manipulations. */
    57 #define VBOX_OGL_SCALE_FACTOR_MULTIPLIER    10000.0
    58 
    59 /* 3D content scale factor range bounds. */
    60 #define VBOX_OGL_SCALE_FACTOR_MIN           0.01
    61 #define VBOX_OGL_SCALE_FACTOR_MAX           10.0
    62 
    63 bool RTCALL VBoxOglIsOfflineRenderingAppropriate(void);
    64 bool RTCALL VBoxOglIs3DAccelerationSupported(void);
    65 
    66 DECLEXPORT(int) VBoxOglSetScaleFactor(uint32_t idScreen, double dScaleFactorW, double dScaleFactorH);
    67 
    68 RT_C_DECLS_END
     52#define VBOX_OGL_SCALE_FACTOR_MULTIPLIER 10000.0
    6953
    7054#endif /* !VBOX_INCLUDED_VBoxOGL_h */
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r99936 r99941  
    518518endif
    519519
    520 # These are 2D Video Acceleration and 3D Acceleration related libs:
    521 ifdef VBOX_WITH_3D_ACCELERATION
    522  VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
    523 endif
    524 
    525520# This one is global shared GUI library:
    526521ifeq ($(KBUILD_TARGET),win)
     
    572567endif
    573568
    574 # These are 2D Video Acceleration and 3D Acceleration related libs:
    575 ifdef VBOX_WITH_3D_ACCELERATION
    576  VirtualBoxVM_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
    577 endif
    578 
    579569ifeq ($(KBUILD_TARGET),win)
    580570 VirtualBoxVM_LIBS += $(PATH_STAGE_LIB)/UICommon$(VBOX_SUFF_LIB)
     
    601591if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
    602592 UICommon_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
    603 endif
    604 
    605 # These are 2D Video Acceleration and 3D Acceleration related libs:
    606 ifdef VBOX_WITH_3D_ACCELERATION
    607  UICommon_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
    608593endif
    609594
  • trunk/src/VBox/Main/Makefile.kmk

    r99915 r99941  
    4747 ifndef VBOX_ONLY_SDK
    4848  include $(PATH_SUB_CURRENT)/UnattendedTemplates/Makefile.kmk
    49   include $(PATH_SUB_CURRENT)/src-helper-apps/OpenGLTest/Makefile.kmk
    5049  if defined(VBOX_WITH_OPEN_WATCOM) && defined(VBOX_WITH_UNATTENDED)
    5150   include $(PATH_SUB_CURRENT)/src-helper-apps/os2/Makefile.kmk
     
    804803
    805804 ifdef VBOX_WITH_3D_ACCELERATION
    806   VBoxSVC_DEFS           += VBOX_WITH_3D_ACCELERATION
    807   VBoxSVC_LIBS           += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
    808   VBoxSVC_LDFLAGS.darwin += -framework OpenGL
     805  VBoxSVC_DEFS += VBOX_WITH_3D_ACCELERATION
    809806 endif
    810807
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r98294 r99941  
    182182#include <VBox/settings.h>
    183183#include <VBox/sup.h>
    184 #ifdef VBOX_WITH_3D_ACCELERATION
    185 # include <VBox/VBoxOGL.h>
    186 #endif
    187184#include <iprt/x86.h>
    188185
     
    14761473
    14771474#ifdef VBOX_WITH_3D_ACCELERATION
    1478         bool fSupported = VBoxOglIs3DAccelerationSupported();
     1475        bool fSupported = true; // Test if Vulkan or DirectX is appropriately supported on the host
    14791476#else
    14801477        bool fSupported = false; /* shouldn't get here, but just in case. */
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