Loading...
Searching...
No Matches
utils.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_GLF_UTILS_H
8#define PXR_IMAGING_GLF_UTILS_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/imaging/glf/api.h"
14#include "pxr/imaging/garch/glApi.h"
15#include "pxr/imaging/hio/types.h"
16
17#include <string>
18
19PXR_NAMESPACE_OPEN_SCOPE
20
27GLF_API
28int GlfGetNumElements(GLenum format);
29
36GLF_API
37int GlfGetElementSize(GLenum type);
38
48GLF_API
49HioFormat GlfGetHioFormat(GLenum glFormat, GLenum glType, bool isSRGB);
50
51
56GLF_API
57bool GlfCheckGLFrameBufferStatus(GLuint target, std::string * reason);
58
59PXR_NAMESPACE_CLOSE_SCOPE
60
61#endif
GLF_API int GlfGetElementSize(GLenum type)
Byte size of a GL type.
GLF_API HioFormat GlfGetHioFormat(GLenum glFormat, GLenum glType, bool isSRGB)
HioFormat.
GLF_API int GlfGetNumElements(GLenum format)
Number of elements.
GLF_API bool GlfCheckGLFrameBufferStatus(GLuint target, std::string *reason)
Checks the valitidy of a GL framebuffer.