Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
896 B

  1. //================ Copyright (c) 1996-2009 Valve Corporation. All Rights Reserved. =================
  2. //
  3. //
  4. //
  5. //==================================================================================================
  6. #ifndef IGLXMGR_H
  7. #define IGLXMGR_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "tier0/basetypes.h"
  12. #define GLXMGR_INTERFACE_VERSION "GLXMgrInterface001"
  13. DECLARE_POINTER_HANDLE( GLXMgrContext_t );
  14. class IGLXMgr
  15. {
  16. public:
  17. // Window creation.
  18. // pAttributes are GLX_ attributes that go to glXChooseVisual.
  19. virtual void* CreateWindow( const char *pTitle, bool bWindowed, int width, int height ) = 0;
  20. // GL context management.
  21. virtual GLXMgrContext_t GetMainContext() = 0;
  22. virtual GLXMgrContext_t CreateExtraContext() = 0;
  23. virtual void DeleteContext( GLXMgrContext_t hContext ) = 0;
  24. virtual void MakeContextCurrent( GLXMgrContext_t hContext ) = 0;
  25. };
  26. #endif // IGLXMGR_H