Loading...
Searching...
No Matches
glConversions.h
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"
15#include "pxr/imaging/garch/glApi.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
19
20class HdSt_GeometricShader;
21
22class HdStGLConversions {
23public:
24 HDST_API
25 static GLenum GetGlDepthFunc(HdCompareFunction func);
26
27 HDST_API
28 static GLenum GetGlStencilFunc(HdCompareFunction func);
29
30 HDST_API
31 static GLenum GetGlStencilOp(HdStencilOp op);
32
33 HDST_API
34 static GLenum GetGlBlendOp(HdBlendOp op);
35
36 HDST_API
37 static GLenum GetGlBlendFactor(HdBlendFactor factor);
38
39 HDST_API
40 static GLenum GetGLAttribType(HdType type);
41
42 HDST_API
43 static GLenum GetPrimitiveMode(HdSt_GeometricShader const *geometricShader);
44
46 HDST_API
47 static TfToken GetGLSLTypename(HdType type);
48
50 HDST_API
51 static TfToken GetGLSLIdentifier(TfToken const& identifier);
52};
53
54
55PXR_NAMESPACE_CLOSE_SCOPE
56
57#endif // PXR_IMAGING_HD_ST_GL_CONVERSIONS_H
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...