HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
glPlatformContext.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_IMAGING_GARCH_GL_PLATFORM_CONTEXT_H
8 #define PXR_IMAGING_GARCH_GL_PLATFORM_CONTEXT_H
9 
10 /// \file garch/glPlatformContext.h
11 
12 #include "pxr/pxr.h"
13 #include "pxr/imaging/garch/api.h"
14 #include "pxr/base/arch/defines.h"
15 #include <cstddef>
16 #include <functional>
17 
18 #if defined(ARCH_OS_LINUX)
19 
21 
22 #elif defined(ARCH_OS_DARWIN)
23 
24 #include "pxr/imaging/garch/glPlatformContextDarwin.h"
25 
26 #elif defined(ARCH_OS_WINDOWS)
27 
28 #include "pxr/imaging/garch/glPlatformContextWindows.h"
29 
30 #else
31 
32 #error "Unknown platform"
33 
34 #endif
35 
37 
39 
41 
42 namespace std
43 {
44 template<>
46 {
47  inline size_t operator()(const PXR_NS::GarchGLPlatformContextState& x) const
48  {
49  return x.GetHash();
50  }
51 };
52 }
53 
54 
55 #endif // PXR_IMAGING_GARCH_GL_PLATFORM_CONTEXT_H
PXR_NAMESPACE_OPEN_SCOPE GARCH_API GarchGLPlatformContextState GarchGetNullGLPlatformContextState()
GarchGLXContextState GarchGLPlatformContextState
#define PXR_NS
Definition: pxr.h:54
GLint GLenum GLint x
Definition: glcorearb.h:409
#define GARCH_API
Definition: api.h:23
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
size_t operator()(const PXR_NS::GarchGLPlatformContextState &x) const
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74