HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
glConversions.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_HD_ST_GL_CONVERSIONS_H
8 #define PXR_IMAGING_HD_ST_GL_CONVERSIONS_H
9 
10 #include "pxr/pxr.h"
11 #include "pxr/imaging/hdSt/api.h"
12 #include "pxr/imaging/hd/enums.h"
13 #include "pxr/imaging/hd/types.h"
14 #include "pxr/base/tf/token.h"
16 
18 
19 
21 
23 public:
24  HDST_API
26 
27  HDST_API
29 
30  HDST_API
32 
33  HDST_API
34  static GLenum GetGlBlendOp(HdBlendOp op);
35 
36  HDST_API
37  static GLenum GetGlBlendFactor(HdBlendFactor factor);
38 
39  HDST_API
41 
42  HDST_API
43  static GLenum GetPrimitiveMode(HdSt_GeometricShader const *geometricShader);
44 
45  /// Return the name of the given type as represented in GLSL.
46  HDST_API
47  static TfToken GetGLSLTypename(HdType type);
48 
49  /// Return a GLSL-safe, mangled name identifier.
50  HDST_API
51  static TfToken GetGLSLIdentifier(TfToken const& identifier);
52 };
53 
54 
56 
57 #endif // PXR_IMAGING_HD_ST_GL_CONVERSIONS_H
static HDST_API GLenum GetGlStencilFunc(HdCompareFunction func)
HdCompareFunction
Definition: enums.h:19
HdBlendFactor
Definition: enums.h:70
unsigned int GLenum
Definition: cl.hpp:166
static HDST_API TfToken GetGLSLIdentifier(TfToken const &identifier)
Return a GLSL-safe, mangled name identifier.
static HDST_API GLenum GetGlBlendOp(HdBlendOp op)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:108
Definition: token.h:70
static HDST_API GLenum GetGlStencilOp(HdStencilOp op)
static HDST_API TfToken GetGLSLTypename(HdType type)
Return the name of the given type as represented in GLSL.
static HDST_API GLenum GetGlBlendFactor(HdBlendFactor factor)
HdStencilOp
Definition: enums.h:37
static HDST_API GLenum GetPrimitiveMode(HdSt_GeometricShader const *geometricShader)
GLenum func
Definition: glcorearb.h:783
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define HDST_API
Definition: api.h:23
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
static HDST_API GLenum GetGLAttribType(HdType type)
static HDST_API GLenum GetGlDepthFunc(HdCompareFunction func)
HdBlendOp
Definition: enums.h:55
HdType
Definition: types.h:272